From b670e7124d98674f260c569e60ed6936599a6ec9 Mon Sep 17 00:00:00 2001 From: Noonlord Date: Tue, 28 Jun 2022 17:00:21 +0530 Subject: [PATCH] sm6150-common: rootdir: Setup file permissions for fpc * These are used by courbet/surya/sweet Change-Id: I605f305ab30fdbc3dd0a3afc6375cd039e5e8117 --- rootdir/etc/init.target.rc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 50d1a4f..11f728b 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -84,6 +84,7 @@ on post-fs-data # Create fingerprint related directory mkdir /data/vendor/fpc 0770 system system mkdir /data/vendor/goodix 0770 system system + mkdir /mnt/vendor/persist/fpc 0770 system system on boot start rmt_storage @@ -104,6 +105,19 @@ on boot chmod 0660 /dev/xiaomi-touch # Set fingerprint related permissions + 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/request_vreg + chown system system /sys/bus/platform/devices/soc:fingerprint_fpc/power_cfg + chown system system /sys/bus/platform/devices/soc/soc:fpc1020/irq chown system system /sys/bus/platform/devices/soc/soc:fpc1020/wakeup_enable chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui