Merge "husky: support touch sensitivity mode switching"

This commit is contained in:
TreeHugger Robot 2023-02-02 06:46:49 +00:00 committed by Android (Google) Code Review
commit e201f839ef

View file

@ -55,3 +55,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