blob: e346610f9153e696d98496373f30eebfd0420b47 [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",
Alex Buynytskyyec1198d2023-04-04 19:52:27 +000020 frozen: true,
Selene Huang31ab4042020-04-29 04:22:39 -070021 backend: {
22 java: {
Janis Danisevskis61eadb72021-03-17 10:55:10 -070023 platform_apis: true,
Selene Huang31ab4042020-04-29 04:22:39 -070024 },
25 ndk: {
Janis Danisevskis38298402021-03-17 11:00:15 -070026 apps_enabled: false,
Selene Huang31ab4042020-04-29 04:22:39 -070027 },
28 rust: {
29 enabled: true,
Alan Stokese7585172021-06-17 11:49:40 +010030 apex_available: [
31 "//apex_available:platform",
32 "com.android.compos",
33 ],
Selene Huang31ab4042020-04-29 04:22:39 -070034 },
35 },
Jiyong Park703e9792022-03-22 14:18:48 +090036 versions_with_info: [
37 {
38 version: "1",
39 imports: ["android.hardware.security.secureclock-V1"],
40 },
41 {
42 version: "2",
43 imports: ["android.hardware.security.secureclock-V1"],
44 },
Alex Buynytskyyec1198d2023-04-04 19:52:27 +000045 {
46 version: "3",
47 imports: ["android.hardware.security.secureclock-V1"],
48 },
Jiyong Park703e9792022-03-22 14:18:48 +090049
50 ],
51
Selene Huang31ab4042020-04-29 04:22:39 -070052}
David Drysdale49255342021-11-22 14:32:31 +000053
54// cc_defaults that includes the latest KeyMint AIDL library.
55// Modules that depend on KeyMint directly can include this cc_defaults to avoid
56// managing dependency versions explicitly.
57cc_defaults {
58 name: "keymint_use_latest_hal_aidl_ndk_static",
59 static_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070060 "android.hardware.security.keymint-V3-ndk",
David Drysdale49255342021-11-22 14:32:31 +000061 ],
62}
63
64cc_defaults {
65 name: "keymint_use_latest_hal_aidl_ndk_shared",
66 shared_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070067 "android.hardware.security.keymint-V3-ndk",
David Drysdale49255342021-11-22 14:32:31 +000068 ],
69}
70
Seth Moore1bf823c2022-01-25 23:04:37 +000071cc_defaults {
72 name: "keymint_use_latest_hal_aidl_cpp_static",
73 static_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070074 "android.hardware.security.keymint-V3-cpp",
Seth Moore1bf823c2022-01-25 23:04:37 +000075 ],
76}
77
Shaquille Johnsonb692c602022-11-24 16:34:19 +000078cc_defaults {
79 name: "keymint_use_latest_hal_aidl_cpp_shared",
80 shared_libs: [
81 "android.hardware.security.keymint-V3-cpp",
82 ],
83}
84
David Drysdale49255342021-11-22 14:32:31 +000085// A rust_defaults that includes the latest KeyMint AIDL library.
86// Modules that depend on KeyMint directly can include this cc_defaults to avoid
87// managing dependency versions explicitly.
88rust_defaults {
89 name: "keymint_use_latest_hal_aidl_rust",
90 rustlibs: [
Tri Vof48a2a72022-09-29 16:14:53 -070091 "android.hardware.security.keymint-V3-rust",
David Drysdale49255342021-11-22 14:32:31 +000092 ],
93}