Android ’ 目录归档

[Android] 消除 Wi-Fi 和移动网络上感叹号或者X号的方法

Android 7之前的方法:

adb shell "settings put global captive_portal_server g.cn"

Android 7 的方法

adb shell "settings put global captive_portal_server www.google.cn"

Android 7.1.1 的方法

adb shell "settings put global captive_portal_https_url https://www.google.cn/generate_204"

备选方案:完全关闭网络检查服务,依次输入下面语句

adb shell settings delete global captive_portal_http_url
adb shell settings put global captive_portal_detection_enabled 0

如果您想恢复的话,使用下面的语句:

adb shell settings put global captive_portal_detection_enabled 1

读取相关设置

adb shell "settings get global captive_portal_https_url";

以上方法来源于网络

  • [Android] 消除 Wi-Fi 和移动网络上感叹号或者X号的方法已关闭评论

return top