yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] Chromium:
Well stock is already good like you said, but I flash roms for the extra settings, and features that you get.

Cyanogenmod is great since its very close to stock, yet it has some helpful options that are quite useful.
[Nexus 4 General] eluspo:
I need help, cwm doesn't seem to see my folders. Can't flash any ROM :(
[Nexus 4 General] DJBhardwaj:
Please make sure that you haven't wiped SD card/Storage mistakenly.
[Nexus 4 General] dsjd:
I want to do a clean install of my rom (delete all sd card data ,all folders,).How do i do it?...i am flashing paranoid android
[Nexus 4 General] Chromium:
In cwm you choose: wipe data/factory reset, wipe cache partition, wipe dalvik cache, and then if you want to wipe SD card(not necessary) go to the mounts and storage section and format /sdcard.

In twrp: go to the wipe menu, select everything and wipe.

Remember that if you wipe your SD card it will also wipe the ROM and the gapps that you put there, so be prepared to use adb push to copy the ROM + gapps back on.
[Nexus 4 General] dsjd:
Can i flash the rom/gapps first then later on go back into recovery and wipe sdcard ?
[Nexus 4 General] Chromium:
Yeah you can do that.

It's not necessary to wipe the SD cars though.
[Nexus 4 General] mitsos1996:
thanks for the tutorial i installed a custom rom and a custom kernel . Now i want to remove them and install new ones .Do i have to perform a factory reset and start the same process again or i can overwrite the new ones over the old ones following the same steps?
[Nexus 4 General] Chromium:
Just go into recovery and do a factory reset, wipe cache and dalvik cache. Then flash the rom you want.

No need to start the whole process over.
[Nexus 4 General] OmarPlus:
Hello. Stupid question. Do I need to root first to flash CWM or can I flash it without rooting?
[Nexus 4 General] Chromium:
You flash cwm first. Then once you have cwm you can flash root.

So no you dont need to be rooted to flash cwm...just an unlocked bootloader is necessary
[Nexus 4 General] OmarPlus:
Thank you! So I have to unlock bootloader, flash CWM, then root and do whatever I want (ROMs, etc)?

Sorry but I had a Samsung and did not have to unlock bootloader, just rooted from stock recovery.
[Nexus 4 General] Chromium:
Yep, exactly. One thing though: I would recommend TWRP instead of CWM
[Nexus 4 General] OmarPlus:
Okay, will do that. Thanks again!
[Nexus 4 General] jimbohurt:
Will someone please fill me in as to why the Android SDK is necessary? When is it used? Im not quite understanding that, thanks :)

Also, is step 4 under custom rom necessary? (the one that says we are to plug in to comp and drag the zip to root)? Can i just download it straight to my device and move it to root with a file manager?
[Nexus 4 General] DJBhardwaj:
1. Yes, it is. It contains adb and other necessary binaries that are put to use during the successful device connection.

2. Yes, you can do that too. The point is just for convenience of the users. Though, not mandatory.
[Nexus 4 General] dsjd:
Hey DJBhardwaj please make a return to stock tutorial..
[Nexus 4 General] spaceman860:
There's one here

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

[HOW-TO] How to flash a factory image / return to stock / unlock / root #

Sent from my Nexus 4
[Nexus 4 General] DJBhardwaj:
Already have a short one here at DroidViews :)
[Nexus 4 General] dsjd:
I am runing the latest version of CWM (touch-6.0.3.1) but Rom manager detects the recovery as 5.X.X.X and shows an update available.Please can someone tell me how to fix this problem?
[Nexus 4 General] DJBhardwaj:
Not a bug. Its because you flashed CWM manually. Want it to be ROM Manager compatible, just it up using ROM Manager itself, hit the very first option.
[Nexus 4 General] dsjd:
If i flash again using rom manager will this wipe my data and app
[Nexus 4 General] oSandmaNo:
If I flash a custom kernel can I get updates from Google as normal?? Or will I have to go back to stock kernel. I just don't want to wipe data to upgrade
[Nexus 4 General] DJBhardwaj:
Custom recovery has nothing related to user data and Apps.

If you seek to official upgrades, then I would recommend to stick to the stock kernel.
[Nexus 4 General] FLaK_7:
Its the reason why i dont try another kernel, but i already buy franco.kernel lol
[Nexus 4 General] polingy:
Stuck on Boot Anim?

Hi,

I've followed the steps listed in the tutorial to unlock the Bootloader and install CWM via Fastboot with the following addition.

1. Flashed CM 10.1 Kernel, via Fastboot.

2. Flashed CM 10.1 RC-5, Recovery, Sideload ADB.

I'm stuck on the Bootlogo. At Time of Writing, it's been 11 minutes. :|

Recovery and Bootloader are accesible.

Recovery displays errors:

Can't mount cache/Recovery/log.

Can't open cache/Recovery/log.

Can't mount cache/Recovery/command.

Can't mount cache/Recovery/last_log.

Can't open cache/recovery/last_log.

Could anybody please provide instructions as to what I should do now?

Thanks.

EDIT:

No more errors in Recovery. Formatted Cache.

Reflashed Boot, ROM.

And Flashed GAPPS.

Still stuck on Boot Anim. :(
[Nexus 4 General] Chromium:
Try booting into recovery and wiping cache and dalvik cache.
[Nexus 4 General] polingy:
Still stuck on Boot Animation.
[Nexus 4 General] u4atharva:
Do u have some kind of a nandroid backup ? If u do, i'd recommend to restore it and then start fresh..
[Nexus 4 General] polingy:
No, I don't have a Nandroid, since this is a tutorial to installing Recovery, I didn't have the tools to take a Backup before undertaking this process.
[Nexus 4 General] u4atharva:
The kernel that u flashed, CM 10.1, is it supported by your OS version ??

Did u check the compatibility ??
[Nexus 4 General] polingy:
I downloaded the CM 10.1 RC5 zip, and extracted the kernel from the same. So yes, it is a hundred percent compatible.

I'm erasing and reflashing everything stock, using Google's Factory Image. :fingers-crossed:
[Nexus 4 General] u4atharva:
Yeah that was my next suggestion.. Go stock..

If everything works just fine, u can always try other ROMs after that

ALL THE BEST :good:

---------- Post added at 05:43 PM ---------- Previous post was at 05:41 PM ----------

BTW, after you flash the stock ROM i'd suggest you make a nandroid using your custom recovery, so in future under current circumstances it will come in handy.. :)
[Nexus 4 General] polingy:
Alright. It worked. Stock's Booting.

Thanks.

Now for the Custom Recovery. :cool:
[Nexus 4 General] u4atharva:
M glad it worked :D
[Nexus 4 General] spaceman860:
You don't have to extract the boot from the CM zip just flash ROM and gapps in recovery

Sent from my Nexus 4
[Nexus 4 General] Chromium:
Why are u flashing the kernel seperately? Cm should come with it as the boot.img inside the zip. Try doing a full wipe and just flash the ROM zip.
[Nexus 4 General] shobuddy:
Thanks for this thread. I just got my Nexus 4 in the mail and want to be on rooted stock. My questions are:

1. I have not yet signed up with a carrier. Do I need to be with a carrier to root?

2. As I said above, I just want root, nothing more. Do I need to install custom recovery to root? While browsing thru the thread I think I read that you don't need custom recovery to root but want to make sure.

3. In step one where we're setting up the drivers, which file is used to install from disk?

Thank you
[Nexus 4 General] Chromium:
1. No

2. In this guide you will need to install a custom recovery to flash su. There are other methods that will allow you to root without flashing a recovery, but i would highly recommend that you do flash one. I dont see any reason to not have one installed. They can come in handy.

3. Not really sure what you mean.
[Nexus 4 General] spaceman860:
I also recommend having a custom recovery but if you don't want it instead of doing fastboot flash recovery recovery.img do fastboot boot recovery recovery.img and after you flash the su zip and reboot it will restore stock recovery

Sent from my Nexus 4
[Nexus 4 General] shobuddy:
Thanks for the response. I will install a custom recovery. For #3, I'm referring to the "prerequisites" sections where the OP says to configure drivers. It says this can be done using one of the toolkits or manually by installing from disk using the Android SDK. I assume this is the same SDK download found here: http://droidviews.com/2013/a-comprehensive-guide-to-adb-android-debug-bridge-and-commands/

So basically I have to go into device manager and install from disk. I was wondering which file (from the SDK) to use when installing from disk.
[Nexus 4 General] Chromium:
For that step, you need to do this:

-Download the sdk, unzip it, and run the SDK Manager.exe as explained in the DroidViews guide

-When it opens make sure that you check the Google USB Drivers option
[Nexus 4 General] shobuddy:
Ah, thanks! I'll give this a go tonite.
[Nexus 4 General] shobuddy:
I went thru and did everything in the ABD guide but when I typed in abd in the cmd prompt, it says abd is not recognized. What am I missing?

EDIT: Sorry, I was typing abd instead of adb.
[Nexus 4 General] shobuddy:
After finishing flashing TWRP, I booted into recovery mode. From there when I selected reboot, it asked me if I wanted to root. I chose to do so with the swipe and I am rooted now. This saved me having to go thru the rooting steps separately. This thread was very helpful. Now that I'm done, should I/can I delete the android-sdk-windows folder and stop the adb server using the "adb kill-server" command? When will I need them?
[Nexus 4 General] Chromium:
I would keep the android sdk. It will likely come in handy at some point, for example if you ever wanted to flash the stock images.

You can kill the adb server though.
[Nexus 4 General] shobuddy:
Is the SDK updated regularly?
[Nexus 4 General] Chromium:
I wouldn't say often, however it does get updated. Probably around once every couple months.
[Nexus 4 General] shobuddy:
Is there a direct download to the SDK? Is the SDK in the OP's post the same as Google stock SDK or does the OP modify/add/remove files?
[Nexus 4 General] Chromium:
You can get it officially from here:

http://developer.android.com/sdk/index.html

You have to go to the Download for other platforms section.
[Nexus 4 General] shobuddy:
Thanks Chromium, I don't see anywhere on the download page where it gives version information. So there's no way to tell what version you're getting w/out downloading it first?

Also, whats the difference between the downloads for other platforms and using the download link directly from the main page?
[Nexus 4 General] Chromium:
Go to the link, click on Download for other platforms, then under the header "SDK Tools Only", download the windows zip package. Within the name it says the version. In this case its 22.0.1.

If u click on the the main download it will dowload the whole adt bundle which is unnecessary for basic use. The sdk tools only download includes only the main fundamental stuff.
[Nexus 4 General] shobuddy:
Awesome, thanks!
[Nexus 4 General] Whackked:
Hey is there anyway I can save my apps and then flash them into a newly flashed rom (if that made any sense)? basically so I don't have to download and install apps that I want every time I decide to flash a new rom? if so, how do I do that?
[Nexus 4 General] Chromium:
You can use titanium backup to do this. It will also allow you to backup app data.
[Nexus 4 General] Whackked:
where can I find the titanium backup and how do I use it? and how do I get this backup back on my phone? through recovery? or just a link to instructions would work as well
[Nexus 4 General] Chromium:
You can get it from the play store here. There is also a paid version which i would highly recommend as it allows yout to do batch actions. Heres a quick overview of how i use it:

-If you have the free version, you will need to backup each app individually. Go to the Backup tab, choose the app that you want, and then choose backup ...for each app that you want backed up (this is a pain)

-If you have the paid version you can go to menu>batch>backup all user apps

-no matter how you do this, it will output the backups into a folder on your /sdcard partition named TitaniumBackup

-you can also copy this folder somewhere else such as a pc, which may be helpful in the event that you accidentally wipe your sdcard

-at this point once you are sure that the backups are completed, you can proceed to doing a wipe (factory reset in TWRP) which will NOT wipe your sdcard. Then flash your rom

-after flashing, boot the phone up and redownload titanium backup from the playstore

-open tb, and if you have the free version you will need to click on each app manually and choose restore (quite a pain...again)

-if you have the paid version, go to the batch section. and run Restore missing apps with data
[Nexus 4 General] Whackked:
Awesome man thanks a lot. Last question, I think..do I need to download the gapps for each individual ROM I download? Or can I use the any gapps zip as long as its for the same version..in my case jb 4.2.2?
[Nexus 4 General] Chromium:
Yep you can reuse the same one. No need to download it each time, however they do get updated occasionally so its sometimes nice to have the latest ones.
[Nexus 4 General] droidman89:
awsome thanks for the steps i can deff try manual rooting vs that toolkit that i tried ealrier it didnt work it was stuck on waiting on debugging

---------- Post added at 06:56 PM ---------- Previous post was at 06:52 PM ----------

question then man, i used a toolkit and managed to unlock the bootloader but i couldent finish the root process because it got stuck on the waiting for debugging mode to be enabled and even if i enabled it it still wouldent do anything, so my question to you is.. since i unlocked my bootloader do i just start off on the step that flashes the custom recovery? or do i have to get sdk files to then or what?:laugh: thanks
[Nexus 4 General] Chromium:
Yes you still need to download the SDK and setup fastboot. Then all you need to do is flash the recovery using the following command:

fastboot flash recovery recovery.img

Once the recovery is flashed you can then flash the superuser zip to become rooted.
[Nexus 4 General] Whackked:
So I want to get a better understanding of kernels, how they work, the do's and dont's, ect..

Can anyone post a thread for this?
[Nexus 4 General] DJBhardwaj:
There is no need of that. You can always Google for it :good:

Wiki is the best source to understand what a Kernel is and how it operates.
[Nexus 4 General] droidman89:
awsome thanks i got my phone rooted one more question since i unlocked the bootloader im curious im trying to enable LTE on my nexus 4 ive read that it says about flashing to .33 basband not the .48 anyways if i do that will that interfere in any way from me receiving android updates?
[Nexus 4 General] spaceman860:
Yes it will the ota will fail you would have to flash the .48 radio for the update to install

Sent from my Nexus 4
[Nexus 4 General] sjeik1985:
the .54 radio is the newest one
[Nexus 4 General] spaceman860:
The .54 radio is the newest one but that came from a JDQ39E build that was from a India nexus 4. All other nexus 4 have build JDQ39 which has .48 radio so you'll need that radio for the OTA update.

From my BLACKED OUT N4
[Nexus 4 General] abhishek.se:
Great thread. Way better than using toolkits since i feel in control over all the steps. This has helped me a lot in understanding bootloader, rooting, recovery etc. Keep up the good work
[Nexus 4 General] DJBhardwaj:
Could you please upload the .54 radio image separately and link here? :confused:

EDIT: Got it here

Thank you for the appreciation :angel:
[Nexus 4 General] droidman89:
Thanks for the info so that's all I need is the .48 flash radio then will I be able to flash back to .38 if I end up updating my version to 4.3 since that update is coming out soon
[Nexus 4 General] dsjd:
Today my nexus 4 suddenly went off while using a benchmark app.When i try to switch it on nothing happens.When it is connected to the charge a red light flashes.My phone is reading as a fastboot device on my computer.How do i flash stock again using fastboot commands?Plz help :( .I live in India so warranty is not an option.
[Nexus 4 General] DJBhardwaj:
Follow this guide. It is by me :good:
[Nexus 4 General] nrivas:
Is there a step-by-step on how to flash a radio? i'm rooted on 4.2.2 and i'm stuck on what to do after i download .33, what do I do with the file after I download it? thanks!
[Nexus 4 General] spaceman860:
Just flash the zip and reboot

From my BLACKED OUT N4
[Nexus 4 General] nrivas:
I downloaded this earlier, cwm-radio-mako-m9615a-cefwmazm-2 i don't see a zip anywhere, am I suppose to rename it? All it has is a folder titled META-INF and a modem.img
[Nexus 4 General] spaceman860:
Download the zip from here and then flash it in recovery http://downloads.codefi.re/houstonn/for_efrant

From my BLACKED OUT N4
[Nexus 4 General] nrivas:
Downloaded the file but it doesn't show a .zip file extension, it saves it as this cwm-radio-mako-m9615a-cefwmazm-2
[Nexus 4 General] DJBhardwaj:
if it doesn't show, then just rename and add ".zip"

Al tough if it is already .zip, drag it to the device and flash it via Recovery :highfive:
[Nexus 4 General] nrivas:
Do I need to drag it into a certain folder? or just anywhere?

---------- Post added at 09:40 PM ---------- Previous post was at 09:36 PM ----------

Just tried to flash I got this (bad) installation aborted
[Nexus 4 General] DJBhardwaj:
Re download the file and to make sure its not corrupted, try and open it via WinRAR or any other archive manager.

Drag the file to any location that is convenient for you to remember. Reboot the device into recovery and flash the zip.
[Nexus 4 General] RohanM:
Wow, this guide is awesome.. Today I have unlocked & rooted my N4. Thanks you very much.

Also that bypassing the the internal storage wipe while unlocking bootloader trick was awesome.. :)
[Nexus 4 General] DJBhardwaj:
Glad that it came in handy :)

Credits for not losing data while unlocking goes to [MENTION=4883664]chromium96[/MENTION] :good:
[Nexus 4 General] Federico_96:
I just unlocked the bootloader and flashed twrp so i'm ready tro flash a custom rom, but do i need root to flash one ? i see some people rooting their phone and then flash a custom rom, in this guide it says that root is not necessary, but english isn't my language so i wanted to be sure of what i'm doing
[Nexus 4 General] Chromium:
No you don't need root to flash a ROM. You just need a custom recovery.
[Nexus 4 General] Federico_96:
Yesterday you saved me :) i unlcoked my bootlodader and flashed twrp, then i decided to reboot and i got stuck in a bootloop, i was in panic , but then i read your post about wiping cache and it booted up :good:
[Nexus 4 General] TheCloneGamer:
Hey guys a small doubt, will factory reset delete also my songs and other files that are on my nexus 4 or just apps and all
[Nexus 4 General] Chromium:
Yes it will delete everything including your sdcard contents, but its quite easy to bypass so that nothing gets wiped. Read this: http://xdaforums.com/showthread.php?p=41291371
[Nexus 4 General] RohanM:
Guys a noob question.. If I want to go all back to stock, locked bootloader & unroot, stock recovery, what should be followed? so I will get OTA..
[Nexus 4 General] Chromium:
Read this http://xdaforums.com/showthread.php?t=2010312

After flashing the stock images you don't need to lock the boot loader to receive and install an ota
[Nexus 4 General] augusthellwich:
HELP

After I installed the custom recovery, my phone rebooted and asked me to perform the initial setup again, and after doing this my computer will not recognize my phone as a device anymore...what do i do?
[Nexus 4 General] shobuddy:
Will the OPs root method work after the 4.3 update?
[Nexus 4 General] spaceman860:
You need this SU zip for 4.3 for root to work http://download.chainfire.eu/340/SuperSU/SuperSU-JWR66N-S005-130625-1.41.zip

Sent from my Nexus 7
[Nexus 4 General] lmarranzino:
Okay new to the Nexus4... I rooted unlocked etc. I then flashed a CM 10 case ROM... Now when I restore to a stock ROM. My incoming and outgoing voice is not working. Thinking it could be Kernel but not sure how to proceed.

Have tried flashing Faux's Reset and nadda.

I have flashed back to CM and NO issues currently have Trinity Kernel.

HUGE THANKS IN ADVANCE:cool:
[Nexus 4 General] convergence138:
trouble with romming

I'm trying to install ROM my nexus 4. I've unlocked the bootloader, and followed steps 1-8 of the OP's guide to ROMing. The trouble starts at step 9 when I'm supposed to get into recovery mode. When I did this, I got a dead android with a yellow triangle and an exclamation point. I googled around, and found a way to get past this (hold the power button and press up), but that was just the beginning. Once I actually got the the recovery mode, I wiped and factory reset, wipe cache partition, then I run into the next problem: there is no option called "mounts and partitions". There are only 4 menu options:

reboot system now
apply update from adb
wipe data/factory reset
wipe cache partition

I JUST got my android 8gig nexus 4 straight from google yesterday. I suspect that there has been a recent revision or something to the recovery mode. I remember for my dx2, I had to install clockwork recovery mod. Is that what I need to do here? This would probably require rooting huh? Maybe there is an alternate way to install CM10.1? I love to learn things, but I'm kind of done at this point. I have attempted like 9 different geek projects this week, and none of them have gone through. (and I'm generally successful in these endeavors)

Oh, and it says that it is "android system recovery <3e>"
[Nexus 4 General] Chromium:
Well obviously you need to install a custom recovery to flash a ROM ...did you even read the first post of this thread?
[Nexus 4 General] RohanM:
Can I root SuperSU flash-able using ADB side load on stock recovery, I dont want to install CWM or TWRP for now ??
[Nexus 4 General] convergence138:
Thanks for the rebuke, even if it was a bit harsh.

I did read it. I misunderstood the section about the custom recovery. I thought that it was an option, like the section about rooting is unnecessary if you intend to ROM it. I read "custom recovery" as make a "savepoint", or a "restore" to return to later if needed. If i'd have read it more carefully, I would have understood.
[Nexus 4 General] spaceman860:
No you can't. Stock recovery will only let you side load a signed zip from Google

From my BLACKED OUT N4
[Nexus 4 General] RohanM:
So any other way to only root ? without installing any recovery ??
[Nexus 4 General] Chromium:
Sorry if I was a bit harsh. You are definitely misunderstanding the point of a custom recovery. What I would recommend is to go through the op, read everything carefully and flash a custom recovery.
[Nexus 4 General] spaceman860:
You can flash a custom recovery flash the SU zip and then flash the stock recovery back

From my BLACKED OUT N4
[Nexus 4 General] RohanM:
can a toolkit do the job ?
[Nexus 4 General] spaceman860:
You can but I don't recommend tool kits

From my BLACKED OUT N4
[Nexus 4 General] RohanM:
I saw temp CWM zips for many samsung devices means they will install CWM on temp basis & after reboot it's stock again. Do we have something like that for N4 ?
[Nexus 4 General] convergence138:
I was serious when I thanked you. It was like the slap I needed in order to think clearly. I'm now running CM!

Thanks again.
[Nexus 4 General] DJBhardwaj:
I am very grateful to [MENTION=4883664]chromium96[/MENTION] & [MENTION=4433359]spaceman860[/MENTION] for sticking around and helping users :good: