Jasper Ji

开口不在舌头上

0%

LG Nexus 5X 设置

18年的时候为了开发出海的应用,专门购买了一台二手的LG Nexus 5X,图的就是有谷歌服务,最近又有用到开发,发现一些问题,都是众所周知的原因了,好在都一一解决了,提前是要先安装adb,通过adb来设置。

连接WIFI成功后,提示无法访问互联网

实际上是可以访问网络,当然谷歌是访问不了的,网上搜索了下,主要是替换验证的网址了,以下方法亲测可用。

1
2
3
4
5
6
adb shell settings put global captive_portal_detection_enabled 1
adb shell settings put global captive_portal_mode 1
adb shell settings put global captive_portal_use_https 0
adb shell settings put global captive_portal_server connect.rom.miui.com
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204

无法使用互联网时间

同样的也是无法谷歌提供的时间服务, 我用的阿里的NTP服务。

1
adb shell settings put global ntp_server ntp.aliyun.com

参考

开发者必备手机nexus 5x 开发环境预备

Android 系统时间不对有遇到的吗?