• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mods ADB command [Root only]

Westone

Newbie
Hi,
In an ADB shell I started a root user session ("su"). I switched to the /data/system folder and listed the files there (ls). I want to pull a file from that directory, but I cannot get the pull syntax correct and I don't know where I am going wrong.

Sometimes ADB says "file not found". Other times (trying a different syntax) the prompt just goes to a ">" and does nothing.

The file I want to copy is packages.xml. I have tried numerous variations of this command:

pull packages.xml c:\users\administrator\documents\android\

Any suggestions?

Thanks!
 
Hi,
In an ADB shell I started a root user session ("su"). I switched to the /data/system folder and listed the files there (ls). I want to pull a file from that directory, but I cannot get the pull syntax correct and I don't know where I am going wrong.

Sometimes ADB says "file not found". Other times (trying a different syntax) the prompt just goes to a ">" and does nothing.

The file I want to copy is packages.xml. I have tried numerous variations of this command:

pull packages.xml c:\users\administrator\documents\android\

Any suggestions?

Thanks!

I may not know alot about ADB but what about

Code:
adb pull c:/users/administrator/documents/android/packages.xml

Edit: (using forward slashes instead of backward slashes.)
 
Well, I got the command to work by exiting the adb shell and running it like this:

adb pull /data/system/packages.xml

This copied the file to the current directory of the command window, and that was good enough for my purposes.

Thanks for the suggestion. According to every example I could find, when running from a Windows command window, the local location is listed with \ just like DOS recognizes, and the remote location on the phone is listed with / as is used in the dab shell.
 
when I execute cmds from term. Emulator same prob not sure strait to prompt thinking wireless adb and power shell
 
Back
Top Bottom