Skip to content

Instantly share code, notes, and snippets.

@shikajiro
Created June 18, 2016 09:56
Show Gist options
  • Save shikajiro/3a524a220e95364ab6056ae61262a8ae to your computer and use it in GitHub Desktop.
Save shikajiro/3a524a220e95364ab6056ae61262a8ae to your computer and use it in GitHub Desktop.
echo "start adb shell capture"
DATE=$(date +%Y%m%d%H%M%S)
FILENAME=${DATE}.mp4
DROPBOX_ID=******
adb shell screenrecord --verbose --time-limit 5 /sdcard/demo.mp4
adb pull /sdcard/demo.mp4 ~/Dropbox/Public/capture/${FILENAME}
adb shell rm /sdcard/temp.png
DROPBOX_URL=https://dl.dropboxusercontent.com/u/${DROPBOX_ID}/capture/${FILENAME}
echo ${DROPBOX_URL} | pbcopy
echo "clip board copy ${DROPBOX_URL}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment