Skip to content

Instantly share code, notes, and snippets.

@kbingham
Created November 9, 2015 14:15
Show Gist options
  • Save kbingham/ffaf2e3edd83f78082ee to your computer and use it in GitHub Desktop.
Save kbingham/ffaf2e3edd83f78082ee to your computer and use it in GitHub Desktop.
#!/bin/sh
FILENAME=screen_$(date +%Y%m%d_%H%M%S).png
echo "Attempting capture to $FILENAME"
adb shell screencap -p | sed 's/\r$//' > "$FILENAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment