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
|
|
|
|
default_applicable_licenses: ["system_security_license"],
|
|
|
|
}
|
|
|
|
|
2019-10-28 18:32:48 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "identity_defaults",
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
// "-Werror",
|
|
|
|
"-Wextra",
|
|
|
|
"-Wunused",
|
2020-10-16 17:50:13 +02:00
|
|
|
"-Wno-deprecated-declarations",
|
2019-10-28 18:32:48 +01:00
|
|
|
],
|
|
|
|
sanitize: {
|
|
|
|
misc_undefined : ["integer"],
|
|
|
|
},
|
2022-04-18 05:59:35 +02:00
|
|
|
|
2019-10-28 18:32:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "credstore",
|
2021-11-22 15:41:18 +01:00
|
|
|
defaults: [
|
|
|
|
"identity_defaults",
|
2022-09-07 02:16:42 +02:00
|
|
|
"identity_use_latest_hal_aidl_cpp_static",
|
2021-11-22 15:41:18 +01:00
|
|
|
"keymint_use_latest_hal_aidl_ndk_shared",
|
2022-01-26 00:04:37 +01:00
|
|
|
"keymint_use_latest_hal_aidl_cpp_static",
|
2023-05-24 01:19:49 +02:00
|
|
|
"android.hardware.identity-support-lib-deps",
|
2021-11-22 15:41:18 +01:00
|
|
|
],
|
2019-10-28 18:32:48 +01:00
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"Credential.cpp",
|
|
|
|
"CredentialData.cpp",
|
2022-11-22 19:26:16 +01:00
|
|
|
"CredentialStore.cpp",
|
|
|
|
"CredentialStoreFactory.cpp",
|
2021-09-11 19:52:17 +02:00
|
|
|
"Session.cpp",
|
2019-10-28 18:32:48 +01:00
|
|
|
"Util.cpp",
|
2022-11-22 19:26:16 +01:00
|
|
|
"WritableCredential.cpp",
|
|
|
|
"main.cpp",
|
2019-10-28 18:32:48 +01:00
|
|
|
],
|
|
|
|
init_rc: ["credstore.rc"],
|
|
|
|
shared_libs: [
|
2022-11-22 19:26:16 +01:00
|
|
|
"android.hardware.keymaster@4.0",
|
|
|
|
"android.security.authorization-ndk",
|
2019-10-28 18:32:48 +01:00
|
|
|
"libbase",
|
|
|
|
"libbinder",
|
2021-03-02 01:34:58 +01:00
|
|
|
"libbinder_ndk",
|
2021-03-11 09:44:06 +01:00
|
|
|
"libcrypto",
|
2019-10-28 18:32:48 +01:00
|
|
|
"libhidlbase",
|
2023-05-24 01:19:49 +02:00
|
|
|
"liblog",
|
2022-11-22 19:26:16 +01:00
|
|
|
"libutils",
|
2021-09-11 19:52:17 +02:00
|
|
|
"libutilscallstack",
|
2022-11-22 19:26:16 +01:00
|
|
|
"libvintf",
|
2019-10-28 18:32:48 +01:00
|
|
|
],
|
|
|
|
static_libs: [
|
2022-03-22 06:52:06 +01:00
|
|
|
"android.hardware.keymaster-V3-cpp",
|
2023-05-24 01:19:49 +02:00
|
|
|
"android.hardware.identity-support-lib",
|
|
|
|
"android.hardware.security.rkp-V3-cpp",
|
2022-11-22 19:26:16 +01:00
|
|
|
"android.security.rkp_aidl-cpp",
|
2021-03-11 09:44:06 +01:00
|
|
|
"libcppbor_external",
|
2023-05-24 01:19:49 +02:00
|
|
|
"libcredstore_aidl",
|
|
|
|
"libkeymaster4support",
|
|
|
|
"libkeystore-attestation-application-id",
|
|
|
|
"librkp_support",
|
2021-11-22 15:41:18 +01:00
|
|
|
],
|
2019-10-28 18:32:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "credstore_aidl",
|
|
|
|
srcs: [
|
|
|
|
"binder/android/security/identity/ICredential.aidl",
|
|
|
|
"binder/android/security/identity/IWritableCredential.aidl",
|
|
|
|
"binder/android/security/identity/ICredentialStore.aidl",
|
|
|
|
"binder/android/security/identity/AccessControlProfileParcel.aidl",
|
|
|
|
"binder/android/security/identity/EntryNamespaceParcel.aidl",
|
|
|
|
"binder/android/security/identity/EntryParcel.aidl",
|
|
|
|
"binder/android/security/identity/RequestNamespaceParcel.aidl",
|
|
|
|
"binder/android/security/identity/RequestEntryParcel.aidl",
|
|
|
|
"binder/android/security/identity/ResultNamespaceParcel.aidl",
|
|
|
|
"binder/android/security/identity/ResultEntryParcel.aidl",
|
|
|
|
"binder/android/security/identity/GetEntriesResultParcel.aidl",
|
|
|
|
"binder/android/security/identity/AuthKeyParcel.aidl",
|
|
|
|
"binder/android/security/identity/SecurityHardwareInfoParcel.aidl",
|
|
|
|
"binder/android/security/identity/ICredentialStoreFactory.aidl",
|
2021-09-11 19:52:17 +02:00
|
|
|
"binder/android/security/identity/ISession.aidl",
|
2019-10-28 18:32:48 +01:00
|
|
|
],
|
|
|
|
path: "binder",
|
|
|
|
}
|
|
|
|
|
2023-05-24 01:19:49 +02:00
|
|
|
cc_library_static {
|
2019-10-28 18:32:48 +01:00
|
|
|
name: "libcredstore_aidl",
|
|
|
|
srcs: [
|
|
|
|
":credstore_aidl",
|
|
|
|
],
|
|
|
|
aidl: {
|
|
|
|
export_aidl_headers: true,
|
|
|
|
include_dirs: [
|
|
|
|
"system/security/identity/binder",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
shared_libs: [
|
|
|
|
"libbinder",
|
|
|
|
"libutils",
|
2023-05-24 01:19:49 +02:00
|
|
|
],
|
|
|
|
static_libs: [
|
2019-10-28 18:32:48 +01:00
|
|
|
"libkeymaster4support",
|
|
|
|
],
|
|
|
|
export_shared_lib_headers: [
|
|
|
|
"libbinder",
|
|
|
|
],
|
|
|
|
}
|