Skip to content

Instantly share code, notes, and snippets.

@Ider
Created August 1, 2014 23:40
Show Gist options
  • Save Ider/b723d47b7ae24da49936 to your computer and use it in GitHub Desktop.
Save Ider/b723d47b7ae24da49936 to your computer and use it in GitHub Desktop.
Capture screen of android device with command
# capture screen of android device
andrdroidScreenCapture() {
curTime=`date +%Y-%m-%d-%H-%M-%S`
name="/sdcard/$curTime.png"
adb shell screencap -p $name
adb pull $name $1
adb shell rm $name
}
alias asc=andrdroidScreenCapture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment