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 // SPDX-license-identifier-BSD 8 default_applicable_licenses: ["system_security_license"], 9} 10 11cc_defaults { 12 name: "keystore_defaults", 13 14 cflags: [ 15 "-Wall", 16 "-Werror", 17 "-Wextra", 18 "-Wunused", 19 ], 20 21 sanitize: { 22 misc_undefined: [ 23 "signed-integer-overflow", 24 "unsigned-integer-overflow", 25 "shift", 26 "integer-divide-by-zero", 27 "implicit-unsigned-integer-truncation", 28 // BUG: 123630767 29 //"implicit-signed-integer-truncation", 30 "implicit-integer-sign-change", 31 ], 32 }, 33 34 clang: true, 35} 36 37cc_binary { 38 name: "keystore_cli_v2", 39 defaults: [ 40 "keystore_defaults", 41 "keystore2_use_latest_aidl_ndk_shared", 42 ], 43 44 cflags: [ 45 "-DKEYMASTER_NAME_TAGS", 46 "-Wno-unused-parameter", 47 ], 48 srcs: [ 49 "keystore_cli_v2.cpp", 50 "keystore_client.proto", 51 ], 52 shared_libs: [ 53 "android.security.apc-ndk", 54 "libbinder", 55 "libbinder_ndk", 56 "libchrome", 57 "libcrypto", 58 "libkeymint_support", 59 "libprotobuf-cpp-lite", 60 "libutils", 61 ], 62 63 local_include_dirs: ["include"], 64} 65 66// Library used by both keystore and credstore for generating the ASN.1 stored 67// in Tag::ATTESTATION_APPLICATION_ID 68cc_library { 69 name: "libkeystore-attestation-application-id", 70 defaults: ["keystore_defaults"], 71 72 srcs: [ 73 ":IKeyAttestationApplicationIdProvider.aidl", 74 "keystore_attestation_id.cpp", 75 "KeyAttestationApplicationId.cpp", 76 "KeyAttestationPackageInfo.cpp", 77 "Signature.cpp", 78 ], 79 shared_libs: [ 80 "libbase", 81 "libbinder", 82 "libhidlbase", 83 "liblog", 84 "libutils", 85 "libcrypto", 86 ], 87 88 export_include_dirs: ["include"], 89} 90 91// Library for keystore clients using the WiFi HIDL interface 92cc_library { 93 name: "libkeystore-wifi-hidl", 94 defaults: ["keystore_defaults"], 95 96 srcs: ["keystore_get_wifi_hidl.cpp"], 97 shared_libs: [ 98 "android.system.wifi.keystore@1.0", 99 "libbase", 100 "libhidlbase", 101 "liblog", 102 "libutils", 103 ], 104 105 export_include_dirs: ["include"], 106 107 vendor: true, 108} 109