Skip to content

Instantly share code, notes, and snippets.

@kaneelyster
Last active March 24, 2020 08:12
Show Gist options
  • Save kaneelyster/e2416720251c5a7ee1913cfdb03a16a7 to your computer and use it in GitHub Desktop.
Save kaneelyster/e2416720251c5a7ee1913cfdb03a16a7 to your computer and use it in GitHub Desktop.
Adb commands to record screen

Record

adb shell screenrecord /sdcard/example.mp4

Switches:

Set the time limit. Default max is 3 minutes. --time-limit <SECONDS>

Stop the screen recording by pressing Ctrl-C

Copy to local machine

adb pull /sdcard/example.mp4 /users/username/Desktop/

Delete from device

adb shell rm /sdcard/example.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment