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?
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.
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
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With