安卓版本5.0~6.x适用,依次执行以下命令,每一行代表一个命令
#删除
adb shell settings delete global captive_portal_server
#禁用
adb shell settings put global captive_portal_server 0
#查询状态
adb shell settings get global captive_portal_server
#删除地址就可以恢复默认的谷歌服务器
adb shell settings delete global captive_portal_server
#设置一个可用地址(高通/V2EX都推荐)
adb shell settings put global captive_portal_server captive.v2ex.co
#查询当前地址
adb shell settings get global captive_portal_server
安卓版本7.0~7.1适用,依次执行以下命令,每一行代表一个命令
#删除
adb shell settings delete global captive_portal_server
#禁用
adb shell settings put global captive_portal_server 0
#查询状态
adb shell settings get global captive_portal_server
#删除(直接删除则默认使用HTTPS)
adb shell settings delete global captive_portal_use_https
#禁用HTTPS(写1启用 写0禁用)
adb shell settings put global captive_portal_use_https 0
#查询HTTPS开关状态
adb shell settings get global captive_portal_use_https
#删除地址就可以恢复默认的谷歌服务器
adb shell settings delete global captive_portal_server
#设置一个可用地址(高通/V2EX都推荐)
adb shell settings put global captive_portal_server captive.v2ex.co
#查询当前地址
adb shell settings get global captive_portal_server
安卓版本7.1.1适用,依次执行以下命令,每一行代表一个命令
#删除
adb shell settings delete global captive_portal_server
#禁用
adb shell settings put global captive_portal_server 0
#查询状态
adb shell settings get global captive_portal_server
#删除(直接删除则默认使用HTTPS)
adb shell settings delete global captive_portal_use_https
#禁用HTTPS(写1启用 写0禁用)
adb shell settings put global captive_portal_use_https 0
#查询HTTPS开关状态
adb shell settings get global captive_portal_use_https
#删除(删除默认用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://captive.v2ex.co/generate_204
adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204
安卓版本7.1.2、8.0.0和8.1.0和9.0(Android P)适用,依次执行以下命令,每一行代表一个命令
#删除变量:(删除以后默认启用)
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://captive.v2ex.co/generate_204
adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204
发表评论