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