1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_interfaces_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_interfaces_license"],
}
cc_library_static {
name: "android.hardware.identity-libeic-hal-common",
vendor_available: true,
srcs: [
"common/IdentityCredential.cpp",
"common/IdentityCredentialStore.cpp",
"common/PresentationSession.cpp",
"common/WritableIdentityCredential.cpp",
],
export_include_dirs: [
"common",
],
cflags: [
"-Wall",
"-Wextra",
"-Wno-deprecated-declarations",
],
shared_libs: [
"liblog",
"libcrypto",
"libbinder_ndk",
"libkeymaster_messages",
],
static_libs: [
"libbase",
"libcppbor_external",
"libcppcose_rkp",
"libutils",
"libsoft_attestation_cert",
"libkeymaster_portable",
"libsoft_attestation_cert",
"libpuresoftkeymasterdevice",
"android.hardware.identity-support-lib",
"android.hardware.identity-V4-ndk",
"android.hardware.keymaster-V4-ndk",
],
}
cc_library_static {
name: "android.hardware.identity-libeic-library",
vendor_available: true,
srcs: [
"libeic/EicCbor.c",
"libeic/EicSession.c",
"libeic/EicPresentation.c",
"libeic/EicProvisioning.c",
"EicOpsImpl.cc",
],
export_include_dirs: [
"libeic",
],
cflags: [
"-DEIC_COMPILATION",
"-Wall",
"-Wextra",
"-DEIC_DEBUG",
// Allow using C2x extensions such as omitting parameter names
"-Wno-c2x-extensions",
],
shared_libs: [
"libbase",
"libcrypto",
],
static_libs: [
"android.hardware.identity-support-lib",
],
}
cc_binary {
name: "android.hardware.identity-service.example",
relative_install_path: "hw",
init_rc: ["identity-default.rc"],
vintf_fragments: ["identity-default.xml"],
vendor: true,
cflags: [
"-Wall",
"-Wextra",
"-g",
],
shared_libs: [
"liblog",
"libcrypto",
"libbinder_ndk",
"libkeymaster_messages",
],
static_libs: [
"libbase",
"libcppbor_external",
"libcppcose_rkp",
"libutils",
"libsoft_attestation_cert",
"libkeymaster_portable",
"libsoft_attestation_cert",
"libpuresoftkeymasterdevice",
"android.hardware.identity-support-lib",
"android.hardware.identity-V4-ndk",
"android.hardware.keymaster-V4-ndk",
"android.hardware.identity-libeic-hal-common",
"android.hardware.identity-libeic-library",
],
srcs: [
"service.cpp",
"FakeSecureHardwareProxy.cpp",
],
required: [
"android.hardware.identity_credential.xml",
],
}
cc_test {
name: "libeic_test",
srcs: [
"EicTests.cpp",
"FakeSecureHardwareProxy.cpp",
],
cflags: [
"-Wall",
"-Wextra",
"-g",
"-DEIC_DEBUG",
],
local_include_dirs: [
"common",
],
shared_libs: [
"liblog",
"libcrypto",
"libkeymaster_messages",
],
static_libs: [
"libbase",
"libcppbor_external",
"libcppcose_rkp",
"libutils",
"libsoft_attestation_cert",
"libkeymaster_portable",
"libsoft_attestation_cert",
"libpuresoftkeymasterdevice",
"android.hardware.identity-support-lib",
"android.hardware.identity-libeic-library",
],
test_suites: [
"general-tests",
],
}
prebuilt_etc {
name: "android.hardware.identity_credential.xml",
sub_dir: "permissions",
vendor: true,
src: "android.hardware.identity_credential.xml",
}
|