Skip to content

Instantly share code, notes, and snippets.

@izmajlowiczl
Created November 19, 2014 09:11
Show Gist options
  • Save izmajlowiczl/fc1a73fea3c63f9fcb0f to your computer and use it in GitHub Desktop.
Save izmajlowiczl/fc1a73fea3c63f9fcb0f to your computer and use it in GitHub Desktop.
Sets device time Usage: ./todatAt 10 23
#!/bin/sh
# Command to set date for running device:
# adb shell date -s yyyymmdd.hhmmss
now="$(date +'%Y%m%d')"
adb shell date -s $now.$1$2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment