No OS but only CWM recovery - Nexus 4 Q&A, Help & Troubleshooting

I want to flash a rom but i can't save the zip files to my storage. What do i do?
I have no os but only cwm. Please help, thanks.

dicksonjoe said:
I want to flash a rom but i can't save the zip files to my storage. What do i do?
I have no os but only cwm. Please help, thanks.
Click to expand...
Click to collapse
ADB Sideload
1. Connect your phone make sure it's actually connected. No errors in Device Manager
2. Rename the downloaded ROM you want to flash to something basic, like rom.zip (Names can get rather long)
3. Open CMD (command prompt), & navigate it to the folder you placed the ROM in. or just press shift and right click on the folder where the rom is and select open command prompt here
4. Boot to recovery on your phone and enable the ADB sideload function. Under Advanced in TWRP...not sure about CWM
5. in CMD type adb sideload rom.zip or what ever the name of the .zip is
6. Let TWRP or CWM flash the zip and prompt for reboot.
7. Reboot and be happy, your phone is fixed!
You can then transfer the gapps to your internal storage and flash the normal way through your reecovery or just go through the same process for the gapps after you flash the rom.

I am having trouble installing the adb file.
I don't know what mode my phone needs to be on in order to install adb file.

dicksonjoe said:
I am having trouble installing the adb file.
I don't know what mode my phone needs to be on in order to install adb file.
Click to expand...
Click to collapse
Installing adb doesnt have to do with what mode your phone is in.

Related

NS 4G - Need radio image dump

Looking for anyone with a new NS4G to dump a copy of the radio. I messed up and flashed a rom that had a gsm radio attached. rendering my phone useless as far as phones go.
root
post a good root method and how to do the dump. I can have it hotlinked in 1 hour
i used http://jaxov.com/2011/02/how-to-root-android-2-3-3-gingerbread-on-nexus-s/
worked just fine.
Once you're rooted, do
Code:
adb shell dd if=/dev/mtd/mtd5 of=/sdcard/ns-cdma-radio.img count=12583040
Then upload that ns-cdma-radio.img somewhere ;D
?
ok thanks, i will link it when finished
the dumped file will be in my phone memory, correct?
ryandoubleu said:
ok thanks, i will link it when finished
the dumped file will be in my phone memory, correct?
Click to expand...
Click to collapse
It will be on your internal storage that you can mount as a drive on your pc, yes.
may take...
may take longer than an hour as I am doing the SDK install
ryandoubleu said:
may take longer than an hour as I am doing the SDK install
Click to expand...
Click to collapse
You don't need the platform api, just the SDK tools/platform-tools , that'll save you a lot of download time.
yes i should have mentioned that. i didn't install the SDK either just the tools.
just like http://forum.xda-developers.com/showthread.php?t=878786
hmm
fastboot command wont work? troubleshooting as we speak
ryandoubleu said:
fastboot command wont work?
Click to expand...
Click to collapse
instal drivers?
look to the 2nd rooting method i posted. the 2nd file you download are the drivers. you would install it when your phone is in fastboot mode then go to device manager and upgrade the driver
unzip the rar file and make sure to select x86 or x64 driver for your pc.
you should be able to type "fastboot devices" hit enter and it will return your phone if you have the drivers installed
Also the simplest method to get the drivers might be to put phone into fastboot mode, plug USB to computer, then install PDA Net (which automatically installs the phone drivers). I personally could not get the drivers to install manually on Windows 7, had to use the PDA Net method.
CMD is giving my a Permission Denied with this command
adb shell dd if=/dev/mtd/mtd5 of=/sdcard/ns-cdma-radio.img count=12583040
ryandoubleu said:
CMD is giving my a Permission Denied with this command
adb shell dd if=/dev/mtd/mtd5 of=/sdcard/ns-cdma-radio.img count=12583040
Click to expand...
Click to collapse
Try this: (I am assuming you've already finished rooting and installed superuser)
run adb shell
that should give you a "$" prompt in your command window (you've just shelled into your phone)
then type "su" (without the quotes)
On your phone, a superuser request should pop up on the screen, hit Allow
Your command prompt should change to a #
then type
dd if=/dev/mtd/mtd5 of=/sdcard/ns-cdma-radio.img count=12583040
*EDIT: made a typo in the original writeup of this post and left out the count parameter*
(no adb shell required before the dd command this time since you're already shelled into the phone)
here it is
http://www.megaupload.com/?d=H3Z7RQLZ radio image for you
Also, from the first root method I cant find this file and move forward
4. Tap on the gray box that says Mount R/W
5. Tap and hold on the file install-recovery.sh and rename this file to install-recovery.sh.old
6. Once renamed, download and install the app called ROM Manager from Android Market
7. Once installed, open ROM Manager app and choose Flash ClockworkMod Recovery option.
ryandoubleu said:
http://www.megaupload.com/?d=H3Z7RQLZ radio image for you
Also, from the first root method I cant find this file and move forward
4. Tap on the gray box that says Mount R/W
5. Tap and hold on the file install-recovery.sh and rename this file to install-recovery.sh.old
6. Once renamed, download and install the app called ROM Manager from Android Market
7. Once installed, open ROM Manager app and choose Flash ClockworkMod Recovery option.
Click to expand...
Click to collapse
i didn't do that i just ran ROM manager and flashed the latest Clockwork. you're backing up the old recovery. in that step, good idea, sure. needed, not really.
joebags said:
i didn't do that i just ran ROM manager and flashed the latest Clockwork. you're backing up the old recovery. in that step, good idea, sure. needed, not really.
Click to expand...
Click to collapse
Actually the point of renaming that script is to prevent clockwork from being overwritten by the stock recovery.
The default stock rom is set up to re-flash the stock recovery from cache on bootup if it detects that it's been changed (which is very annoying if you *want* clockwork recovery).
thank you very much for uploading that for me
now correct me if i'm wrong netarchy but i would use fastboot to flash the img file?
I just want to double check before i mess up once again. i'm pretty smart and a quick learner but not a pro like yourself
worked?
joebags said:
i didn't do that i just ran ROM manager and flashed the latest Clockwork. you're backing up the old recovery. in that step, good idea, sure. needed, not really.
Click to expand...
Click to collapse
the radio.img got you working?

How to put file on SDCard from Recovery

I need to flash a ROM, but I can't start my phone up to be able to transfer the file over. There used to be a Mount Storage Device option on my old DHD, but I noticed that on the N4, CWM does not have this option (maybe to do with MTP).
How can I copy a file over onto SDCard so I can flash it? I tried:
Code:
adb push file.zip /sdcard/file.zip
When I try and flash it, it says "Can't open /sdcard/file.zip (bad)
Flash TWRP via fastboot and mount the phone via usb the same drag it into the phone.
Alternatively as a last resort, flash back to stock using stock images provided by Google vis fast boot and then drag it onto the sd as well as reinstalling the recovery.
Sent from my Nexus 4 using xda premium
stefandunn said:
I need to flash a ROM, but I can't start my phone up to be able to transfer the file over. There used to be a Mount Storage Device option on my old DHD, but I noticed that on the N4, CWM does not have this option (maybe to do with MTP).
How can I copy a file over onto SDCard so I can flash it? I tried:
Code:
adb push file.zip /sdcard/file.zip
When I try and flash it, it says "Can't open /sdcard/file.zip (bad)
Click to expand...
Click to collapse
Remove the "file.zip" after the sdcard:
Code:
adb push file.zip /sdcard/
Also ensure the real file name doesn't contain spaces.
Edit: the command as you were typing it was telling adb to take the CONTENTS of file.zip and place them in a FOLDER called file.zip. Out of adb's range of abilities
Alternatively, if you're using CWM, you can use the "Install zip from sideload" option. Once you're in, push the file from adb using "adb sideload filename.zip"
The adb command you tried should work fine in recovery. Maybe you weren't in the correct folder where file.zip was located when you executed the adb command?
Also, if you don't have adb set in your PATH, then the adb app will need to be in the same folder as file.zip.
http://forum.xda-developers.com/showthread.php?t=1667929
se1000 said:
Alternatively, if you're using CWM, you can use the "Install zip from sideload" option. Once you're in, push the file from adb using "adb sideload filename.zip"
Click to expand...
Click to collapse
Thank you very much!

HELP! Formatted Nexus 4

I am using TWRP and wile i was wiping to install another rom i saw the option format data because i wanted to fully wipe my apps and all but wat i did not saw was that i was gonna wipe the system too. So now i have the phone and i can enter to fastboot and to TWRP but i have no rom to install and i don't know how to transfer a zip from pc to the nexus. Or at least a return to stock so i can re root it.
Please help me.
You can use a toolkit and flash a rom that way. Very user friendly. All you need to do is plug it in and flash it through its menus.
You can use adb to push the zip from your computer to your phone while in recovery.
Sent from my Nexus 4 using xda app-developers app
How do people not read up on what to do BEFORE flashing a new ROM? Or at least search? To the OP, there is a thread in General all about returning to stock using simple fastboot commands and the factory image Google provide so best to follow that
darkdhanil said:
I am using TWRP and wile i was wiping to install another rom i saw the option format data because i wanted to fully wipe my apps and all but wat i did not saw was that i was gonna wipe the system too. So now i have the phone and i can enter to fastboot and to TWRP but i have no rom to install and i don't know how to transfer a zip from pc to the nexus. Or at least a return to stock so i can re root it.
Please help me.
Click to expand...
Click to collapse
1)Go to recovery TWRP in the N4
2)Connect the phone to your computer with the USB cable
3)Shift+Right click -> Open command prompt here (In platform-tools folder)
4)Copy all the files (ROM + Gapps) to the platform-tools folder.
5)When done,on the command prompt use the command "adb push myrom.zip /sdcard/0 " where myrom = the name of the ROM you wanna flash an wait
5.1)Do the same with the gapps "adb push gapps.zip /sdcard/0" where gapps = name of the gapps zip file.
6)When done step 5 ...go back to your phone and flash a ROM like you normally would.
PS : If you've got problems at step 5 you probably need ADB drivers..just download them from the internet.
Respect
If you want to return to stock, I found these instructions very easy to follow:
http://forums.androidcentral.com/ne...3923-guide-nexus-4-factory-image-restore.html
xtrmshadow said:
1)Go to recovery TWRP in the N4
2)Connect the phone to your computer with the USB cable
3)Shift+Right click -> Open command prompt here (In platform-tools folder)
4)Copy all the files (ROM + Gapps) to the platform-tools folder.
5)When done,on the command prompt use the command "adb push myrom.zip /sdcard/0 " where myrom = the name of the ROM you wanna flash an wait
5.1)Do the same with the gapps "adb push gapps.zip /sdcard/0" where gapps = name of the gapps zip file.
6)When done step 5 ...go back to your phone and flash a ROM like you normally would.
PS : If you've got problems at step 5 you probably need ADB drivers..just download them from the internet.
Respect
Click to expand...
Click to collapse
Finally someone that explained step by step. Thanks man. All is ok now
xtrmshadow said:
1)Go to recovery TWRP in the N4
2)Connect the phone to your computer with the USB cable
3)Shift+Right click -> Open command prompt here (In platform-tools folder)
4)Copy all the files (ROM + Gapps) to the platform-tools folder.
5)When done,on the command prompt use the command "adb push myrom.zip /sdcard/0 " where myrom = the name of the ROM you wanna flash an wait
5.1)Do the same with the gapps "adb push gapps.zip /sdcard/0" where gapps = name of the gapps zip file.
6)When done step 5 ...go back to your phone and flash a ROM like you normally would.
PS : If you've got problems at step 5 you probably need ADB drivers..just download them from the internet.
Respect
Click to expand...
Click to collapse
you are the best. for real. I didnt know what platform-tools was at first, but i got it after i googled. and i kept messing up the code, but you see on my phone, you dont need the /0, /sdcard is enough since there is no /0 directory, but i figured that out too.
thankyou so much. respect.
Yes twrp automatically knows about the 0 folder. It does exist. Just you don't need to see it. Clockwork recovery does not see it so on that recovery you have to push to /sdcard/0/ but on twrp you only push to /sdcard/
Sent from my Nexus 4 using xda app-developers app

Nexus 4 Boot Problem

Hey ! I Have Google Nexus 4
My System Has Delete >> And I Cant Move Rom To Phone Because Need USB debugging
My Recovery TWRP
Please Help Me
And Sorry For Bad English !
Penguin997 said:
Hey ! I Have Google Nexus 4
My System Has Delete >> And I Cant Move Rom To Phone Because Need USB debugging
My Recovery TWRP
Please Help Me
And Sorry For Bad English !
Click to expand...
Click to collapse
You can copy the file over from TWRP. Just connect to the computer boot into TWRP, go under Mounts, and Mount USB. You can just copy and paste from your computer to the phone, then unmount, and flash the file in CWM
Otherwise,
1. Open your cmd and navigate to the folder with the adb files(the folder where you flashed your roms, kernels, or recovery).
2. Access the cwm at your phone and connect an usb cable to the computer.
3. Put the files that you wanted to send to your phone at that particular folder
4. Type "adb push (filename) /sdcard/(filename)". Example, "adb push rom.zip /sdcard/rom.zip"
4.1. Depending on your OS, you may want to add "./" at the front of the command if you're using unix based os(this is an oversimplified version)
5. Wait until it finishes its transfer(a message will appear saying the filename, file size and the speed of the transfer per sec when it finishes)
6. Wait for a while or reboot your cwm so that the filename will appear and just reflash the file.

One Plus 5. No OS issue.

So i am having a issue with my oneplus 5 and hope someone could help me out
So i have ended up wiping the entry phone in recovery, getting rid of all the internal data, including sdcard & operating system. At the moment the only thing i can get access to is fastboot & TWRP. I am trying to sideload or push a rom zip to the phone, but all i keep getting is the below:
adb sideload "Zip folder name and extension".
loading "zip"
cannot read "zip"
or i get an error that just says "Closed.
Now i have update to the latest drivers and adb and when i type "adb devices" my phone is showing...
I have also flashed the oneplus 5 recovery via fastboot, however when i go on to adb sideload, the phone doesnt show in CMD.
any help here will be appricated, as i am out of ideas.
Thanks in advance.
Make the file names shorter.
Alternatively, you should be able to use a flash drive through OTG and install the stuff from it.
Rhoban said:
Make the file names shorter.
Alternatively, you should be able to use a flash drive through OTG and install the stuff from it.
Click to expand...
Click to collapse
Unfortunately, OTG isnt a selectable option and i have also tried shorting the file a names but still no look.
Thank you for the input
Use another recovery. OTG should be there, I know somebody that flashed ROMs this way.
KrypticGT said:
...
adb sideload "Zip folder name and extension".
loading "zip"
....
Click to expand...
Click to collapse
Two things I'd try:
1. Change your directory to the one containing the zip file so the command ONLY has the filename.zip in it
2. Download the zip file again and make sure you do a md5sum check on it just in case its corrupted.
Try this:
- Boot your phone in TWRP
- Open cmd.exe on your PC
- Type adb devices (if everything is ok, it should show some numbers followed by the write "recovery")
- Move your ROM inside a folder on your PC and rename it "Rom.zip" (ie inside the folder "download")
- Using CMD.exe, move inside that folder typing "cd C:/...."
- Type "adb push Rom.zip /sdcard"
- Wait til a confirmation message will appear on CMD.exe
- Flash the ROM using TWRP
So for future reference to anyone that might have the same issue.
I fixed this issue, by flashing a older version of TWRP. This allowed me to use ADB sideload without issue & also allow OTG_USB. It also allowed me to flash files with long names.... I have tried to go back to the latest version of TWRP for OP5 but i get the errors i was getting before.
Strange, but did the fix.
Thanks all for the help & input.

Categories

Resources