Record Video
From Android Kitkat i.e. 4.4 version and above, adb provides a way to record screen video and save it to the device storage. We can pull the video to local system from there.
Steps for screen recording and subsequent save
- First start adb shell screenrecord /path
- Recording starts and wait until you no longer need to record the screen
- Hit Ctrl+C in the shell to stop recording
- Pull the video to local filesystem
Anyones-Mac-mini:ci_android_acceptancetests $ adb shell screenrecord /sdcard/example.mp4
^C
Anyones-Mac-mini:ci_android_acceptancetests $ adb pull /sdcard/example.mp4
4972 KB/s (2900775 bytes in 0.569s)
An example video recorded when adding a contact is here