Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Backup folders locally via adb
input=()
for path in /sdcard/{"Pictures","Download","DCIM"}; do
input+=$(adb shell "ls -d '$path'")
done
for path in $input; do
adb pull $path &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment