Skip to content

Instantly share code, notes, and snippets.

@eunomie
Created April 22, 2015 12:24
Show Gist options
  • Save eunomie/dd28a0d9acc85a498914 to your computer and use it in GitHub Desktop.
Save eunomie/dd28a0d9acc85a498914 to your computer and use it in GitHub Desktop.
Some Android shortcuts
#!/bin/sh
adb pull "/data/local/tmp/$1.mp4"
adb shell rm "/data/local/tmp/$1.mp4"
#!/bin/sh
adb shell screenrecord "/data/local/tmp/$1.mp4"
#!/bin/sh
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > $1.png
@eunomie
Copy link
Author

eunomie commented Apr 22, 2015

Usage

Grab a screenshot

ss plop

plop.png is created in the current folder.

Record a video

record my_nice_demo
# ^C to stop
get my_nice_demo

my_nice_demo.mp4 is created in the current folder

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