1.管理员打开cmd,cd到ADB命令包(补充cd命令,切换盘符:cd /d f:/,cd进入文件夹:cd ADB)。
2.手机打开开发者模式,开启USB调试。
3.打开cmd,输入命令
Android5.0 6.0
adb shell settings put global captive_portal_detection_enabled 0
android7.1/7.0
adb shell settings delete global captive_portal_server
adb shell settings put global captive_portal_detection_enabled 0
android9.0/8.1/8.0/7.1.2/7.1.1
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
4.回车运行命令
5.命令执行完毕,手机开启飞行模式、关闭飞行模式,感叹号消失。
ADB工具包:点此下载 提取码:4fct
Google开发者网站:点此前往