最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

如何消除原生Android原生网络连接显示x或者惊叹号

运维笔记admin5浏览0评论

Android 7及之后的版本输入如下两个命令:
adb shell “settings put global captive_portal_http_url http://www.google/generate_204”
adb shell “settings put global captive_portal_https_url https://www.google/generate_204”

7之前的版本运行如下的命令:
adb shell “settings put global captive_portal_serverhttp://www.google/generate_204”

可以输入如下命令, 禁止检测网络连接状态.
adb shell settings put global captive_portal_detection_enabled 0

可以输入如下命令, 打开检测网络连接状态.
adb shell settings put global captive_portal_detection_enabled 1

可以输入如下的命令查看所支持的所有选项:
adb shell settings list global

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论