-
-
Save eunomie/dd28a0d9acc85a498914 to your computer and use it in GitHub Desktop.
Some Android shortcuts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
adb pull "/data/local/tmp/$1.mp4" | |
adb shell rm "/data/local/tmp/$1.mp4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
adb shell screenrecord "/data/local/tmp/$1.mp4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > $1.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
Grab a screenshot
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