You could do it with ADB
Start a shell
adb shell
enter
screenrecord /sdcard/video.mp4 and hit enter.
You are now recording your Android device display.
To stop the recording, wait for three minutes to expire,
or simply press Ctrl+C into the command/Terminal window.