WIFI on:
adb shell svc wifi enable
WIFI off:
adb shell svc wifi disable
使用wpa_supplicant, wpa_cli连接wifi
如果对应的命令没有需要从源码编译后,导入到/system/bin目录下,修改权限755
dhcpcd目录 \external\dhcpcd-6.8.2
wpa_cli \external\wpa_supplicant_8 编译后会生成该文件
1 | wpa_supplicant.conf目录 |
1 | #/system/bin/sh |
debug WifiStateMachine 程序需要debug system process进程