Recording the screen with ADB works on Android 4.4 (KitKat) and newer, but the command is only available on devices that ship with the screenrecord binary (most stock Android builds do). You won’t need root, but you do need a computer with the Android SDK Platform‑Tools installed and a USB cable that can transfer data.
The Platform‑Tools package contains adb. Download it from the official Android developer site (search for “SDK Platform‑Tools”). Extract the zip to a folder you can access from the command line.
Windows: Add the folder path to the PATH environment variable or open a Command Prompt inside the folder.
macOS / Linux: Open a terminal and navigate to the extracted folder, or symlink adb to /usr/local/bin for global access.
On some manufacturers the wording may differ (e.g., “USB debugging (ADB)” or “Android debugging”). The essential part is enabling ADB communication.
adb devices
You should see a line with the device’s serial number followed by device. If you see unauthorized, check the phone for a dialog asking to allow USB debugging and tap Allow.
If no device appears, try a different USB port, a different cable, or enable “USB for file transfer” (MTP) on the phone’s notification shade.
The screenrecord command supports a handful of options. Choose the ones that match your needs before you start.
--size WIDTHxHEIGHT – limits resolution (e.g., 1280x720). Omit to record at native resolution.--bit-rate BITRATE – sets video bitrate in bits per second (default 4 Mbps). Higher values improve quality but increase file size.--time-limit SECONDS – caps recording length (max 180 seconds on many devices). Use 0 for unlimited, but note that some OEMs enforce the 3‑minute ceiling.--rotate – rotates the output if the device is in landscape mode.Example command that records full‑HD video at 8 Mbps for up to 5 minutes:
adb shell screenrecord --size 1920x1080 --bit-rate 8000000 --time-limit 300 /sdcard/record.mp4
Replace the file path (/sdcard/record.mp4) with a location you have write access to. The /sdcard directory maps to the primary shared storage on most devices.
screenrecord command. For a quick start, you can use the simplest form:adb shell screenrecord /sdcard/record.mp4
After you press
Tip: While recording, you can interact with the phone normally. The command does not block touch input.
Ctrl + C. The device finalises the MP4 file and returns you to the prompt.adb pull /sdcard/record.mp4 ./record.mp4
The file is now in the current folder on your computer. You can open it with any media player (VLC, MPV, etc.).
Do not delete the file on the phone before pulling it; otherwise the pull command will fail.
If you need a shorter clip or want to reduce the file size further, FFmpeg is a lightweight command‑line tool that works on all major OSes.
# Trim to the first 30 seconds
ffmpeg -i record.mp4 -ss 00:00:00 -t 30 -c copy record_trimmed.mp4
# Re‑encode to 1080p at 4 Mbps
ffmpeg -i record.mp4 -vf "scale=1920:1080" -b:v 4M record_compressed.mp4
These commands are optional; the raw ADB recording is already in MP4 format and playable on most devices.
Some heavily customized OEM skins (e.g., older Samsung One UI builds) omit the binary. In that case you cannot use ADB screenrecord. Consider installing a trusted screen‑recording app from the Play Store or using a PC‑side screencasting tool like scrcpy.
Make sure the device is unlocked and that you granted USB debugging permission. If the phone is encrypted with a lock screen, you may need to unlock it before starting the command.
Many devices enforce a hard 3‑minute limit regardless of the flag. The workaround is to start a new recording after the limit, or use a third‑party app that supports longer sessions.
Lower the bitrate (--bit-rate 2000000) or reduce the resolution. You can also record directly to an external SD card if the device exposes a path such as /storage/XXXX-XXXX/record.mp4.
The built‑in screenrecord captures only the device’s internal audio from Android 10 onward, and only if the app playing the sound permits it. If you need guaranteed audio, record with a separate app that captures microphone input, or use a PC‑side capture solution.
/sdcard/record_$(date +%Y%m%d_%H%M%S).mp4 (Linux/macOS).ADB’s built‑in recorder is ideal when you want a quick, no‑install capture, especially on a device that is locked down (no Play Store access) or when you need a reproducible command for documentation or testing. Third‑party apps often provide features like internal audio capture on older Android versions, longer recordings, or on‑screen annotations, which ADB cannot supply.
With the steps above you now have a reliable, root‑free method to record anything that appears on your Android screen – from app demos to bug‑reproduction videos – using only ADB and a computer. Happy recording!









