From 768314f7a796ea9bc3a604ca7a09d7126c06754b Mon Sep 17 00:00:00 2001 From: Mark Chang Date: Wed, 10 Jan 2024 05:39:45 +0000 Subject: [PATCH 1/2] init: start twoshay on boot. Bug: 273163806 Test: twoshay launched successfully. Change-Id: I443f8a6105145595f0bc7fbbc20536f0e3994d92 Signed-off-by: Mark Chang --- conf/init.comet.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.comet.rc b/conf/init.comet.rc index d8f7b8b..f2b0c24 100644 --- a/conf/init.comet.rc +++ b/conf/init.comet.rc @@ -116,3 +116,6 @@ on fs on init setprop ro.hardware.fingerprint "fpc" +# Start the twoshay touch service +on property:sys.boot_completed=1 + start twoshay From 4827f9dc06e8f54c77d11dedc18aee92251f0b34 Mon Sep 17 00:00:00 2001 From: Wendly Li Date: Fri, 12 Jan 2024 09:39:16 +0000 Subject: [PATCH 2/2] init: modify touch offload permission for twoshay Bug: 273163806 Test: twoshay launched successfully. Change-Id: I16ca4d79ae833f4d85aba2ac922b1fd3d62530d1 Signed-off-by: Wendly Li --- conf/init.comet.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/init.comet.rc b/conf/init.comet.rc index f2b0c24..ce9a8db 100644 --- a/conf/init.comet.rc +++ b/conf/init.comet.rc @@ -118,4 +118,8 @@ on init # Start the twoshay touch service on property:sys.boot_completed=1 + chown system input /dev/touch_offload + chown system input /dev/touch_offload_outer + chmod 660 /dev/touch_offload + chmod 660 /dev/touch_offload_outer start twoshay