adb 配置自动获取时间 使用GPS提供的时间 使用网络提供的时间

adb 配置 自动获取时间

使用GPS提供的时间 使用网络提供的时间

查询配置命令

adb shell "settings list global | grep auto_time"

配置解释

auto_time=0 // 使用网络提供的时间开关
auto_time_gps=1 // 使用GPS提供的时间开关
auto_time_zone=1 // 自动确定时区开关
auto_time_gps=1 // 可能会导致自动获取时间失败 Toast提示"使用GPS提供时间失败"

以下是国内华为手机的配置
auto_time=0
auto_time_zone=1

配置为使用网络提供的时间

adb shell
settings put global auto_time 1   
posted @ 2022-03-12 22:04  xiaomodecnblogs  阅读(294)  评论(0)    收藏  举报