通过adb操作移动设备wifi

偶尔会有特殊需求,需要在测试时操控手机的wifi网络连接或者断开,通过adb命令直接执行就很方便

adb -s {设备id} shell "svc wifi enable" 
adb -s {设备id} shell "svc wifi disable"