blob: 6efff2f0da2c2d9137a11dcb902c7e5d6c1d0b16 [file] [log] [blame]
Bob Badourb224b362021-02-12 20:13:01 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "hardware_interfaces_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
Selene Huang31ab4042020-04-29 04:22:39 -070010aidl_interface {
Shawn Willden08a7e432020-12-11 13:05:27 +000011 name: "android.hardware.security.keymint",
Selene Huang31ab4042020-04-29 04:22:39 -070012 vendor_available: true,
13 srcs: [
Shawn Willden08a7e432020-12-11 13:05:27 +000014 "android/hardware/security/keymint/*.aidl",
Selene Huang31ab4042020-04-29 04:22:39 -070015 ],
Janis Danisevskis62518272021-01-05 09:15:57 -080016 imports: [
Steven Morelandf4562212021-08-30 17:54:19 -070017 "android.hardware.security.secureclock-V1",
Janis Danisevskis62518272021-01-05 09:15:57 -080018 ],
Selene Huang31ab4042020-04-29 04:22:39 -070019 stability: "vintf",
20 backend: {
21 java: {
Janis Danisevskis61eadb72021-03-17 10:55:10 -070022 platform_apis: true,
Selene Huang31ab4042020-04-29 04:22:39 -070023 },
24 ndk: {
Janis Danisevskis38298402021-03-17 11:00:15 -070025 apps_enabled: false,
Selene Huang31ab4042020-04-29 04:22:39 -070026 },
27 rust: {
28 enabled: true,
Alan Stokese7585172021-06-17 11:49:40 +010029 apex_available: [
30 "//apex_available:platform",
31 "com.android.compos",
32 ],
Selene Huang31ab4042020-04-29 04:22:39 -070033 },
34 },
Jiyong Park703e9792022-03-22 14:18:48 +090035 versions_with_info: [
36 {
37 version: "1",
38 imports: ["android.hardware.security.secureclock-V1"],
39 },
40 {
41 version: "2",
42 imports: ["android.hardware.security.secureclock-V1"],
43 },
44
45 ],
46
Selene Huang31ab4042020-04-29 04:22:39 -070047}
David Drysdale49255342021-11-22 14:32:31 +000048
49// cc_defaults that includes the latest KeyMint AIDL library.
50// Modules that depend on KeyMint directly can include this cc_defaults to avoid
51// managing dependency versions explicitly.
52cc_defaults {
53 name: "keymint_use_latest_hal_aidl_ndk_static",
54 static_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070055 "android.hardware.security.keymint-V3-ndk",
David Drysdale49255342021-11-22 14:32:31 +000056 ],
57}
58
59cc_defaults {
60 name: "keymint_use_latest_hal_aidl_ndk_shared",
61 shared_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070062 "android.hardware.security.keymint-V3-ndk",
David Drysdale49255342021-11-22 14:32:31 +000063 ],
64}
65
Seth Moore1bf823c2022-01-25 23:04:37 +000066cc_defaults {
67 name: "keymint_use_latest_hal_aidl_cpp_static",
68 static_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070069 "android.hardware.security.keymint-V3-cpp",
Seth Moore1bf823c2022-01-25 23:04:37 +000070 ],
71}
72
David Drysdale49255342021-11-22 14:32:31 +000073// A rust_defaults that includes the latest KeyMint AIDL library.
74// Modules that depend on KeyMint directly can include this cc_defaults to avoid
75// managing dependency versions explicitly.
76rust_defaults {
77 name: "keymint_use_latest_hal_aidl_rust",
78 rustlibs: [
Tri Vof48a2a72022-09-29 16:14:53 -070079 "android.hardware.security.keymint-V3-rust",
David Drysdale49255342021-11-22 14:32:31 +000080 ],
81}