Skip to content

Instantly share code, notes, and snippets.

@Leaking
Created August 17, 2016 12:50
Show Gist options
  • Save Leaking/183830956ed1e001a4a1861c959b2d53 to your computer and use it in GitHub Desktop.
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
#! /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