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   
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐