adb shell screencap /sdcard/screencap.pngadb pull /sdcard/screencap.png- (Optional) Delete the file:
adb rm /sdcard/screencap.png
adb shell screenrecord /sdcard/screenrecord.mp4- Press
Ctrl + Con Mac to stop recording adb pull /sdcard/screenrecord.mp4- (Optional) Delete the file:
adb rm /sdcard/screenrecord.mp4
- When only a single emulator instance is connected:
adb - When only a single connected device is connected:
adb -d - When we want to connect to a device using a serial number or qualifier name:
adb -s [serial/name]
- Connect a real device or run an emulator to connect with ADB.
- Use
adb devicesto retrieve a list attached of devices.
adb pull /sdcard/screencap.png