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 { |
| 25 | name: "android.security.attestationmanager", |
Janis Danisevskis | 7a1cf38 | 2020-11-20 11:22:14 -0800 | [diff] [blame] | 26 | srcs: [ "android/security/attestationmanager/*.aidl", ], |
Tri Vo | 4158567 | 2022-09-02 18:03:37 -0700 | [diff] [blame] | 27 | imports: [ "android.hardware.security.keymint-V3" ], |
Janis Danisevskis | 672d983 | 2020-12-09 13:25:36 -0800 | [diff] [blame] | 28 | unstable: true, |
| 29 | backend: { |
| 30 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 31 | platform_apis: true, |
Janis Danisevskis | 672d983 | 2020-12-09 13:25:36 -0800 | [diff] [blame] | 32 | }, |
| 33 | rust: { |
| 34 | enabled: true, |
| 35 | }, |
Janis Danisevskis | 7bfa6b3 | 2021-04-06 11:09:07 -0700 | [diff] [blame] | 36 | ndk: { |
| 37 | enabled: true, |
| 38 | apps_enabled: false, |
| 39 | } |
Janis Danisevskis | 672d983 | 2020-12-09 13:25:36 -0800 | [diff] [blame] | 40 | }, |
| 41 | } |
Hasini Gunasinghe | 594caa3 | 2020-11-12 20:25:13 +0000 | [diff] [blame] | 42 | |
| 43 | aidl_interface { |
Janis Danisevskis | 9f10a6a | 2021-01-18 16:45:21 +0000 | [diff] [blame] | 44 | name: "android.security.authorization", |
| 45 | srcs: [ "android/security/authorization/*.aidl" ], |
Janis Danisevskis | c3a496b | 2021-01-05 10:37:22 -0800 | [diff] [blame] | 46 | imports: [ |
Tri Vo | 4158567 | 2022-09-02 18:03:37 -0700 | [diff] [blame] | 47 | "android.hardware.security.keymint-V3", |
Steven Moreland | 538558e | 2021-08-30 17:48:57 -0700 | [diff] [blame] | 48 | "android.hardware.security.secureclock-V1", |
Janis Danisevskis | c3a496b | 2021-01-05 10:37:22 -0800 | [diff] [blame] | 49 | ], |
Hasini Gunasinghe | 594caa3 | 2020-11-12 20:25:13 +0000 | [diff] [blame] | 50 | unstable: true, |
| 51 | backend: { |
| 52 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 53 | platform_apis: true, |
Hasini Gunasinghe | 594caa3 | 2020-11-12 20:25:13 +0000 | [diff] [blame] | 54 | }, |
| 55 | rust: { |
| 56 | enabled: true, |
| 57 | }, |
| 58 | ndk: { |
| 59 | enabled: true, |
Janis Danisevskis | 2929457 | 2021-03-17 09:53:57 -0700 | [diff] [blame] | 60 | apps_enabled: false, |
Hasini Gunasinghe | 594caa3 | 2020-11-12 20:25:13 +0000 | [diff] [blame] | 61 | } |
| 62 | }, |
| 63 | } |
| 64 | |
Janis Danisevskis | 7a1cf38 | 2020-11-20 11:22:14 -0800 | [diff] [blame] | 65 | aidl_interface { |
| 66 | name: "android.security.apc", |
| 67 | srcs: [ "android/security/apc/*.aidl" ], |
| 68 | unstable: true, |
| 69 | backend: { |
| 70 | java: { |
| 71 | enabled: true, |
| 72 | }, |
| 73 | rust: { |
| 74 | enabled: true, |
| 75 | }, |
Janis Danisevskis | 2437fde | 2021-03-08 11:30:11 -0800 | [diff] [blame] | 76 | ndk: { |
| 77 | enabled: true, |
| 78 | } |
Janis Danisevskis | 7a1cf38 | 2020-11-20 11:22:14 -0800 | [diff] [blame] | 79 | }, |
| 80 | } |
Joel Galenson | de386b4 | 2020-09-30 10:53:05 -0700 | [diff] [blame] | 81 | |
| 82 | aidl_interface { |
| 83 | name: "android.security.compat", |
| 84 | srcs: [ "android/security/compat/*.aidl" ], |
Joel Galenson | f21c002 | 2020-12-11 14:37:52 -0800 | [diff] [blame] | 85 | imports: [ |
Tri Vo | 4158567 | 2022-09-02 18:03:37 -0700 | [diff] [blame] | 86 | "android.hardware.security.keymint-V3", |
Steven Moreland | 538558e | 2021-08-30 17:48:57 -0700 | [diff] [blame] | 87 | "android.hardware.security.secureclock-V1", |
| 88 | "android.hardware.security.sharedsecret-V1", |
Joel Galenson | f21c002 | 2020-12-11 14:37:52 -0800 | [diff] [blame] | 89 | ], |
Joel Galenson | de386b4 | 2020-09-30 10:53:05 -0700 | [diff] [blame] | 90 | unstable: true, |
| 91 | backend: { |
| 92 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 93 | platform_apis: true, |
Joel Galenson | de386b4 | 2020-09-30 10:53:05 -0700 | [diff] [blame] | 94 | }, |
| 95 | rust: { |
| 96 | enabled: true, |
| 97 | }, |
| 98 | ndk: { |
| 99 | enabled: true, |
Janis Danisevskis | 2929457 | 2021-03-17 09:53:57 -0700 | [diff] [blame] | 100 | apps_enabled: false, |
Janis Danisevskis | 7bfa6b3 | 2021-04-06 11:09:07 -0700 | [diff] [blame] | 101 | }, |
Joel Galenson | de386b4 | 2020-09-30 10:53:05 -0700 | [diff] [blame] | 102 | }, |
| 103 | } |
Max Bires | 148c08e | 2020-10-13 13:41:41 -0700 | [diff] [blame] | 104 | |
| 105 | aidl_interface { |
| 106 | name: "android.security.remoteprovisioning", |
| 107 | srcs: [ "android/security/remoteprovisioning/*.aidl" ], |
| 108 | imports: [ |
Tri Vo | 4158567 | 2022-09-02 18:03:37 -0700 | [diff] [blame] | 109 | "android.hardware.security.keymint-V3", |
Seth Moore | cd6e918 | 2022-11-04 17:39:05 +0000 | [diff] [blame] | 110 | "android.hardware.security.rkp-V3", |
Max Bires | 148c08e | 2020-10-13 13:41:41 -0700 | [diff] [blame] | 111 | ], |
| 112 | unstable: true, |
| 113 | backend: { |
| 114 | java: { |
Max Bires | 148c08e | 2020-10-13 13:41:41 -0700 | [diff] [blame] | 115 | platform_apis: true, |
| 116 | }, |
| 117 | ndk: { |
| 118 | enabled: true, |
Janis Danisevskis | 7bfa6b3 | 2021-04-06 11:09:07 -0700 | [diff] [blame] | 119 | apps_enabled: false, |
Max Bires | 148c08e | 2020-10-13 13:41:41 -0700 | [diff] [blame] | 120 | }, |
| 121 | rust: { |
| 122 | enabled: true, |
| 123 | }, |
| 124 | }, |
| 125 | } |
Hasini Gunasinghe | d31e437 | 2021-01-26 21:25:12 +0000 | [diff] [blame] | 126 | |
| 127 | aidl_interface { |
Janis Danisevskis | 34a0cf2 | 2021-03-08 09:19:03 -0800 | [diff] [blame] | 128 | name: "android.security.maintenance", |
| 129 | srcs: [ "android/security/maintenance/*.aidl" ], |
Janis Danisevskis | ddd6e75 | 2021-02-22 18:46:55 -0800 | [diff] [blame] | 130 | imports: [ |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame^] | 131 | "android.system.keystore2-V3", |
Janis Danisevskis | ddd6e75 | 2021-02-22 18:46:55 -0800 | [diff] [blame] | 132 | ], |
Hasini Gunasinghe | d31e437 | 2021-01-26 21:25:12 +0000 | [diff] [blame] | 133 | unstable: true, |
| 134 | backend: { |
| 135 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 136 | platform_apis: true, |
Hasini Gunasinghe | d31e437 | 2021-01-26 21:25:12 +0000 | [diff] [blame] | 137 | }, |
| 138 | rust: { |
| 139 | enabled: true, |
| 140 | }, |
| 141 | ndk: { |
| 142 | enabled: true, |
Janis Danisevskis | 2929457 | 2021-03-17 09:53:57 -0700 | [diff] [blame] | 143 | apps_enabled: false, |
Hasini Gunasinghe | d31e437 | 2021-01-26 21:25:12 +0000 | [diff] [blame] | 144 | } |
| 145 | }, |
| 146 | } |
Janis Danisevskis | c0e7dfb | 2021-01-20 10:54:38 -0800 | [diff] [blame] | 147 | |
| 148 | aidl_interface { |
Janis Danisevskis | 3eb829d | 2021-06-14 14:18:20 -0700 | [diff] [blame] | 149 | name: "android.security.legacykeystore", |
| 150 | srcs: [ "android/security/legacykeystore/*.aidl" ], |
Janis Danisevskis | c0e7dfb | 2021-01-20 10:54:38 -0800 | [diff] [blame] | 151 | unstable: true, |
| 152 | backend: { |
| 153 | java: { |
Janis Danisevskis | aedee5d | 2021-03-15 15:54:50 -0700 | [diff] [blame] | 154 | platform_apis: true, |
Janis Danisevskis | c0e7dfb | 2021-01-20 10:54:38 -0800 | [diff] [blame] | 155 | }, |
| 156 | rust: { |
| 157 | enabled: true, |
| 158 | }, |
Janis Danisevskis | 3eb829d | 2021-06-14 14:18:20 -0700 | [diff] [blame] | 159 | ndk: { |
| 160 | enabled: true, |
| 161 | apps_enabled: false, |
| 162 | } |
Janis Danisevskis | c0e7dfb | 2021-01-20 10:54:38 -0800 | [diff] [blame] | 163 | }, |
| 164 | } |
| 165 | |
Hasini Gunasinghe | 15891e6 | 2021-06-10 16:23:27 +0000 | [diff] [blame] | 166 | aidl_interface { |
| 167 | name: "android.security.metrics", |
| 168 | srcs: [ "android/security/metrics/*.aidl" ], |
| 169 | imports: [ |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame^] | 170 | "android.system.keystore2-V3", |
Hasini Gunasinghe | 15891e6 | 2021-06-10 16:23:27 +0000 | [diff] [blame] | 171 | ], |
| 172 | unstable: true, |
| 173 | backend: { |
| 174 | java: { |
| 175 | platform_apis: true, |
Hasini Gunasinghe | 15891e6 | 2021-06-10 16:23:27 +0000 | [diff] [blame] | 176 | }, |
| 177 | rust: { |
| 178 | enabled: true, |
| 179 | }, |
| 180 | ndk: { |
| 181 | enabled: true, |
| 182 | apps_enabled: false, |
| 183 | } |
| 184 | }, |
| 185 | } |
| 186 | |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame^] | 187 | // java_defaults that includes the latest Keystore2 AIDL library. |
| 188 | // Modules that depend on KeyMint directly can include this java_defaults to avoid |
| 189 | // managing dependency versions explicitly. |
| 190 | java_defaults { |
| 191 | name: "keystore2_use_latest_aidl_java_static", |
| 192 | static_libs: [ |
| 193 | "android.system.keystore2-V3-java-source" |
| 194 | ], |
| 195 | } |
| 196 | |
| 197 | java_defaults { |
| 198 | name: "keystore2_use_latest_aidl_java_shared", |
| 199 | libs: [ |
| 200 | "android.system.keystore2-V3-java-source" |
| 201 | ], |
| 202 | } |
| 203 | |
| 204 | java_defaults { |
| 205 | name: "keystore2_use_latest_aidl_java", |
| 206 | libs: [ |
| 207 | "android.system.keystore2-V3-java" |
| 208 | ], |
| 209 | } |
| 210 | |
David Drysdale | c4e0d5b | 2021-11-22 18:12:06 +0000 | [diff] [blame] | 211 | // cc_defaults that includes the latest Keystore2 AIDL library. |
| 212 | // Modules that depend on KeyMint directly can include this cc_defaults to avoid |
| 213 | // managing dependency versions explicitly. |
| 214 | cc_defaults { |
| 215 | name: "keystore2_use_latest_aidl_ndk_static", |
| 216 | static_libs: [ |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame^] | 217 | "android.system.keystore2-V3-ndk", |
David Drysdale | c4e0d5b | 2021-11-22 18:12:06 +0000 | [diff] [blame] | 218 | ], |
| 219 | } |
| 220 | |
| 221 | cc_defaults { |
| 222 | name: "keystore2_use_latest_aidl_ndk_shared", |
| 223 | shared_libs: [ |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame^] | 224 | "android.system.keystore2-V3-ndk", |
David Drysdale | c4e0d5b | 2021-11-22 18:12:06 +0000 | [diff] [blame] | 225 | ], |
| 226 | } |
Rajesh Nyamagoud | 45689e5 | 2022-05-13 19:27:02 +0000 | [diff] [blame] | 227 | |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame^] | 228 | cc_defaults { |
| 229 | name: "keystore2_use_latest_aidl_cpp_shared", |
| 230 | shared_libs: [ |
| 231 | "android.system.keystore2-V3-cpp", |
| 232 | ], |
| 233 | } |
| 234 | |
| 235 | cc_defaults { |
| 236 | name: "keystore2_use_latest_aidl_cpp_static", |
| 237 | static_libs: [ |
| 238 | "android.system.keystore2-V3-cpp", |
| 239 | ], |
| 240 | } |
| 241 | |
| 242 | |
Rajesh Nyamagoud | 45689e5 | 2022-05-13 19:27:02 +0000 | [diff] [blame] | 243 | // A rust_defaults that includes the latest Keystore2 AIDL library. |
| 244 | // Modules that depend on Keystore2 directly can include this rust_defaults to avoid |
| 245 | // managing dependency versions explicitly. |
| 246 | rust_defaults { |
| 247 | name: "keystore2_use_latest_aidl_rust", |
| 248 | rustlibs: [ |
Shaquille Johnson | 615ee36 | 2022-11-08 15:21:51 +0000 | [diff] [blame^] | 249 | "android.system.keystore2-V3-rust", |
Rajesh Nyamagoud | 45689e5 | 2022-05-13 19:27:02 +0000 | [diff] [blame] | 250 | ], |
| 251 | } |