Created
August 17, 2016 12:50
-
-
Save Leaking/183830956ed1e001a4a1861c959b2d53 to your computer and use it in GitHub Desktop.
Bash script to take screen-record on android and export to for Mac Desktop
This file contains hidden or 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/bash | |
adb shell screenrecord --time-limit 12 /sdcard/demo.mp4 | |
dir=~/Desktop/ | |
curr=`date "+%Y-%m-%d %H:%M:%S"` | |
name=${dir}"screenrecord"${curr}".mp4" | |
echo "${name}" | |
adb pull /sdcard/demo.mp4 "$name" | |
adb shell rm /sdcard/demo.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment