Sometimes you need a quick video of what’s happening on your phone – a bug demo, a tutorial, or just a memorable moment – but you don’t want to install another screen‑recording app that clutters the Play Store or asks for unnecessary permissions. Android includes a native screenrecord utility that can be driven from a computer via ADB. This guide walks you through the entire workflow, from preparing your device to pulling the final video, with plenty of tips and troubleshooting for the hiccups you might meet.
screenrecord is available from Android 4.4 (KitKat) onward. Most devices on Android 8.0+ support it without restrictions.adb session from dropping..mp4 file.C:\adb on Windows or ~/adb on macOS/Linux.PATH so you can run adb from any terminal.
Control Panel → System → Advanced system settings → Environment Variables → Path → New → C:\adbexport PATH=$PATH:~/adb to your ~/.bash_profile or ~/.zshrc.adb version
You should see something like Android Debug Bridge version 1.0.41.adb devices
You should see a line like:
0123456789ABCDEF device
If the status is unauthorized, double‑check the prompt on the phone.
adb shell getprop ro.product.model
It should return the model name (e.g., Pixel 6).screenrecordThe screenrecord binary lives in /system/bin and can be invoked directly via adb shell. By default it writes a .mp4 file to the device’s /sdcard/ directory.
mydemo.mp4.adb shell screenrecord /sdcard/mydemo.mp4
The terminal will appear to hang – that’s the recording in progress.
The command accepts several flags that let you control size, bitrate, duration, and orientation.
adb shell screenrecord [options] /sdcard/filename.mp4
--size WIDTHxHEIGHT – Forces a specific resolution (e.g., 1280x720). The device will downscale if the requested size exceeds the native screen.--bit-rate BITRATE – Sets video bitrate in bits per second. Default is 4 Mbps. Lower it for longer recordings on limited storage, raise it for higher quality.
--bit-rate 8000000 # 8 Mbps
--time-limit SECONDS – Maximum recording length. Android caps it at 180 seconds (3 min) unless you specify a lower value. You can increase it up to 1800 seconds (30 min) on most devices.
--time-limit 600 # 10 minutes
--rotate – Rotates the output 90° clockwise. Handy when recording in landscape on a portrait‑only device.Example – a 5‑minute 720p video at 6 Mbps:
adb shell screenrecord --size 1280x720 --bit-rate 6000000 --time-limit 300 /sdcard/demo5min.mp4
adb shell ls -lh /sdcard/*.mp4
adb pull /sdcard/demo5min.mp4
You’ll see a progress bar and the file will appear alongside the terminal.
adb shell rm /sdcard/demo5min.mp4
The output is a standard H.264‑encoded MP4 file, compatible with VLC, Windows Media Player, Android’s Gallery, and most video editors. If you need a different container (e.g., .webm) or want to trim the video, you can use ffmpeg on the PC:
ffmpeg -i demo5min.mp4 -c copy -ss 00:00:10 -t 00:01:00 trimmed.mp4
This command extracts a 1‑minute segment starting at 10 seconds without re‑encoding, preserving quality.
scrcpyIf you prefer to see the phone’s screen on your PC while recording (or want to capture UI elements that appear only when the device is mirrored), scrcpy is a lightweight tool that uses ADB’s screen mirroring capability.
scrcpy --record myrecord.mp4. The window shows the device screen, and scrcpy writes the video file directly on the PC.
scrcpy records at the same resolution as the mirroring window, so you can adjust the window size for a balance between quality and file size.
screenrecord, but some custom ROMs or very old phones omit it. In that case, consider the scrcpy method or install a third‑party screen recorder from the Play Store.adb shell df -h /sdcard. Delete unnecessary files or record to an external SD card (use the path /storage/XXXX-XXXX/ where XXXX-XXXX is the card’s ID).screenrecord captures only the device’s internal audio on Android 10+ when the app has the CAPTURE_AUDIO_OUTPUT permission, which is not granted to ADB. Therefore, the default output is silent.
--audio-source mic (available on Android 11+). Example:
adb shell screenrecord --audio-source mic /sdcard/voice.mp4
--audio flag (requires Android 11+).adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///sdcard/mydemo.mp4
Then the video will show up in the device’s gallery.
--bit-rate wisely: 2‑4 Mbps for simple UI demos, 6‑8 Mbps for fast‑moving games.By leveraging Android’s native screenrecord utility through ADB, you gain a clean, privacy‑friendly way to capture high‑quality video without installing any extra software on the phone. The workflow works on virtually any modern Android device, respects the OS’s security model, and gives you fine‑grained control over resolution, bitrate, and duration. If you need live mirroring or internal audio, scrcpy offers a complementary solution that still avoids rooting or third‑party apps on the device itself.
Now you have a reliable toolbox for creating screen recordings on Android – perfect for bug reports, tutorial content, or simply preserving that fleeting moment on your screen.









