skill adb-set-car-time

13 阅读1分钟
name: adb-set-car-time
description: Use when the user needs to modify or sync the car machine (车机) system time via ADB. The car device must already be rooted.

ADB Set Car Machine Time

Set the car infotainment system's time to match the PC's current time via ADB.

Prerequisites

  • Car device is rooted (adb root succeeds)
  • ADB is connected to the car machine
  • PC time is correct (source of truth)

Command Format

adb root && adb shell date "MMDDHHMMYY.ss" && adb shell hwclock -w

Format breakdown: MMDDHHMMYY.ss

FieldMeaningExample
MMMonth04
DDDay13
HHHour (24h)14
MMMinute39
YYYear (2-digit)26
ssSeconds (with microseconds, 6 digits)153000

How to Use

  1. Get the current PC time
  2. Format it into MMDDHHMMYY.ss string (6-digit seconds includes leading zeros)
  3. Execute the ADB command

Common Mistakes

  • Forgetting to run adb root first — the car device must be rooted to set time
  • Forgetting hwclock -w — without this, the time resets on reboot
  • Wrong format — must be exactly MMDDHHMMYY.ss, not ISO or other date formats
  • Year is 2-digit (26, not 2026)