support touch sensitivity mode switching
Bug: 285324418 Bug: 285247159 Bug: 285328673 Test: toggle the touch sensitivity button in Settings and check log. Change-Id: I8b50fbb9e0885ff8d131b417ecd7db3fe462ba6e Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
This commit is contained in:
parent
8438dadcd7
commit
df145609be
3 changed files with 21 additions and 0 deletions
|
@ -48,3 +48,10 @@ on late-init && property:ro.boot.hardware.revision=PROTO1.0
|
||||||
|
|
||||||
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
||||||
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
|
@ -48,3 +48,10 @@ on late-init && property:ro.boot.hardware.revision=PROTO1.0
|
||||||
|
|
||||||
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
||||||
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
|
@ -48,3 +48,10 @@ on late-init && property:ro.boot.hardware.revision=PROTO1.0
|
||||||
|
|
||||||
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
||||||
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
||||||
|
|
||||||
|
# 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