gpt4 book ai didi

android - 无法在 Android 上设置日期 (ADB)

转载 作者:行者123 更新时间:2023-11-29 17:04:22 24 4
gpt4 key购买 nike

我的手机是旧的摩托罗拉 razr hd (xt925)。最近,日期和时间无故更改。所以我 root 我的手机,但我无法更改日期或时间,它只是不起作用。即使在 adb shell 中也是如此。

# toolbox date -s 20170209.000000
Thu Nov 24 04:07:01 ART 2016

最佳答案

这是日期帮助

usage: date [-u] [-r FILE] [-d DATE] [+DISPLAY_FORMAT] [-D SET_FORMAT] [SET]

Set/get the current date/time. With no SET shows the current date.

Default SET format is "MMDDhhmm[[CC]YY][.ss]", that's (2 digits each)
month, day, hour (0-23), and minute. Optionally century, year, and second.
Also accepts "@UNIXTIME[.FRACTION]" as seconds since midnight Jan 1 1970.

-d Show DATE instead of current time (convert date format)
-D +FORMAT for SET or -d (instead of MMDDhhmm[[CC]YY][.ss])
-r Use modification time of FILE instead of current date
-u Use UTC instead of current timezone

+FORMAT specifies display format string using these escapes:

%% literal % %n newline %t tab
%S seconds (00-60) %M minute (00-59) %m month (01-12)
%H hour (0-23) %I hour (01-12) %p AM/PM
%y short year (00-99) %Y year %C century
%a short weekday name %A weekday name %u day of week (1-7, 1=mon)
%b short month name %B month name %Z timezone name
%j day of year (001-366) %d day of month (01-31) %e day of month ( 1-31)
%s seconds past the Epoch

%U Week of year (0-53 start sunday) %W Week of year (0-53 start monday)
%V Week of year (1-53 start monday, week < 4 days not part of this year)

%D = "%m/%d/%y" %r = "%I : %M : %S %p" %T = "%H:%M:%S" %h = "%b"
%x locale date %X locale time %c locale date/time

注意这个

Default SET format is "MMDDhhmm[[CC]YY][.ss]"

那么,你的命令应该是

date 0209000017

关于android - 无法在 Android 上设置日期 (ADB),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42145720/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com