Issue / Question
How to screenshot an Android device via ADB
Applicable To
TC2X, MC33, TC5X, TC7X, MC9300
Resolution / Answer
Prerequisite:
- ADB environment setup on PC
- Connected Android device has Developer options and USB debugging enabled
Steps:
1. On your PC, launch the command prompt via CMD
2. Connect your Android device to the PC (Allow USB debugging)
3. Enable Stay awake at Developer options on your Android device
3. On your device, go to screen UI that you want capture
4. Type adb shell screencap /sdcard/screen.png at your PC command prompt and then enter
5. Type adb pull /sdcard/screen.png at your PC command prompt and then enter
*please note that screen.png is just an example, you can use any filename that you like
6. The screenshot will be saved to your PC. (for instance, screen.png)
Alternatively, you can create a DOS batch file with the following content and save it to a .BAT file:
@echo off
adb shell screencap /sdcard/%1
adb pull /sdcard/%1
The usage of the batch file as below (for this case, the batch file was saved as screencap.bat):