2021-05-12 15:30:36 +02:00
|
|
|
# Wi-Fi init file
|
|
|
|
on post-fs-data
|
|
|
|
mkdir /data/vendor/conn 0771 wifi root
|
|
|
|
mkdir /data/vendor/wifi 0771 wifi wifi
|
|
|
|
mkdir /data/vendor/wifi/wpa 0770 wifi wifi
|
|
|
|
mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
|
|
|
|
mkdir /data/vendor/log/wifi 0770 wifi system
|
|
|
|
|
|
|
|
# for WIFI TRP/TIS
|
|
|
|
chown wifi root /data/vendor/conn/.psm.info
|
|
|
|
chmod 0660 /data/vendor/conn/.psm.info
|
|
|
|
|
|
|
|
# for WIFI Antenna Selection
|
|
|
|
chown wifi root /data/vendor/conn/.ant.info
|
|
|
|
chmod 0660 /data/vendor/conn/.ant.info
|
|
|
|
|
|
|
|
# for WIFI Version
|
|
|
|
chown wifi root /data/vendor/conn/.wifiver.info
|
|
|
|
chmod 0664 /data/vendor/conn/.wifiver.info
|
|
|
|
|
|
|
|
# for WIFI MEMDUMP
|
|
|
|
# The default value of below memdump file is set in SecProductFeature
|
|
|
|
#write /data/vendor/conn/.memdump.info 2
|
|
|
|
chown wifi root /data/vendor/conn/.memdump.info
|
|
|
|
chmod 0660 /data/vendor/conn/.memdump.info
|
|
|
|
|
|
|
|
# for WIFI hotspot
|
|
|
|
chown wifi root /data/vendor/conn/.softap.info
|
|
|
|
chmod 0664 /data/vendor/conn/.softap.info
|
|
|
|
chown system wifi /vendor/etc/wifi/indoorchannel.info
|
|
|
|
chmod 0664 /vendor/etc/wifi/indoorchannel.info
|
|
|
|
|
|
|
|
# for WIFI MAC
|
|
|
|
chown wifi root /sys/wifi/mac_addr
|
|
|
|
chmod 0660 /sys/wifi/mac_addr
|
2023-03-30 13:22:53 +02:00
|
|
|
|
2021-05-12 15:30:36 +02:00
|
|
|
on boot
|
|
|
|
setprop wifi.interface wlan0
|
2023-03-30 13:22:53 +02:00
|
|
|
setprop wifi.concurrent.interface swlan0
|
2021-05-12 15:30:36 +02:00
|
|
|
|
|
|
|
# start for WiFi MFG (TestMode)
|
|
|
|
service mfgloader /system/vendor/bin/hw/mfgloader
|
|
|
|
class main
|
|
|
|
disabled
|
|
|
|
oneshot
|
|
|
|
|
2023-03-30 23:10:50 +02:00
|
|
|
service macloader /system/vendor/bin/macloader
|
2021-05-12 15:30:36 +02:00
|
|
|
class main
|
|
|
|
oneshot
|
|
|
|
|
|
|
|
# end of WiFi MFG (TestMode)
|
2023-03-30 13:22:53 +02:00
|
|
|
|
|
|
|
on property:vold.decrypt=trigger_restart_framework
|
|
|
|
exec /system/vendor/bin/hw/macloader
|