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
- 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
//多个设备截屏
//前面指定设备 -s 10.10.10.107:5555
adb -s 10.10.10.107:5555 shell screencap -p /sdcard/echarts.png
- 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 是自己指定拉取的位置
The above is the whole content