휴대 전화가 오래된 Motorola razr hd (xt925)입니다. 최근 날짜와 시간이 이유없이 변경되었습니다. 그래서 나는 내 전화를 뿌리 쳤지 만, 나는 날짜 나 시간을 바꿀 수 없다. 단지 작동하지 않는다. 루트로 adb 셸에서도.안드로이드 (ADB)에서 날짜를 설정할 수 없습니다
# toolbox date -s 20170209.000000
Thu Nov 24 04:07:01 ART 2016
휴대 전화가 오래된 Motorola razr hd (xt925)입니다. 최근 날짜와 시간이 이유없이 변경되었습니다. 그래서 나는 내 전화를 뿌리 쳤지 만, 나는 날짜 나 시간을 바꿀 수 없다. 단지 작동하지 않는다. 루트로 adb 셸에서도.안드로이드 (ADB)에서 날짜를 설정할 수 없습니다
# toolbox date -s 20170209.000000
Thu Nov 24 04:07:01 ART 2016
이이
입니다기본 SET 형식으로
date
도움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
주의를 기울이 "은 MMDDhhmm [[CC] YY] [. SS]"
이면 명령은
이어야합니다.date 0209000017
당신이 MAC을 사용하는 경우, 나는 해결책을 가지고 :
이 ADB 쉘 "날짜 -u '날짜 0209000017'"
에 대한 2017년 2월 9일 이동을위한 날짜를 설정하려면 -u
OP는 분명히'toolbox date '를 사용하고 있습니다. 여전히'-s' 매개 변수를 사용하여 날짜를 설정합니다. 귀하의 답변은 새로운 '장난감 상자 날짜'에 관한 것이며 관련성이 없습니다. –
그래도 명령 (date 0209000017)을 실행했지만 작동하지 않았습니다. –