Created
May 2, 2015 22:10
-
-
Save SimonMarquis/317e0f19aa72e01162ec 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
file=$(date +%Y.%m.%d-%H.%M.%S).png \ | |
&& path="/sdcard/$file" \ | |
&& adb shell screencap -p "$path" \ | |
&& adb pull "$path" \ | |
&& adb shell rm "$path" \ | |
&& echo "Screenshot saved at $(pwd)/$file" \ | |
|| echo "Screenshot failed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment