From e459970564aa9d9ba73d495f50340daa6879c821 Mon Sep 17 00:00:00 2001 From: Wendly Li Date: Fri, 6 Jan 2023 16:21:21 +0000 Subject: [PATCH] shiba: support touch sensitivity mode switching Bug: 243078968 Bug: 243079504 Test: toggle the touch sensitivity button in Settings and check log. Change-Id: I30e8343a1e5bba91665b5b290b5cfcfbbcc0cf47 Signed-off-by: Wendly Li --- conf/init.shiba.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/init.shiba.rc b/conf/init.shiba.rc index 98fdab9..9fd428e 100644 --- a/conf/init.shiba.rc +++ b/conf/init.shiba.rc @@ -54,3 +54,9 @@ on post-fs-data on property:vendor.device.modules.ready=1 start twoshay +# Toggle high_sensitivity according to touch_sensitivity_mode +on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1 + write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 0 + +on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 + write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1