How to install roms and gapps via sideload CWM - Nexus 4 Q&A, Help & Troubleshooting

Hi sometimes I like to wipe all my Nexus 4 but I usually flash the stock image from google and after i had to reflash Clockworkmod recovery etc for install another Rom, i know that i can flash the partition from the nexus via adb typing fastboot flash userdata userdata.img but afterall i dont have any zip in my nexus (obviously) so i would like to know how to flash a rom.zip and gapps.zip and a kernel.zip without cutting and pasting in the memory of the nexus via adb from my pc computer .
thanks in advance!

alvin182 said:
Hi sometimes I like to wipe all my Nexus 4 but I usually flash the stock image from google and after i had to reflash Clockworkmod recovery etc for install another Rom, i know that i can flash the partition from the nexus via adb typing fastboot flash userdata userdata.img but afterall i dont have any zip in my nexus (obviously) so i would like to know how to flash a rom.zip and gapps.zip and a kernel.zip without cutting and pasting in the memory of the nexus via adb from my pc computer .
thanks in advance!
Click to expand...
Click to collapse
Install the ROM you want with kernel. Add nothing else and do a nandroid backup. Move backup to PC. Then when you reflash everything just transfer over cwm and backup.
Sent from my Nexus 4 using xda app-developers app

Related

Flashed wrong rom -> error mounting sdcard

Hi guys, I've accidentally flashed a p4wifi aokp milestone6 on my nexus S (didn't pay enough attention)
Now my phone boots correctly, but I can't mound sdcard, and this happens on recovery too
Is there anything I can do? I can't flash back any roms
P.S: It seems that I have my old rom installed (aokp jb), that's what the Info says
Flash back the stock Rom buddy it ill help you
shazzy1 said:
Flash back the stock Rom buddy it ill help you
Click to expand...
Click to collapse
But How? I can't copy it
what version of recovery do you use?
Use odin man
I use CWM. I think that I can solve everything if I format the sd, but I really need to access it to save some files first
I use cwm 6.0.1.3 version and has problem mounting sd thats why i asked you. Try to flash a 5 version with fastboot to mount sd.
Sent from my Nexus S using xda app-developers app
fastboot
fastboot can update rom too.
fastboot flash [partition name] [image name]
three partition, system boot radio, needed for rom flashing.
fastboot flash system filename.img
fastboot flash boot boot.img
fastboot flash radio radio.img
Never had any problem with mounting sdcard with cwm, it would be way too coincidental that it stopped working just exactly when I flash a wrong rom.
And I have 5.5.0.4...
In theory, flashing the wrong boot.img could create a missmatch on the mount points. If all else fails you can fastboot in the various partitions directly to correct.
i have this problem too on my brother's gnex.
i currently downloading stock factory image to flash from fastboot.
just try that.
hope we can get back our usb storage.
if you found another way please share.
thanks.

How to flash custom ROM from wiped clean nexus7

I want to completely wipe/format all of my nexus and then install a custom ROM without installing the stock 4.2 rom and then having to download the custom ROM and installing it with cwm if possible. I have installed lots of ROMs and it feels like the kernels are not making much difference and would like to do a fresh start now I know the ROM/kernel I want. I also have never been able to install a recovery from the nexus tool kit and wonder if wugs is better.
Just trying to save a step.
Sent from my Nexus 7 using Tapatalk 2
http://forum.xda-developers.com/showthread.php?t=1907796
Just do these steps :
Code:
> fastboot erase boot
> fastboot erase cache
> fastboot erase recovery
> fastboot erase system
> fastboot erase userdata
> fastboot flash bootloader bootloader-grouper-4.13.img
> fastboot reboot-bootloader
Then install TWRP : http://teamw.in/project/twrp2/103
Then use "adb push" command to push your rom to your device using adb, then install it using TWRP
Thank you. That is what I want but never read that thread because it says factory ROM.
Sent from my Nexus 7 using Tapatalk 2
I'm sure it works well with a stock install but I had two problems I could not fix. First was twrp wanted a password and second even after I redid everything but with cwm the flash said it could not mount any partition.
Sent from my Nexus 7 using Tapatalk 2
You have to be booted into android in order to ADB push correct? So how would this work from a wiped device?
Figured out how
I figured out how to do this. I got sick of having to install stock after a complete wipe and format only to immediately flash a custom rom. The only reason I was flashing stock was to put the rom zip on my SD. After wiping everything I re installed TWRP with fastboot and boot into recovery. TWRP wants a password to mount data. I just pushed cancel and was let into the main menu. Still couldn't mount data until I reboot back into recovery from recovery. Once I did that data was auto mounted. I choose ADB sideload. Then had to open a terminal on my linux machine in the dir. that contained my rom. Then su in terminal and do command- adb sideload /path/to/rom.zip. It would only work with su otherwise I got a permission error. After it pushed over I just flashed it from TWRP and boot up like normal.
Thank you. That should work. I didn't try a reboot after twrp install.
Sent from my Nexus 7 using Tapatalk 2
k29er said:
I want to completely wipe/format all of my nexus and then install a custom ROM without installing the stock 4.2 rom and then having to download the custom ROM and installing it with cwm if possible. I have installed lots of ROMs and it feels like the kernels are not making much difference and would like to do a fresh start now I know the ROM/kernel I want. I also have never been able to install a recovery from the nexus tool kit and wonder if wugs is better.
Just trying to save a step.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
I use TWRP its way better then CWM. Very simple you can also get it through root capabilites with a toolkit. im up to the latest Jelly bean software then rooted and installed with toolkit. Sideload your rom clean delvik cache and regular cache do factory reset and instal rom and enjoy :laugh:

[Q] How can i flash a simple .zip via fastboot?

So.... i installed paranoid android and after... there were no connections at all! no internet, no usb, nothing. So i bootet into fastboot and now i just want to flash a clean cm10 or something. Sh1t on my data and anything, everything is in my cloud what is the command to flash a simple zip via fastboot? i did not find anything related to n4 in the internet and i want to get sure i am using the right one for the nexus 4 and no old device
You dont flash zips through fastboot.
At least not the type of zips you're talking about.
You boot into recovery. Do a full wipe. Factory reset + format system. Then flash cm10.1 plus the gapps.
albundy2010 said:
You dont flash zips through fastboot.
At least not the type of zips you're talking about.
You boot into recovery. Do a full wipe. Factory reset + format system. Then flash cm10.1 plus the gapps.
Click to expand...
Click to collapse
The problem is, there is no ROM on my sd and i cant find my device via adb. so sideload also wont work.
//Edit
Got it working. It bootet. I found a mysterious backup on my sd and restored it Ô.o i never did one, but, hey, it works^^. next try to flash cm10.1^^ and first i drop it to my sd.
//Edit 2
Franco Kernel r72 + paranoid android = no USB. Simple math.
If you end up in that position again, you can flash the stock images using fastboot (*.img files on your pc, phone at bootloader).
fastboot flash system system.img
fastboot flash boot boot.img
etc.

[Q] TWRP

I apparently flashed one too many times and now I am able to only pull up the TWRP recovery but there are no back ups. It seems I wiped them all out unknowingly,it says i have no OS on it now.
My question is; how do I get this up and running again? Any help will be greatly appreciated....
Do you have any TWRP backups stored on your computer? If so, you can use adb to send those backup files to your nexus internal sdcard and restore them through TWRP. You can also put your backup files on a USB stick and connect it with your nexus 7 using a USB-OTG cable (then select external storage in the restoring menu).
If not, then you'll have to (re)flash stock with fastboot. You can use a toolkit or do it manually (http://forum.xda-developers.com/showthread.php?t=1907796).
Good luck!
Westervoort said:
Do you have any TWRP backups stored on your computer? If so, you can use adb to send those backup files to your nexus internal sdcard and restore them through TWRP. You can also put your backup files on a USB stick and connect it with your nexus 7 using a USB-OTG cable (then select external storage in the restoring menu).
If not, then you'll have to (re)flash stock with fastboot. You can use a toolkit or do it manually (http://forum.xda-developers.com/showthread.php?t=1907796).
Good luck!
Click to expand...
Click to collapse
Not sure how to flash a recovery, ADB does recognize my device...TWRP comes up but that's it..
Easiest way would be to sideload a ROM zip using ADB.
Sent from my Nexus 7 using Tapatalk HD
mojimmy said:
Not sure how to flash a recovery, ADB does recognize my device...TWRP comes up but that's it..
Click to expand...
Click to collapse
You can flash a custom recovery with fastboot:
- Reboot to bootloader (adb reboot bootloader)
- fastboot flash recovery [name of recoveryfile]
I use the most recent TWRP downloaded from their official website.
If you have made a nandroid backup with TWRP, you can restore it in the restore menu in TWRP. Make sure the restore folder is on your internal sdcard or on a USB-stick connected with an OTG-cable.
If you never made a nandroid backup or can not find any:
- then you can flash a (custom) ROM with TWRP. There are lots of good quality roms available in the XDA forums (paranoid android, clockworkmod, stock ....
- or you can flash the original stock from google. You will have to reboot to the bootloader and use fastboot to flash stock (use the link I provided early).
It's not that difficult.
fixed
OTG cable did the trick, absolutely impossible to find the cable in a local store but ordered on e-bay and problem solved.
Thanks for the help....:good:

I wiped my phone without a rom

So, I wiped my phone and didn't realize that the rom I was about to install was corrupted (I think the download didn't finish) and I forgot to do a backup, what can I do to recover from this disaster?
Use Nexus toolkit.
Two easy options:
1. Use adb to push a rom to your sdcard from your recovery then install like normal
2. Use fastboot to flash a stock image your system partition
Download a ROM that's not corrupted and place it in platform tools folder (where you have your adb is located) and just go to your phones recovery and sideload
Sent from my Nexus 4 using xda app-developers app
CellPhish said:
Download a ROM that's not corrupted and place it in platform tools folder (where you have your adb is located) and just go to your phones recovery and sideload
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Thank you to all of you, I used Wug's Toolkit (NRT) and it worked.
Similar Problem
My problem is similar but a bit different.
I flashed CWM over the top TWRP and when I re-entered custom recovery and I went in to install a zip from sd not all my folders where showing including the folder I keep all my roms in.
When I try to boot back in to system it just takes me back to recovery.
Am I being a noob or is it something gone wrong?
Thanks in advance!

Categories

Resources