Android更改Captive Portal去掉信号标识的叉叉(Windows)

把手机连接电脑( https://developer.android.google.cn/studio/run/win-usb?hl=zh-cn ),开启ADB调试,下载ADB Kits(http://adbshell.com/upload/adb.zip

打开CMD,使用ADB连接手机(http://adbshell.com/commands/adb-connect),按顺序输入以下命令

#删除变量:(删除以后默认启用)
adb shell settings delete global captive_portal_mode
#关闭检测:
adb shell settings put global captive_portal_mode 0
#查看当前状态:
adb shell settings get global captive_portal_mode
#删除(删除默认用HTTPS)
adb shell settings delete global captive_portal_https_url
adb shell settings delete global captive_portal_http_url
#分别修改两个地址
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204