4f7d9d0188
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: Ia51ceb43ac940dfdae733919fbd685156d082568 Signed-off-by: pix106 <sbordenave@gmail.com>
65 lines
3.4 KiB
Text
65 lines
3.4 KiB
Text
on boot
|
|
chown system system /dev/goodix_fp
|
|
chmod 0644 /dev/goodix_fp
|
|
|
|
chown system system /sys/bus/platform/devices/soc:fpc1020/irq
|
|
chown system system /sys/bus/platform/devices/soc:fpc1020/wakeup_enable
|
|
chown system system /sys/bus/platform/devices/soc:fpc1020/hw_reset
|
|
chown system system /sys/bus/platform/devices/soc:fpc1020/device_prepare
|
|
chown system system /sys/bus/platform/devices/soc:fpc1020/compatible_all
|
|
chown system system /data/misc/fpc/calibration_image.pndat
|
|
chmod 0700 /sys/bus/platform/devices/soc:fpc1020/irq
|
|
chmod 0700 /sys/bus/platform/devices/soc:fpc1020/wakeup_enable
|
|
chmod 0700 /sys/bus/platform/devices/soc:fpc1020/hw_reset
|
|
chmod 0700 /sys/bus/platform/devices/soc:fpc1020/device_prepare
|
|
chmod 0700 /sys/bus/platform/devices/soc:fpc1020/compatible_all
|
|
chmod 0600 /data/misc/fpc/calibration_image.pndat
|
|
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/irq
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/irq_enable
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/wakeup_enable
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/hw_reset
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/device_prepare
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/fingerdown_wait
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/vendor
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/regulator_enable
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/screen_status
|
|
chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/vreg_op_cnt
|
|
|
|
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/irq
|
|
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/wakeup_enable
|
|
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/hw_reset
|
|
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/device_prepare
|
|
chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/vendor
|
|
chmod 0660 /sys/bus/platform/devices/soc:fingerprint_fpc/regulator_enable
|
|
chmod 0660 /sys/bus/platform/devices/soc:fingerprint_fpc/screen_status
|
|
chmod 0660 /sys/bus/platform/devices/soc:fingerprint_fpc/vreg_op_cnt
|
|
|
|
chown system system /sys/devices/soc/soc:fpc1020/fingerdown_wait
|
|
chmod 0220 /sys/devices/soc/soc:fpc1020/fingerdown_wait
|
|
chown system system /sys/devices/soc/soc:fpc1020/irq
|
|
chmod 0660 /sys/devices/soc/soc:fpc1020/irq
|
|
chown system system /sys/devices/soc/soc:fpc1020/hw_reset
|
|
chmod 0660 /sys/devices/soc/soc:fpc1020/hw_reset
|
|
chown system system /sys/devices/soc/soc:fpc1020/wakeup_enable
|
|
chmod 0660 /sys/devices/soc/soc:fpc1020/wakeup_enable
|
|
|
|
on post-fs-data
|
|
mkdir /data/misc/fpc 0770 system system
|
|
mkdir /data/misc/goodix 0770 system system
|
|
mkdir /persist/fpc 0770 system system
|
|
mkdir /data/vendor/goodix 0770 system system
|
|
mkdir /data/vendor/fpc 0770 system system
|
|
copy /data/vendor/fpc/user.db /data/vendor_de/0/fpdata/user.db
|
|
chown system system /data/vendor_de/0/fpdata/user.db
|
|
|
|
service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660
|
|
interface android.hardware.biometrics.fingerprint@2.1::IBiometricsFingerprint default
|
|
class late_start
|
|
user system
|
|
group system uhid input
|
|
|
|
service vendor.goodix_script /vendor/bin/init.goodix.sh
|
|
class late_start
|
|
user system
|
|
oneshot
|