Janis Danisevskis | 672d983 | 2020-12-09 13:25:36 -0800 | [diff] [blame] | 1 | // Copyright 2020, The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Bob Badour | 4c7858c | 2021-02-12 15:40:29 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "system_security_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["system_security_license"], |
| 22 | } |
| 23 | |
Janis Danisevskis | 672d983 | 2020-12-09 13:25:36 -0800 | [diff] [blame] | 24 | aidl_interface { |
Janis Danisevskis | 9f10a6a | 2021-01-18 16:45:21 +0000 | [diff] [blame] | 25 | name: "android.security.authorization", |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 26 | srcs: ["android/security/authorization/*.aidl"], |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 27 | defaults: ["android.hardware.security.keymint-latest-defaults"], |
Janis Danisevskis | c3a496b | 2021-01-05 10:37:22 -0800 | [diff] [blame] | 28 | imports: [ |
Steven Moreland | 538558e | 2021-08-30 17:48:57 -0700 | [diff] [blame] | 29 | "android.hardware.security.secureclock-V1", |
Janis Danisevskis | c3a496b | 2021-01-05 10:37:22 -0800 | [diff] [blame] | 30 | ], |
Hasini Gunasinghe | 594caa3 | 2020-11-12 20:25:13 +0000 | [diff] [blame] | 31 | unstable: true, |
| 32 | backend: { |
| 33 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 34 | platform_apis: true, |
Hasini Gunasinghe | 594caa3 | 2020-11-12 20:25:13 +0000 | [diff] [blame] | 35 | }, |
| 36 | rust: { |
| 37 | enabled: true, |
| 38 | }, |
| 39 | ndk: { |
| 40 | enabled: true, |
Janis Danisevskis | 2929457 | 2021-03-17 09:53:57 -0700 | [diff] [blame] | 41 | apps_enabled: false, |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 42 | }, |
Hasini Gunasinghe | 594caa3 | 2020-11-12 20:25:13 +0000 | [diff] [blame] | 43 | }, |
| 44 | } |
| 45 | |
Janis Danisevskis | 7a1cf38 | 2020-11-20 11:22:14 -0800 | [diff] [blame] | 46 | aidl_interface { |
| 47 | name: "android.security.apc", |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 48 | srcs: ["android/security/apc/*.aidl"], |
Janis Danisevskis | 7a1cf38 | 2020-11-20 11:22:14 -0800 | [diff] [blame] | 49 | unstable: true, |
| 50 | backend: { |
| 51 | java: { |
| 52 | enabled: true, |
| 53 | }, |
| 54 | rust: { |
| 55 | enabled: true, |
| 56 | }, |
Janis Danisevskis | 2437fde | 2021-03-08 11:30:11 -0800 | [diff] [blame] | 57 | ndk: { |
| 58 | enabled: true, |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 59 | }, |
Janis Danisevskis | 7a1cf38 | 2020-11-20 11:22:14 -0800 | [diff] [blame] | 60 | }, |
| 61 | } |
Joel Galenson | de386b4 | 2020-09-30 10:53:05 -0700 | [diff] [blame] | 62 | |
| 63 | aidl_interface { |
| 64 | name: "android.security.compat", |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 65 | srcs: ["android/security/compat/*.aidl"], |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 66 | defaults: ["android.hardware.security.keymint-latest-defaults"], |
Joel Galenson | f21c002 | 2020-12-11 14:37:52 -0800 | [diff] [blame] | 67 | imports: [ |
Steven Moreland | 538558e | 2021-08-30 17:48:57 -0700 | [diff] [blame] | 68 | "android.hardware.security.secureclock-V1", |
| 69 | "android.hardware.security.sharedsecret-V1", |
Joel Galenson | f21c002 | 2020-12-11 14:37:52 -0800 | [diff] [blame] | 70 | ], |
Joel Galenson | de386b4 | 2020-09-30 10:53:05 -0700 | [diff] [blame] | 71 | unstable: true, |
| 72 | backend: { |
| 73 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 74 | platform_apis: true, |
Joel Galenson | de386b4 | 2020-09-30 10:53:05 -0700 | [diff] [blame] | 75 | }, |
| 76 | rust: { |
| 77 | enabled: true, |
| 78 | }, |
| 79 | ndk: { |
| 80 | enabled: true, |
Janis Danisevskis | 2929457 | 2021-03-17 09:53:57 -0700 | [diff] [blame] | 81 | apps_enabled: false, |
Janis Danisevskis | 7bfa6b3 | 2021-04-06 11:09:07 -0700 | [diff] [blame] | 82 | }, |
Joel Galenson | de386b4 | 2020-09-30 10:53:05 -0700 | [diff] [blame] | 83 | }, |
| 84 | } |
Max Bires | 148c08e | 2020-10-13 13:41:41 -0700 | [diff] [blame] | 85 | |
| 86 | aidl_interface { |
Janis Danisevskis | 34a0cf2 | 2021-03-08 09:19:03 -0800 | [diff] [blame] | 87 | name: "android.security.maintenance", |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 88 | srcs: ["android/security/maintenance/*.aidl"], |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 89 | defaults: [ |
| 90 | "android.system.keystore2-latest-defaults", |
Janis Danisevskis | ddd6e75 | 2021-02-22 18:46:55 -0800 | [diff] [blame] | 91 | ], |
Hasini Gunasinghe | d31e437 | 2021-01-26 21:25:12 +0000 | [diff] [blame] | 92 | unstable: true, |
| 93 | backend: { |
| 94 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 95 | platform_apis: true, |
Hasini Gunasinghe | d31e437 | 2021-01-26 21:25:12 +0000 | [diff] [blame] | 96 | }, |
| 97 | rust: { |
| 98 | enabled: true, |
| 99 | }, |
| 100 | ndk: { |
| 101 | enabled: true, |
Janis Danisevskis | 2929457 | 2021-03-17 09:53:57 -0700 | [diff] [blame] | 102 | apps_enabled: false, |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 103 | }, |
Hasini Gunasinghe | d31e437 | 2021-01-26 21:25:12 +0000 | [diff] [blame] | 104 | }, |
| 105 | } |
Janis Danisevskis | c0e7dfb | 2021-01-20 10:54:38 -0800 | [diff] [blame] | 106 | |
| 107 | aidl_interface { |
Janis Danisevskis | 3eb829d | 2021-06-14 14:18:20 -0700 | [diff] [blame] | 108 | name: "android.security.legacykeystore", |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 109 | srcs: ["android/security/legacykeystore/*.aidl"], |
Janis Danisevskis | c0e7dfb | 2021-01-20 10:54:38 -0800 | [diff] [blame] | 110 | unstable: true, |
| 111 | backend: { |
| 112 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 113 | platform_apis: true, |
Janis Danisevskis | c0e7dfb | 2021-01-20 10:54:38 -0800 | [diff] [blame] | 114 | }, |
| 115 | rust: { |
| 116 | enabled: true, |
| 117 | }, |
Janis Danisevskis | 3eb829d | 2021-06-14 14:18:20 -0700 | [diff] [blame] | 118 | ndk: { |
| 119 | enabled: true, |
| 120 | apps_enabled: false, |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 121 | }, |
Janis Danisevskis | c0e7dfb | 2021-01-20 10:54:38 -0800 | [diff] [blame] | 122 | }, |
| 123 | } |
| 124 | |
Hasini Gunasinghe | 15891e6 | 2021-06-10 16:23:27 +0000 | [diff] [blame] | 125 | aidl_interface { |
Vikram Gaur | 743f178 | 2024-09-06 05:45:08 +0000 | [diff] [blame] | 126 | name: "android.security.postprocessor", |
| 127 | srcs: ["android/security/postprocessor/*.aidl"], |
| 128 | unstable: true, |
| 129 | backend: { |
| 130 | java: { |
| 131 | enabled: false, |
| 132 | }, |
| 133 | cpp: { |
| 134 | enabled: false, |
| 135 | }, |
| 136 | ndk: { |
| 137 | enabled: false, |
| 138 | }, |
| 139 | rust: { |
| 140 | enabled: true, |
| 141 | }, |
| 142 | }, |
| 143 | } |
| 144 | |
| 145 | aidl_interface { |
Hasini Gunasinghe | 15891e6 | 2021-06-10 16:23:27 +0000 | [diff] [blame] | 146 | name: "android.security.metrics", |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 147 | srcs: ["android/security/metrics/*.aidl"], |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 148 | defaults: [ |
| 149 | "android.system.keystore2-latest-defaults", |
Hasini Gunasinghe | 15891e6 | 2021-06-10 16:23:27 +0000 | [diff] [blame] | 150 | ], |
| 151 | unstable: true, |
| 152 | backend: { |
| 153 | java: { |
| 154 | platform_apis: true, |
Hasini Gunasinghe | 15891e6 | 2021-06-10 16:23:27 +0000 | [diff] [blame] | 155 | }, |
| 156 | rust: { |
| 157 | enabled: true, |
| 158 | }, |
| 159 | ndk: { |
| 160 | enabled: true, |
| 161 | apps_enabled: false, |
Shaquille Johnson | ac3c2cd | 2024-01-03 18:30:11 +0000 | [diff] [blame] | 162 | }, |
Hasini Gunasinghe | 15891e6 | 2021-06-10 16:23:27 +0000 | [diff] [blame] | 163 | }, |
| 164 | } |
| 165 | |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame] | 166 | // java_defaults that includes the latest Keystore2 AIDL library. |
| 167 | // Modules that depend on KeyMint directly can include this java_defaults to avoid |
| 168 | // managing dependency versions explicitly. |
| 169 | java_defaults { |
| 170 | name: "keystore2_use_latest_aidl_java_static", |
| 171 | static_libs: [ |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 172 | "android.system.keystore2-V5-java-source", |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame] | 173 | ], |
| 174 | } |
| 175 | |
| 176 | java_defaults { |
| 177 | name: "keystore2_use_latest_aidl_java_shared", |
| 178 | libs: [ |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 179 | "android.system.keystore2-V5-java-source", |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame] | 180 | ], |
| 181 | } |
| 182 | |
| 183 | java_defaults { |
| 184 | name: "keystore2_use_latest_aidl_java", |
| 185 | libs: [ |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 186 | "android.system.keystore2-V5-java", |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame] | 187 | ], |
| 188 | } |
| 189 | |
David Drysdale | c4e0d5b | 2021-11-22 18:12:06 +0000 | [diff] [blame] | 190 | // cc_defaults that includes the latest Keystore2 AIDL library. |
| 191 | // Modules that depend on KeyMint directly can include this cc_defaults to avoid |
| 192 | // managing dependency versions explicitly. |
| 193 | cc_defaults { |
| 194 | name: "keystore2_use_latest_aidl_ndk_static", |
| 195 | static_libs: [ |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 196 | "android.system.keystore2-V5-ndk", |
David Drysdale | c4e0d5b | 2021-11-22 18:12:06 +0000 | [diff] [blame] | 197 | ], |
| 198 | } |
| 199 | |
| 200 | cc_defaults { |
| 201 | name: "keystore2_use_latest_aidl_ndk_shared", |
| 202 | shared_libs: [ |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 203 | "android.system.keystore2-V5-ndk", |
David Drysdale | c4e0d5b | 2021-11-22 18:12:06 +0000 | [diff] [blame] | 204 | ], |
| 205 | } |
Rajesh Nyamagoud | 45689e5 | 2022-05-13 19:27:02 +0000 | [diff] [blame] | 206 | |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame] | 207 | cc_defaults { |
| 208 | name: "keystore2_use_latest_aidl_cpp_shared", |
| 209 | shared_libs: [ |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 210 | "android.system.keystore2-V5-cpp", |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame] | 211 | ], |
| 212 | } |
| 213 | |
| 214 | cc_defaults { |
| 215 | name: "keystore2_use_latest_aidl_cpp_static", |
| 216 | static_libs: [ |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 217 | "android.system.keystore2-V5-cpp", |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame] | 218 | ], |
| 219 | } |
| 220 | |
Rajesh Nyamagoud | 45689e5 | 2022-05-13 19:27:02 +0000 | [diff] [blame] | 221 | // A rust_defaults that includes the latest Keystore2 AIDL library. |
| 222 | // Modules that depend on Keystore2 directly can include this rust_defaults to avoid |
| 223 | // managing dependency versions explicitly. |
| 224 | rust_defaults { |
| 225 | name: "keystore2_use_latest_aidl_rust", |
| 226 | rustlibs: [ |
Karuna Wadhera | 6024c69 | 2024-10-10 00:14:18 +0000 | [diff] [blame] | 227 | "android.system.keystore2-V5-rust", |
Rajesh Nyamagoud | 45689e5 | 2022-05-13 19:27:02 +0000 | [diff] [blame] | 228 | ], |
| 229 | } |