Created
December 2, 2017 02:47
-
-
Save quangson91/fa500798d33c6952f0d33fc1e60b0dec to your computer and use it in GitHub Desktop.
Revisions
-
quangson91 created this gist
Dec 2, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ PREFIX="android_screenshot" if [ $# -gt 0 ] then PREFIX=$1 fi adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Downloads/${PREFIX}_$(date +'%Y-%m-%d_%H-%M-%S').png