Created
August 1, 2014 23:40
-
-
Save Ider/b723d47b7ae24da49936 to your computer and use it in GitHub Desktop.
Capture screen of android device with command
This file contains hidden or 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
# capture screen of android device | |
andrdroidScreenCapture() { | |
curTime=`date +%Y-%m-%d-%H-%M-%S` | |
name="/sdcard/$curTime.png" | |
adb shell screencap -p $name | |
adb pull $name $1 | |
adb shell rm $name | |
} | |
alias asc=andrdroidScreenCapture |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment