1# Akita specific init.rc 2import /vendor/etc/init/hw/init.zuma.rc 3 4on early-init && property:ro.product.name=akita_fullmte 5 export SCUDO_OPTIONS allocation_ring_buffer_size=131072 6 7on init && property:ro.vendor.factory=1 8 import /vendor/etc/init/hw/init.factory.rc 9 10on init 11 # NFC streset tool name 12 setprop persist.vendor.nfc.streset libstreset23 13 setprop persist.vendor.se.streset libstreset23 14 setprop dalvik.vm.dexopt.thermal-cutoff 1 15 16on fs 17 # Display permissions for SSC mode 18 chown system system /sys/class/backlight/panel0-backlight/ssc_en 19 chmod 664 /sys/class/backlight/panel0-backlight/ssc_en 20 21on early-boot 22 # Wait for insmod_sh to finish all common modules 23 wait_for_prop vendor.common.modules.ready 1 24 start insmod_sh_akita 25 26service insmod_sh_akita /vendor/bin/insmod.sh /vendor_dlkm/etc/init.insmod.${ro.hardware}.cfg 27 class main 28 user root 29 group root system 30 disabled 31 oneshot 32 33on property:vendor.mfgapi.touchpanel.permission=1 34 chmod 0600 /sys/devices/virtual/sec/tsp/cmd 35 chown system system /sys/devices/virtual/sec/tsp/cmd 36 37# WiFi 38on post-fs-data 39 setprop wifi.direct.interface p2p-dev-wlan0 40 setprop wifi.aware.interface aware_nmi0 41 42 # Speaker amp permission 43 chmod 644 /mnt/vendor/persist/audio/speaker.cal 44 45# Thermal 46on property:vendor.thermal.link_ready=1 47 chown system system /dev/thermal/tz-by-name/charger_therm/trip_point_0_temp 48 chown system system /dev/thermal/tz-by-name/charger_therm/trip_point_0_hyst 49 chown system system /dev/thermal/tz-by-name/modem_therm/trip_point_0_temp 50 chown system system /dev/thermal/tz-by-name/modem_therm/trip_point_0_hyst 51 52on property:ro.boot.hardware.revision=PROTO1.0 53 setprop vendor.thermal.config "thermal_info_config_proto.json" 54 55on property:ro.boot.hardware.revision=PROTO1.1 56 setprop vendor.thermal.config "thermal_info_config_proto.json" 57 58# Bluetooth 59on post-fs-data 60 chown bluetooth system /proc/bluetooth/timesync 61 62# Toggle high_sensitivity according to touch_sensitivity_mode 63on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1 64 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 0 65 66on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 67 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1 68 69# Haptics 70on property:vendor.all.modules.ready=1 71 mkdir /mnt/vendor/persist/haptics 0770 system system 72 chmod 770 /mnt/vendor/persist/haptics 73 chmod 440 /mnt/vendor/persist/haptics/cs40l26.cal 74 chown system system /mnt/vendor/persist/haptics 75 chown system system /mnt/vendor/persist/haptics/cs40l26.cal 76 77 chown system system /sys/bus/i2c/devices/0-0043/calibration/f0_stored 78 chown system system /sys/bus/i2c/devices/0-0043/calibration/q_stored 79 chown system system /sys/bus/i2c/devices/0-0043/calibration/redc_stored 80 chown system system /sys/bus/i2c/devices/0-0043/default/vibe_state 81 chown system system /sys/bus/i2c/devices/0-0043/default/num_waves 82 chown system system /sys/bus/i2c/devices/0-0043/default/f0_offset 83 chown system system /sys/bus/i2c/devices/0-0043/default/owt_free_space 84 chown system system /sys/bus/i2c/devices/0-0043/default/f0_comp_enable 85 chown system system /sys/bus/i2c/devices/0-0043/default/redc_comp_enable 86 chown system system /sys/bus/i2c/devices/0-0043/default/delay_before_stop_playback_us 87 88 enable vendor.vibrator.cs40l26 89 90# Start the twoshay touch service 91on property:vendor.device.modules.ready=1 92 start twoshay 93 94# For Japan sku, always enforce camera shutter sound 95# Since this property is read by the audio server in system service, 96# it should be written by the system init. 97on property:ro.boot.hardware.sku=G576D 98 setprop audio.camerasound.force true 99