无法使用adb shell setprop在Android设备上更改时区 [英] Unable to change timezone on Android device using adb shell setprop

查看:1061
本文介绍了无法使用adb shell setprop在Android设备上更改时区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用setprop命令更改我的android设备上的时区,但未在设备上反映出来(我也尝试过重新启动)

I am trying to change the timezone on my android device using setprop command, but it doesn't reflect on the device (I tried restarting too)

shell@ASUS_Z010:/ $ getprop persist.sys.timezone                               
Asia/Calcutta
shell@ASUS_Z010:/ $ setprop persist.sys.timezone "America/Chicago"             
shell@ASUS_Z010:/ $ getprop persist.sys.timezone                               
Asia/Calcutta
shell@ASUS_Z010:/ $ 

有人可以给我一些有关如何实现这一点的想法,并且在没有给出任何错误的情况下命令失败的原因是什么?

Can someone give me some idea about how to achieve this, and what might be the reason of the command failing, without giving any error ?

推荐答案

我刚刚知道它只能在有根电话上完成。

I just came to know that it can only be done on rooted phones.

https://groups.google.com/forum/#!topic/android-developers/UBXrvJnxyd4

交叉验证已扎根电话。对我来说,一个坏消息是我无法使用需要使用脚本更改时区的测试设备。

Cross verified it on a rooted phone. Bad news for me is that I can't root my testing devices on which I need to change timezones using my script.

这篇关于无法使用adb shell setprop在Android设备上更改时区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆