Last active
July 2, 2019 03:58
-
-
Save Leaking/b24dd7b9cfb75dd37c31030a40031a6c to your computer and use it in GitHub Desktop.
Bash script to take screenshot on android and export to for Mac Desktop
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 | |
adb shell screencap -p /sdcard/test.png | |
#adb pull /sdcard/test.png ~/Desktop/test.png | |
dir=~/Desktop/ | |
curr=`date "+%Y-%m-%d %H:%M:%S"` | |
name=${dir}"screenshot"${curr}".png" | |
echo "${name}" | |
adb pull /sdcard/test.png "$name" | |
adb shell rm /sdcard/test.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment