1# Komodo specific init.rc 2import /vendor/etc/init/hw/init.${ro.board.platform}.board.rc 3 4on init && property:ro.vendor.factory=1 5 import /vendor/etc/init/hw/init.factory.rc 6 7on init && property:ro.boot.hardware.platform=zuma 8 setprop vendor.powerhal.config powerhint-proto.json 9 10on init 11 # eSE streset tool name 12 setprop persist.vendor.se.streset libstreset24 13# No se_chip_en for P1.0 14on late-init && property:ro.boot.hardware.revision=PROTO1.0 15 setprop persist.vendor.se.reset.chip_en false 16 17on early-boot 18 # Wait for insmod_sh to finish all common modules 19 wait_for_prop vendor.common.modules.ready 1 20 start insmod_sh_komodo 21 22service insmod_sh_komodo /vendor/bin/insmod.sh /vendor_dlkm/etc/init.insmod.${ro.hardware}.cfg 23 class main 24 user root 25 group root system 26 disabled 27 oneshot 28 29on property:vendor.mfgapi.touchpanel.permission=1 30 chmod 0600 /sys/devices/virtual/sec/tsp/cmd 31 chown system system /sys/devices/virtual/sec/tsp/cmd 32 33# Permissions for display 34on fs 35 chown system system /sys/class/backlight/panel0-backlight/acl_mode 36 37 # Permission for SSC mode enable 38 chown system system /sys/class/backlight/panel0-backlight/ssc_en 39 chmod 664 /sys/class/backlight/panel0-backlight/ssc_en 40 41# WiFi 42on post-fs-data 43 setprop wifi.direct.interface p2p-dev-wlan0 44 setprop wifi.aware.interface aware_nmi0 45 46 # Speaker amp permission 47 chmod 644 /mnt/vendor/persist/audio/speaker.cal 48 49# Bluetooth 50on post-fs-data 51 chown bluetooth system /proc/bluetooth/timesync 52 53# Thermal 54on late-init && property:ro.boot.hardware.revision=PROTO1.0 55 setprop vendor.thermal.config "thermal_info_config_proto.json" 56 57on late-init && property:ro.boot.hardware.revision=PROTO1.1 58 setprop vendor.thermal.config "thermal_info_config_proto.json" 59 60# Toggle high_sensitivity according to touch_sensitivity_mode 61on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1 62 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 0 63 64on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 65 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1 66 67# ODPM 68on early-boot && property:ro.boot.hardware.sku=GZC4K 69 write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" 70 write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" 71on early-boot && property:ro.boot.hardware.sku=GQ57S 72 write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" 73 write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" 74 75# Start the twoshay touch service 76on property:sys.boot_completed=1 77 chown system input /dev/touch_offload 78 chmod 660 /dev/touch_offload 79 start twoshay 80 81# For Japan sku, always enforce camera shutter sound 82# Since this property is read by the audio server in system service, 83# it should be written by the system init. 84on property:ro.boot.hardware.sku=GQ57S 85 setprop audio.camerasound.force true 86 87# Check serial no. from specific KM4 devices for audio. 88on property:ro.boot.serialno=* 89 setprop vendor.audio_hal.device.serialno ${ro.boot.serialno} 90