blob: a2e58acb295f99f061367db14deb0f4fb324da9f [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",
Karuna Wadheraea426cb2024-10-09 23:18:33 +000020 frozen: false,
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
Karuna Wadheraea426cb2024-10-09 23:18:33 +000054// An aidl_interface_defaults that includes the latest KeyMint AIDL interface.
55// aidl_interface modules that depend on KeyMint directly can include this
56// aidl_interface_defaults to avoid managing dependency versions explicitly.
57aidl_interface_defaults {
58 name: "android.hardware.security.keymint-latest-defaults",
59 imports: ["android.hardware.security.keymint-V4"],
60}
61
David Drysdale49255342021-11-22 14:32:31 +000062// cc_defaults that includes the latest KeyMint AIDL library.
63// Modules that depend on KeyMint directly can include this cc_defaults to avoid
64// managing dependency versions explicitly.
65cc_defaults {
66 name: "keymint_use_latest_hal_aidl_ndk_static",
67 static_libs: [
Karuna Wadheraea426cb2024-10-09 23:18:33 +000068 "android.hardware.security.keymint-V4-ndk",
David Drysdale49255342021-11-22 14:32:31 +000069 ],
70}
71
72cc_defaults {
73 name: "keymint_use_latest_hal_aidl_ndk_shared",
74 shared_libs: [
Karuna Wadheraea426cb2024-10-09 23:18:33 +000075 "android.hardware.security.keymint-V4-ndk",
David Drysdale49255342021-11-22 14:32:31 +000076 ],
77}
78
Seth Moore1bf823c2022-01-25 23:04:37 +000079cc_defaults {
80 name: "keymint_use_latest_hal_aidl_cpp_static",
81 static_libs: [
Karuna Wadheraea426cb2024-10-09 23:18:33 +000082 "android.hardware.security.keymint-V4-cpp",
Seth Moore1bf823c2022-01-25 23:04:37 +000083 ],
84}
85
Shaquille Johnsonb692c602022-11-24 16:34:19 +000086cc_defaults {
87 name: "keymint_use_latest_hal_aidl_cpp_shared",
88 shared_libs: [
Karuna Wadheraea426cb2024-10-09 23:18:33 +000089 "android.hardware.security.keymint-V4-cpp",
Shaquille Johnsonb692c602022-11-24 16:34:19 +000090 ],
91}
92
David Drysdale49255342021-11-22 14:32:31 +000093// A rust_defaults that includes the latest KeyMint AIDL library.
94// Modules that depend on KeyMint directly can include this cc_defaults to avoid
95// managing dependency versions explicitly.
96rust_defaults {
97 name: "keymint_use_latest_hal_aidl_rust",
98 rustlibs: [
Karuna Wadheraea426cb2024-10-09 23:18:33 +000099 "android.hardware.security.keymint-V4-rust",
David Drysdale49255342021-11-22 14:32:31 +0000100 ],
101}