1.正常情况
> adb shell screencap -p /sdcard/screen.png
> adb pull /sdcard/screen.png
比如出现以下提示则见下:
/system/bin/sh: screencap: not found(没有该命令)
2.如果不能使用 screencap 命令截图则可以改用以下命令
> adb shell input keyevent 120
> adb shell ls /sdcard/Pictures/Screenshots/
> adb pull /sdcard/Pictures/Screenshots/xxx.png
在Android上使用adbshell截图的替代方法
当`screencap`命令不可用时,可以通过输入`adbshellinputkeyevent120`来触发屏幕快照,然后使用`adbshellls/sdcard/Pictures/Screenshots/`找到截图并用`adbpull`命令将其拉到本地。
2万+

被折叠的 条评论
为什么被折叠?



