blob: 18d2f98c4daccc441406923fbd9931126ed96bf5 [file] [log] [blame]
service rename_eth0 /apex/com.google.cf.wifi/bin/rename_netiface eth0 buried_eth0
user root
oneshot
# For legacy wifi without openwrt
service setup_wifi /apex/com.google.cf.wifi/bin/setup_wifi --interface=${ro.vendor.virtwifi.port}
user root
oneshot
# For wifi with openwrt
service init_wifi_sh /apex/com.google.cf.wifi/bin/init.wifi
class late_start
user root
group root wakelock wifi
oneshot
disabled # Started on post-fs-data
service wpa_supplicant /apex/com.google.cf.wifi/bin/hw/wpa_supplicant \
-O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1p2p_device=1 \
-m/apex/com.google.cf.wifi/etc/wifi/p2p_supplicant.conf \
-g@android:wpa_wlan0 -dd
interface aidl android.hardware.wifi.supplicant.ISupplicant/default
socket wpa_wlan0 dgram 660 wifi wifi
group system wifi inet
user root
disabled
oneshot
service hostapd /apex/com.google.cf.wifi/bin/hw/hostapd_cf
interface aidl android.hardware.wifi.hostapd.IHostapd/default
class main
capabilities NET_ADMIN NET_RAW
user wifi
group wifi net_raw net_admin
disabled
oneshot