How to record Android device's screen on Android version below 4.4 (KitKat)

AndroidAdb

Android Problem Overview


With Android version 4.4 (KitKat) one can record Android device's screen with following command using ADB from commandline.

adb shell screenrecord /sdcard/demo.mp4

But this only works in Android version 4.4 (KitKat) and 5.0 (Lolipop)

Is there any other command or a way to record a video below Android version 4.4 (KitKat) using ADB?

Android Solutions


Solution 1 - Android

This only work in KitKat and via ADB only. This does not work below Kitkat.

To start recording your device’s screen, run the following command:

adb shell screenrecord /sdcard/example.mp4, This command will start recording your device’s screen using the default settings and save the resulting video to a file at /sdcard/example.mp4 file on your device.

When you’re done recording, press Ctrl+C in the Command Prompt window to stop the screen recording. You can then find the screen recording file at the location you specified. Note that the screen recording is saved to your device’s internal storage, not to your computer.

The default settings are to use your device’s standard screen resolution, encode the video at a bitrate of 4Mbps, and set the maximum screen recording time to 180 seconds. For more information about the command-line options you can use, run the following command:

adb shell screenrecord --help, This works without rooting the device. Hope this helps.

Solution 2 - Android

  1. adb shell screenrecord /sdcard/video.mp4 #save MP4

  2. Ctrl+C #Stop record

  3. adb pull /sdcard/video.mp4 #pull mp4 to your pc

  4. adb shell rm /sdcard/video.mp4 #Delete file on phone

Solution 3 - Android

As you pointed out, that command is only available in KitKat and via ADB only.

I'd say your best option is recording the portion of the screen of an emulator (either AVD or Genymotion).

Solution 4 - Android

AirServer is a good application to do this with. You can mirror your device's screen to your PC/Mac and record them to a file. Great quality too.

Solution 5 - Android

The screenrecord command is a shell utility for recording the display of devices running Android 4.4 (API level 19) and higher.

Ref. : http://developer.android.com/tools/help/adb.html (Recording a device screen)

OR

There is many application available on market for screen recording, So download which more is useful to you.

Solution 6 - Android

To avoid time limit issue, you can use this snippet:

./adb exec-out "while true; do screenrecord --bit-rate=16m --output-format=h264 --size 720x1280 --time-limit 180 -; done" | ffplay -framerate 60 -framedrop -bufsize 16M -

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDedaniya HirenKumarView Question on Stackoverflow
Solution 1 - AndroidjinkalView Answer on Stackoverflow
Solution 2 - AndroidAlbert.QingView Answer on Stackoverflow
Solution 3 - AndroidSebastianoView Answer on Stackoverflow
Solution 4 - AndroidÞorvaldur RúnarssonView Answer on Stackoverflow
Solution 5 - AndroidHaresh ChhelanaView Answer on Stackoverflow
Solution 6 - AndroidcaiiiycukView Answer on Stackoverflow