buttons

 

ADB Concepts : How to Record ‘Android Screen’ with adb command

Get a step-by-step walkthrough in the video below!

Recording the Screen:

You can record the screen of an Android device using the adb shell screenrecord command. This is a built-in tool in Android that allows you to capture the device screen directly via ADB (Android Debug Bridge). Here's how to do it:

Command:

Example:

Optional Parameters

You can customize the recording using various flags:

--time-limit <seconds>
Limits the recording duration (max is 180 seconds).
Example:

--bit-rate <rate>
Sets video bit rate (default is 4Mbps).
Example:

--size <width>x<height>
Sets video resolution.
Example:

--verbose
Displays log info while recording.

Pull the Video to Your Computer

After recording, you can transfer the video to your computer:

To Stop Recording Manually

Use Ctrl + C in the terminal (if not using --time-limit).

GitHub Link:


No comments:

Post a Comment