Last active
September 4, 2017 14:13
-
-
Save venshine/4c22a5a5f040b091474189d0510993a5 to your computer and use it in GitHub Desktop.
Android手机截屏并自动上传电脑的脚本
This file contains 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 | |
dir=~/Desktop/ | |
curr=`date "+%Y-%m-%d %H:%M:%S"` | |
name=${dir}"screenshot"${curr}".png" | |
echo "${name}" | |
adb pull /sdcard/test.png "$name" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment