Last active
September 7, 2020 12:27
-
-
Save lxlgarnett/4f92e3f6cc70e06ba5adbc12b5f14f2a to your computer and use it in GitHub Desktop.
Take a screenshot of Android device and move it from device to local directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
date_string=`date +%F-%s` | |
mkdir -p Screenshots | |
adb shell screencap /sdcard/screenshot_"$date_string".png | |
adb pull /sdcard/screenshot_"$date_string".png Screenshots/ | |
adb shell rm /sdcard/screenshot_"$date_string".png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment