Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy selected files from Android with adb pull

Tags:

android

adb

I'm attempting to use the adb pull command to copy only certain files (jpg) to my macbook. I tried "adb pull sdcard/mydir/*.jpg" but it apparently doesn't interpret wildcards. How can I get only the jpg files copied over? I have rooted the phone if that helps.

like image 810
Jack BeNimble Avatar asked Dec 27 '11 23:12

Jack BeNimble


People also ask

How do I access files using adb?

Open cmd type adb shell then press enter. Type ls to view files list.


1 Answers

You can move your files to other folder and then pull whole folder.

 adb shell mkdir /sdcard/tmp adb shell mv /sdcard/mydir/*.jpg /sdcard/tmp # move your jpegs to temporary dir adb pull /sdcard/tmp/ # pull this directory (be sure to put '/' in the end) adb shell mv /sdcard/tmp/* /sdcard/mydir/ # move them back adb shell rmdir /sdcard/tmp # remove temporary directory 
like image 160
Michał Zieliński Avatar answered Sep 22 '22 23:09

Michał Zieliński