adb shell screenrecord /sdcard/example.mp4
Stop the screen recording by pressing Ctrl-C, otherwise the recording stops automatically at three minutes or the time limit set by --time-limit. The default and maximum value is 180 (3 minutes).
To take a screenshot:
adb shell screencap /sdcard/screen.png
Ref:
ADB Shell Commands | Android Studio
No comments:
Post a Comment