[Q] Flash system over cmd - Samsung Galaxy Nexus

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

Related

Verification failed with custom recovery... can anyone help?

I have Amon_RA's latest recovery installed, buy when I try and do an update I get the verification failed Error. I Have MoDaCo 3.1 installed, I am just trying to apply a couple of update zips from this thread.
Can anyone help?
they aren't a update zip file, copy that thing with adb push
ah silly me
Thanks
what is adb push?
ws6driver said:
what is adb push?
Click to expand...
Click to collapse
you can manage the phone content through your pc( with your phone connected obviously0 with commands using the sdk tools and a console.
adb push XXXXX will push the desired file in desired locations
adb shell rm XXXXXX will remove a desired file from the phone
just for example

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:

[HELP please] Protocol failure when pushing through adb

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.

[Q] Phone stuck in bootloop, how to copy data to computer

I recently flashed a new rom and got stuck in a bootloop. I use teamwin recovery. I'm planning on following the guide by efrant http://forum.xda-developers.com/showthread.php?t=1626895 but I want to copy all of my data to my computer. I can use adb commands and my phone shows up under adb devices. I tried searching for adb commands to copy files to computer but everything I found seems to be how to copy files to the phone.
I looked at another thread about using adb to backup but it appears that I need to have my phone on and running normally. http://forum.xda-developers.com/showthread.php?t=1420351
I used the command "adb pull /sdcard/clockworkmod" to try to recover my nandroid backups but I want to be able to pull everything off of my phone
I tried using the command "adb pull system" but it doesn't pull anything. Is their a way to pull everything from my phone and put it on my computer so I can eventually copy it back?
Thanks a bunch.
What exactly do you mean by all of your data / everything? Most of your data is stored on your sdcard anyway. There's not much you'd lose.
adb pull /sdcard/ ~/Desktop/ [as an example].
If you wanted ALL of your data, i.e. factory image backup, you should've done that before flashing a new rom.
You cannot pull /system as its protected and would need insecure adbd for that to work. You could try to dd entire partition blocks, but i don't see the point. Just flash a factory image.
P.S. If you're in a bootloop, you can use adb in your recovery.
How do I find where the backup goes? I did "adb pull /sdcard/"
I did have a nandroid backup but I want to make sure I get all of my files and music off just in case
you have to tell adb where you want the files to go. you only gave it one parameter.
http://developer.android.com/tools/help/adb.html
go read syntax.
Zepius said:
you have to tell adb where you want the files to go. you only gave it one parameter.[/url]
go read syntax.
Click to expand...
Click to collapse
So I want to make sure I read this right, if I type in "adb pull /sdcard/ G:\backup" then it should copy everything from my sdcard folder into my backup folder on G: right?
yes.
Zepius said:
yes.
Click to expand...
Click to collapse
Awesome, thanks for your help.

[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:

Categories

Resources