0

I can't seem to pull or push files from my phone. The file exists, and I can get into adb shell. But whether I do the command adb pull or adb shell and then pull, it doesn't work.

If I do it via shell, it gives me 'push: not found'. If I do adb pull on windows command line, it just gives me a list of all adb commands (so it doesn't understand push or pull).

What's wrong, and how do I fix it?

I am using the correct syntax.

Within shell: push (or pull) /path/to/file

outside: adb push (or pull) /path/to/file

I am working as root too.

The file I need doesn't seem to be visible to the graphical file manager I have on the phone, even though it has root permissions and is showing hidden files. It's visible via adb, so it's definitely there!

  • You are listing the path to the file after using adb pull or adb push from Windows Command Line? If you are just typing in adb push without anything else, you will only get a list of commands. – DukeSilversJazz May 30 '17 at 13:22
  • If you are "within the shell of Android", there is no point in using adb related commands and they won't work for achieving the end you're after. It's a different concept. If you are in the Windows shell than as RMarkwald says, you need to enter the full command (for push: both source and destination is required.) – Firelord May 30 '17 at 19:25
  • As you question goes, you want access to a file that's only visible to adb, but your description seems it's visible to adb shell (in other words, visible to the shell of the phone itself). If you're willing to move a file within the scope of the phone storage, use the classic Linux commands cp and mv in the shell. – Andy Yan May 31 '17 at 0:40
0

By your words, I suppose that you're running adb within an adb shell and that's wrong. See this answer for more details.

In case I misunderstood your question:
On Android, adbd is by default not running as root, so certain files and directories are not visible to the ADB client. Still, refer to my answer for more details.

There is no such command as push or pull on your Android device. All you can do is adb push from your host PC. Whatever non-existent command makes shell tell you aaabbb: not found so it's not a bug.

  • see edit......... – Ne Mo May 30 '17 at 17:37
  • 1
    see edit......... – iBug May 30 '17 at 23:49

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.