Skip to content

Instantly share code, notes, and snippets.

@maxme
Created December 4, 2013 14:56
Show Gist options
  • Save maxme/7788841 to your computer and use it in GitHub Desktop.
Save maxme/7788841 to your computer and use it in GitHub Desktop.
#!/bin/sh
CURDATE=$(date -Iseconds)
adb shell screencap -p /sdcard/screencap-$CURDATE.png
adb pull /sdcard/screencap-$CURDATE.png
adb shell rm /sdcard/screencap-$CURDATE.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment