Created
April 25, 2019 21:55
-
-
Save petitJAM/767d8a443afd6839d23eaa3842c0ae14 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
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