背景

基于 android 的车机系统有好几个屏幕是很常见的 那么我们怎么对多个屏幕进行截图呢?

第一步:

查看 屏幕设备 id 编号 

adb shell dumpsys window displays | grep displayId

第二步:

各个屏幕的截图命令如下

 adb exec-out screencap -d 0 -p > ~/screen_0.png

adb exec-out screencap -d 2 -p > ~/screen_2.png

adb exec-out screencap -d 3 -p > ~/screen_3.png

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐