How to pull photos with ADB from local storage - android device

zzari picture zzari · Aug 28, 2016 · Viewed 28.6k times · Source

i have some problems with my Asus Zenfone 2 device (no root).

In particular, some days ago, while i was travelling abroad, my device decided to no more turn on, staying permanently in the loading ASUS screen.

Before doing the hard reset, i want to try to save at least all my photos located in the internal storage (N.B: i do not have an external SDCARD).

i correctly set up the ADB software to recognize my device but i am not able to find the photo directory.

Till now i have only pull successfully 2 directory: "sys" and "cache", using this command:

adb pull / C:\Myfile

It seems to transfer only some file system.

Doas anyone know how to pull photos or other file?

Answer

pr0gramist picture pr0gramist · Aug 28, 2016

Use adb pull sdcard/DCIM/Camera C:\MyFile

If it didn't work use:

adb shell
echo $EXTERNAL_STORAGE

It will print path to your simulated external storage. Then:

cd $EXTERNAL_STORAGE/DCIM
ls

It will print folder which will contain camera app folders. Lastly, use:

adb pull HERE_PUT_PATH_TO_EXTERNAL/DCIM/SELECTED_CAMERA_APP_FOLDER C:\MyFiles

Note: To leave adb shell type exit