安卓连接WIFI后显示“已连接但无法访问互联网”等问题

安卓版本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

暧昧贴

发表评论

    微笑 大笑 拽 大哭 奸笑 流汗 喷血 生气 囧 不爽 晕 示爱 卖萌 吃惊 迷离 爱你 吓死了 呵呵