首页 > 系统 > Android > 正文

android adb截屏

2019-11-09 15:12:10
字体:
来源:转载
供稿:网友

1.使用screencap这个命令,配合adb命令来实现截图并保存到手机的/sdcard目录中:

adb shell screencap -p /sdcard/testcap.png

2.用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立即生效. ~/.bashrc

droidshot testcap


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表