1# Bluejay specific init.rc 2import /vendor/etc/init/hw/init.gs101.rc 3import /vendor/etc/init/hw/init.blueport.rc 4 5# Start the twoshay touch service 6on property:vendor.device.modules.ready=1 7 start twoshay 8 9# Toggle glove_mode according to touch_sensitivity_mode 10on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1 11 write /sys/class/spi_master/spi11/spi11.0/glove_mode 00 12 13on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 14 write /sys/class/spi_master/spi11/spi11.0/glove_mode 01 15 16on post-fs-data 17 # Speaker amp permission 18 chmod 644 /mnt/vendor/persist/audio/speaker.cal 19 20# Ensure Camera sound is enforced audible for JP SKU 21on property:ro.boot.hardware.sku=GB17L 22 setprop audio.camerasound.force true 23 24# charger driver exposes now finer grain control, map demo mode to those properties 25# NOTE: demo mode can only be exit wiping data (which reset the persist properties) 26on property:sys.retaildemo.enabled=1 27 setprop persist.vendor.charge.stop.level 35 28 setprop persist.vendor.charge.start.level 30 29 30# Haptics 31on property:vendor.all.modules.ready=1 32 mkdir /mnt/vendor/persist/haptics 0770 system system 33 chmod 770 /mnt/vendor/persist/haptics 34 chmod 440 /mnt/vendor/persist/haptics/cs40l26.cal 35 chown system system /mnt/vendor/persist/haptics 36 chown system system /mnt/vendor/persist/haptics/cs40l26.cal 37 38 chown system system /sys/bus/i2c/devices/8-0043/calibration/f0_stored 39 chown system system /sys/bus/i2c/devices/8-0043/calibration/q_stored 40 chown system system /sys/bus/i2c/devices/8-0043/calibration/redc_stored 41 chown system system /sys/bus/i2c/devices/8-0043/default/vibe_state 42 chown system system /sys/bus/i2c/devices/8-0043/default/num_waves 43 chown system system /sys/bus/i2c/devices/8-0043/default/f0_offset 44 chown system system /sys/bus/i2c/devices/8-0043/default/owt_free_space 45 chown system system /sys/bus/i2c/devices/8-0043/default/f0_comp_enable 46 chown system system /sys/bus/i2c/devices/8-0043/default/redc_comp_enable 47 chown system system /sys/bus/i2c/devices/8-0043/default/delay_before_stop_playback_us 48 49 enable vendor.vibrator.cs40l26 50