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
Last active
January 15, 2016 16:25
-
-
Save liutingdu/33b9bab90a5afbdb1bb9 to your computer and use it in GitHub Desktop.
ADB commands
##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