From 53d45e5edd639900f4f4d654046c3422803ddf29 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sat, 1 Feb 2020 23:43:05 +0800 Subject: sdm660-common: Decommonize init stuff Change-Id: Ia07f7122ef9712be89ceb5b923e5e6edbb3b4c62 --- ...etrics.fingerprint@2.1-service.xiaomi_sdm660.rc | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'biometrics') 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 -- cgit v1.2.3