On the current trigger, twoshay starts before it has permissions to read the touch_offload devices and gives the following errors: twoshay.twoshay_pipeline: Failed to open file with ret = -13 twoshay.twoshay_pipeline: Failed to open file with ret = -13 Bug: 216331251 Test: twoshay starts without the above errors Change-Id: Iaad7600d3245174157ae01d8959f86bc79cb995e Signed-off-by: Steve Pfetsch <spfetsch@google.com>
26 lines
936 B
Text
26 lines
936 B
Text
# Bluejay specific init.rc
|
|
import /vendor/etc/init/hw/init.gs101.rc
|
|
import /vendor/etc/init/hw/init.blueport.rc
|
|
|
|
# Start the twoshay touch service
|
|
on property:vendor.device.modules.ready=1
|
|
start twoshay
|
|
|
|
# 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
|
|
|
|
on post-fs-data
|
|
# Fingerprint
|
|
chown system system /dev/goodix_fp
|
|
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g7.app
|
|
|
|
# Speaker amp permission
|
|
chmod 644 /mnt/vendor/persist/audio/speaker.cal
|
|
|
|
# Ensure Camera sound is enforced audible for JP SKU
|
|
on property:ro.boot.hardware.sku=GB17L
|
|
setprop audio.camerasound.force true
|