tg4: support touch sensitivity mode switching
Write the sysfs node to set touch sensitivity mode when the property changes. Bug: 315239048 Test: toggle the touch sensitivity button in Settings and check log. Change-Id: I02d1bc2051264a136d1487d63e295259c31f2980 Signed-off-by: Blackbear Chou <blackbearchou@google.com>
This commit is contained in:
parent
5cf1e9c5f0
commit
7f105f6b59
1 changed files with 8 additions and 0 deletions
|
@ -47,3 +47,11 @@ on property:sys.boot_completed=1
|
|||
chown system input /dev/touch_offload
|
||||
chmod 660 /dev/touch_offload
|
||||
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