Browse Source

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 <[email protected]>
Wendly Li 2 năm trước cách đây
mục cha
commit
65f8ae9d06
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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