adb修改同步时间所用的服务器,原生安装用的国外的,

1. 手机root并开启调试模式。
2. 电脑配置adb环境,打开命令行。
Android 7.0之前版本的系统,执行以下命令:

  • adb shell "settings put global captive_portal_server connect.rom.miui.com";
    Android 7.0之后的版本需要执行下面的两条命令:

  • 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";

  • 然后重启,此时,应该去除了叉号或叹号。
    时间同步
    adb shell settings put global ntp_server asia.pool.ntp.org

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐