Commit Graph

18 Commits

Author SHA1 Message Date
Sebastiano Barezzi
6386a23aa1
xiaomi: Keep a single clang-format in rootdir
Change-Id: Iffe5b37c311dc0ed0c9b5c91a2f94e9ff72f4a8a
2023-11-13 01:39:53 +01:00
Arian
c08b665831 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
2022-09-09 14:01:31 +02:00
Arian
9976b3f15b
hidl: biometrics: fingerprint: Add support for device specific UDFPS libs
Change-Id: I8f29d58b178aa8ff420204f790c6952fdf4ade58
2022-05-13 18:02:35 +02:00
LuK1337
3f1a8dbfe8
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
2022-05-13 18:02:35 +02:00
Sebastiano Barezzi
d6951615ae
hidl: biometrics: fingerprint: Set properties for IFAA
Change-Id: I0b1786721c951cd833d3c20f58cd0c8a70c08fae
2022-05-13 18:02:35 +02:00
LuK1337
873c871046
hidl: biometrics: fingerprint: Fix sde_drm.h include path on 5.4+ kernel
Change-Id: Idac59471ae329eabf8484cc1238c35dabaa64827
2022-05-13 18:02:35 +02:00
Abhishek Aggarwal
06a86b7809
hidl: biometrics: fingerprint: Add surfaceflinger extension lib
Change-Id: I51fb56c0a20e3cac83afb46ed6a6e2f967159d18
2022-05-13 18:02:35 +02:00
C457
cd3f74f3d0
hidl: biometrics: fingerprint: Add support for extCmd
* Xiaomi extends fingerprint_device_t by adding a new method called extCmd used to send vendor specific commands

Change-Id: Ic94f7b3fd28f7db81695e47f54ce6fa89248bde9
2022-05-13 18:02:35 +02:00
Sebastiano Barezzi
39bd52cad5
hidl: biometrics: fingerprint: Add multiple HAL loading support
* Support for sm8450, sm8350, sm6375, sm7325, sm7350, sm8250, sm7250, sm8150, sm6250, sm6150, sdm845, sdm710, msm8998, sdm660

Change-Id: I114640c8520c73213390ad35fa29d218e1852757
2022-05-13 18:02:35 +02:00
Sebastiano Barezzi
c3f110d5f8
hidl: biometrics: fingerprint: Move fingerprint HIDL to 2.3
Change-Id: I2e5ed64ac7ae2f1003503072666204c0788a003a
2022-05-13 18:02:35 +02:00
Sebastiano Barezzi
3c98e02fe1
hidl: biometrics: fingerprint: Drop LOG_VERBOSE
* It's useless since it's the same as LOG_TAG

Change-Id: I1a15ea85f840b7af6d41b59cf01b0ec3c2457705
2022-05-13 18:02:35 +02:00
Jake Weinstein
3b0420cf72
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
2022-05-13 18:02:35 +02:00
Bruno Martins
3067c23575
hidl: biometrics: fingerprint: Use pragma once
Change-Id: I335b0a1b73effa6f9c0b0866052d74dc524ad99b
2022-05-13 18:02:35 +02:00
LuK1337
f5895272f6
hidl: biometrics: fingerprint: Add (and run) clang-format file
Change-Id: Ibb4a56ef02a404717512d7a7f99bc31e2ce442a4
2022-05-13 18:02:35 +02:00
Sebastiano Barezzi
a1c2889d31
hidl: biometrics: fingerprint: Update licensing
Change-Id: I3c4b6f9cac9c560b592bda2d2b662f59024f5202
2022-05-13 18:02:35 +02:00
Sebastiano Barezzi
5ca97f754e
hidl: biometrics: fingerprint: Rebrand to Xiaomi
Change-Id: Icd5dfab05ca571ef36e8b2b1ce1bad9239877282
2022-05-13 18:02:35 +02:00
Sebastiano Barezzi
285a312393
hidl: biometrics: fingerprint: Import AOSP fingerprint hardware header
This will be customized with Xiaomi changes further down the line.

Based off 1ae7379baa

Change-Id: I9fff79d0052c09bc17fcd58489c828cb435c7498
2022-05-13 18:02:35 +02:00
Sebastiano Barezzi
104de29895
hidl: biometrics: fingerprint: Import AOSP 2.1 HIDL service
Change-Id: I585fa0469e5186a86f29a11aa35aed2c25e78b55
2022-05-13 18:02:35 +02:00