Просмотр исходного кода

L10: support touch sensitivity mode switching am: 65f8ae9d06

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

Change-Id: Ic84ab826bbac6e48cd805959648043e7af75c7a3
Signed-off-by: Automerger Merge Worker <[email protected]>
Wendly Li 2 лет назад
Родитель
Сommit
c919e5d324
1 измененных файлов с 7 добавлено и 0 удалено
  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