device_google_pantah/conf/init.panther.rc
Robin Peng 26d9dab173 init: remove twoshay HAL init trigger condition 'on late-init'
Bug: 238853979
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: I625c75f1e1f4d8c46bbe43e92e6311ddeb80788b
2022-07-20 12:48:27 +08:00

20 lines
785 B
Text

# Panther specific init.rc
import /vendor/etc/init/hw/init.gs201.rc
import /vendor/etc/init/hw/init.pantah.rc
on property:vendor.device.modules.ready=1
# Start the twoshay touch service
start twoshay
# 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
# For Japan sku, always enforce camera shutter sound
# Since this property is read by the audio server in system service,
# it should be written by the system init.
on property:ro.boot.hardware.sku=G03Z5
setprop audio.camerasound.force true