How to connect to new WiFi network using adb without rebooting the phone
I have added network entry into the wpa_supplicant.conf and copied the file to /data/misc/wifi folder in my android device.
adb push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
After this I toggle WiFi "off" and "on" but my phone only connects to saved network and it overrides the entries in wpa_supplicant.conf.
If I "forget" the saved network, the device doesn't connect to any network.
Is there any way to force my device to connect to a new WiFi network (without manual intervention) without rebooting the device? My intent is to automate WiFi testing of android device.
链接地址: http://www.djcxy.com/p/65438.html上一篇: 用于将PDF转换为文本的Python模块