Created
September 19, 2017 14:18
-
-
Save pocmo/97ce5d1313843b38268abcd92ba8bbe8 to your computer and use it in GitHub Desktop.
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
# Linux: | |
adb shell screencap -p | sed 's/\r$//' > screen.png | |
# OS X: | |
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment