Skip to content

Instantly share code, notes, and snippets.

@liutingdu
Last active January 15, 2016 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liutingdu/33b9bab90a5afbdb1bb9 to your computer and use it in GitHub Desktop.
Save liutingdu/33b9bab90a5afbdb1bb9 to your computer and use it in GitHub Desktop.
ADB commands

Grabs a screenshot from the Android device and stores directly on OS X
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png

##Take screnshot take a screenshot and save on device
adb shell /system/bin/screencap -p /sdcard/screenshot.png
then save it to computer
adb pull /sdcard/screenshot.png screenshot.png

##Record screen record screen video:
adb shell screenrecord /sdcard/GlassScreenRecord.mp4
stop recording:
crtl + C
save to computer
adb pull /sdcard/GlassScreenRecord.mp4 GlassScreenRecord.mp4

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