1package { 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 "system_security_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["system_security_license"], 8} 9 10cc_defaults { 11 name: "identity_defaults", 12 cflags: [ 13 "-Wall", 14 // "-Werror", 15 "-Wextra", 16 "-Wunused", 17 "-Wno-deprecated-declarations", 18 ], 19 sanitize: { 20 misc_undefined : ["integer"], 21 }, 22 23} 24 25cc_binary { 26 name: "credstore", 27 defaults: [ 28 "identity_defaults", 29 "identity_use_latest_hal_aidl_cpp_static", 30 "keymint_use_latest_hal_aidl_ndk_shared", 31 "keymint_use_latest_hal_aidl_cpp_static", 32 ], 33 34 srcs: [ 35 "Credential.cpp", 36 "CredentialData.cpp", 37 "CredentialStore.cpp", 38 "CredentialStoreFactory.cpp", 39 "Session.cpp", 40 "Util.cpp", 41 "WritableCredential.cpp", 42 "main.cpp", 43 ], 44 init_rc: ["credstore.rc"], 45 shared_libs: [ 46 "android.hardware.identity-support-lib", 47 "android.hardware.keymaster@4.0", 48 "android.security.authorization-ndk", 49 "libbase", 50 "libbinder", 51 "libbinder_ndk", 52 "libcredstore_aidl", 53 "libcrypto", 54 "libhidlbase", 55 "libkeymaster4support", 56 "libkeystore-attestation-application-id", 57 "librkp_support", 58 "libutils", 59 "libutilscallstack", 60 "libvintf", 61 ], 62 static_libs: [ 63 "android.hardware.security.rkp-V3-cpp", 64 "android.hardware.keymaster-V3-cpp", 65 "android.security.rkp_aidl-cpp", 66 "libcppbor_external", 67 ], 68} 69 70filegroup { 71 name: "credstore_aidl", 72 srcs: [ 73 "binder/android/security/identity/ICredential.aidl", 74 "binder/android/security/identity/IWritableCredential.aidl", 75 "binder/android/security/identity/ICredentialStore.aidl", 76 "binder/android/security/identity/AccessControlProfileParcel.aidl", 77 "binder/android/security/identity/EntryNamespaceParcel.aidl", 78 "binder/android/security/identity/EntryParcel.aidl", 79 "binder/android/security/identity/RequestNamespaceParcel.aidl", 80 "binder/android/security/identity/RequestEntryParcel.aidl", 81 "binder/android/security/identity/ResultNamespaceParcel.aidl", 82 "binder/android/security/identity/ResultEntryParcel.aidl", 83 "binder/android/security/identity/GetEntriesResultParcel.aidl", 84 "binder/android/security/identity/AuthKeyParcel.aidl", 85 "binder/android/security/identity/SecurityHardwareInfoParcel.aidl", 86 "binder/android/security/identity/ICredentialStoreFactory.aidl", 87 "binder/android/security/identity/ISession.aidl", 88 ], 89 path: "binder", 90} 91 92cc_library_shared { 93 name: "libcredstore_aidl", 94 srcs: [ 95 ":credstore_aidl", 96 ], 97 aidl: { 98 export_aidl_headers: true, 99 include_dirs: [ 100 "system/security/identity/binder", 101 ], 102 }, 103 shared_libs: [ 104 "libbinder", 105 "libutils", 106 "libkeymaster4support", 107 ], 108 export_shared_lib_headers: [ 109 "libbinder", 110 ], 111} 112