device_google_caimito/conf/init.tokay.rc
Zheng Pan 15c6a436bf Load init.rc based on SOC
P24 proto devices use zuma and devices starting from EVT use zumapro
Init should load proper init.rc based on SOC

Bug: 311016628
Test: flash KM4 proto and make sure init.zuma.rc is loaded.
Change-Id: I3d0bef4ad23cb3f0cda527934e09252a8d34e35a
2023-11-16 20:12:30 -08:00

47 lines
1.4 KiB
Text

# Tokay specific init.rc
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.rc
on init && property:ro.vendor.factory=1
import /vendor/etc/init/hw/init.factory.rc
on init && property:ro.boot.hardware.platform=zuma
setprop vendor.powerhal.config powerhint-proto.json
on init
# eSE streset tool name
setprop persist.vendor.se.streset libstreset24
on early-boot
# Wait for insmod_sh to finish all common modules
wait_for_prop vendor.common.modules.ready 1
start insmod_sh_tokay
service insmod_sh_tokay /vendor/bin/insmod.sh /vendor_dlkm/etc/init.insmod.${ro.hardware}.cfg
class main
user root
group root system
disabled
oneshot
on property:vendor.mfgapi.touchpanel.permission=1
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
chown system system /sys/devices/virtual/sec/tsp/cmd
# WiFi
on post-fs-data
setprop wifi.direct.interface p2p-dev-wlan0
setprop wifi.aware.interface aware_nmi0
# Speaker amp permission
chmod 644 /mnt/vendor/persist/audio/speaker.cal
# Bluetooth
on post-fs-data
chown bluetooth system /proc/bluetooth/timesync
# Thermal
on late-init && property:ro.boot.hardware.revision=PROTO1.0
setprop vendor.thermal.config "thermal_info_config_proto.json"
on late-init && property:ro.boot.hardware.revision=PROTO1.1
setprop vendor.thermal.config "thermal_info_config_proto.json"