Sfoglia il codice sorgente

L10: support touch sensitivity mode switching am: 65f8ae9d06 am: c919e5d324

Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/19035013

Change-Id: Ie142e12cb33f3b71ed6ae2076640a82334d18ec2
Signed-off-by: Automerger Merge Worker <[email protected]>
Wendly Li 2 anni fa
parent
commit
699d60ca45
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      conf/init.lynx.rc

+ 7 - 0
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