Stack Overflow archive
10 score

Using ADB to capture the screen

score
10
question views
337.1K
license
CC BY-SA 3.0

You can read the binary from stdout instead of saving the png to the sdcard and then pulling it:

bash
adb shell screencap -p | sed 's|\r$||' > screenshot.png

This should save a little time, but not much.

source: Read binary stdout data from adb shell?

Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.