blob: d70f210c675234b64bf77accecbe2b2b1f478389 [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 {
25 name: "android.security.attestationmanager",
Janis Danisevskis7a1cf382020-11-20 11:22:14 -080026 srcs: [ "android/security/attestationmanager/*.aidl", ],
Seth Moore0400d702021-12-13 20:03:33 +000027 imports: [ "android.hardware.security.keymint-V2" ],
Janis Danisevskis672d9832020-12-09 13:25:36 -080028 unstable: true,
29 backend: {
30 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -070031 platform_apis: true,
Janis Danisevskis672d9832020-12-09 13:25:36 -080032 },
33 rust: {
34 enabled: true,
35 },
Janis Danisevskis7bfa6b32021-04-06 11:09:07 -070036 ndk: {
37 enabled: true,
38 apps_enabled: false,
39 }
Janis Danisevskis672d9832020-12-09 13:25:36 -080040 },
41}
Hasini Gunasinghe594caa32020-11-12 20:25:13 +000042
43aidl_interface {
Janis Danisevskis9f10a6a2021-01-18 16:45:21 +000044 name: "android.security.authorization",
45 srcs: [ "android/security/authorization/*.aidl" ],
Janis Danisevskisc3a496b2021-01-05 10:37:22 -080046 imports: [
Seth Moore0400d702021-12-13 20:03:33 +000047 "android.hardware.security.keymint-V2",
Steven Moreland538558e2021-08-30 17:48:57 -070048 "android.hardware.security.secureclock-V1",
Janis Danisevskisc3a496b2021-01-05 10:37:22 -080049 ],
Hasini Gunasinghe594caa32020-11-12 20:25:13 +000050 unstable: true,
51 backend: {
52 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -070053 platform_apis: true,
Hasini Gunasinghe594caa32020-11-12 20:25:13 +000054 },
55 rust: {
56 enabled: true,
57 },
58 ndk: {
59 enabled: true,
Janis Danisevskis29294572021-03-17 09:53:57 -070060 apps_enabled: false,
Hasini Gunasinghe594caa32020-11-12 20:25:13 +000061 }
62 },
63}
64
Janis Danisevskis7a1cf382020-11-20 11:22:14 -080065aidl_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 Danisevskis2437fde2021-03-08 11:30:11 -080076 ndk: {
77 enabled: true,
78 }
Janis Danisevskis7a1cf382020-11-20 11:22:14 -080079 },
80}
Joel Galensonde386b42020-09-30 10:53:05 -070081
82aidl_interface {
83 name: "android.security.compat",
84 srcs: [ "android/security/compat/*.aidl" ],
Joel Galensonf21c0022020-12-11 14:37:52 -080085 imports: [
Seth Moore0400d702021-12-13 20:03:33 +000086 "android.hardware.security.keymint-V2",
Steven Moreland538558e2021-08-30 17:48:57 -070087 "android.hardware.security.secureclock-V1",
88 "android.hardware.security.sharedsecret-V1",
Joel Galensonf21c0022020-12-11 14:37:52 -080089 ],
Joel Galensonde386b42020-09-30 10:53:05 -070090 unstable: true,
91 backend: {
92 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -070093 platform_apis: true,
Joel Galensonde386b42020-09-30 10:53:05 -070094 },
95 rust: {
96 enabled: true,
97 },
98 ndk: {
99 enabled: true,
Janis Danisevskis29294572021-03-17 09:53:57 -0700100 apps_enabled: false,
Janis Danisevskis7bfa6b32021-04-06 11:09:07 -0700101 },
Joel Galensonde386b42020-09-30 10:53:05 -0700102 },
103}
Max Bires148c08e2020-10-13 13:41:41 -0700104
105aidl_interface {
106 name: "android.security.remoteprovisioning",
107 srcs: [ "android/security/remoteprovisioning/*.aidl" ],
108 imports: [
Seth Moore0400d702021-12-13 20:03:33 +0000109 "android.hardware.security.keymint-V2",
Max Bires148c08e2020-10-13 13:41:41 -0700110 ],
111 unstable: true,
112 backend: {
113 java: {
Max Bires148c08e2020-10-13 13:41:41 -0700114 platform_apis: true,
115 },
116 ndk: {
117 enabled: true,
Janis Danisevskis7bfa6b32021-04-06 11:09:07 -0700118 apps_enabled: false,
Max Bires148c08e2020-10-13 13:41:41 -0700119 },
120 rust: {
121 enabled: true,
122 },
123 },
124}
Hasini Gunasinghed31e4372021-01-26 21:25:12 +0000125
126aidl_interface {
Janis Danisevskis34a0cf22021-03-08 09:19:03 -0800127 name: "android.security.maintenance",
128 srcs: [ "android/security/maintenance/*.aidl" ],
Janis Danisevskisddd6e752021-02-22 18:46:55 -0800129 imports: [
Seth Moore0400d702021-12-13 20:03:33 +0000130 "android.system.keystore2-V2",
Janis Danisevskisddd6e752021-02-22 18:46:55 -0800131 ],
Hasini Gunasinghed31e4372021-01-26 21:25:12 +0000132 unstable: true,
133 backend: {
134 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -0700135 platform_apis: true,
Hasini Gunasinghed31e4372021-01-26 21:25:12 +0000136 },
137 rust: {
138 enabled: true,
139 },
140 ndk: {
141 enabled: true,
Janis Danisevskis29294572021-03-17 09:53:57 -0700142 apps_enabled: false,
Hasini Gunasinghed31e4372021-01-26 21:25:12 +0000143 }
144 },
145}
Janis Danisevskisc0e7dfb2021-01-20 10:54:38 -0800146
147aidl_interface {
Janis Danisevskis3eb829d2021-06-14 14:18:20 -0700148 name: "android.security.legacykeystore",
149 srcs: [ "android/security/legacykeystore/*.aidl" ],
Janis Danisevskisc0e7dfb2021-01-20 10:54:38 -0800150 unstable: true,
151 backend: {
152 java: {
Janis Danisevskisaedee5d2021-03-15 15:54:50 -0700153 platform_apis: true,
Janis Danisevskisc0e7dfb2021-01-20 10:54:38 -0800154 },
155 rust: {
156 enabled: true,
157 },
Janis Danisevskis3eb829d2021-06-14 14:18:20 -0700158 ndk: {
159 enabled: true,
160 apps_enabled: false,
161 }
Janis Danisevskisc0e7dfb2021-01-20 10:54:38 -0800162 },
163}
164
Hasini Gunasinghe15891e62021-06-10 16:23:27 +0000165aidl_interface {
166 name: "android.security.metrics",
167 srcs: [ "android/security/metrics/*.aidl" ],
168 imports: [
Seth Moore0400d702021-12-13 20:03:33 +0000169 "android.system.keystore2-V2",
Hasini Gunasinghe15891e62021-06-10 16:23:27 +0000170 ],
171 unstable: true,
172 backend: {
173 java: {
174 platform_apis: true,
Hasini Gunasinghe15891e62021-06-10 16:23:27 +0000175 },
176 rust: {
177 enabled: true,
178 },
179 ndk: {
180 enabled: true,
181 apps_enabled: false,
182 }
183 },
184}
185
David Drysdalec4e0d5b2021-11-22 18:12:06 +0000186// cc_defaults that includes the latest Keystore2 AIDL library.
187// Modules that depend on KeyMint directly can include this cc_defaults to avoid
188// managing dependency versions explicitly.
189cc_defaults {
190 name: "keystore2_use_latest_aidl_ndk_static",
191 static_libs: [
Seth Moore0400d702021-12-13 20:03:33 +0000192 "android.system.keystore2-V2-ndk",
David Drysdalec4e0d5b2021-11-22 18:12:06 +0000193 ],
194}
195
196cc_defaults {
197 name: "keystore2_use_latest_aidl_ndk_shared",
198 shared_libs: [
Seth Moore0400d702021-12-13 20:03:33 +0000199 "android.system.keystore2-V2-ndk",
David Drysdalec4e0d5b2021-11-22 18:12:06 +0000200 ],
201}
Rajesh Nyamagoud45689e52022-05-13 19:27:02 +0000202
203// A rust_defaults that includes the latest Keystore2 AIDL library.
204// Modules that depend on Keystore2 directly can include this rust_defaults to avoid
205// managing dependency versions explicitly.
206rust_defaults {
207 name: "keystore2_use_latest_aidl_rust",
208 rustlibs: [
209 "android.system.keystore2-V2-rust",
210 ],
211}