版权归作者所有,如有转发,请注明文章出处:https://cyrus-studio.github.io/blog/
问题原因
由于 LineageOS 源码里默认是使用 google captive连接验证服务,所以国内会一直提示网络受限,但是实际上是可以访问网络的。
要解决这个问题可以通过把 captive_portal_https_url 改为国内的就好了,比如用MIUI的。
更换 captive 连接验证服务器
1. 通过 adb 修改
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
2. 修改源码
编辑 packages/modules/NetworkStack/res/values/config.xml
<!-- HTTP URL for network validation, to use for detecting captive portals. -->
<string name="default_captive_portal_http_url" translatable="f

最低0.47元/天 解锁文章
6377

被折叠的 条评论
为什么被折叠?



