2021-02-12 20:13:01 -08:00
|
|
|
package {
|
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
|
// all of the 'license_kinds' from "hardware_interfaces_license"
|
|
|
|
|
// to get the below license kinds:
|
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-29 04:22:39 -07:00
|
|
|
aidl_interface {
|
2020-12-11 13:05:27 +00:00
|
|
|
name: "android.hardware.security.keymint",
|
2020-04-29 04:22:39 -07:00
|
|
|
vendor_available: true,
|
|
|
|
|
srcs: [
|
2020-12-11 13:05:27 +00:00
|
|
|
"android/hardware/security/keymint/*.aidl",
|
2020-04-29 04:22:39 -07:00
|
|
|
],
|
2021-01-05 09:15:57 -08:00
|
|
|
imports: [
|
2021-08-30 17:54:19 -07:00
|
|
|
"android.hardware.security.secureclock-V1",
|
2021-01-05 09:15:57 -08:00
|
|
|
],
|
2020-04-29 04:22:39 -07:00
|
|
|
stability: "vintf",
|
2023-04-04 19:52:27 +00:00
|
|
|
frozen: true,
|
2020-04-29 04:22:39 -07:00
|
|
|
backend: {
|
|
|
|
|
java: {
|
2021-03-17 10:55:10 -07:00
|
|
|
platform_apis: true,
|
2020-04-29 04:22:39 -07:00
|
|
|
},
|
|
|
|
|
ndk: {
|
2021-03-17 11:00:15 -07:00
|
|
|
apps_enabled: false,
|
2020-04-29 04:22:39 -07:00
|
|
|
},
|
|
|
|
|
rust: {
|
|
|
|
|
enabled: true,
|
2021-06-17 11:49:40 +01:00
|
|
|
apex_available: [
|
|
|
|
|
"//apex_available:platform",
|
|
|
|
|
"com.android.compos",
|
|
|
|
|
],
|
2020-04-29 04:22:39 -07:00
|
|
|
},
|
|
|
|
|
},
|
2022-03-22 14:18:48 +09:00
|
|
|
versions_with_info: [
|
|
|
|
|
{
|
|
|
|
|
version: "1",
|
|
|
|
|
imports: ["android.hardware.security.secureclock-V1"],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
version: "2",
|
|
|
|
|
imports: ["android.hardware.security.secureclock-V1"],
|
|
|
|
|
},
|
2023-04-04 19:52:27 +00:00
|
|
|
{
|
|
|
|
|
version: "3",
|
|
|
|
|
imports: ["android.hardware.security.secureclock-V1"],
|
|
|
|
|
},
|
2022-03-22 14:18:48 +09:00
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
2020-04-29 04:22:39 -07:00
|
|
|
}
|
2021-11-22 14:32:31 +00:00
|
|
|
|
|
|
|
|
// cc_defaults that includes the latest KeyMint AIDL library.
|
|
|
|
|
// Modules that depend on KeyMint directly can include this cc_defaults to avoid
|
|
|
|
|
// managing dependency versions explicitly.
|
|
|
|
|
cc_defaults {
|
|
|
|
|
name: "keymint_use_latest_hal_aidl_ndk_static",
|
|
|
|
|
static_libs: [
|
2022-09-29 16:14:53 -07:00
|
|
|
"android.hardware.security.keymint-V3-ndk",
|
2021-11-22 14:32:31 +00:00
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cc_defaults {
|
|
|
|
|
name: "keymint_use_latest_hal_aidl_ndk_shared",
|
|
|
|
|
shared_libs: [
|
2022-09-29 16:14:53 -07:00
|
|
|
"android.hardware.security.keymint-V3-ndk",
|
2021-11-22 14:32:31 +00:00
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-25 23:04:37 +00:00
|
|
|
cc_defaults {
|
|
|
|
|
name: "keymint_use_latest_hal_aidl_cpp_static",
|
|
|
|
|
static_libs: [
|
2022-09-29 16:14:53 -07:00
|
|
|
"android.hardware.security.keymint-V3-cpp",
|
2022-01-25 23:04:37 +00:00
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-24 16:34:19 +00:00
|
|
|
cc_defaults {
|
|
|
|
|
name: "keymint_use_latest_hal_aidl_cpp_shared",
|
|
|
|
|
shared_libs: [
|
|
|
|
|
"android.hardware.security.keymint-V3-cpp",
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-22 14:32:31 +00:00
|
|
|
// A rust_defaults that includes the latest KeyMint AIDL library.
|
|
|
|
|
// Modules that depend on KeyMint directly can include this cc_defaults to avoid
|
|
|
|
|
// managing dependency versions explicitly.
|
|
|
|
|
rust_defaults {
|
|
|
|
|
name: "keymint_use_latest_hal_aidl_rust",
|
|
|
|
|
rustlibs: [
|
2022-09-29 16:14:53 -07:00
|
|
|
"android.hardware.security.keymint-V3-rust",
|
2021-11-22 14:32:31 +00:00
|
|
|
],
|
|
|
|
|
}
|