1# Ripcurrent specific init.rc 2import /vendor/etc/init/hw/init.zuma.rc 3 4on init && property:ro.vendor.factory=1 5 import /vendor/etc/init/hw/init.factory.rc 6 7on init 8 # NFC streset tool name 9 setprop persist.vendor.nfc.streset libstreset23 10 setprop persist.vendor.se.streset libstreset23 11 12on early-boot 13 # Wait for insmod_sh to finish all common modules 14 wait_for_prop vendor.common.modules.ready 1 15 start insmod_sh_ripcurrent 16 17service insmod_sh_ripcurrent /vendor/bin/insmod.sh /vendor_dlkm/etc/init.insmod.${ro.hardware}.cfg 18 class main 19 user root 20 group root system 21 disabled 22 oneshot 23 24on property:vendor.mfgapi.touchpanel.permission=1 25 chmod 0600 /sys/devices/virtual/sec/tsp/cmd 26 chown system system /sys/devices/virtual/sec/tsp/cmd 27 28# WiFi 29on post-fs-data 30 setprop wifi.direct.interface p2p-dev-wlan0 31 setprop wifi.aware.interface aware_nmi0 32 33 # Speaker amp permission 34 chmod 644 /mnt/vendor/persist/audio/speaker.cal 35 chmod 644 /mnt/vendor/persist/audio/speaker.diag 36 37# Bluetooth 38on post-fs-data 39 chown bluetooth system /proc/bluetooth/timesync 40 41# Haptics 42on property:vendor.all.modules.ready=1 43 mkdir /mnt/vendor/persist/haptics 0770 system system 44 chmod 770 /mnt/vendor/persist/haptics 45 chmod 440 /mnt/vendor/persist/haptics/cs40l26.cal 46 chmod 440 /mnt/vendor/persist/haptics/cs40l26_dual.cal 47 chown system system /mnt/vendor/persist/haptics 48 chown system system /mnt/vendor/persist/haptics/cs40l26.cal 49 chown system system /mnt/vendor/persist/haptics/cs40l26_dual.cal 50 51 chown system system /sys/bus/i2c/devices/0-0043/calibration/f0_stored 52 chown system system /sys/bus/i2c/devices/0-0042/calibration/f0_stored 53 chown system system /sys/bus/i2c/devices/0-0043/calibration/q_stored 54 chown system system /sys/bus/i2c/devices/0-0042/calibration/q_stored 55 chown system system /sys/bus/i2c/devices/0-0043/calibration/redc_stored 56 chown system system /sys/bus/i2c/devices/0-0042/calibration/redc_stored 57 chown system system /sys/bus/i2c/devices/0-0043/default/vibe_state 58 chown system system /sys/bus/i2c/devices/0-0042/default/vibe_state 59 chown system system /sys/bus/i2c/devices/0-0043/default/num_waves 60 chown system system /sys/bus/i2c/devices/0-0042/default/num_waves 61 chown system system /sys/bus/i2c/devices/0-0043/default/f0_offset 62 chown system system /sys/bus/i2c/devices/0-0042/default/f0_offset 63 chown system system /sys/bus/i2c/devices/0-0043/default/owt_free_space 64 chown system system /sys/bus/i2c/devices/0-0042/default/owt_free_space 65 chown system system /sys/bus/i2c/devices/0-0043/default/f0_comp_enable 66 chown system system /sys/bus/i2c/devices/0-0042/default/f0_comp_enable 67 chown system system /sys/bus/i2c/devices/0-0043/default/redc_comp_enable 68 chown system system /sys/bus/i2c/devices/0-0042/default/redc_comp_enable 69 chown system system /sys/bus/i2c/devices/0-0043/default/delay_before_stop_playback_us 70 chown system system /sys/bus/i2c/devices/0-0042/default/delay_before_stop_playback_us 71 72 enable vendor.vibrator.cs40l26 73 enable vendor.vibrator.cs40l26-dual 74