device_google_tegu/conf/init.tegu.rc
Charles Yo 2c25cf22b8 Load init.rc based on SOC
Sync the logic with others
Init should load proper init.rc based on SOC

Bug: 292852781
Bug: 311016628
Test: flash dev device and make sure init.zumapro.rc is loaded.
Change-Id: I2c391c8975ec593a23708b4b8741d260edb35f5a
Signed-off-by: Charles Yo <charlesyo@google.com>
2023-11-23 02:34:26 +00:00

37 lines
1,012 B
Text

# Tegu 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
# 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_tegu
service insmod_sh_tegu /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