blob: 9b72c872c9b4f45b6dbed612c737ab86ef1c5e6d [file] [log] [blame]
Bob Badourc22b35b2021-02-23 14:26:20 -08001package {
Aditya Choudhary04ef2122024-02-02 14:00:43 +00002 default_team: "trendy_team_biometrics_framework",
Bob Badourc22b35b2021-02-23 14:26:20 -08003 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "hardware_interfaces_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 default_applicable_licenses: ["hardware_interfaces_license"],
9}
10
Ilya Matyukhina9a3c852020-08-18 03:09:41 -070011cc_binary {
12 name: "android.hardware.biometrics.fingerprint-service.example",
Ilya Matyukhin124e70a2021-02-12 13:00:15 -080013 vendor: true,
Ilya Matyukhina9a3c852020-08-18 03:09:41 -070014 relative_install_path: "hw",
Ilya Matyukhin124e70a2021-02-12 13:00:15 -080015 local_include_dirs: ["include"],
16 srcs: [
Jeff Pu52653182022-10-12 16:27:23 -040017 "FakeLockoutTracker.cpp",
Joe Bolingerde94aa02021-12-09 17:00:32 -080018 "FakeFingerprintEngine.cpp",
Jeff Pu63f33c72022-07-28 16:06:23 -040019 "FakeFingerprintEngineRear.cpp",
20 "FakeFingerprintEngineUdfps.cpp",
21 "FakeFingerprintEngineSide.cpp",
Ilya Matyukhin124e70a2021-02-12 13:00:15 -080022 "Fingerprint.cpp",
23 "Session.cpp",
Jeff Pu6ccd9562024-02-21 10:46:35 -050024 "FingerprintConfig.cpp",
Jeff Pudf81c962024-03-06 10:58:17 -050025 "VirtualHal.cpp",
Ilya Matyukhin48ff8962021-02-22 13:13:13 -080026 "main.cpp",
Ilya Matyukhin124e70a2021-02-12 13:00:15 -080027 ],
Jooyung Hane4582942023-10-26 11:07:08 +090028 stl: "c++_static",
Ilya Matyukhina9a3c852020-08-18 03:09:41 -070029 shared_libs: [
Ilya Matyukhina9a3c852020-08-18 03:09:41 -070030 "libbinder_ndk",
Jooyung Hane4582942023-10-26 11:07:08 +090031 "liblog",
32 ],
33 static_libs: [
34 "libandroid.hardware.biometrics.fingerprint.VirtualProps",
35 "libbase",
Jeff Pudf81c962024-03-06 10:58:17 -050036 "android.hardware.biometrics.fingerprint-V5-ndk",
Vincent Wang890be572023-11-30 07:36:41 +000037 "android.hardware.biometrics.common-V4-ndk",
Joshua McCloskeyc8c0bad2022-05-10 05:17:44 +000038 "android.hardware.biometrics.common.thread",
39 "android.hardware.biometrics.common.util",
Jeff Pu6ccd9562024-02-21 10:46:35 -050040 "android.hardware.biometrics.common.config",
Jooyung Hane4582942023-10-26 11:07:08 +090041 "android.hardware.keymaster-V4-ndk",
Ilya Matyukhina9a3c852020-08-18 03:09:41 -070042 ],
Jooyung Han80baad22023-10-26 10:44:35 +090043 installable: false, // install APEX instead
Jeff Pu6ccd9562024-02-21 10:46:35 -050044 product_variables: {
45 debuggable: {
46 cflags: ["-DFPS_DEBUGGABLE"],
47 },
48 },
Ilya Matyukhina9a3c852020-08-18 03:09:41 -070049}
Ilya Matyukhin1f3c8522021-02-12 12:56:02 -080050
Joe Bolingerde94aa02021-12-09 17:00:32 -080051cc_test {
52 name: "android.hardware.biometrics.fingerprint.FakeFingerprintEngineTest",
53 local_include_dirs: ["include"],
54 srcs: [
Joe Bolingerde94aa02021-12-09 17:00:32 -080055 "tests/FakeFingerprintEngineTest.cpp",
56 "FakeFingerprintEngine.cpp",
Jeff Pu52653182022-10-12 16:27:23 -040057 "FakeLockoutTracker.cpp",
Jeff Pu6ccd9562024-02-21 10:46:35 -050058 "FingerprintConfig.cpp",
Joe Bolingerde94aa02021-12-09 17:00:32 -080059 ],
60 shared_libs: [
61 "libbase",
62 "libbinder_ndk",
Jeff Pu63f33c72022-07-28 16:06:23 -040063 ],
64 static_libs: [
65 "libandroid.hardware.biometrics.fingerprint.VirtualProps",
Jeff Pudf81c962024-03-06 10:58:17 -050066 "android.hardware.biometrics.fingerprint-V5-ndk",
Vincent Wang890be572023-11-30 07:36:41 +000067 "android.hardware.biometrics.common-V4-ndk",
Ilya Matyukhin84531782022-10-31 02:29:43 +000068 "android.hardware.keymaster-V4-ndk",
Jeff Pu63f33c72022-07-28 16:06:23 -040069 "android.hardware.biometrics.common.util",
Jeff Pu6ccd9562024-02-21 10:46:35 -050070 "android.hardware.biometrics.common.config",
71 "android.hardware.biometrics.common.thread",
Jeff Pu63f33c72022-07-28 16:06:23 -040072 ],
73 vendor: true,
74 test_suites: ["general-tests"],
75 require_root: true,
76}
77
78cc_test {
79 name: "android.hardware.biometrics.fingerprint.FakeFingerprintEngineUdfpsTest",
80 local_include_dirs: ["include"],
81 srcs: [
82 "tests/FakeFingerprintEngineUdfpsTest.cpp",
83 "FakeFingerprintEngineUdfps.cpp",
84 "FakeFingerprintEngine.cpp",
Jeff Pu52653182022-10-12 16:27:23 -040085 "FakeLockoutTracker.cpp",
Jeff Pu6ccd9562024-02-21 10:46:35 -050086 "FingerprintConfig.cpp",
Jeff Pu52653182022-10-12 16:27:23 -040087 ],
88 shared_libs: [
89 "libbase",
90 "libbinder_ndk",
Jeff Pu52653182022-10-12 16:27:23 -040091 ],
92 static_libs: [
93 "libandroid.hardware.biometrics.fingerprint.VirtualProps",
Jeff Pudf81c962024-03-06 10:58:17 -050094 "android.hardware.biometrics.fingerprint-V5-ndk",
Vincent Wang890be572023-11-30 07:36:41 +000095 "android.hardware.biometrics.common-V4-ndk",
Ilya Matyukhin84531782022-10-31 02:29:43 +000096 "android.hardware.keymaster-V4-ndk",
Jeff Pu52653182022-10-12 16:27:23 -040097 "android.hardware.biometrics.common.util",
Jeff Pu6ccd9562024-02-21 10:46:35 -050098 "android.hardware.biometrics.common.config",
99 "android.hardware.biometrics.common.thread",
Jeff Pu52653182022-10-12 16:27:23 -0400100 ],
101 vendor: true,
102 test_suites: ["general-tests"],
103 require_root: true,
104}
105
106cc_test {
107 name: "android.hardware.biometrics.fingerprint.FakeLockoutTrackerTest",
108 local_include_dirs: ["include"],
109 srcs: [
110 "tests/FakeLockoutTrackerTest.cpp",
111 "FakeLockoutTracker.cpp",
Jeff Pu6ccd9562024-02-21 10:46:35 -0500112 "FingerprintConfig.cpp",
Jeff Pu63f33c72022-07-28 16:06:23 -0400113 ],
114 shared_libs: [
115 "libbase",
116 "libbinder_ndk",
Joe Bolingerde94aa02021-12-09 17:00:32 -0800117 ],
118 static_libs: [
Trevor Radcliffec0886122022-06-09 19:19:30 +0000119 "libandroid.hardware.biometrics.fingerprint.VirtualProps",
Jeff Pudf81c962024-03-06 10:58:17 -0500120 "android.hardware.biometrics.fingerprint-V5-ndk",
Vincent Wang890be572023-11-30 07:36:41 +0000121 "android.hardware.biometrics.common-V4-ndk",
Ilya Matyukhin84531782022-10-31 02:29:43 +0000122 "android.hardware.keymaster-V4-ndk",
Joshua McCloskeyc8c0bad2022-05-10 05:17:44 +0000123 "android.hardware.biometrics.common.util",
Jeff Pu6ccd9562024-02-21 10:46:35 -0500124 "android.hardware.biometrics.common.thread",
125 "android.hardware.biometrics.common.config",
Joe Bolingerde94aa02021-12-09 17:00:32 -0800126 ],
127 vendor: true,
128 test_suites: ["general-tests"],
129 require_root: true,
130}
131
Jeff Pu87e9f2b2023-05-03 17:59:21 +0000132cc_test {
133 name: "android.hardware.biometrics.fingerprint.SessionTest",
134 local_include_dirs: ["include"],
135 srcs: [
136 "tests/SessionTest.cpp",
137 "Session.cpp",
138 "FakeFingerprintEngine.cpp",
139 "FakeLockoutTracker.cpp",
Jeff Pu6ccd9562024-02-21 10:46:35 -0500140 "FingerprintConfig.cpp",
Jeff Pu87e9f2b2023-05-03 17:59:21 +0000141 ],
142 shared_libs: [
143 "libbase",
144 "libbinder_ndk",
Jeff Pu87e9f2b2023-05-03 17:59:21 +0000145 ],
146 static_libs: [
147 "libandroid.hardware.biometrics.fingerprint.VirtualProps",
Jeff Pudf81c962024-03-06 10:58:17 -0500148 "android.hardware.biometrics.fingerprint-V5-ndk",
Vincent Wang890be572023-11-30 07:36:41 +0000149 "android.hardware.biometrics.common-V4-ndk",
Jeff Pu87e9f2b2023-05-03 17:59:21 +0000150 "android.hardware.keymaster-V4-ndk",
151 "android.hardware.biometrics.common.util",
Jeff Pu6ccd9562024-02-21 10:46:35 -0500152 "android.hardware.biometrics.common.thread",
153 "android.hardware.biometrics.common.config",
Jeff Pu87e9f2b2023-05-03 17:59:21 +0000154 ],
155 vendor: true,
156 test_suites: ["general-tests"],
157 require_root: true,
158}
159
Jeff Pudf81c962024-03-06 10:58:17 -0500160cc_test {
161 name: "android.hardware.biometrics.fingerprint.VirtualHalTest",
162 local_include_dirs: ["include"],
163 srcs: [
164 "tests/VirtualHalTest.cpp",
165 "Session.cpp",
166 "VirtualHal.cpp",
167 "FakeFingerprintEngineRear.cpp",
168 "FakeFingerprintEngineUdfps.cpp",
169 "FakeFingerprintEngineSide.cpp",
170 "FakeFingerprintEngine.cpp",
171 "FakeLockoutTracker.cpp",
172 "Fingerprint.cpp",
173 "FingerprintConfig.cpp",
174 ],
175 shared_libs: [
176 "libbase",
177 "libbinder_ndk",
178 ],
179 static_libs: [
180 "libandroid.hardware.biometrics.fingerprint.VirtualProps",
181 "android.hardware.biometrics.fingerprint-V5-ndk",
182 "android.hardware.biometrics.common-V4-ndk",
183 "android.hardware.keymaster-V4-ndk",
184 "android.hardware.biometrics.common.util",
185 "android.hardware.biometrics.common.thread",
186 "android.hardware.biometrics.common.config",
187 ],
188 product_variables: {
189 debuggable: {
190 cflags: ["-DFPS_DEBUGGABLE"],
191 },
192 },
193 vendor: true,
194 test_suites: ["general-tests"],
195 require_root: true,
196}
197
Joe Bolingerde94aa02021-12-09 17:00:32 -0800198sysprop_library {
199 name: "android.hardware.biometrics.fingerprint.VirtualProps",
200 srcs: ["fingerprint.sysprop"],
201 property_owner: "Vendor",
202 vendor: true,
203}
Jooyung Han580e81b2023-05-10 17:05:00 +0900204
Jooyung Han80baad22023-10-26 10:44:35 +0900205prebuilt_etc {
Jooyung Han580e81b2023-05-10 17:05:00 +0900206 name: "fingerprint-example.rc",
Jooyung Han80baad22023-10-26 10:44:35 +0900207 src: "fingerprint-example.rc",
208 installable: false,
Jooyung Han580e81b2023-05-10 17:05:00 +0900209}
210
Jooyung Han80baad22023-10-26 10:44:35 +0900211prebuilt_etc {
Jooyung Han580e81b2023-05-10 17:05:00 +0900212 name: "fingerprint-example.xml",
Jooyung Han80baad22023-10-26 10:44:35 +0900213 src: "fingerprint-example.xml",
214 sub_dir: "vintf",
215 installable: false,
216}
217
218apex {
219 name: "com.android.hardware.biometrics.fingerprint.virtual",
220 manifest: "apex_manifest.json",
221 file_contexts: "apex_file_contexts",
222 key: "com.android.hardware.key",
223 certificate: ":com.android.hardware.certificate",
224 updatable: false,
225 vendor: true,
226
227 binaries: [
228 "android.hardware.biometrics.fingerprint-service.example",
229 ],
230 prebuilts: [
231 // init_rc
232 "fingerprint-example.rc",
233 // vintf_fragment
234 "fingerprint-example.xml",
235 ],
Jooyung Han580e81b2023-05-10 17:05:00 +0900236}