c4e0d5bed1
The KeyMint HAL will soon be updated for a new version, which will in turn induce a version bump for the keystore2 AIDL interface. To make this process easier, add cc_defaults that references the "current" version, and use this elsewhere. This should hopefully mean that a future version bump only needs to happen in the defaults. Test: TreeHugger Change-Id: I8999de92443fd121a9515dccde8d76094dc93023
108 lines
2.5 KiB
Text
108 lines
2.5 KiB
Text
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "system_security_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
// SPDX-license-identifier-BSD
|
|
default_applicable_licenses: ["system_security_license"],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "keystore_defaults",
|
|
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-Wextra",
|
|
"-Wunused",
|
|
],
|
|
|
|
sanitize: {
|
|
misc_undefined: [
|
|
"signed-integer-overflow",
|
|
"unsigned-integer-overflow",
|
|
"shift",
|
|
"integer-divide-by-zero",
|
|
"implicit-unsigned-integer-truncation",
|
|
// BUG: 123630767
|
|
//"implicit-signed-integer-truncation",
|
|
"implicit-integer-sign-change",
|
|
],
|
|
},
|
|
|
|
clang: true,
|
|
}
|
|
|
|
cc_binary {
|
|
name: "keystore_cli_v2",
|
|
defaults: [
|
|
"keystore_defaults",
|
|
"keystore2_use_latest_aidl_ndk_shared",
|
|
],
|
|
|
|
cflags: [
|
|
"-DKEYMASTER_NAME_TAGS",
|
|
"-Wno-unused-parameter",
|
|
],
|
|
srcs: [
|
|
"keystore_cli_v2.cpp",
|
|
"keystore_client.proto",
|
|
],
|
|
shared_libs: [
|
|
"android.security.apc-ndk",
|
|
"libbinder",
|
|
"libbinder_ndk",
|
|
"libchrome",
|
|
"libcrypto",
|
|
"libkeymint_support",
|
|
"libprotobuf-cpp-lite",
|
|
"libutils",
|
|
],
|
|
|
|
local_include_dirs: ["include"],
|
|
}
|
|
|
|
// Library used by both keystore and credstore for generating the ASN.1 stored
|
|
// in Tag::ATTESTATION_APPLICATION_ID
|
|
cc_library {
|
|
name: "libkeystore-attestation-application-id",
|
|
defaults: ["keystore_defaults"],
|
|
|
|
srcs: [
|
|
":IKeyAttestationApplicationIdProvider.aidl",
|
|
"keystore_attestation_id.cpp",
|
|
"KeyAttestationApplicationId.cpp",
|
|
"KeyAttestationPackageInfo.cpp",
|
|
"Signature.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libbinder",
|
|
"libhidlbase",
|
|
"liblog",
|
|
"libutils",
|
|
"libcrypto",
|
|
],
|
|
|
|
export_include_dirs: ["include"],
|
|
}
|
|
|
|
// Library for keystore clients using the WiFi HIDL interface
|
|
cc_library {
|
|
name: "libkeystore-wifi-hidl",
|
|
defaults: ["keystore_defaults"],
|
|
|
|
srcs: ["keystore_get_wifi_hidl.cpp"],
|
|
shared_libs: [
|
|
"android.system.wifi.keystore@1.0",
|
|
"libbase",
|
|
"libhidlbase",
|
|
"liblog",
|
|
"libutils",
|
|
],
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
vendor: true,
|
|
}
|