截取屏幕并保存到设备(如 /sdcard/sc.png)
adb shell screencap <file> 是「截屏与录屏」分类下的常用命令,作用是:截取屏幕并保存到设备(如 /sdcard/sc.png)。
adb shell screencap <file>
典型用法如下:adb shell screencap /sdcard/shot.png。你可以查看本页上方同组的相关命令,或直接复制到终端运行。
adb shell screencap /sdcard/shot.png