With the screen capture widget
You can use the capture widget from the device display.
By command line
You can use the adb shell screenrecord
command to record the device screen:
- Connect the device to adb via gmsaas
- Use the
adb shell screenrecord [--time-limit] <DESTINATION>
command
For example, to record your screen to /sdcard/Download/screenrec.mp4
:
adb shell screenrecord /sdcard/Download/screenrec.mp4
Note
The default recording time limit is 180 seconds (3 minutes). This can be changed with --time-limit
option. Maximum value is 86400 (24 hours). For example, to record the screen for 5 minutes (300 seconds): adb shell screenrecord
--time-limit 300 /sdcard/test5min.mp4