Created
November 19, 2014 09:11
-
-
Save izmajlowiczl/fc1a73fea3c63f9fcb0f to your computer and use it in GitHub Desktop.
Sets device time
Usage: ./todatAt 10 23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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