From 65f8ae9d0613f273bb792441b0a79242c55ae027 Mon Sep 17 00:00:00 2001 From: Wendly Li Date: Fri, 24 Jun 2022 10:08:22 +0000 Subject: [PATCH] L10: support touch sensitivity mode switching Write the sysfs node to set touch sensitivity mode when the property changes. Bug: 199104397 Test: toggle the touch sensitivity button in Settings and check log. Change-Id: Ib64277c807e7c45f8542a6d6c355de4ec53c1a33 Signed-off-by: Wendly Li --- conf/init.lynx.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/init.lynx.rc b/conf/init.lynx.rc index ac7632a..5d754c9 100644 --- a/conf/init.lynx.rc +++ b/conf/init.lynx.rc @@ -62,3 +62,10 @@ service vendor.loc_launcher /system/vendor/bin/loc_launcher user wifi group wifi disabled + +# 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