touch: akita: Add command to follow touch_sensitivity prop

Bug: 263231128
Test: Manual test
Change-Id: I06541638051ff8ac1e646a9c89bbccab61eb0bb0
Signed-off-by: Ravi Jain <raviajain@google.com>
This commit is contained in:
Ravi Jain 2023-05-04 13:51:18 +08:00
parent 7f32f2b7ed
commit f722a2e935

View file

@ -37,6 +37,13 @@ on post-fs-data
on post-fs-data on post-fs-data
chown bluetooth system /proc/bluetooth/timesync chown bluetooth system /proc/bluetooth/timesync
# 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
# Haptics # Haptics
on property:vendor.all.modules.ready=1 on property:vendor.all.modules.ready=1
mkdir /mnt/vendor/persist/haptics 0770 system system mkdir /mnt/vendor/persist/haptics 0770 system system