icxy

那么下面就给出解决方法(无需root):

1.完全屏蔽网络检查功能,最简单快速,但是就没有办法提示wifi登录:

adb shell "settings put global captive_portal_detection_enabled 0"

2.用国内的服务器替换掉google的服务器:

adb shell "settings put global captive_portal_server xn--yet824cpd.xn--fiqs8s"

这个服务器是我自己建的,也就是本站:http://小狐狸.中国/ 我在服务器上写了个简单的204页面,网址是 http://xn--yet824cpd.xn--fiqs8s/generate_204 只要用这个网址替换掉google的网址,就可以正常访问并检测网络状态了。不过由于本人的服务器速度并不快,所以感叹号还是会显示一小会儿的,不过应该很快就会消失。

 

原文网址:

http://www.noisyfox.cn/45.html

分类:

技术点:

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-10-06
  • 2021-11-16
  • 2021-11-21
猜你喜欢
  • 2021-11-22
  • 2021-11-22
  • 2022-12-23
  • 2021-09-25
  • 2021-11-03
  • 2021-10-07
  • 2021-12-06
相关资源
相似解决方案