summaryrefslogtreecommitdiff
path: root/biometrics
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-02-01 23:43:05 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:48:54 +0300
commit53d45e5edd639900f4f4d654046c3422803ddf29 (patch)
tree3b4c982e4a557d172e7f72f8488ab44c7c5690dd /biometrics
parent5d639aa1bdf8cb642c23207b181e5a897011cedf (diff)
sdm660-common: Decommonize init stuff
Change-Id: Ia07f7122ef9712be89ceb5b923e5e6edbb3b4c62
Diffstat (limited to 'biometrics')
-rw-r--r--biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc22
1 files changed, 5 insertions, 17 deletions
diff --git a/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc b/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc
index f789014..c0d85da 100644
--- a/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc
+++ b/biometrics/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc
@@ -2,27 +2,15 @@ on init
chown system system /dev/goodix_fp
chmod 0644 /dev/goodix_fp
-on boot
- 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
- chmod 0600 /data/misc/fpc/calibration_image.pndat
-
on post-fs-data
- mkdir /persist/qti_fp 0700 system system
mkdir /data/vendor/fpc 0770 system system
mkdir /data/vendor/goodix 0770 system system
- mkdir /mnt/vendor/persist/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
- rm /data/vendor/fpc/user.db
service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660
+ # "class hal" causes a race condition on some devices due to files created
+ # in /data. As a workaround, postpone startup until later in boot once
+ # /data is mounted.
class late_start
user system
- group system uhid input
+ group system input uhid
+ writepid /dev/cpuset/system-background/tasks