Last active
October 10, 2016 08:25
-
-
Save narate/75253bc7e37fdbc93bbbe12caf60a847 to your computer and use it in GitHub Desktop.
Capture android device screen 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 | |
NAME="Screen Cap $(date).png" | |
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > "$NAME" | |
echo "Saved to $NAME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment