Created
October 24, 2013 06:03
-
-
Save Seasons7/7132075 to your computer and use it in GitHub Desktop.
android device screenshot
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
adb shell screencap -p /sdcard/screen$1.png | |
adb pull /sdcard/screen$1.png | |
adb shell rm /sdcard/screen$1.png |
Usage
android_screenshot.sh 1
=> save screen1.png as image file.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save as adb_screenshot.sh. Set permission executable.