Skip to content

Instantly share code, notes, and snippets.

@Kardelio
Created August 30, 2019 08:43
Script to copy (pull) the newest recorded video from a Android device to your computer (vidpull)
#!/usr/bin/env bash
echo "Pulling newest video"
file=$(adb shell ls sdcard/DCIM/Camera | grep mp4 | tail -n1 | sed 's/^M//g')
adb pull "sdcard/DCIM/Camera/$file"
@Kardelio
Copy link
Author

Kardelio commented Sep 3, 2019

Related video regarding this script:

https://youtu.be/0lBTc4aE10I

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