Created
August 15, 2016 10:13
-
-
Save jsonfry/c49d3f5ff680d8fe80131782e0e6a32f to your computer and use it in GitHub Desktop.
quick way to get a screenshot from an Android device onto my Mac
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 | |
timestamp=$(date +"%Y-%m-%d_%H-%M-%S") | |
adb shell screencap -p /sdcard/$timestamp.png | |
adb pull /sdcard/$timestamp.png ~/Desktop/$timestamp.png | |
adb shell rm /sdcard/$timestamp.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this in
/usr/local/bin
andchmod +x
it if you’d like to use it too 🙂Then you can just
adbss
to get a screenshot on your desktop!