Created
March 21, 2018 21:14
-
-
Save bryantee/08eab23bc9a5fabb5786e579ba9594ae to your computer and use it in GitHub Desktop.
Take screenshots and save to you computer from an android device connected via 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
#!/bin/bash | |
adb shell screencap -p /sdcard/screenshot.png | |
adb pull /sdcard/screenshot.png | |
now=$(date +%d:%m-%H.%M.%S) | |
mv screenshot.png screenshot-${now}.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment