support touch sensitivity mode switching
Bug: 273158518 Bug: 273162591 Test: toggle the touch sensitivity button in Settings and check log. Change-Id: Ic02876217e16c6b22510b2ef956d65980afbd9d6 Signed-off-by: Wendly Li <wendlyli@google.com>
This commit is contained in:
parent
25b335fb77
commit
a4b19b8d8c
1 changed files with 7 additions and 0 deletions
|
@ -116,6 +116,13 @@ on fs
|
||||||
on init
|
on init
|
||||||
setprop ro.hardware.fingerprint "fpc"
|
setprop ro.hardware.fingerprint "fpc"
|
||||||
|
|
||||||
|
# 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.1/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.1/screen_protector_mode_enabled 1
|
||||||
|
|
||||||
# Start the twoshay touch service
|
# Start the twoshay touch service
|
||||||
on property:sys.boot_completed=1
|
on property:sys.boot_completed=1
|
||||||
chown system input /dev/touch_offload
|
chown system input /dev/touch_offload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue