Skip to content

Instantly share code, notes, and snippets.

@stockulus
Created December 7, 2016 14:12
Show Gist options
  • Save stockulus/a9b24f4e986019bfac8f57e8d426c435 to your computer and use it in GitHub Desktop.
Save stockulus/a9b24f4e986019bfac8f57e8d426c435 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p screen
fileName=$(printf "./screen/%s.png" `date +%Y-%m-%d:%H:%M:%S`)
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png $fileName
adb shell rm /sdcard/screen.png
echo saved at $fileName
open $fileName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment