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 <wendlyli@google.com>
This commit is contained in:
Wendly Li 2022-06-24 10:08:22 +00:00
parent acdc4a4889
commit 65f8ae9d06

View File

@ -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