Skip to content

Instantly share code, notes, and snippets.

@petitJAM
Created April 25, 2019 21:55
Show Gist options
  • Save petitJAM/767d8a443afd6839d23eaa3842c0ae14 to your computer and use it in GitHub Desktop.
Save petitJAM/767d8a443afd6839d23eaa3842c0ae14 to your computer and use it in GitHub Desktop.
adb shell screencap -p /sdcard/screencap.png
# Get the screenshot and redirect command output to nowhere so it's quiet.
adb pull /sdcard/screencap.png /tmp/adbcp.png > /dev/null
xclip -selection clipboard -t image/png -i /tmp/adbcp.png
echo Screenshot copied to clipboard!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment