如何消除原生Android原生网络连接显示x或者惊叹号
16lz
2021-01-23
Android 7及之后的版本输入如下两个命令:
adb shell “settings put global captive_portal_http_url http://www.google.cn/generate_204”
adb shell “settings put global captive_portal_https_url https://www.google.cn/generate_204”
7之前的版本运行如下的命令:
adb shell “settings put global captive_portal_serverhttp://www.google.cn/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
更多相关文章
- 使用logcat命令
- Android获得屏幕高度和状态栏高度
- build.gradle文件介绍,gradle版本对应
- Android SDK Manager无法获取其他版本的问题
- 修改 android版本 签名问题
- android 学习五 设置应用程序全屏(没有状态栏和标题栏)
- 修改android版本号
- android获取系统wifi状态等