blob: 5236e90e2ef4ef33533b8e547609ca1e9e521014 [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",
Devin Mooref386af02025-01-16 20:59:57 +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 },
Devin Mooref386af02025-01-16 20:59:57 +000049 {
50 version: "4",
51 imports: ["android.hardware.security.secureclock-V1"],
52 },
Jiyong Park703e9792022-03-22 14:18:48 +090053
54 ],
55
Selene Huang31ab4042020-04-29 04:22:39 -070056}
David Drysdale49255342021-11-22 14:32:31 +000057
Karuna Wadhera866d2752024-11-01 21:23:04 +000058// An aidl_interface_defaults that includes the latest KeyMint AIDL interface.
59// aidl_interface modules that depend on KeyMint directly can include this
60// aidl_interface_defaults to avoid managing dependency versions explicitly.
61aidl_interface_defaults {
62 name: "android.hardware.security.keymint-latest-defaults",
63 imports: ["android.hardware.security.keymint-V4"],
64}
65
David Drysdale49255342021-11-22 14:32:31 +000066// cc_defaults that includes the latest KeyMint AIDL library.
67// Modules that depend on KeyMint directly can include this cc_defaults to avoid
68// managing dependency versions explicitly.
69cc_defaults {
70 name: "keymint_use_latest_hal_aidl_ndk_static",
71 static_libs: [
Karuna Wadhera866d2752024-11-01 21:23:04 +000072 "android.hardware.security.keymint-V4-ndk",
David Drysdale49255342021-11-22 14:32:31 +000073 ],
74}
75
76cc_defaults {
77 name: "keymint_use_latest_hal_aidl_ndk_shared",
78 shared_libs: [
Karuna Wadhera866d2752024-11-01 21:23:04 +000079 "android.hardware.security.keymint-V4-ndk",
David Drysdale49255342021-11-22 14:32:31 +000080 ],
81}
82
Seth Moore1bf823c2022-01-25 23:04:37 +000083cc_defaults {
84 name: "keymint_use_latest_hal_aidl_cpp_static",
85 static_libs: [
Karuna Wadhera866d2752024-11-01 21:23:04 +000086 "android.hardware.security.keymint-V4-cpp",
Seth Moore1bf823c2022-01-25 23:04:37 +000087 ],
88}
89
Shaquille Johnsonb692c602022-11-24 16:34:19 +000090cc_defaults {
91 name: "keymint_use_latest_hal_aidl_cpp_shared",
92 shared_libs: [
Karuna Wadhera866d2752024-11-01 21:23:04 +000093 "android.hardware.security.keymint-V4-cpp",
Shaquille Johnsonb692c602022-11-24 16:34:19 +000094 ],
95}
96
David Drysdale49255342021-11-22 14:32:31 +000097// A rust_defaults that includes the latest KeyMint AIDL library.
98// Modules that depend on KeyMint directly can include this cc_defaults to avoid
99// managing dependency versions explicitly.
100rust_defaults {
101 name: "keymint_use_latest_hal_aidl_rust",
102 rustlibs: [
Karuna Wadhera866d2752024-11-01 21:23:04 +0000103 "android.hardware.security.keymint-V4-rust",
David Drysdale49255342021-11-22 14:32:31 +0000104 ],
105}
Karuna Wadheraf5b73bc2025-01-15 00:45:57 +0000106
107// java_defaults that includes the latest KeyMint AIDL library.
108// Modules that depend on KeyMint directly can include this java_defaults to avoid
109// managing dependency versions explicitly.
110java_defaults {
111 name: "keymint_use_latest_hal_aidl_java",
112 static_libs: [
113 "android.hardware.security.keymint-V4-java",
114 ],
115}