How do I copy a folder from my android device to a certain folder of my computer?

if I use this command:

adb pull efs

It copies the contents of the efs folder to my computers root directory. I want to copy the whole folder with it contents to a certain destination to my computer.

I have tried with the following for instance, without success

adb pull efs C:\Users

(my android is rooted)

I am using a window shell


To pull files to the C:\Users directory with adb you would need to be in an elevated command prompt. If it is not a necessity to have it in the C:\Users directory, you could pull the files elsewhere. Ex: adb pull C:\Users\[your username]\Desktop.

  • What about Linux then? That ADB command OP noted doesn't seem to work in a Linux distro too. – Firelord Sep 7 '15 at 19:39
  • To pull files to a directory in Linux with adb you would use the same syntax. Ex: adb pull /path/to/files /home/[your username]/ Although if you were not root you would not be able to pull the files to any directory. – Dominic Sep 7 '15 at 19:52
  • It's not working. I tried it already. Also, I'm asking about pulling the directory itself, not just the files inside it which your comment seems to be doing. – Firelord Sep 7 '15 at 19:59
  • 1
    To have the two scripts be copied into a folder on your computer named Testing you can add the directory name to the end of the destination. adb pull /sdcard/Testing/ ~/Testing/ – Dominic Sep 7 '15 at 20:48
  • 1
    That's the point I'm trying to make. It does not get created automatically. – Firelord Sep 7 '15 at 20:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.