From cda6bb7dd8a70d805a01b0f03c95cafe7b4366f1 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Wed, 26 Feb 2020 17:04:58 +0800 Subject: sdm660-common: Move fp/tp sysfs permissions to common Change-Id: Icbe9222213cca38cce1fe5666ff5a4c4032289f3 --- ...etrics.fingerprint@2.1-service.xiaomi_sdm660.rc | 30 ++++++++++++++++++++++ rootdir/etc/init.target.rc | 5 ++++ 2 files changed, 35 insertions(+) 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 c0d85da..301999e 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,6 +2,36 @@ on init chown system system /dev/goodix_fp chmod 0644 /dev/goodix_fp + 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/proximity_state + chown system system /sys/bus/platform/devices/soc:fingerprint_goodix/proximity_state + chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/irq + chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/wakeup_enable + chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/hw_reset + chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/device_prepare + chmod 0700 /sys/bus/platform/devices/soc:fingerprint_fpc/vendor + + chown system system /sys/bus/platform/devices/soc:fpc1020/irq + chown system system /sys/bus/platform/devices/soc:fpc1020/irq_enable + chown system system /sys/bus/platform/devices/soc:fpc1020/wakeup_enable + chown system system /sys/bus/platform/devices/soc:fpc1020/hw_reset + chown system system /sys/bus/platform/devices/soc:fpc1020/device_prepare + chown system system /sys/bus/platform/devices/soc:fpc1020/fingerdown_wait + chown system system /sys/bus/platform/devices/soc:fpc1020/vendor + chown system system /sys/bus/platform/devices/soc:fpc1020/proximity_state + chown system system /sys/bus/platform/devices/soc:goodix_fp/proximity_state + chmod 0700 /sys/bus/platform/devices/soc:fpc1020/irq + chmod 0700 /sys/bus/platform/devices/soc:fpc1020/wakeup_enable + chmod 0700 /sys/bus/platform/devices/soc:fpc1020/hw_reset + chmod 0700 /sys/bus/platform/devices/soc:fpc1020/device_prepare + chmod 0700 /sys/bus/platform/devices/soc:fpc1020/vendor + on post-fs-data mkdir /data/vendor/fpc 0770 system system mkdir /data/vendor/goodix 0770 system system diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 83f0499..bbbbfbb 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -104,6 +104,11 @@ on boot write /sys/module/usb_f_qcrndis/parameters/rndis_dl_max_xfer_size 15916 setprop sys.usb.configfs 1 + # Touchpanel + chown system system /sys/touchpanel/capacitive_keys + chown system system /sys/touchpanel/double_tap + chown system system /sys/touchpanel/reversed_keys + #Peripheral manager service vendor.per_mgr /system/vendor/bin/pm-service class core -- cgit v1.2.3