Route a debug system property to a persist system property to control the touch driver attribute file glove_mode. 0: default sensitivity mode (default) 1: high sensitivity mode Bug: 199105017 Test: manual test Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I30f91ebaf4ea2bb2d2db6090f035e0ba7ea37056
10 lines
440 B
Text
10 lines
440 B
Text
# Panther specific init.rc
|
|
import /vendor/etc/init/hw/init.gs201.rc
|
|
import /vendor/etc/init/hw/init.pantah.rc
|
|
|
|
# Toggle glove_mode according to touch_sensitivity_mode
|
|
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
|
|
write /proc/focaltech_touch/high_sensitivity 0
|
|
|
|
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
|
|
write /proc/focaltech_touch/high_sensitivity 1
|