sm6150-common: rootdir: Setup file permissions for fpc

* These are used by courbet/surya/sweet

Change-Id: I605f305ab30fdbc3dd0a3afc6375cd039e5e8117
This commit is contained in:
Noonlord 2022-06-28 17:00:21 +05:30 committed by basamaryan
parent 88e2493867
commit b670e7124d

View File

@ -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