yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] spicediablo:
Since latest CWM recovery had the option to disable stock recovery from being reflashed. Could I just disable that option when there is an OTA update? Prefer OTA update as my data wok be automatically restored.

Sent from Mako
[Nexus 4 General] chrone:
Yes you can. But the ota will fail since you're using custom recovery. You need to flash the dowloaded ota .zip file manually in custom recovery.

Sent from my Nexus 4
[Nexus 4 General] spicediablo:
By disabling the cwm option and rebooting, won't the stock recovery installed automatically?

Sent from Mako
[Nexus 4 General] chrone:
Haven't tried that one before, but it defeats the purpose of having custom recovery. You might end up with reflashing root again with custom recovery since ota will wipe the su binary. More hassle that way instead of flashing the ota .zip file via cwm and reroot afterward. :)

Sent from my Nexus 4
[Nexus 4 General] spicediablo:
Point taken. Thanks! I'm still on stock recovery now. I haven't done any ROM backup as I have titanium backup in place and do not plan to do extensive ROM switching. ;)

Sent from Mako
[Nexus 4 General] chrone:
Hehe, if you only want OTA update the official way and not planning to root or flashing bunch of stuff then going all stock suits you well. I didn't have problem going all stock for 3 months on my galaxy nexus back then. :)

Sent from my Nexus 4
[Nexus 4 General] spicediablo:
Hehe, up till now only rooted mine. But this forum is tempting me to do more mods:D

Sent from Mako
[Nexus 4 General] meher91:
Hi guys!

i am a newbie and i want to root my device...in the OP it says to download latest cwm recovery, but there are two options on their website "Download Recovery" & "Download Touch Recovery"...

what is the difference between them and which one do i download to root my device..?
[Nexus 4 General] chrone:
The touch version has the same function as in non touch version but with touch screen enabled for easier navigating through the available option. While in the non touch version, you have to navigate through volume up and down buttons and enter with power button.

Sent from my Nexus 4
[Nexus 4 General] meher91:
Hey thanks for the reply...

i have rooted my device and while i was doing that i have see a few other options...

can cwm be used to create a backup of the whole phone including messages, apps, app settings, etc..?

if not which is the best app to do so..?
[Nexus 4 General] CamoGeko:
Yes it can.

Its called Nandroid backup.

It basically stores an exact current state of your device. ;)

EDIT: Like mentioned below though, it doesn't backup your SD Card. You have to do that manually.
[Nexus 4 General] chrone:
Anytime, dude. :)

Haven't noticed if cwm backups messages, but the default backup settings restores all apps and their settings. I might say it also restore all the messages up to when you create the backup. It is like cwm creates all partition images except the /sdcard partition.

Sent from my Nexus 4
[Nexus 4 General] juyong97:
Thanks~!

will do, thanks!
[Nexus 4 General] fiskenigaten:
Hi, do I HAVE to use 7-zip in this step? I'm just curios why it needs to be 7-zip. I'm on a mac, and 7-zip is not officially available for mac os x.

Thanks
[Nexus 4 General] efrant:
If I'm not mistaken, MacOS can natively handle tar and tgz files, so, no, you do not need 7-zip.

Some folks were having issues with WinRAR and WinZip, so that is why that step is there.
[Nexus 4 General] azrash:
nope, IINM just use any file extraction software that can extract from tgz

On windows, things are a bit finicky, hence the 7 zip recommendation

Flowed from my Nexus⁴
[Nexus 4 General] fiskenigaten:
Just some more questions:

Is it possible to flash a corrupted boot loader which will brick my device forever?

If I l flash a factory image, will I be able to erase every trace of ever unlocking the boot loader?

Sent from my old phone. My Nexus 4 is probably arriving tomorrow! :D
[Nexus 4 General] efrant:
Very unlikely. If I'm not mistaken, fastboot will not flash a corrupt bootloader to the device. If you are worried, just check the MD5 before you flash.

Yes, assuming you re-lock the bootloader after you flash the factory image.
[Nexus 4 General] fiskenigaten:
Then how may rooting/unlocking void my warranty?
[Nexus 4 General] efrant:
If someone takes an apple from a basket, and then puts it back as it originally was, would it look like the apple was ever taken? :)

Messing around with the system/boot/(and other) partitions or bootloader technically voids the warranty, but if you return it to the same condition as before you messed around with it, no one would know the difference.

In any case, there have been countless numbers of posts where people returned their Nexus devices (with unlocked bootloaders) for warranty service and service was not denied.
[Nexus 4 General] meher91:
I have seen some videos explaining how to install CWM but i couldnt understand it...

what i wanted to know is while following the steps in the OP about rooting we are running the CWM by connecting to the computer...so each time i will be needing CWM should i follow the same steps or will it be installed somewhere on the phone so that i can run it directly without connecting to the computer..?
[Nexus 4 General] efrant:
Yes, you are running CWM from the computer if you follow the instructions in Part E. If you want to have it on your device, change the "fastboot boot customrecovery.img" command to "fastboot flash recovery customrecovery.img". This will install it on your device.
[Nexus 4 General] meher91:
Can i make a Nandroid backup on the present ROM and restore the files on an other ROM...or will the Nandroid restore the ROM aswell?

p.s sorry if i'm being stupid...new to android!
[Nexus 4 General] spicediablo:
If you change ROM, you will have to restore selectively:sms,call logs etc

Sent from Mako
[Nexus 4 General] meher91:
So is there any procedure or app to backup only application data and not ROM..?
[Nexus 4 General] spicediablo:
I personally use titanium backup. You can restore everything except ROM. But it requires root.

Sent from Mako

---------- Post added at 02:26 PM ---------- Previous post was at 02:06 PM ----------

Just flashed CWM 6.0.2.3 non-touch. Noticed that the fonts are painfully small. Is there any way to increase the size?
[Nexus 4 General] chrone:
Hahaha, the touch version has bigger fonts or TWRP the biggest of all. Both recoveries have been updated to 6.0.3.0 and 2.5.5 respectively. :)

Sent from my Nexus 4
[Nexus 4 General] spicediablo:
I'm worried that I might do something wrong with the touch version. Anyway, to update, so I just flash the latest version using CWM?

Another question, I have just did a nandroid backup but couldnt seem to locate it anywhere. Anybody knows the location?

Sent from Mako
[Nexus 4 General] chrone:
yeah just "fastboot flash recovery cwmlatestupdate.img".

the backup is at /data/media/clockworkmod, use root explorer or es file manager to explore up to / path.
[Nexus 4 General] spicediablo:
I've been having this problem... My /data comes up empty. I have root and use es explorer.

It's starting to bug me as I can't find my wpa_supplicant as well. Please help...

I tried using root explorer and it turns out to be the same

Update : problem solved, credits to eddyos

http://xdaforums.com/showthread.php?p=38857026

[Q] After recovery backup I can't find it in memory?

Sent from Mako
[Nexus 4 General] efrant:
Yes, executing the "flash-all" script certainly works (as indicated on Google's instruction page), although you forgot to mention the part in bold and that you need to unlock your bootloader beforehand. However, I think you missed the point of this thread:

I do not advocate using pre-made scripts until someone understands what those scripts are doing. If you fully understand, then perfect. If you don't then you remain ignorant and unable to troubleshoot your own issues.
[Nexus 4 General] tyea:
I appreciate the step by step instruction, and read everything in this post to be sure I understand the details, which was helpful. The Google instructions were not clear to me, so when I finally figured this out a few days ago, after a year of flashing, I thought this would be helpful for those that know how to get adb and fastboot working on their computers, yet didn't figure out the Google instructions for using the flash-all batch file.

Think of my post as a clarification of a documented Google flashing factory image method, that is a supplement to your excellent work on flashing partitions separate.

Occam, Tapatalk
[Nexus 4 General] Aceangel21:
Noob post here:

Could I suggest mentioning in section A. to enable USB debugging Mode via this method?

http://xdaforums.com/showthread.php?t=1989777

Open Settings, then go to phone details (where u can see kernel, Android-version etc) then just tap your Build number "JOP40C" 7 times !

I had to enable USB Debugging first in order to update the driver on Windows 7. Otherwise it just "seemed" liike Windows updated the proper driver...

Thanks so much for the steps! After the above, everything was silky smooth like the back of my new Nexus 4 YEEHAW!
[Nexus 4 General] efrant:
Yeah, I'll add that to the first post, although USB Debugging does not have to be turned on to follow this tutorial.

USB Debugging is for ADB commands, and we are not using any ADB commands here. That's why I mentioned in the first post that the ADB driver - - which is the one that requires USB Debugging enabled - - is not required.
[Nexus 4 General] cobyman7035:
my wifi seems broken on 4.2.1 ota, rooted, unlocked

how do try to flash another baseband? thanks

my current baseband is

my current baseband: M9615A-CEFWMAZM-2.0.1700.33
[Nexus 4 General] stuart0001:
After updating the driver with debugging on and off, I can only explore contents on my PC when USB debugging is on. With it off I see the auto play window but no actual options. This is on windows 7
[Nexus 4 General] Devzz:
Hey guys, first off sorry if I come across as a noob (probably am more or less although I've done my homework over and over).

Basically, I did a adb backup and wanted to root my phone so I followed: http://www.androidrootz.com/2012/11/how-to-root-nexus-4-on-windows.html

Long story short, i got into cwm recovery the first time around and managed to get to the "wipe data/factory reset" part, after this I rebooted the device and then put on the said "CWM-SuperSU-v0.98.zip" file on my phone but as I try to go into recovery, it is stock recovery and not CWM. What am I doing wrong here? The phone still works fine and my bootloader is unlocked, just the recovery isn't coming up as CWM

Thanks a lot in advance :)

EDIT* : Oh okay wait I got it :) doesn't matter haha
[Nexus 4 General] Girn:
Efrant, my 16GB nexus 4 turned into a 8GB nexus 4 and I followed your guide step by step... internal storage shows up at 5.61 GB on phone or computer.. help!
[Nexus 4 General] efrant:
LOL! That's impossible.

Don't forget that what you see on the pc via mtp is not accurate all the time.

Did you flash all the images including userdata?

Just do a factory reset and it should clear everything up.
[Nexus 4 General] Girn:
No man its not impossible.. I did a search on here and someone with nexus 7 had the same issue.. im flashing stock image again now.. I already tried factory reset.

*edit* works now after factory flash again.. used nexus 4 toolbox cuz i was panicking and wanted it done quicker.. sigh. At least it works now!
[Nexus 4 General] efrant:
Look, there is nothing you can do to change the 16 GB NAND flash chip in your device to 8 GB. Something must have messed up somehow, and it is displaying 8 GB, but it is still 16.

As I said, don't trust what MTP is displaying it is often wrong. Use something like Root Explorer and see what that is reporting.
[Nexus 4 General] El Daddy:
I have seen this happen with the nexus 7 a few times. I can't find the thread at the moment, but if I do I'll post it.

---------- Post added at 10:23 PM ---------- Previous post was at 09:48 PM ----------

I found the thread. http://xdaforums.com/showthread.php?t=1776860

It looks like they fixed it by erasing all the partitions. Then, flashing the bootloader, followed by running fastboot update.

Try this:

fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader-mako-makoz10l
fastboot reboot-bootloader
fastboot -w update image-occam-jop40d
[Nexus 4 General] vinay427:
I had the exact same issue and was also using a Mac so I looked on this thread, and sure enough, it was already reported. :good:

I'll probably use the Linux toolkit that was posted recently.
[Nexus 4 General] efrant:
Based on that, it looks like one of two things happened: 1) user didn't reboot after flashing the bootloader and proceeded to flash the other images, or 2) bad bootloader flash.

I never recommend using toolkits. (See link in first post or in El Daddy's signature for why.)

Unfortunately, I've never used MacOS, nor do I own anything Apple, so I can't debug myself. There is obviously something that is causing the issue, but according to Google, it should work. There is no way we will figure it out if people just give up,
[Nexus 4 General] vinay427:
Well, I ended up not using the toolkit as it wasn't updated for 4.2.1 and thought the file was corrupted. Now I'm having issues rebooting after the flash using fastboot in this guide. My phone stays in the boot animation (after Google logo) and it's been about 30 minutes already. I know you said the first boot will take quite a bit longer, but is 30 minutes normal?

I'll try a data/cache wipe in CWM.
[Nexus 4 General] efrant:
No, 30 minutes is too long. A factory reset will fix the issue.
[Nexus 4 General] vinay427:
Just to let you know, I tried all of the resets in CWM but none of them helped, so I ended up using the flash-all bash script in the Google download which worked perfectly! I have no idea why it produced a different result, as I re-read your instructions many times to verify I was doing the right thing and even did the full userdata wipe.
[Nexus 4 General] efrant:
A factory reset in CWM is not a real factory reset. You need to use the stock recovery or from within Android.
[Nexus 4 General] peoples_flip:
I did everything in the OP's instructions because I was going to sell my Nexus 4 and I wanted to bring it back to stock but now I'm stuck on the "X" Nexus logo for the last 15 minutes....

I have an 8GB version... please help me!
[Nexus 4 General] efrant:
Did you read the line just above "Part E" in the first post?
[Nexus 4 General] TecQuality:
amazing guide :) thanks for sharing :p
[Nexus 4 General] teamjm:
Optional to root:

Rename the file to customrecovery.img, and make sure it is in the same directory as your fastboot.exe file;

What will i rename?
[Nexus 4 General] El Daddy:
Whatever recovery you want to use.
[Nexus 4 General] Clamhost:
Excellent guide, and everything worked 100% and I also relocked the bootloader (selling the phone and buyer wants 100% stock phone). I loved your guide, and everything was correct except the names of my .img files were bootloader-mako-makoz10o.img instead of bootloader-mako-makoz10l.img but other than that everything was correct. I also see you mentioned the names may be different, but since most ppl are flashing 4.2.2 stock, I'd recommend updating the guide a little. All in all though, this guide is a 10/10.

Thank you,

Thomas
[Nexus 4 General] efrant:
Done!

P.S. For future reference, please do not quote the entire first post when posting a message. Thanks!
[Nexus 4 General] doctolan:
Hi, guys.

A week ago, a device was freeze on the "Google" screen after a night charging. It was Stock 4.2.2, Root and open bootloader and was work nice one month.

The fastboot was work, but is only "Power Off" and "Restart bootloader" was work correctly. "Start" and "Recovery mode" does not work - freeze on the "Google".

l was flash stock 4.2.2 many times through Nexus Toolkit 4 and Nexus Root Toolkit and manually through fastboot.exe - all writed, but the result is the same - "Google" and I can't entry to recovery or Android.

Phone from the USA, I can't send back

What to do, help.

Thank you
[Nexus 4 General] Rodrigosdw:
BootLoop!

Hello guys, ok so i ran in to some troubles with my Nexus, i can get the 4.2.2 update in any way, not OTA, or Fastboot nor Recovery, always end in BOOTLOOP, even if i wipe cache and data in the stock or cwm or twrp... allways ends bootloop

First one i tried was the OTA, completely stock i install the ota, but gave me Error, reboot and nothing happens, still in 4.2.1..

Second: again completely stock hit install OTA, the device reboot recovery and start to install, no error this time but BOOTLOOP, wipe cache and data, STILL BOOTLOOP! :(

Third, unlock bootloader, root, cwm recovery, tried to install paranoid android 4.2.2 , Bootloop, wipe chache, data... BOOTLOOP..

Okey maybe i have to flash stock 4.2.2 and then flash custom 4.2.2 ... i tough... NOT... i install fastboot occam-jdq39 just like in the OP wipe cache, data, AND AGAIN BOOTLOOP DAAAMNN! im starting to freak out... wtf happened here?? ...

Flash again with fastboot but occam-jop40d 4.2.1 this time, wipe chache and data in recovery and START! and everything its okey now, but im still in 4.2.1! why i cant get 4.2.2 custom or stock even with fastboot??? im loosing my mind here pls help!!
[Nexus 4 General] chrone:
Have you tried do all the steps on D section except for flashing the userdata.img and use format cache instead of erase, also if all fail try to boot to latest cwm recovery and wipe cache and dalvik-cache from within?

Sent from my Nexus 4
[Nexus 4 General] spicediablo:
Is it compulsory to rename the recovery to custom recovery? Or is it just to make it easier to type?

Sent from Mako
[Nexus 4 General] chrone:
It's for easier typing and not messing up with stock recovery image. Name to whatever you feel like it. :)

Sent from my Nexus 4
[Nexus 4 General] Burkissyou:
İ just install la test beta on my stock/franco this mod but now i ha ve no call sound.and i cant seem to find any solution to this.any suggestions? Thanks in advance
[Nexus 4 General] chrone:
As the thread says, return to stock and see if it fixes your issues. :)

Sent from my Nexus 4
[Nexus 4 General] Burkissyou:
Totally my noobness i posted at wrong thread.(it was about xlouder).still thanks for answer
[Nexus 4 General] 05TurboS2K:
Wow, I just got this phone today, first phone I've been scared to root. I had an N1 then the Amaze, both were a piece of cake, even nifty PC programs written to do it all for you including kernel and rom flashes not to mention 4ext which was amazing to use.

Seems a lot of people here have bootloops and serious problems. :( I'd love to root this thing since the stock options are few and far between, not impressed.
[Nexus 4 General] spaceman860:
This is the easiest phone to root

Fastboot oem unlock

Fastboot flash recovery recovery.IMG

Flash su in recovery

Done

Sent from my Nexus 4
[Nexus 4 General] spicediablo:
Don't worry, follow the instructions carefully, you will be fine :beer:

Sent from Mako
[Nexus 4 General] Thibaultvw:
Is there a way to get stock and get OTA updates again without using your computer? For example is it ok to use the method from when you're usb port is broken?

I know it is better when all doing it yourself and learning, but it seems that the drivers cant install on the Windows 8 computer I am using at the moment.
[Nexus 4 General] spaceman860:
http://xdaforums.com/showthread.php?p=33463359

Sent from my Nexus 4
[Nexus 4 General] Thibaultvw:
Yeah I know, but the drivers work on my Vista computer that I cant access for the moment, but not on my W8 computer? Very weird...
[Nexus 4 General] azrash:
Try the newly released universal driver by Koush. Said to be working with Windows 8. Here https://plus.google.com/app/basic/stream/z13zfxjaxnmpdd5dy22uy32wrue2v3l25

Flowed from my Nexus⁴
[Nexus 4 General] joostburg:
thanks again!
[Nexus 4 General] Remcotjuuh:
Pfew, I felt too anxious when even doing a cache wipe in CWM recovery didn't help after flashing system.img to get past the X logo, but doing a factory reset did the thing. Thanks for the guide :good:
[Nexus 4 General] Tunecab:
Thanks!!

Like the former poster started with 'Phew..' I want to start the same with PHEW in capitals.

Last week I got my Nexus 4...Happy...but....

I thought, I rooted my tablet (Samsung), okay I can also root a Nexus 4. Read some about it, downloaded files and started rooting.

It didn't work the first time, but the second time....yeah...Happy.

Yesterday evening I thought about the rooting etc. and thought to myself, why not bring it back to the original (factory settings and unrooted).

I started the process but at the end I had a dead Android. I had help from a collegue and he got me the link of this post.

The hardest part was the driver part, but turned out very well. Later on I did the steps one by one and again the first time, I did literly what the steps told me to do. But didn't do the steps 'not for noobs'. That didn't do it for me.

So the second time I did ALL steps. including the 'not for noobs' steps. And it was great to see that it all worked so well.

I am really really happy now and thnx for all !!!
[Nexus 4 General] efrant:
It's apparent that I need to change the wording of the first post. People keep reading the steps as "not for noobs" or "optional for noobs" when it actually says "not optional for noobs". And if someone doesn't understand the reason they are optional, then they are not optional for that person.
[Nexus 4 General] undercover:
That did sound confusing, you know :D

Sent from my fridge. Make: LG Model: N⁴
[Nexus 4 General] El Daddy:
"NOT" seems pretty straight forward to me.
[Nexus 4 General] ghettopops:
Did the non working USB way easy peasy
[Nexus 4 General] efrant:
Maybe I'll just get rid of the wording about steps being optional. Those that understand, will already know the steps are optional, and those that don't, will see them as mandatory. Probably be less confusing that way.

Did you learn anything?
[Nexus 4 General] spicediablo:
Maybe change to 'optional for experts only'

:D

Sent from Mako⁴
[Nexus 4 General] Remcotjuuh:
Is there any explanation for the never-ending boot animation after flashing system.img?
[Nexus 4 General] chrone:
Guess there is a bug on erasing cache from fastboot. Use format instead of erase as posted on first post. I use that format method and it works. Also sometimes when it plugged to pc, removing the usb cable might do the trick.

Sent from my Nexus 4
[Nexus 4 General] ghettopops:
Hmmm. That flashing factory image did not help my poor battery life ;)
[Nexus 4 General] Remcotjuuh:
That's the strange thing: I did format it. But maybe I should unplug it next time.
[Nexus 4 General] Remcotjuuh:
I think I know what caused it in my case: before going into fastboot to flash the radio.img, boot.img and system.img I did a factory factory reset in CWM and rebooted it afterwards, to turn it off again upon reaching the welcome screen. Maybe there was some new data in the /data partition due to this and so my device needed a factory reset to get past the X-logo again.
[Nexus 4 General] chrone:
I gave up troubleshooting poor 3g battery life on nexus 4 and purchased power bank instead. Haha

Glad you got it sorted out.:)

Sent from my Nexus 4
[Nexus 4 General] georgekok97:
nice guide !
[Nexus 4 General] NamNamNom:
Hey guys, Im new in the nexus 4 forums. Can anyone tell me if this can be done(if it's right)? I have a locked bootloader with a nonfunctional CWM and completely stock radios etc, and i want to have stock with root and custom kernel...

Unlock bootloader, flash all stock images, flash CWM, flash SuperSU, flash the custom kernel(faux kernel)