diff --git a/fingerprint/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm8350.rc b/fingerprint/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm8350.rc index 8130d6b..9236d20 100644 --- a/fingerprint/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm8350.rc +++ b/fingerprint/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm8350.rc @@ -1,3 +1,24 @@ +on init + chown system system /dev/goodix_fp + +on boot + 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/request_vreg + chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/simulate_irq + chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/finger_irq + chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/power_cfg + +on post-fs-data + mkdir /data/vendor/fpc 0770 system system + mkdir /data/vendor/goodix 0770 system system + mkdir /mnt/vendor/persist/goodix 0770 system system + service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm8350 # "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