1# Caiman 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_caiman 21 22service insmod_sh_caiman /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# 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# Bluetooth 46on post-fs-data 47 chown bluetooth system /proc/bluetooth/timesync 48 49# Thermal 50on late-init && property:ro.boot.hardware.revision=PROTO1.0 51 setprop vendor.thermal.config "thermal_info_config_proto.json" 52 53on late-init && property:ro.boot.hardware.revision=PROTO1.1 54 setprop vendor.thermal.config "thermal_info_config_proto.json" 55 56# Toggle high_sensitivity according to touch_sensitivity_mode 57on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1 58 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 0 59 60on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 61 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1 62 63# ODPM 64on early-boot && property:ro.boot.hardware.sku=GEC77 65 write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" 66 write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" 67on early-boot && property:ro.boot.hardware.sku=GWVK6 68 write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" 69 write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" 70 71# Start the twoshay touch service 72on property:sys.boot_completed=1 73 chown system input /dev/touch_offload 74 chmod 660 /dev/touch_offload 75 start twoshay 76 77# For Japan sku, always enforce camera shutter sound 78# Since this property is read by the audio server in system service, 79# it should be written by the system init. 80on property:ro.boot.hardware.sku=GWVK6 81 setprop audio.camerasound.force true 82 83# Check serial no. from specific CM4 devices for audio. 84on property:ro.boot.serialno=* 85 setprop vendor.audio_hal.device.serialno ${ro.boot.serialno} 86