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.
You can read the binary from stdout instead of saving the png to the sdcard and then pulling it:
adb shell screencap -p | sed 's|\r$||' > screenshot.png
This should save a little time, but not much.
Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.