1.使用screencap这个命令,配合adb命令来实现截图并保存到手机的/sdcard目录中:
adb shell screencap -p /sdcard/testcap.png2.用adb pull将手机中的文件取回本地:
adb pull /sdcard/testcap.png在linux中
使用在.bashrc里加入以下的函数# For Android Device Screenshotfunction droidshot() { adb shell screencap -p /sdcard/$1.png && adb pull /sdcard/$1.png}执行~/.bashrc立即生效. ~/.bashrcdroidshot testcap
新闻热点
疑难解答