blob: a233087fab11d761cb2e7e4b8b2e4c7a6c516d79 [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: {
25 vndk: {
26 enabled: true,
27 },
Janis Danisevskis38298402021-03-17 11:00:15 -070028 apps_enabled: false,
Selene Huang31ab4042020-04-29 04:22:39 -070029 },
30 rust: {
31 enabled: true,
Alan Stokese7585172021-06-17 11:49:40 +010032 apex_available: [
33 "//apex_available:platform",
34 "com.android.compos",
35 ],
Selene Huang31ab4042020-04-29 04:22:39 -070036 },
37 },
Jiyong Park703e9792022-03-22 14:18:48 +090038 versions_with_info: [
39 {
40 version: "1",
41 imports: ["android.hardware.security.secureclock-V1"],
42 },
43 {
44 version: "2",
45 imports: ["android.hardware.security.secureclock-V1"],
46 },
47
48 ],
49
Selene Huang31ab4042020-04-29 04:22:39 -070050}
David Drysdale49255342021-11-22 14:32:31 +000051
52// cc_defaults that includes the latest KeyMint AIDL library.
53// Modules that depend on KeyMint directly can include this cc_defaults to avoid
54// managing dependency versions explicitly.
55cc_defaults {
56 name: "keymint_use_latest_hal_aidl_ndk_static",
57 static_libs: [
Seth Moored79a0ec2021-12-13 20:03:33 +000058 "android.hardware.security.keymint-V2-ndk",
David Drysdale49255342021-11-22 14:32:31 +000059 ],
60}
61
62cc_defaults {
63 name: "keymint_use_latest_hal_aidl_ndk_shared",
64 shared_libs: [
Seth Moored79a0ec2021-12-13 20:03:33 +000065 "android.hardware.security.keymint-V2-ndk",
David Drysdale49255342021-11-22 14:32:31 +000066 ],
67}
68
Seth Moore1bf823c2022-01-25 23:04:37 +000069cc_defaults {
70 name: "keymint_use_latest_hal_aidl_cpp_static",
71 static_libs: [
72 "android.hardware.security.keymint-V2-cpp",
73 ],
74}
75
David Drysdale49255342021-11-22 14:32:31 +000076// A rust_defaults that includes the latest KeyMint AIDL library.
77// Modules that depend on KeyMint directly can include this cc_defaults to avoid
78// managing dependency versions explicitly.
79rust_defaults {
80 name: "keymint_use_latest_hal_aidl_rust",
81 rustlibs: [
Seth Moored79a0ec2021-12-13 20:03:33 +000082 "android.hardware.security.keymint-V2-rust",
David Drysdale49255342021-11-22 14:32:31 +000083 ],
84}