Created
February 1, 2015 11:53
-
-
Save ishan-marikar/6799e1d79791ec2e1bc2 to your computer and use it in GitHub Desktop.
Capturing screenshots on Android using ADB
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
@echo off | |
@echo [*] Waiting for device.. | |
adb wait-for-device | |
@echo [*] Capturing screenshot and saving temporarily to sd-card.. | |
adb shell screencap -p /sdcard/screen.png | |
@echo [*] Pulling screenshot off of sd-card.. | |
adb pull /sdcard/screen.png | |
@echo [*] Removing temporary file on phone | |
adb shell rm /sdcard/screen.png | |
@echo [*] Opening screenshot.. | |
start screen.png | |
pause | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment