版权归作者所有,如有转发,请注明文章出处:
问题原因
由于 LineageOS 源码里默认是使用 google captive连接验证服务,所以国内会一直提示网络受限,但是实际上是可以访问网络的。
要解决这个问题可以通过把 captive_portal_https_url 改为国内的就好了,比如用MIUI的。
更换 captive 连接验证服务器
1. 通过 adb 修改
adb shell settings put global captive_portal_https_url
adb shell settings put global captive_portal_http_url
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

发布评论