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>
This commit is contained in:
Yen-Chao Chen 2023-12-26 14:31:49 +08:00
parent e3e46d4de9
commit 643719c2ac
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
on property:vendor.device.modules.ready=1 on property:sys.boot_completed=1
# Sysfs # Sysfs
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/force_active chown system system /sys/devices/virtual/goog_touch_interface/gti.0/force_active
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/fw_ver chown system system /sys/devices/virtual/goog_touch_interface/gti.0/fw_ver

View File

@ -1,4 +1,4 @@
on property:vendor.device.modules.ready=1 on property:sys.boot_completed=1
# Sysfs # 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/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/fw_ver