raviole: support touch sensitivity mode switching am: 7c202b299e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/13841194 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id0f69d0f5ba8669eec0aaea92e343feee55b5aa8
This commit is contained in:
commit
7fe8baae95
2 changed files with 14 additions and 0 deletions
|
@ -27,3 +27,10 @@ on fs
|
|||
# Fingerprint
|
||||
chown system system /dev/goodix_fp
|
||||
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g6.app
|
||||
|
||||
# Toggle glove_mode according to touch_sensitivity_mode
|
||||
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
|
||||
write /sys/class/spi_master/spi11/spi11.0/glove_mode 00
|
||||
|
||||
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
|
||||
write /sys/class/spi_master/spi11/spi11.0/glove_mode 01
|
||||
|
|
|
@ -34,3 +34,10 @@ on fs
|
|||
on property:mfgapi.touchpanel.permission=1
|
||||
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
||||
chown system system /sys/devices/virtual/sec/tsp/cmd
|
||||
|
||||
# Toggle glove_mode according to touch_sensitivity_mode
|
||||
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
|
||||
write /sys/devices/virtual/sec/tsp/cmd "glove_mode,0"
|
||||
|
||||
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
|
||||
write /sys/devices/virtual/sec/tsp/cmd "glove_mode,1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue