device_google_caimito/conf/init.tokay.rc
Tai Kuo ecb0bc09cf conf: Move haptics init rc to a common folder
Bug: 285343932
Test: No permission error logs on the HAL init.
Change-Id: I28f6136ab381e659f2a43f777c42132f43bfb874
2023-09-05 17:41:02 +08:00

38 lines
1 KiB
Text

# Tokay specific init.rc
import /vendor/etc/init/hw/init.zumapro.rc
on init && property:ro.vendor.factory=1
import /vendor/etc/init/hw/init.factory.rc
on init
# NFC streset tool name
setprop persist.vendor.nfc.streset libstreset23
setprop persist.vendor.se.streset libstreset23
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