Bob Badour | 4c7858c | 2021-02-12 15:40:29 -0800 | [diff] [blame] | 1 | package { |
| 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 | |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 11 | cc_defaults { |
| 12 | name: "keystore_defaults", |
| 13 | |
| 14 | cflags: [ |
| 15 | "-Wall", |
| 16 | "-Werror", |
| 17 | "-Wextra", |
| 18 | "-Wunused", |
| 19 | ], |
| 20 | |
| 21 | sanitize: { |
bohu | cccab48 | 2019-01-31 20:30:29 -0800 | [diff] [blame] | 22 | misc_undefined: [ |
Shaquille Johnson | c67296e | 2024-01-22 19:13:01 +0000 | [diff] [blame^] | 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", |
bohu | cccab48 | 2019-01-31 20:30:29 -0800 | [diff] [blame] | 31 | ], |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 32 | }, |
| 33 | |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | cc_binary { |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 37 | name: "keystore_cli_v2", |
David Drysdale | c4e0d5b | 2021-11-22 18:12:06 +0000 | [diff] [blame] | 38 | defaults: [ |
| 39 | "keystore_defaults", |
| 40 | "keystore2_use_latest_aidl_ndk_shared", |
| 41 | ], |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 42 | |
| 43 | cflags: [ |
| 44 | "-DKEYMASTER_NAME_TAGS", |
| 45 | "-Wno-unused-parameter", |
| 46 | ], |
Janis Danisevskis | 2437fde | 2021-03-08 11:30:11 -0800 | [diff] [blame] | 47 | srcs: [ |
| 48 | "keystore_cli_v2.cpp", |
| 49 | "keystore_client.proto", |
| 50 | ], |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 51 | shared_libs: [ |
Jiyong Park | 0d61dd6 | 2021-07-27 12:20:26 +0900 | [diff] [blame] | 52 | "android.security.apc-ndk", |
David Zeuthen | c6eb7cd | 2017-11-27 11:33:55 -0500 | [diff] [blame] | 53 | "libbinder", |
Janis Danisevskis | 2437fde | 2021-03-08 11:30:11 -0800 | [diff] [blame] | 54 | "libbinder_ndk", |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 55 | "libchrome", |
Janis Danisevskis | 2437fde | 2021-03-08 11:30:11 -0800 | [diff] [blame] | 56 | "libcrypto", |
| 57 | "libkeymint_support", |
| 58 | "libprotobuf-cpp-lite", |
David Zeuthen | c6eb7cd | 2017-11-27 11:33:55 -0500 | [diff] [blame] | 59 | "libutils", |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 60 | ], |
| 61 | |
| 62 | local_include_dirs: ["include"], |
| 63 | } |
| 64 | |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 65 | // Library used by both keystore and credstore for generating the ASN.1 stored |
| 66 | // in Tag::ATTESTATION_APPLICATION_ID |
Aditya Wazir | 4f33d5e | 2021-04-29 10:40:31 +0530 | [diff] [blame] | 67 | cc_library { |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 68 | name: "libkeystore-attestation-application-id", |
Shaquille Johnson | c67296e | 2024-01-22 19:13:01 +0000 | [diff] [blame^] | 69 | defaults: [ |
| 70 | "keystore_defaults", |
| 71 | "keystore2_use_latest_aidl_ndk_shared", |
| 72 | ], |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 73 | |
| 74 | srcs: [ |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 75 | "keystore_attestation_id.cpp", |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 76 | ], |
| 77 | shared_libs: [ |
Rajesh Nyamagoud | 3f6c15c | 2023-03-11 01:26:48 +0000 | [diff] [blame] | 78 | "android.security.aaid_aidl-cpp", |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 79 | "libbase", |
| 80 | "libbinder", |
Rajesh Nyamagoud | 3f6c15c | 2023-03-11 01:26:48 +0000 | [diff] [blame] | 81 | "libcrypto", |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 82 | "libhidlbase", |
| 83 | "liblog", |
| 84 | "libutils", |
David Zeuthen | f2a2867 | 2020-01-30 16:20:07 -0500 | [diff] [blame] | 85 | ], |
| 86 | |
| 87 | export_include_dirs: ["include"], |
| 88 | } |
| 89 | |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 90 | // Library for keystore clients using the WiFi HIDL interface |
Aditya Wazir | f6c3bfc | 2021-06-02 16:25:34 +0530 | [diff] [blame] | 91 | cc_library { |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 92 | name: "libkeystore-wifi-hidl", |
| 93 | defaults: ["keystore_defaults"], |
| 94 | |
| 95 | srcs: ["keystore_get_wifi_hidl.cpp"], |
| 96 | shared_libs: [ |
| 97 | "android.system.wifi.keystore@1.0", |
| 98 | "libbase", |
| 99 | "libhidlbase", |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 100 | "liblog", |
| 101 | "libutils", |
| 102 | ], |
| 103 | |
| 104 | export_include_dirs: ["include"], |
| 105 | |
Aditya Vasu Wazir | 40353d8 | 2021-09-02 11:05:53 +0000 | [diff] [blame] | 106 | vendor: true, |
Jeff Sharkey | c493cf9 | 2017-10-23 10:39:50 -0600 | [diff] [blame] | 107 | } |