blob: ae3fb1811ae0eb5343c487106a9d945b96d11416 [file] [log] [blame]
Janis Danisevskis672d9832020-12-09 13:25:36 -08001// 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 Badour4c7858c2021-02-12 15:40:29 -080015package {
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 Danisevskis672d9832020-12-09 13:25:36 -080024aidl_interface {
Janis Danisevskis9f10a6a2021-01-18 16:45:21 +000025 name: "android.security.authorization",
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +000026 srcs: ["android/security/authorization/*.aidl"],
Janis Danisevskisc3a496b2021-01-05 10:37:22 -080027 imports: [
Tri Vo41585672022-09-02 18:03:37 -070028 "android.hardware.security.keymint-V3",
Steven Moreland538558e2021-08-30 17:48:57 -070029 "android.hardware.security.secureclock-V1",
Janis Danisevskisc3a496b2021-01-05 10:37:22 -080030 ],
Hasini Gunasinghe594caa32020-11-12 20:25:13 +000031 unstable: true,
32 backend: {
33 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -070034 platform_apis: true,
Hasini Gunasinghe594caa32020-11-12 20:25:13 +000035 },
36 rust: {
37 enabled: true,
38 },
39 ndk: {
40 enabled: true,
Janis Danisevskis29294572021-03-17 09:53:57 -070041 apps_enabled: false,
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +000042 },
Hasini Gunasinghe594caa32020-11-12 20:25:13 +000043 },
44}
45
Janis Danisevskis7a1cf382020-11-20 11:22:14 -080046aidl_interface {
47 name: "android.security.apc",
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +000048 srcs: ["android/security/apc/*.aidl"],
Janis Danisevskis7a1cf382020-11-20 11:22:14 -080049 unstable: true,
50 backend: {
51 java: {
52 enabled: true,
53 },
54 rust: {
55 enabled: true,
56 },
Janis Danisevskis2437fde2021-03-08 11:30:11 -080057 ndk: {
58 enabled: true,
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +000059 },
Janis Danisevskis7a1cf382020-11-20 11:22:14 -080060 },
61}
Joel Galensonde386b42020-09-30 10:53:05 -070062
63aidl_interface {
64 name: "android.security.compat",
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +000065 srcs: ["android/security/compat/*.aidl"],
Joel Galensonf21c0022020-12-11 14:37:52 -080066 imports: [
Tri Vo41585672022-09-02 18:03:37 -070067 "android.hardware.security.keymint-V3",
Steven Moreland538558e2021-08-30 17:48:57 -070068 "android.hardware.security.secureclock-V1",
69 "android.hardware.security.sharedsecret-V1",
Joel Galensonf21c0022020-12-11 14:37:52 -080070 ],
Joel Galensonde386b42020-09-30 10:53:05 -070071 unstable: true,
72 backend: {
73 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -070074 platform_apis: true,
Joel Galensonde386b42020-09-30 10:53:05 -070075 },
76 rust: {
77 enabled: true,
78 },
79 ndk: {
80 enabled: true,
Janis Danisevskis29294572021-03-17 09:53:57 -070081 apps_enabled: false,
Janis Danisevskis7bfa6b32021-04-06 11:09:07 -070082 },
Joel Galensonde386b42020-09-30 10:53:05 -070083 },
84}
Max Bires148c08e2020-10-13 13:41:41 -070085
86aidl_interface {
Janis Danisevskis34a0cf22021-03-08 09:19:03 -080087 name: "android.security.maintenance",
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +000088 srcs: ["android/security/maintenance/*.aidl"],
Janis Danisevskisddd6e752021-02-22 18:46:55 -080089 imports: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +000090 "android.system.keystore2-V4",
Janis Danisevskisddd6e752021-02-22 18:46:55 -080091 ],
Hasini Gunasinghed31e4372021-01-26 21:25:12 +000092 unstable: true,
93 backend: {
94 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -070095 platform_apis: true,
Hasini Gunasinghed31e4372021-01-26 21:25:12 +000096 },
97 rust: {
98 enabled: true,
99 },
100 ndk: {
101 enabled: true,
Janis Danisevskis29294572021-03-17 09:53:57 -0700102 apps_enabled: false,
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000103 },
Hasini Gunasinghed31e4372021-01-26 21:25:12 +0000104 },
105}
Janis Danisevskisc0e7dfb2021-01-20 10:54:38 -0800106
107aidl_interface {
Janis Danisevskis3eb829d2021-06-14 14:18:20 -0700108 name: "android.security.legacykeystore",
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000109 srcs: ["android/security/legacykeystore/*.aidl"],
Janis Danisevskisc0e7dfb2021-01-20 10:54:38 -0800110 unstable: true,
111 backend: {
112 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -0700113 platform_apis: true,
Janis Danisevskisc0e7dfb2021-01-20 10:54:38 -0800114 },
115 rust: {
116 enabled: true,
117 },
Janis Danisevskis3eb829d2021-06-14 14:18:20 -0700118 ndk: {
119 enabled: true,
120 apps_enabled: false,
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000121 },
Janis Danisevskisc0e7dfb2021-01-20 10:54:38 -0800122 },
123}
124
Hasini Gunasinghe15891e62021-06-10 16:23:27 +0000125aidl_interface {
126 name: "android.security.metrics",
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000127 srcs: ["android/security/metrics/*.aidl"],
Hasini Gunasinghe15891e62021-06-10 16:23:27 +0000128 imports: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000129 "android.system.keystore2-V4",
Hasini Gunasinghe15891e62021-06-10 16:23:27 +0000130 ],
131 unstable: true,
132 backend: {
133 java: {
134 platform_apis: true,
Hasini Gunasinghe15891e62021-06-10 16:23:27 +0000135 },
136 rust: {
137 enabled: true,
138 },
139 ndk: {
140 enabled: true,
141 apps_enabled: false,
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000142 },
Hasini Gunasinghe15891e62021-06-10 16:23:27 +0000143 },
144}
145
Shaquille Johnson615ee362022-11-08 15:21:51 +0000146// java_defaults that includes the latest Keystore2 AIDL library.
147// Modules that depend on KeyMint directly can include this java_defaults to avoid
148// managing dependency versions explicitly.
149java_defaults {
150 name: "keystore2_use_latest_aidl_java_static",
151 static_libs: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000152 "android.system.keystore2-V4-java-source",
Shaquille Johnson615ee362022-11-08 15:21:51 +0000153 ],
154}
155
156java_defaults {
157 name: "keystore2_use_latest_aidl_java_shared",
158 libs: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000159 "android.system.keystore2-V4-java-source",
Shaquille Johnson615ee362022-11-08 15:21:51 +0000160 ],
161}
162
163java_defaults {
164 name: "keystore2_use_latest_aidl_java",
165 libs: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000166 "android.system.keystore2-V4-java",
Shaquille Johnson615ee362022-11-08 15:21:51 +0000167 ],
168}
169
David Drysdalec4e0d5b2021-11-22 18:12:06 +0000170// cc_defaults that includes the latest Keystore2 AIDL library.
171// Modules that depend on KeyMint directly can include this cc_defaults to avoid
172// managing dependency versions explicitly.
173cc_defaults {
174 name: "keystore2_use_latest_aidl_ndk_static",
175 static_libs: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000176 "android.system.keystore2-V4-ndk",
David Drysdalec4e0d5b2021-11-22 18:12:06 +0000177 ],
178}
179
180cc_defaults {
181 name: "keystore2_use_latest_aidl_ndk_shared",
182 shared_libs: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000183 "android.system.keystore2-V4-ndk",
David Drysdalec4e0d5b2021-11-22 18:12:06 +0000184 ],
185}
Rajesh Nyamagoud45689e52022-05-13 19:27:02 +0000186
Shaquille Johnson615ee362022-11-08 15:21:51 +0000187cc_defaults {
188 name: "keystore2_use_latest_aidl_cpp_shared",
189 shared_libs: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000190 "android.system.keystore2-V4-cpp",
Shaquille Johnson615ee362022-11-08 15:21:51 +0000191 ],
192}
193
194cc_defaults {
195 name: "keystore2_use_latest_aidl_cpp_static",
196 static_libs: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000197 "android.system.keystore2-V4-cpp",
Shaquille Johnson615ee362022-11-08 15:21:51 +0000198 ],
199}
200
Rajesh Nyamagoud45689e52022-05-13 19:27:02 +0000201// A rust_defaults that includes the latest Keystore2 AIDL library.
202// Modules that depend on Keystore2 directly can include this rust_defaults to avoid
203// managing dependency versions explicitly.
204rust_defaults {
205 name: "keystore2_use_latest_aidl_rust",
206 rustlibs: [
Shaquille Johnsonac3c2cd2024-01-03 18:30:11 +0000207 "android.system.keystore2-V4-rust",
Rajesh Nyamagoud45689e52022-05-13 19:27:02 +0000208 ],
209}