Last active
August 29, 2015 14:00
-
-
Save hdragomir/11260446 to your computer and use it in GitHub Desktop.
droidshot - simple cli utility that wraps taking screenshots from an android phone
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
function droidshot { | |
saveto=~/droidshots | |
fname=$(date +"%Y%m%d%H%M").png | |
[[ ! -z $1 ]] && fname=$1 | |
[[ -d $saveto ]] || mkdir $saveto | |
adb shell screencap -p /sdcard/$fname | |
adb pull /sdcard/$fname $saveto/$fname | |
adb shell rm /sdcard/$fname | |
echo "saved to $saveto/$fname" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment