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 rootsucceeds) - 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
| Field | Meaning | Example |
|---|---|---|
| MM | Month | 04 |
| DD | Day | 13 |
| HH | Hour (24h) | 14 |
| MM | Minute | 39 |
| YY | Year (2-digit) | 26 |
| ss | Seconds (with microseconds, 6 digits) | 153000 |
How to Use
- Get the current PC time
- Format it into
MMDDHHMMYY.ssstring (6-digit seconds includes leading zeros) - Execute the ADB command
Common Mistakes
- Forgetting to run
adb rootfirst — 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)