18 Commits

Author SHA1 Message Date
anonymix007
7db9651375 hidl: biometrics: fingerprint: Fix UDFPS enrollment and authentication
- Without this screen would light up for just a few seconds, matching would be unreliable and often error out with GF_ERROR_ACQUIRED_IMAGER_DIRTY or GF_ERROR_TOO_FAST

Change-Id: Ibc02d111224dc0921bf91c7b69330dcda2c7dc8f
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2025-01-20 22:35:28 +01:00
pjgowtham
2aa98e1b97 fingerprint: Set dim layer zOrder
Requires: I367b2c395aeb8cb7cb9e3cc38eca98477befe007
Change-Id: I881db78186fa9c7b350e79ac4ef90f53ee4cfbcf
2025-01-20 13:30:58 +01:00
Davide Garberi
b0204560e3 hidl: biometrics: fingerprint: Add libbase dependency
* Without libbase the build fails to find symbols:
 ld.lld: error: undefined symbol: android::base::StartsWith(std::__1::basic_string_view<char, std::__1::char_traits<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >)

Change-Id: I8bbbfb0a07803092a37cbbf5766a5c0f169598e6
2023-09-17 03:24:01 +02:00
Kujou Yuko
73ee778301 hidl: biometrics: fingerprint: Define goodixExtCmd
Signed-off-by: Kujou Yuko <i@779.moe>
Change-Id: I4aa4e2f4c9532f24a6db40bd6a35619eeac83e26
2023-09-10 03:07:55 +02:00
Arian
23a1a32e7f hidl: biometrics: Extend UdfpsHandler with onAcquired and cancel methods
These methods can be used to handle vendor acquired messages and disable
fod listening on cancelled and successful unlocks.

Change-Id: Ie6a8d24840b0b6c34527f863a6052f789200a79f
2023-09-10 03:06:54 +02:00
Arian
d5b84901b2 hidl: biometrics: fingerprint: Add support for device specific UDFPS libs
Change-Id: I8f29d58b178aa8ff420204f790c6952fdf4ade58
2023-09-10 03:06:22 +02:00
LuK1337
64490bd5f9 hidl: biometrics: fingerprint: Make fingerprint HIDL fully treble compliant
This is more like a hack, also observed in the stock HAL, for pre-P shipped devices
because those have fpdata store path set to /data/system/users/ by the FingerprintService.

Force treble compliant path and thus avoid using data_between_core_and_vendor_violators
attribute:

 > typeattribute hal_fingerprint_default data_between_core_and_vendor_violators;
 > # access to /data/system/users/[0-9]+/fpdata
 > allow hal_fingerprint_default fingerprintd_data_file:dir rw_dir_perms;
 > allow hal_fingerprint_default fingerprintd_data_file:file create_file_perms;

Change-Id: I388f993de7f95fc68007d945f5a9cc975afde120
2023-09-10 03:03:40 +02:00
LuK1337
b159bc0658 hidl: biometrics: fingerprint: Fix sde_drm.h include path on 5.4+ kernel
Change-Id: Idac59471ae329eabf8484cc1238c35dabaa64827
2023-09-10 03:02:32 +02:00
Abhishek Aggarwal
27ced6c1a6 hidl: biometrics: fingerprint: Add surfaceflinger extension lib
Change-Id: I51fb56c0a20e3cac83afb46ed6a6e2f967159d18
2023-09-10 03:02:17 +02:00
Sebastiano Barezzi
b7761c9d9a hidl: biometrics: fingerprint: Move fingerprint HIDL to 2.3
Change-Id: I2e5ed64ac7ae2f1003503072666204c0788a003a
2023-09-10 03:01:29 +02:00
Sebastiano Barezzi
c6e88f1118 hidl: biometrics: fingerprint: Drop LOG_VERBOSE
* It's useless since it's the same as LOG_TAG

Change-Id: I1a15ea85f840b7af6d41b59cf01b0ec3c2457705
2023-09-10 02:58:18 +02:00
Jake Weinstein
2c7c8ab690 hidl: biometrics: fingerprint: Revert "fpc: keep fpc in system-background"
While Google found that fingerprint HAL is insensitive to
increased CPU throughput, we have not found that to be the
case. Allowing more CPUs makes fingerprint unlock up to
2x faster in some tests.

SM8250 device with fingerprint on display:
- Before: 3128ms
- After: 944ms

SDM845 device with fingerprint on the power button:
- Before: 1146ms
- After: 688ms

This reverts commit d0fdb4431d26e4f257b8867f67ffd9b4a9818d9e.

Change-Id: I7a28d82caee2b8503b974a8226b29240eb072ceb
2023-09-10 02:57:54 +02:00
Bruno Martins
34df382ef1 hidl: biometrics: fingerprint: Use pragma once
Change-Id: I335b0a1b73effa6f9c0b0866052d74dc524ad99b
2023-09-10 02:57:42 +02:00
LuK1337
62e5a46426 hidl: biometrics: fingerprint: Add (and run) clang-format file
Change-Id: Ibb4a56ef02a404717512d7a7f99bc31e2ce442a4
2023-09-10 02:57:27 +02:00
Sebastiano Barezzi
364b4b7709 hidl: biometrics: fingerprint: Update licensing
Change-Id: I3c4b6f9cac9c560b592bda2d2b662f59024f5202
2023-09-10 02:57:13 +02:00
Sebastiano Barezzi
ae629afa8c hidl: biometrics: fingerprint: Rebrand to Nothing
Change-Id: Icd5dfab05ca571ef36e8b2b1ce1bad9239877282
2023-09-10 02:56:42 +02:00
Sebastiano Barezzi
547d09425f hidl: biometrics: fingerprint: Import AOSP fingerprint hardware header
This will be customized with Nothing changes further down the line.

Based off 1ae7379baa

Change-Id: I9fff79d0052c09bc17fcd58489c828cb435c7498
2023-09-10 02:54:05 +02:00
Sebastiano Barezzi
1203b989f8 hidl: biometrics: fingerprint: Import AOSP 2.1 HIDL service
Change-Id: I585fa0469e5186a86f29a11aa35aed2c25e78b55
2023-09-10 02:53:47 +02:00