morristech
6/29/2019 - 1:02 AM

Update current working directory with all photos and videos from your Android's camera using adb

Update current working directory with all photos and videos from your Android's camera using adb

#!/usr/bin/env bash

for CAMERA in "${@:-sdcard/DCIM/Camera}"
do
	adb shell ls "$CAMERA" | while read -r
	do
		FILE=${REPLY%$'\r'*}

		[ -r "$FILE" ] && continue

		adb pull "$CAMERA/$FILE"
	done
done