From 2a22fae74a17688e7856a50f761872642d22ea0e Mon Sep 17 00:00:00 2001 From: Wendly Li Date: Fri, 12 Jan 2024 09:47:19 +0000 Subject: [PATCH] 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 --- conf/init.caiman.rc | 2 ++ conf/init.komodo.rc | 2 ++ conf/init.tokay.rc | 2 ++ 3 files changed, 6 insertions(+) diff --git a/conf/init.caiman.rc b/conf/init.caiman.rc index ace8037d..babf340c 100644 --- a/conf/init.caiman.rc +++ b/conf/init.caiman.rc @@ -58,4 +58,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 diff --git a/conf/init.komodo.rc b/conf/init.komodo.rc index aadbe0e6..1c48aca0 100644 --- a/conf/init.komodo.rc +++ b/conf/init.komodo.rc @@ -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 diff --git a/conf/init.tokay.rc b/conf/init.tokay.rc index 06f5d9a9..0cafe305 100644 --- a/conf/init.tokay.rc +++ b/conf/init.tokay.rc @@ -58,4 +58,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