husky: support touch sensitivity mode switching
Bug: 267417904 Test: Check logs. Change-Id: I28a9a612b82131277f4f794efdd7ee223c8ee6bb Signed-off-by: davidycchen <davidycchen@google.com>
This commit is contained in:
parent
10a8e9aa8f
commit
ac2dbb165f
1 changed files with 8 additions and 0 deletions
|
@ -56,3 +56,11 @@ on post-fs-data
|
|||
# Start the twoshay touch service
|
||||
on property:vendor.device.modules.ready=1
|
||||
start twoshay
|
||||
|
||||
|
||||
# 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