admin管理员组文章数量:1530085
最近捡垃圾淘了一个Kindle fireHD7 三代机器,卖家给刷了7.1.2的安卓系统。到手后发现WIFI功能用不了。不管连WIFI还是连热点,都会提示“已连接,但无法访问互联网”,网上查了半天都是说把WIFI里IP设置改成静态,但这个机子改了静态也还是一眼,重启什么的也都试了不行。最后用下面的方法解决了。
需要先在电脑上下载配置adb工具,这一步可以去网上搜一下教程,或者直接参考以下教程:【ADB】adb命令的安装和使用(超级详细,命令大全)
先把手机连上电脑,打开USB调试。
在电脑上开始菜单输入cmd,打开命令提示符,分别输入以下两个命令:
#每一行命令都要按一下回车
cd desktop
#访问桌面路径
adb devices
#连接设备,如果回车后出现一行“List of devices attached xxxxxxx”,有显示xxx的代码就表示设备已经正常连接上了
然后根据手机安卓系统,输入下面的命令并执行:
#安卓版本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
以上内容主要参考以下作者内容,因为原网址需要科学上网才可访问,且没有前置说明,因此发布本篇内容,附上原址:
https://www.evil42/index.php/archives/17/
版权声明:本文标题:安卓连接WIFI后显示“已连接但无法访问互联网”,IP设置改静态也无法解决。低版本安卓问题。 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1726592162a1076591.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论