无法使用adb shell setprop在Android设备上更改时区

编程入门 行业动态 更新时间:2024-10-27 08:40:09
本文介绍了无法使用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.

groups.google/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设备上更改时区

本文发布于:2023-10-07 14:47:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469681.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时区   设备   shell   adb   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!