adb shell screencap /sdcard/screencap.png
adb pull /sdcard/screencap.png
- (Optional) Delete the file:
adb rm /sdcard/screencap.png
adb shell screenrecord /sdcard/screenrecord.mp4
- Press
Ctrl + C
on 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 devices
to retrieve a list attached of devices.
👍 Changed