Created
May 27, 2015 06:25
-
-
Save ishida/94aa8d522e4b0459bf4e to your computer and use it in GitHub Desktop.
Android screen capture shell 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
#!/bin/bash | |
DATE=`date +"%Y-%m-%d-%H-%M-%S"` | |
FILENAME="s-${DATE}.png" | |
echo "capturing ${FILENAME}..." | |
adb shell screencap -p "/sdcard/${FILENAME}" | |
adb pull /sdcard/"${FILENAME}" | |
adb shell rm "/sdcard/${FILENAME}" | |
echo "saved ${FILENAME}." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment