From 643719c2ac7733bdf4404a65f82841d02fbe3c8d Mon Sep 17 00:00:00 2001 From: Yen-Chao Chen Date: Tue, 26 Dec 2023 14:31:49 +0800 Subject: [PATCH] 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 --- touch/gti/init.touch.gti0.rc | 2 +- touch/gti/init.touch.gti1.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/touch/gti/init.touch.gti0.rc b/touch/gti/init.touch.gti0.rc index 70c6ced..31856ea 100644 --- a/touch/gti/init.touch.gti0.rc +++ b/touch/gti/init.touch.gti0.rc @@ -1,4 +1,4 @@ -on property:vendor.device.modules.ready=1 +on property:sys.boot_completed=1 # 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/fw_ver diff --git a/touch/gti/init.touch.gti1.rc b/touch/gti/init.touch.gti1.rc index 15de6a1..a4de328 100644 --- a/touch/gti/init.touch.gti1.rc +++ b/touch/gti/init.touch.gti1.rc @@ -1,4 +1,4 @@ -on property:vendor.device.modules.ready=1 +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