1、安卓打开开发者选项,在打开无线调试。
2、使用adb工具连接安卓,放在了百度网盘,注意adb工具版本不能低于1.0.36,将会adb中的
放在C:\Users\23968下
使用如下命令远程调试,wifi连接成功之后需要用tz。
远程链接
adb pair ip:port
再输入WLAN配对码
查看是否有多个设备
adb devices
如有执行以下命令
adb kill-server
adb start-server
adb remount
查看5037端口是否被占用
netstat -ano | findstr “5037”
如被占用执行以下命令
taskkill -f -pid 端口号
删除默认地址
adb shell settings delete global captive_portal_https_url
adb shell settings delete global captive_portal_http_url
再修改新的ip地址
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
修改NTP服务再重启手机
adb shell setprop persist.sys.timezone Asia/Shanghai
adb shell settings put global ntp_server ntp1.aliyun.com
重启
adb reboot