如何消除原生Android原生网络连接显示x或者惊叹号
16lz
2021-12-04
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
更多相关文章
- (未解决)android studio:com.android.support:appcompat-v7:22+ Co
- android EditText和输入法相关知识总结
- Android中扫描wifi热点
- Android(安卓)判断是否有声音在播放
- Android(安卓)SDK Manager无法获取其他版本的问题
- android自定义dialog
- Android中调用startActivity结果导致:java.lang.RuntimeException
- Android(安卓)EditText
- Android(安卓)ril移植-6410开发板SIM300模块