[HELP please] Protocol failure when pushing through adb - Samsung Galaxy Nexus

Hey guys, I accidentally formated my sdcard and then Im stuck at Google logo.
Im typing the command to push a rom in order to get my device working again, but all I get its "not such file or directory" or sometimes "protocol failure" when the first one does not appear.
-Ive got the zip file in the same folder than adb
-My device is recognized in adb mode
-Im in recovery mode when Im doing this ( CMW 6.0.x )
-my device recognize commands like adb reboot for example so is connected properly
Please I really need help, I have to push the rom in order to save my phone.
Whay am I doing wrong? Ive tried almost every comand for example
adb push C:/android/nameofzip.zip /sdcard/
adb push C:/android/nameofzip.zip /sdcard
adb push nameofzip.zip /sdcard/
adb push C:/android/nameofzip.zip /sdcard/nameofzip.zip
HEEEELP PLEASE

please I need to repair it.

tyraelasd said:
Hey guys, I accidentally formated my sdcard and then Im stuck at Google logo.
Im typing the command to push a rom in order to get my device working again, but all I get its "not such file or directory" or sometimes "protocol failure" when the first one does not appear.
-Ive got the zip file in the same folder than adb
-My device is recognized in adb mode
-Im in recovery mode when Im doing this ( CMW 6.0.x )
-my device recognize commands like adb reboot for example so is connected properly
Please I really need help, I have to push the rom in order to save my phone.
Whay am I doing wrong? Ive tried almost every comand for example
adb push C:/android/nameofzip.zip /sdcard/
adb push C:/android/nameofzip.zip /sdcard
adb push nameofzip.zip /sdcard/
adb push C:/android/nameofzip.zip /sdcard/nameofzip.zip
HEEEELP PLEASE
Click to expand...
Click to collapse
On a windows pc that would be
adb push C:\android\nameofzip.zip /sdcard/
I generally copy the zip to the same directory as adb so there is no need to type the local directory

3rdstring said:
On a windows pc that would be
adb push C:\android\nameofzip.zip /sdcard/
I generally copy the zip to the same directory as adb so there is no need to type the local directory
Click to expand...
Click to collapse
Thanks dude, but neither of em worked.
Happily after trying so much to push the file/install the drivers and get it working, the toolkit recognized my fastboot drivers and I was able to install a google factory image through it and now everything is perfect.
Cheers.

Related

Help using ADB to push an app

Hi all, I am using a froyo rom based on richardtrips rom.
I'm trying to push a themed facebook apk. I have placed the apk in the tools folder.
This is what I did.. Boot to recovery, then open a cmd on my windows laptop. I then did the cd to go to my adb tools folder.
Then I typed
Code:
adb remount
This gave me an error saying error 0.
So I tried while the handset was booted normally. The remount was successful.
I then typed
Code:
adb push system/app/facebook.apk
This just gave me the help list with details of all the commands.
Can anyone tell me where I am going wrong?
how about
adb shell mount /system
adb push C:\Facebook.apk /system/app/
adb reboot
MasDroid said:
how about
adb shell mount /system
adb push C:\Facebook.apk /system/app/
adb reboot
Click to expand...
Click to collapse
This one seems to have worked. Thanks very much. I'm half sleeping and it was doing my head in
socktug said:
This one seems to have worked. Thanks very much. I'm half sleeping and it was doing my head in
Click to expand...
Click to collapse
No problem bud
It's pretty late here too and my eyes are half open and they feel as if they are burning lol.

Forgot to transfer ROM

I tried to root my Nexus to get Jellybean...all went well till I realized I forgot to get the ROM onto the phone.
I made a backup onto the computer but didn't do it after I booted into clockwork mod. I wiped the cache etc. and installed the Gapps and that is when I realised the ROM wasn't on the phone. My phone wont connect to the computer and the only backup I have is on my computer.
Is there a way to get the stock ICS on the phone or somehow get the JB ROM onto my phone?
Not an expert, but fastboot and flash stock???
Sent from my Galaxy Nexus using Tapatalk 2
If your phone is recognized by the PC, push the ROM with ADB. You can then flash it.
Code:
adb push rom-file.zip /sdcard/
Alternatively if you just want to return to stock, flash the images via fastboot: http://forum.xda-developers.com/showthread.php?t=1626895
martonikaj said:
If your phone is recognized by the PC, push the ROM with ADB. You can then flash it.
Code:
adb push rom-file.zip /sdcard/
Alternatively if you just want to return to stock, flash the images via fastboot: http://forum.xda-developers.com/showthread.php?t=1626895
Click to expand...
Click to collapse
Phone is not recognized by the computer. It tries to install the driver then says it can't.
adb push it.
You can adb push from a custom recovery (CWM)
Jubakuba said:
adb push it.
You can adb push from a custom recovery (CWM)
Click to expand...
Click to collapse
I can't find the AndroidSDK folder on my computer at all...
edit-
downloaded and installed Android SDK.
edit-
got to cmd....I get to the point where I need to adb push but I get this message: 'adb' is not recognized as an internal or external command, operable program or batch file.
and on cwm, I can't toggle the /sdcard to unmount. It stays on mount.
cwpmz3 said:
I can't find the AndroidSDK folder on my computer at all...
edit-
downloaded and installed Android SDK.
edit-
got to cmd....I get to the point where I need to adb push but I get this message: 'adb' is not recognized as an internal or external command, operable program or batch file.
and on cwm, I can't toggle the /sdcard to unmount. It stays on mount.
Click to expand...
Click to collapse
You need to be in the sdk folder where the adb.exe is located, and the file you want to push must be in the same folder aswell.
Swype'ed on my CM10 Galaxy Nexus
cwpmz3 said:
I can't find the AndroidSDK folder on my computer at all...
edit-
downloaded and installed Android SDK.
edit-
got to cmd....I get to the point where I need to adb push but I get this message: 'adb' is not recognized as an internal or external command, operable program or batch file.
and on cwm, I can't toggle the /sdcard to unmount. It stays on mount.
Click to expand...
Click to collapse
Open the directory where you put the adb.exe file. Shift+Right Click the blank screen. Click Run Command Prompt Here. Now you should be able to use adb and all its commands when your phone is in recovery mode and connected to computer. Just to make sure, you can always do "adb devices" to check it the phone is recognized.
Also make sure that the ROM you want to transfer is in the same directory as adb.exe.
After you've done that, do "adb push NAME OF THE ROM.zip /sdcard/"
Now use CWM to flash that zip file and you're good to go.
Thanks everyone! Got it working!
Definitely made my heartdrop before haha but man I learned a lot haha again, Thanks!:good:

[Q] Flash system over cmd

I just erased everything on my sdcard (emulated) and the system. The only things left are recovery and bootloader. I read about sideload but it doesn't work for me, because my adb doesn't act out the command (My adb version is 1.0.29). So how could I transfer the rom onto my not existing sdcard? (If I do adb push all it says is: "E: /sdcard/ : is a directory")
Please help me as quick as possible. Thanks!
Try pushing it to
adb push c:/rom_name.zip /data/media
Click to expand...
Click to collapse
acreatorius said:
I just erased everything on my sdcard (emulated) and the system. The only things left are recovery and bootloader. I read about sideload but it doesn't work for me, because my adb doesn't act out the command (My adb version is 1.0.29). So how could I transfer the rom onto my not existing sdcard? (If I do adb push all it says is: "E: /sdcard/ : is a directory")
Please help me as quick as possible. Thanks!
Click to expand...
Click to collapse
I managed it by downloading the factoryimage from google and flashing userdata.img, but thanks for the quick reply

[Q] ROM install SDCard USB issues.

So, my problem is that I have recently unlocked the bootloader on my HTC One X using my Mac and the very helpful guide provided on this YouTube link
http://youtu.be/8Y3VbFJIwWU
No problems with the process in that video and I've gotten to the end with the phone bootloader definitely.
My problem is that I've then attempted to install a custom ROM from the SD card. Again, this seems to work fine, but upon reboot I'm immediately hit with a continual pop-up 'unfortunately, the process com.android.phone has stopped' with the only option to press ok. It loops continuously.
I suspect I may have to reinstall the ROM onto the SD card, but this is my problem. I cannot get my phone's USB access to work on my Mac as I am stuck with the above pop-up preventing me. I can't seem to access it via Recovery either.
Can I use fastboot to 'flash' over the *.img or *.zip of a new ROM to get it onto the SD card? Stuck with a phone I can't use otherwise. :crying:
Thanks.
Mount usb storage from the recovery.
Sent from my HTC One X using xda app-developers app
or while in recovery type
Code:
adb push rom.zip sdcard/
Thanks for that, athulele . :good:
I have tried that. On a Mac, for USB access requires that I use software called 'Android File Transfer' rather than the way Windows would do it. That software doesn't kick in via Recovery mounting. So, I'm going to need a different approach.
Since I have Windows installed via Bootcamp, I think I'll try to connect the phone up via Windows and see whether I can access the SD card via USB using that route.
Any other help is most welcome.
you do not need that file, just boot into recovery and type the command above... it's the easiest way
matt95 said:
you do not need that file, just boot into recovery and type the command above... it's the easiest way
Click to expand...
Click to collapse
Having booted into recovery, using Terminal on my Mac and typing
adb push sentinelrom_v4_30_endeavoru.zip sdcard/
gives the following message:
-bash: adb: command not found
Am I doing something wrong here?
well, have you got the sdk installed on your mac?
matt95 said:
well, have you got the sdk installed on your mac?
Click to expand...
Click to collapse
I've now downloaded the sdk for mac. It's a adt bundle folder with many files inside. I've installed 'Eclipse' but I'm still getting the same message as before from the Terminal. What else do I need to do here?
Im not into macs .... but don't you need to enter sudo commands before the adb/fastboot commands ?
no, he only needs to navigate to the adb directory with the terminal and then type
Code:
./adb push rom.zip sdcard/
matt95 said:
no, he only needs to navigate to the adb directory with the terminal and then type
Code:
./adb push rom.zip sdcard/
Click to expand...
Click to collapse
Hi matt95
I'm grateful for the help you are giving me here. I've found the adb file within the following downloaded directory path:
act-bundle-mac-x86_64-20130219 - sdk - platform-tools - adb
When I changed directory in Terminal to this path and ensured the specific rom.zip was also in that path, Terminal is still giving me this:
./adb push sentinelrom_v4_30_endeavoru.zip sdcard/
-bash: ./adb: No such file or directory
I must be doing something not right. Please help further.
that's strange, could you provide me the platform-tools folder and the rom.zip folder? i'll write down what you exactly have to write...
matt95 said:
that's strange, could you provide me the platform-tools folder and the rom.zip folder? i'll write down what you exactly have to write...
Click to expand...
Click to collapse
Folder contents as described.
Thanks.
ok now i need their directory, for ex. /User/yourusernane/Docuemnts/ecc ecc......
matt95 said:
ok now i need their directory, for ex. /User/yourusernane/Docuemnts/ecc ecc......
Click to expand...
Click to collapse
/Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
and
/Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools/sentinelrom_v4_30_endeavoru
Thanks.
ok, now open the therminal ans type
Code:
cd /Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
./adb push (drag the rom.zip into terminal) sdcard/
now it should work
matt95 said:
ok, now open the therminal ans type
Code:
cd /Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
./adb push (drag the rom.zip into terminal) sdcard/
now it should work
Click to expand...
Click to collapse
Slowly making progress. Latest Terminal message after doing that reads 'error: device not found'.
I am using ClockworMod Recovery v5.8.2.7 and have clicked on 'mount /sdcard'. I have tried to 'mount USB storage' but am getting an error message which reads 'E: Unable to open ums lunfile (No such file or directory).'
What should I do next?
Thanks.
fingerbob said:
Slowly making progress. Latest Terminal message after doing that reads 'error: device not found'.
I am using ClockworMod Recovery v5.8.2.7 and have clicked on 'mount /sdcard'. I have tried to 'mount USB storage' but am getting an error message which reads 'E: Unable to open ums lunfile (No such file or directory).'
What should I do next?
Thanks.
Click to expand...
Click to collapse
Flash a newer recovery.
Mr Hofs said:
Flash a newer recovery.
Click to expand...
Click to collapse
I managed to find a copy of ClockworkMod Recovery v5.8.4.0 and flashed this as advised. This has somehow enabled the USB facility on my phone to start working again and I can replace the ROM I've downloaded onto it.
I just tried reinstalling the ROM I had again, but once again got the original message stated in my first post. I'm about to now try a different ROM to see if that makes any difference.
:good:

[Q] Can't push files with ADB/TWRP

Here's my issue. Trying to put an updated CM on my kindle. Put when I open up cmd prompt from my ADB file location from my desktop it won't let me push files.
I'm able to put in the cmd; adb devices. and can see my device is listed in recovery mod. but every time I run the cmd, adb push filename.zip /sdcard/ filename.zip....It doesn't send instead the cmd prompt returns a bunch of lines of code explaining the different commands that are available.
I've reinstalled the USB drivers for my kindle and am running TWRP v2.6.3.1.
Any help is appreciated
Edit: solved my own issue, sorry

Categories

Resources