Yen-Chao Chen 643719c2ac touch/init: change file owner after sys.boot_completed=1
It's possible that the gti sysfs node is not ready when
vendor.device.modules.ready is set so change the gti file owner
at later stage.

Bug: 285327052
Bug: 285247095
Bug: 285323846
Test: trigger bugreport and the dump succeed.

Change-Id: If1921aeb351603b52164c66bc9c7b3651d171287
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-12-26 14:31:49 +08:00

27 lines
1.6 KiB
Plaintext

on property:sys.boot_completed=1
# Sysfs
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/force_active
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/fw_ver
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/interactive_calibrate
chmod 666 /sys/devices/virtual/goog_touch_interface/gti.1/interactive_calibrate
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/panel_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/offload_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/ms_base
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/ms_diff
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/ms_raw
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/self_test
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/ss_base
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/ss_diff
chown system system /sys/devices/virtual/goog_touch_interface/gti.1/ss_raw
# Procfs
chown system system /proc/goog_touch_interface
chown system system /proc/goog_touch_interface/gti.1
chown system system /proc/goog_touch_interface/gti.1/dump
chown system system /proc/goog_touch_interface/gti.1/ms_base
chown system system /proc/goog_touch_interface/gti.1/ms_diff
chown system system /proc/goog_touch_interface/gti.1/ms_raw
chown system system /proc/goog_touch_interface/gti.1/ss_base
chown system system /proc/goog_touch_interface/gti.1/ss_diff
chown system system /proc/goog_touch_interface/gti.1/ss_raw