2021-02-13 00:40:29 +01:00
|
|
|
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"],
|
|
|
|
}
|
|
|
|
|
2017-10-23 18:39:50 +02:00
|
|
|
cc_defaults {
|
|
|
|
name: "keystore_defaults",
|
|
|
|
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-Wextra",
|
|
|
|
"-Wunused",
|
|
|
|
],
|
|
|
|
|
|
|
|
sanitize: {
|
2019-02-01 05:30:29 +01:00
|
|
|
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",
|
|
|
|
],
|
2017-10-23 18:39:50 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
clang: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "keystore_cli_v2",
|
2021-11-22 19:12:06 +01:00
|
|
|
defaults: [
|
|
|
|
"keystore_defaults",
|
|
|
|
"keystore2_use_latest_aidl_ndk_shared",
|
|
|
|
],
|
2017-10-23 18:39:50 +02:00
|
|
|
|
|
|
|
cflags: [
|
|
|
|
"-DKEYMASTER_NAME_TAGS",
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
],
|
|
|
|
srcs: [
|
2021-03-08 20:30:11 +01:00
|
|
|
"keystore_cli_v2.cpp",
|
2017-10-23 18:39:50 +02:00
|
|
|
"keystore_client.proto",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
2021-07-27 05:20:26 +02:00
|
|
|
"android.security.apc-ndk",
|
2017-10-23 18:39:50 +02:00
|
|
|
"libbinder",
|
2021-03-08 20:30:11 +01:00
|
|
|
"libbinder_ndk",
|
|
|
|
"libchrome",
|
|
|
|
"libcrypto",
|
|
|
|
"libkeymint_support",
|
2017-10-23 18:39:50 +02:00
|
|
|
"libprotobuf-cpp-lite",
|
|
|
|
"libutils",
|
|
|
|
],
|
|
|
|
|
2021-03-08 20:30:11 +01:00
|
|
|
local_include_dirs: ["include"],
|
2017-10-23 18:39:50 +02:00
|
|
|
}
|
|
|
|
|
2020-01-30 22:20:07 +01:00
|
|
|
// Library used by both keystore and credstore for generating the ASN.1 stored
|
|
|
|
// in Tag::ATTESTATION_APPLICATION_ID
|
2021-04-29 07:10:31 +02:00
|
|
|
cc_library {
|
2020-01-30 22:20:07 +01:00
|
|
|
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"],
|
|
|
|
}
|
|
|
|
|
2017-10-23 18:39:50 +02:00
|
|
|
// Library for keystore clients using the WiFi HIDL interface
|
2021-06-02 12:55:34 +02:00
|
|
|
cc_library {
|
2017-10-23 18:39:50 +02:00
|
|
|
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"],
|
|
|
|
|
2021-09-02 13:05:53 +02:00
|
|
|
vendor: true,
|
2017-10-23 18:39:50 +02:00
|
|
|
}
|