admin管理员组

文章数量:1532156

Intro

在日常刷机的过程中,有一个细节大家可能没有注意到,因为不是所有人都会因为这个细节而踩坑,那就是刷机后的时间校准问题,

  1. app提示时间不正确

  2. 明明设置好了时间,但就是提示你时间不对

  3. Wifi有感叹号, 时间无法同步

  4. Wifi有小×,但是可以正常上百度访问网站。

其实很简单,都是时间不同步引起的问题。

我们首先要手动调节到当前时间,(不调节也行)

  1. 确保手机USB连接电脑
  2. 或者网络adb连接手机
  3. 确保手机已经连接网络的情况下使用下面的命令

在Linux的shell里以root用户执行:

# settings put global captive_portal_http_url https://www.google/generate_204

# settings put global captive_portal_https_url https://www.google/generate_204

# settings put global ntp_server 1.hk.pool.ntp

# reboot

Windows下在命令行用下面的命令

adb shell settings put global captive_portal_http_url https://www.google/generate_204
adb shell settings put global captive_portal_https_url https://www.google/generate_204
adb shell settings put global ntp_server 1.hk.pool.ntp
adb reboot

结语:

如果是在非网络连接的情况下,手机是获取不到网络的时间同步!从而会导致失败。在执行上诉命令成功后,如果遇到时间不正确可以手动调节至正确时间再次执行命令而保证完美时间同步。。

本文标签: 互联网感叹号解决办法无法访问时间