From 92a56c09a737e1c7782260ca4f7a52717481faa2 Mon Sep 17 00:00:00 2001 From: Arian Date: Sun, 6 Mar 2022 22:25:05 +0100 Subject: [PATCH] sm8350-common: fingerprint: Setup file permissions for fpc and goodix Change-Id: Ib0d0b34ee84f349fe40cde3c06f1d1658523d483 --- ...s.fingerprint@2.1-service.xiaomi_sm8350.rc | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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