Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB push -p Bad file descriptor

Tags:

android

push

adb

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?

  • Android Debug Bridge version 1.0.32
  • OS: Win8.1
  • FileSystem: NTFS
like image 215
vovkas Avatar asked Nov 06 '14 20:11

vovkas


People also ask

How do I push and pull files from ADB?

Push and Pull Files Using ADB Commands Download and extract the ADB files on your PC. Open a command prompt in the ADB folder by right clicking on the mouse in the empty space of the folder while holding the Shift key. Now to pull any file from your device, you need to know its path.

What is ADB and how to use it?

But it also offers features that could come in handy to an average user too. The Pull and Push commands of ADB are one of them and could be used to copy files from your PC to your Android device (or vice-versa) by just using a command. 1. Example of using ADB Push

How to open ADB SDK platform-tools command prompt?

Open a command prompt in the ADB folder by right-clicking on the mouse in the empty space of the folder while holding the Shift key. Select ‘Open command window here‘ or ‘Open PowerShell window here‘ option.ADB SDK Platform-Tools Command Window. Now to pull any file from your device, you need to know its path.

How do I open ADB files in PowerShell?

Open a command prompt in the ADB folder by right-clicking on the mouse in the empty space of the folder while holding the Shift key. Select ‘ Open command window here ‘ or ‘ Open PowerShell window here ‘ option.


1 Answers

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.

like image 103
user4234432 Avatar answered Sep 19 '22 23:09

user4234432