1service wpa_supplicant /apex/com.google.cf.wpa_supplicant/bin/hw/wpa_supplicant \
2    -O/data/vendor/wifi/wpa/sockets -dd \
3    -g@android:wpa_wlan0
4    #   we will start as root and wpa_supplicant will switch to user wifi
5    #   after setting up the capabilities required for WEXT
6    #   user wifi
7    #   group wifi inet keystore
8    interface aidl android.hardware.wifi.supplicant.ISupplicant/default
9    class main
10    socket wpa_wlan0 dgram 660 wifi wifi
11    user root
12    disabled
13    oneshot
14
15service hostapd /apex/com.google.cf.wpa_supplicant/bin/hw/hostapd
16    interface aidl android.hardware.wifi.hostapd.IHostapd/default
17    class main
18    capabilities NET_ADMIN NET_RAW
19    user wifi
20    group wifi net_raw net_admin
21    disabled
22    oneshot
23