jrummy16

Untitled

Dec 11th, 2014
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. timestamp=$(date +%F_%H%M%S)
  4. adb wait-for-device shell mkdir -p /sdcard/temp/screenshots
  5. adb wait-for-device shell screencap -p /sdcard/temp/screenshots/screenshot.png
  6. adb wait-for-device pull /sdcard/temp/screenshots/screenshot.png "./screenshot-${timestamp}.png"
  7. adb wait-for-device shell rm -rf /sdcard/temp/screenshots
Advertisement
Add Comment
Please, Sign In to add comment