Skip to content

Instantly share code, notes, and snippets.

@johnjohndoe
Created August 26, 2017 10:57
Show Gist options
  • Save johnjohndoe/6fa8dc436553e3484437d294a7990902 to your computer and use it in GitHub Desktop.
Save johnjohndoe/6fa8dc436553e3484437d294a7990902 to your computer and use it in GitHub Desktop.
ADB command to capture a screenshot from a device
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > output.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment