vovkas
vovkas

Reputation: 1109

ADB push -p Bad file descriptor

ADB command:

adb pull -p /data/local/tmp/myFile.txt c:\myFile.txt 

return text "Transferring: 11468800/38632644 (29%)"

But if I use command:

adb push -p c:\myFile.txt /data/local/tmp/myFile.txt 

I can see error: "cannot stat 'c:\myFile.txt': Bad file descriptor".

adb help contains text

adb push [-p] <local> <remote>
    - copy file/dir to device
    ('-p' to display the transfer progress)

What is wrong?

Upvotes: 16

Views: 8479

Answers (2)

doktor5000
doktor5000

Reputation: 181

Seems the argument handling of adb push is broken somehow. When using -p it seems to think that it is an argument (local file/dirname) and will treat the actual filename as remote file/dirname which will obviously not work as it's missing the preceding remote path. When using -p at the end copying does not seem to start at all.

Upvotes: 5

user4234432
user4234432

Reputation: 211

I had the same problem. I removed the "-p", removed the "_" from my file name, and moved it to a different location and it worked.

Upvotes: 21

Related Questions