Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement