adb screenshot saved to computer

The full name of adb is Android Debug Bridge (Android Debug Bridge). It is a tool that can debug Android devices through a computer. For example, a command can be used to complete a screenshot of an Android device and save it to the computer.

  • First enter the command line mode
    -to connect the device to adb, use the command to view
 adb devices

insert image description here

  • Use the screencap command to take a screenshot of the current screen of the Android device
    adb shell screencap -p /sdcard/one.png

If multiple devices
insert image description here

	//多个设备截屏
	//前面指定设备   -s 10.10.10.107:5555 
    adb -s 10.10.10.107:5555 shell screencap -p /sdcard/echarts.png

insert image description here

  • Download screenshots to your local computer
adb pull /sdcard/one.png f://adb

//多个设备存储 ,加上指定设备
adb -s 10.10.10.107:5555 pull /sdcard/echarts.png f://adb
*注   f://adb   是自己指定拉取的位置

insert image description here
insert image description here
The above is the whole content

Guess you like

Origin blog.csdn.net/afufufufu/article/details/119004326