• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_team: "trendy_team_biometrics_framework",
3    // 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
11cc_library_static {
12    name: "android.hardware.biometrics.fingerprint-service.lib",
13    vendor_available: true,
14    local_include_dirs: ["include"],
15    srcs: [
16        "FakeLockoutTracker.cpp",
17        "FakeFingerprintEngine.cpp",
18        "FakeFingerprintEngineRear.cpp",
19        "FakeFingerprintEngineUdfps.cpp",
20        "FakeFingerprintEngineSide.cpp",
21        "Fingerprint.cpp",
22        "Session.cpp",
23        "FingerprintConfig.cpp",
24        "VirtualHal.cpp",
25        "main.cpp",
26    ],
27    stl: "c++_static",
28    shared_libs: [
29        "libbinder_ndk",
30        "liblog",
31    ],
32    whole_static_libs: [
33        "libandroid.hardware.biometrics.fingerprint.VirtualProps",
34        "libbase",
35        "android.hardware.biometrics.fingerprint.virtualhal-ndk",
36        "android.hardware.biometrics.fingerprint-V4-ndk",
37        "android.hardware.biometrics.common-V4-ndk",
38        "android.hardware.biometrics.common.thread",
39        "android.hardware.biometrics.common.util",
40        "android.hardware.biometrics.common.config",
41        "android.hardware.keymaster-V4-ndk",
42    ],
43    product_variables: {
44        debuggable: {
45            cflags: ["-DFPS_DEBUGGABLE"],
46        },
47    },
48    apex_available: [
49        "com.android.hardware.biometrics.fingerprint.virtual",
50        "//apex_available:platform",
51    ],
52}
53
54cc_binary {
55    name: "android.hardware.biometrics.fingerprint-service.example",
56    system_ext_specific: true,
57    relative_install_path: "hw",
58    local_include_dirs: ["include"],
59    srcs: [
60    ],
61    stl: "c++_static",
62    shared_libs: [
63        "libbinder_ndk",
64        "liblog",
65    ],
66    whole_static_libs: [
67        "android.hardware.biometrics.fingerprint-service.lib",
68    ],
69    installable: false, // install APEX instead
70    product_variables: {
71        debuggable: {
72            cflags: ["-DFPS_DEBUGGABLE"],
73        },
74    },
75    apex_available: [
76        "com.android.hardware.biometrics.fingerprint.virtual",
77    ],
78}
79
80cc_binary {
81    name: "android.hardware.biometrics.fingerprint-service.default",
82    //system_ext_specific: true,
83    vendor: true,
84    relative_install_path: "hw",
85    init_rc: ["fingerprint-default.rc"],
86    vintf_fragment_modules: ["android.hardware.biometrics.fingerprint-service.default.vintf"],
87    local_include_dirs: ["include"],
88    srcs: [
89    ],
90    stl: "c++_static",
91    shared_libs: [
92        "libbinder_ndk",
93        "liblog",
94    ],
95    whole_static_libs: [
96        "android.hardware.biometrics.fingerprint-service.lib",
97    ],
98    product_variables: {
99        debuggable: {
100            cflags: ["-DFPS_DEBUGGABLE"],
101        },
102    },
103    apex_available: [
104        "//apex_available:platform",
105    ],
106}
107
108vintf_fragment {
109    name: "android.hardware.biometrics.fingerprint-service.default.vintf",
110    src: "fingerprint-default.xml",
111    vendor: true,
112}
113
114cc_test {
115    name: "android.hardware.biometrics.fingerprint.FakeFingerprintEngineTest",
116    local_include_dirs: ["include"],
117    srcs: [
118        "tests/FakeFingerprintEngineTest.cpp",
119        "FakeFingerprintEngine.cpp",
120        "FakeLockoutTracker.cpp",
121        "FingerprintConfig.cpp",
122    ],
123    shared_libs: [
124        "libbase",
125        "libbinder_ndk",
126    ],
127    static_libs: [
128        "libandroid.hardware.biometrics.fingerprint.VirtualProps",
129        "android.hardware.biometrics.fingerprint-V4-ndk",
130        "android.hardware.biometrics.common-V4-ndk",
131        "android.hardware.keymaster-V4-ndk",
132        "android.hardware.biometrics.common.util",
133        "android.hardware.biometrics.common.config",
134        "android.hardware.biometrics.common.thread",
135    ],
136    test_suites: ["general-tests"],
137    require_root: true,
138}
139
140cc_test {
141    name: "android.hardware.biometrics.fingerprint.FakeFingerprintEngineUdfpsTest",
142    local_include_dirs: ["include"],
143    srcs: [
144        "tests/FakeFingerprintEngineUdfpsTest.cpp",
145        "FakeFingerprintEngineUdfps.cpp",
146        "FakeFingerprintEngine.cpp",
147        "FakeLockoutTracker.cpp",
148        "FingerprintConfig.cpp",
149    ],
150    shared_libs: [
151        "libbase",
152        "libbinder_ndk",
153    ],
154    static_libs: [
155        "libandroid.hardware.biometrics.fingerprint.VirtualProps",
156        "android.hardware.biometrics.fingerprint-V4-ndk",
157        "android.hardware.biometrics.common-V4-ndk",
158        "android.hardware.keymaster-V4-ndk",
159        "android.hardware.biometrics.common.util",
160        "android.hardware.biometrics.common.config",
161        "android.hardware.biometrics.common.thread",
162    ],
163    test_suites: ["general-tests"],
164    require_root: true,
165}
166
167cc_test {
168    name: "android.hardware.biometrics.fingerprint.FakeLockoutTrackerTest",
169    local_include_dirs: ["include"],
170    srcs: [
171        "tests/FakeLockoutTrackerTest.cpp",
172        "FakeLockoutTracker.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-V4-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    test_suites: ["general-tests"],
189    require_root: true,
190}
191
192cc_test {
193    name: "android.hardware.biometrics.fingerprint.SessionTest",
194    local_include_dirs: ["include"],
195    srcs: [
196        "tests/SessionTest.cpp",
197        "Session.cpp",
198        "FakeFingerprintEngine.cpp",
199        "FakeLockoutTracker.cpp",
200        "FingerprintConfig.cpp",
201    ],
202    shared_libs: [
203        "libbase",
204        "libbinder_ndk",
205    ],
206    static_libs: [
207        "libandroid.hardware.biometrics.fingerprint.VirtualProps",
208        "android.hardware.biometrics.fingerprint-V4-ndk",
209        "android.hardware.biometrics.common-V4-ndk",
210        "android.hardware.keymaster-V4-ndk",
211        "android.hardware.biometrics.common.util",
212        "android.hardware.biometrics.common.thread",
213        "android.hardware.biometrics.common.config",
214    ],
215    test_suites: ["general-tests"],
216    require_root: true,
217}
218
219cc_test {
220    name: "android.hardware.biometrics.fingerprint.VirtualHalTest",
221    local_include_dirs: ["include"],
222    srcs: [
223        "tests/VirtualHalTest.cpp",
224        "Session.cpp",
225        "VirtualHal.cpp",
226        "FakeFingerprintEngineRear.cpp",
227        "FakeFingerprintEngineUdfps.cpp",
228        "FakeFingerprintEngineSide.cpp",
229        "FakeFingerprintEngine.cpp",
230        "FakeLockoutTracker.cpp",
231        "Fingerprint.cpp",
232        "FingerprintConfig.cpp",
233    ],
234    shared_libs: [
235        "libbase",
236        "libbinder_ndk",
237    ],
238    static_libs: [
239        "libandroid.hardware.biometrics.fingerprint.VirtualProps",
240        "android.hardware.biometrics.fingerprint-V4-ndk",
241        "android.hardware.biometrics.fingerprint.virtualhal-ndk",
242        "android.hardware.biometrics.common-V4-ndk",
243        "android.hardware.keymaster-V4-ndk",
244        "android.hardware.biometrics.common.util",
245        "android.hardware.biometrics.common.thread",
246        "android.hardware.biometrics.common.config",
247    ],
248    product_variables: {
249        debuggable: {
250            cflags: ["-DFPS_DEBUGGABLE"],
251        },
252    },
253    test_suites: ["general-tests"],
254    require_root: true,
255}
256
257sysprop_library {
258    name: "android.hardware.biometrics.fingerprint.VirtualProps",
259    srcs: ["fingerprint.sysprop"],
260    property_owner: "Platform",
261    vendor_available: true,
262    apex_available: [
263        "com.android.hardware.biometrics.fingerprint.virtual",
264        "//apex_available:platform",
265    ],
266}
267
268prebuilt_etc {
269    name: "fingerprint-virtual.rc",
270    src: "fingerprint-virtual.rc",
271    installable: false,
272}
273
274apex {
275    name: "com.android.hardware.biometrics.fingerprint.virtual",
276    manifest: "apex_manifest.json",
277    file_contexts: ":com.android.biometrics.virtual.fingerprint-file_contexts",
278    key: "com.android.hardware.key",
279    certificate: ":com.android.hardware.certificate",
280    updatable: false,
281    system_ext_specific: true,
282
283    binaries: [
284        "android.hardware.biometrics.fingerprint-service.example",
285    ],
286    prebuilts: [
287        // init_rc
288        "fingerprint-virtual.rc",
289    ],
290}
291