blob: 4753afbd0e533df9d7dbe4d6d99364cd29715d16 [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 Moore7556e512022-11-04 15:31:23 +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 },
45
46 ],
47
Selene Huang31ab4042020-04-29 04:22:39 -070048}
David Drysdale49255342021-11-22 14:32:31 +000049
50// cc_defaults that includes the latest KeyMint AIDL library.
51// Modules that depend on KeyMint directly can include this cc_defaults to avoid
52// managing dependency versions explicitly.
53cc_defaults {
54 name: "keymint_use_latest_hal_aidl_ndk_static",
55 static_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070056 "android.hardware.security.keymint-V3-ndk",
David Drysdale49255342021-11-22 14:32:31 +000057 ],
58}
59
60cc_defaults {
61 name: "keymint_use_latest_hal_aidl_ndk_shared",
62 shared_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070063 "android.hardware.security.keymint-V3-ndk",
David Drysdale49255342021-11-22 14:32:31 +000064 ],
65}
66
Seth Moore1bf823c2022-01-25 23:04:37 +000067cc_defaults {
68 name: "keymint_use_latest_hal_aidl_cpp_static",
69 static_libs: [
Tri Vof48a2a72022-09-29 16:14:53 -070070 "android.hardware.security.keymint-V3-cpp",
Seth Moore1bf823c2022-01-25 23:04:37 +000071 ],
72}
73
Shaquille Johnsonb692c602022-11-24 16:34:19 +000074cc_defaults {
75 name: "keymint_use_latest_hal_aidl_cpp_shared",
76 shared_libs: [
77 "android.hardware.security.keymint-V3-cpp",
78 ],
79}
80
David Drysdale49255342021-11-22 14:32:31 +000081// A rust_defaults that includes the latest KeyMint AIDL library.
82// Modules that depend on KeyMint directly can include this cc_defaults to avoid
83// managing dependency versions explicitly.
84rust_defaults {
85 name: "keymint_use_latest_hal_aidl_rust",
86 rustlibs: [
Tri Vof48a2a72022-09-29 16:14:53 -070087 "android.hardware.security.keymint-V3-rust",
David Drysdale49255342021-11-22 14:32:31 +000088 ],
89}