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:
parent
acdc4a4889
commit
65f8ae9d06
1 changed files with 7 additions and 0 deletions
|
@ -62,3 +62,10 @@ service vendor.loc_launcher /system/vendor/bin/loc_launcher
|
||||||
user wifi
|
user wifi
|
||||||
group wifi
|
group wifi
|
||||||
disabled
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue