adb shell screenrecord /sdcard/example.mp4
Set the time limit. Default max is 3 minutes.
--time-limit <SECONDS>
Stop the screen recording by pressing Ctrl-C
adb pull /sdcard/example.mp4 /users/username/Desktop/
adb shell rm /sdcard/example.mp4
adb shell screenrecord /sdcard/example.mp4
Set the time limit. Default max is 3 minutes.
--time-limit <SECONDS>
Stop the screen recording by pressing Ctrl-C
adb pull /sdcard/example.mp4 /users/username/Desktop/
adb shell rm /sdcard/example.mp4