# 删除地址就可以恢复默认的谷歌服务器 adb shell settings delete global captive_portal_server # 设置一个可用地址 adb shell settings put global captive_portal_server http://developers.google.cn/generate_204 # 查询当前地址 adb shell settings get global captive_portal_server
Android 7.0 - Android 10.0
1 2 3 4 5 6
# 删除(删除默认用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://developers.google.cn/generate_204 adb shell settings put global captive_portal_https_url https://developers.google.cn/generate_204