Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save indiejoseph/420a41dab5559010521b2a8dd3c2931b to your computer and use it in GitHub Desktop.
Save indiejoseph/420a41dab5559010521b2a8dd3c2931b to your computer and use it in GitHub Desktop.
Set Android date time via adb
adb -e shell date $(date +%m%d%H%M%Y.%S)
@DmytroSytnyk
Copy link

DmytroSytnyk commented Jul 26, 2025

Prior to Android 10 the correct command is
adb -e shell cmd alarm set-time $(date +%s%3N)000 set_timezone $(date +%Z)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment