init: modify touch offload permission for twoshay

Move setup to boot_completed for fixing the issue that the device node
might not be exist at vendor.device.modules.ready.

Bug: 273163806
Test: twoshay launched successfully.
Change-Id: I01d09d0c651631dbdbb6dabf9e45872de7580fc2
Signed-off-by: Wendly Li <wendlyli@google.com>
This commit is contained in:
Wendly Li 2024-01-12 09:47:19 +00:00
parent 65f48864fd
commit 2a22fae74a
3 changed files with 6 additions and 0 deletions

View file

@ -62,4 +62,6 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet
# Start the twoshay touch service
on property:sys.boot_completed=1
chown system input /dev/touch_offload
chmod 660 /dev/touch_offload
start twoshay