yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] chrone:
i didn't remember there's no file_contexts warning on cwm 6.0.3.4, but i did remember it was on cwm 6.0.3.3. the warning is about security thing introduced in selinux as i recall. and for the fix, i choose no to retain Chainfire supersu su binary.

Update:

The no file context is there too on cwm 6.0.3.4. Just ignore it, you're in good hands.
[Nexus 4 General] el_charlie:
Like the Chrone said, you have to say no to avoid CWM to fix recovery.

The explanation for this is that SuperSU now is executed through a daemon that starts on boot by the script install-recovery.sh. CWM deletes or modifies this file (to avoid the system to flash stock recovery, although now it doesn't do that, see below) and then root no longer works.

It's a workaround Chainfire made to get root working.

In any case, now the stock recovery won't ever be flashed because SuperSU modifies that same file.

I hope I made myself clear.

Cheers!
[Nexus 4 General] mmaster261:
does the method that was posted in the first post work on nexus 4 running official 4.3?
[Nexus 4 General] spicediablo:
Yes I selected no when prompted. So is it critical that I fix this error?

Sent from Mako⁴
[Nexus 4 General] cobyman7035:
install TWRP 2.6 instead via goomanager, i had the same problem u had, cudn't get CWM to stick when i rebooted

https://www.youtube.com/watch?v=leCiKG9-tNc
[Nexus 4 General] spicediablo:
Thanks. I've managed to solve it. Had to use a different command to flash it

Sent from Mako⁴
[Nexus 4 General] looppingz:
I have been applying this method without D10. It is well writen and it is looking to be a safe and efficient to me. I even started by installing 4.2.2 again, then backup then 4.3 with the same method. No error message no issue (I previously had a error 7 and a not working phone). Just dont do D10 if you dont want to wipe!

4.3 up running and rooted!

No data loss, some stuff learnt and a new backup!

If a new OTA is popping up I will look for the same method.
[Nexus 4 General] SovereigN7:
Did the steps but with 4.3 files and flashed CWM. Every time I reboot into recovery and try to exit cwm, it keeps asking me if I want to disable flashing the original recovery. Even though I hit yes, it will ask again the next time I reboot into CWM.

Is there something wrong I may have done?

Thanks!
[Nexus 4 General] spicediablo:
Nothing wrong. You can flash it so that CWM is permanent. Search for my post

Sent from Mako⁴
[Nexus 4 General] SovereigN7:
It's not that cwm isn't sticking, but every time I try to exit cwm, it asks if I want to disable flashing the stock recovery. It doesn't matter whether I hit yes or no, cwm sticks regardless. If I remember right, it should only ask that once when flashing cwm.
[Nexus 4 General] spicediablo:
Same thing happened to mine...
[Nexus 4 General] spaceman860:
With CWM you should select no because SU is running with that file.

From my BLACKED OUT N4
[Nexus 4 General] efrant:
Yes for your first question. Maybe for your second.

Yes.

Redo the steps in the first post sections A to D.

^^ this. The latest version of SuperSU uses the file (install-recovery.sh) that CWM tries to rename. Select no when CWM asks you to disable stock recovery flash.
[Nexus 4 General] IceKreem:
If you have 4.3 can you unlock the bootloader? Or should you unlock the bootloader on 4.2.2?
[Nexus 4 General] spicediablo:
I've selected no but everytime I exit CWM, it still ask me to choose
[Nexus 4 General] efrant:
The Android version has nothing to do with the bootloader. The bootloader on an N4 is unlockable in fastboot, not in the Android OS.
[Nexus 4 General] IceKreem:
Right so I can unlock it regardless, thnxs :)
[Nexus 4 General] JeremyChen:
Thank U ,bro !!!!! :good:

because it's driving me crzay too ~
[Nexus 4 General] cheezo:
Is there anyway to unlock the bootloader after root?
[Nexus 4 General] IceKreem:
same thing you would do if you didn't have root, go into fastboot mode and on the computer in SDK cmd etc, type "fastboot oem unlock". Make sure to backup or you will lose everything.
[Nexus 4 General] el_charlie:
https://play.google.com/store/apps/details?id=net.segv11.bootunlocker

Cheers!
[Nexus 4 General] cheezo:
Thank you both :)
[Nexus 4 General] ImbaWind:
fixed
[Nexus 4 General] quendil:
Hello there.

I'd like to ask: what if i skip the 13th step of the flashing guide and i dont give the "fastboot erase cache" command?

Instead of that I can go into recovery and wipe the cache partition.

The result of the command and the wipe cache partition from the recovery are the same thing right?
[Nexus 4 General] IceKreem:
would follow the instructions if i was you, i heard you right that command to make sure that the recovery flashes properly. (however if anyone knows better feel free to correct me :))
[Nexus 4 General] efrant:
Yes, it's essentially the same.
[Nexus 4 General] Mr_Cyrus:
Great post, clear and to the point.

Thanks ??
[Nexus 4 General] theultraviolence:
Wanted to root and followed this method. But cant seem to load custom recovery. Can anyone point out to me what seems to be the problem? Thanks.
[Nexus 4 General] faddyie:
Did u just boot in to recovery or flashed it
[Nexus 4 General] f.us:
Looks like customrecovery.img cannot be found. Sure it is in this folder and is called customrecovery.img?
[Nexus 4 General] pr0blematic:
Same issue here, but reset and cache wipe had no effect. Still thinks I have an 8 gb nexus. Any other solutions to this that have worked for people?
[Nexus 4 General] theultraviolence:
yep! tried cwm and twrp.. still same result.
[Nexus 4 General] 3rdstring:
Right click on the img file > properties & make sure the actual file name is not "customrecovery.img.img"
[Nexus 4 General] quendil:
From the screenshot i have a feeling that you have made a little silly mistake (have done it myself) :p:p:p

At the moment the file's full name might be customrecovery.img.img.

Try to rename the customrecovery.img and delete the .img.

Now, if the file reads customrecovery and you can still see that it is a disc image (file type) then you have done the abovementioned mistake.
[Nexus 4 General] theultraviolence:
LOL! boom! There it is. Thanks man. :D:D
[Nexus 4 General] IceKreem:
for the next time go into folder options (go to start and type folder options) and untick hide extensions for known types, so you see the exact file name :)
[Nexus 4 General] benkya:
I am on stock 4.2.2 jdq39 root and CWM.. flashing update to 4.3 with CWM recovery

Got failed error tell something about system/buildprop

Perhaps something has change my buildprop. Can i just replace nexus 4 stock buildprop 4.2.2 to get update 4.3 via CWM? Can i just replace it with rootexplorer?

Where i can download buildprop stock 4.2.2, can anyone upload it here?

I do search, dont know maybe my eyes i cant find any solution.

Thanks for advance.

*** Sorry for my english***

Sent from my nexus 4
[Nexus 4 General] Thibaultvw:
Hello, I am currently using a computer and I dont have admin rights on it since it isnt mine. So I cant install 7zip on it, is there another way I can extract the factory image?
[Nexus 4 General] azrash:
Use 7 zip portable edition. Google it and you'll find them

Flowed from my Nexus⁴ using Tapatalk 4 Beta
[Nexus 4 General] Thibaultvw:
Yeah but the files need to be on my pc so how about that? Can I just copy them to my pc?
[Nexus 4 General] stevo_stevo:
great guide for newbees
[Nexus 4 General] minht1htk:
You can use N-cry toolkit, it's easy to use
[Nexus 4 General] Thibaultvw:
Yeah but I have to install it with admin rights I think. Typing the commands isnt a problem for me, its just about unzipping the package ;)
[Nexus 4 General] ronn88:
I was wondering how long it takes to boot back up when you type in cmd

fastboot boot customrecovery.img ? mine has been off for for 10 minutes and hasn't turned back on. On my cmd prompt it said booting.. here is the image 3

thank you in advance.
[Nexus 4 General] spaceman860:
Read the OP section E step 5

From my BLACKED OUT N4
[Nexus 4 General] ronn88:
Thank you! I got it to work the weird thing was I had to update from UPDATE-SuperSU-v1.43 and then I couldn't update SU binary so I went back and UPDATE-SuperSU-v1.51 and everything works properly now.
[Nexus 4 General] eddy4823:
I am on CM 10.1.2 android 4.2.2 and wanna go to stock so that i can get my phone to 4.3.. should i download JDQ39 or direct to 4.3 ??
[Nexus 4 General] Thibaultvw:
Why just not pick a 4.3 rom and flash it in recovery?
[Nexus 4 General] Orphelia:
You can use the one for 4.3 directly. OP is up to date so the instructions given are working flawlessly.

Regards and welcome to Android 4.3 world:D
[Nexus 4 General] sayogs:
is their a way to flash factory image with device itself i mean no need of computer????? if their is let me know how?

Sent from my Nexus 4
[Nexus 4 General] Orphelia:
Nope. Though you're on factory image 4.2.2 you could grab OTA. But I kind of doubt that u are running stock?!
[Nexus 4 General] sayogs:
i am on 4.3 twrp recovery already installed but was planning to install pa 3.94 so if i dont like pa then i want to move back to 4.3 using factory image so is that possible?

Sent from my Nexus 4
[Nexus 4 General] Thibaultvw:
Restore your nandroid backup of the stock rom in twrp, make sure you are rooted and use flashify to flash the stock recovery.

But you could also get any 4.3 rom and flash it in twrp. ;)
[Nexus 4 General] sayogs:
i am talking about stock 4.3 whenever i say 4.3 in my previous post so what i ask is will i be able to flash stock 4.3 image using twrp after using pa 3.94?(in case i dont like to be on pa)

Sent from my Nexus 4
[Nexus 4 General] Thibaultvw:
Like I said restore your nandroid and flash stock recovery with flashify. Dude ur completely stock then...
[Nexus 4 General] sayogs:
how to make nandroid backup on n4 and from where to get flashify?

Sent from my Nexus 4
[Nexus 4 General] Thibaultvw:
Dude you didnt make a backup of the stock rom before flashing a rom?

Then there is no way to go back to stock without flashing the whole factory image in fastboot...

Hit like if I helped you!
[Nexus 4 General] sayogs:
i got you bro but how to make nandroid backup will you tell me?

Sent from my Nexus 4
[Nexus 4 General] MidtownHD:
are u remotely familiar with custom recoveries?
[Nexus 4 General] sayogs:
what you mean by remotely?

Sent from my Nexus 4
[Nexus 4 General] Thibaultvw:
Hit backup in recovery. Simple as that...

Hit thanks if I helped
[Nexus 4 General] MidtownHD:
guess u're not a native speaker?

but it's really simple, boot into recovery, press Backup, and select yes. Done
[Nexus 4 General] sayogs:
good then why was you using such high terms NANDROID backup if you simply said me first time about backup using recovery then i might have understood it.....

Sent from my Nexus 4
[Nexus 4 General] Thibaultvw:
Because it is called a nandroid backup. Dude please go read some threads on how to root etc...
[Nexus 4 General] sayogs:
how to save a power key usage as i see their is issue with it on long run

Sent from my Nexus 4
[Nexus 4 General] Thibaultvw:
Install custom kernel and install touchcontrol from play store.

Hit thanks if I helped!!!
[Nexus 4 General] sayogs:
which custom kernal on pa 3.94?

Sent from my Nexus 4
[Nexus 4 General] Thibaultvw:
Doesnt matter as long as you use a Jss kernel for a jss rom or a jwr kernel for a jwr rom.

Please hit thanks...
[Nexus 4 General] sayogs:
how will be franco kernal with pa rom 3.94? or you say which should be the best?

Sent from my Nexus 4
[Nexus 4 General] eddy4823:
If i directly flash this in my recovery (TWRP), everything will be good. And will I receive future OTA updates ? http://downloadandroidrom.com/file/Nexus4/roms/Android4.3rooted/mako-4.3-rooted-signed.zip
[Nexus 4 General] Thibaultvw:
Can you give a link to the thread you got it from? :)
[Nexus 4 General] eddy4823:
yup. Here you go >> http://xdaforums.com/showthread.php?t=2368401
[Nexus 4 General] Thibaultvw:
Yup found it out already. :) but if I were you I would install a rom like cataclysm which uses the OTA build and its very stable I heard. I myself am waiting for CM10.2 official nightlies to start and at the moment I am stock 4.3 rooted with twrp.
[Nexus 4 General] Conceptunlimited:
Guys,

I did search but wasn't able to find a proper solution,

I was on a 4.3, with latest TWRP installed,

I flashed a ROM that was 4.2.2 after I flashed the phone was not booting up, and was stuck on Google logo,

I did wipe in the TWRP and even re-installed the ROM, had the same issue again,

So, I thought to flash 4.2.2 Google Factory Image via this toolkit,

I downloaded the Factory Image from Google and placed it in the folder which says "Put factory image here"

Followed all the procedures, and flashed the 4.2.2 factory image in my phone,

Now the phone is stuck on the X logo,

I tried going into the stock recovery and did a factory reset, but again the same thing,

The phone isn't booting up,

Also one thing i noticed, while the phone is booting the "Google" logo stays around a minute, and then the X boot animation appears,

Any clue what to do??

I tried pushing the factory image via toolkit several times, but again I'm stuck at the same boot animation,

Please help me regarding this,

I'm at work, trying to search and find information as much as I can,

Thank you.

Sent from a deep rooted Nexus4
[Nexus 4 General] efrant:
You are posting in the wrong thread. This is NOT a toolkit thread.

If you would like assistance is returning your device to stock without a toolkit, follow the instructions in the first post, and post any issues you have. We will be glad to help.

If you would like assistance with a toolkit, ask in the appropriate toolkit thread.
[Nexus 4 General] efrant:
Let's keep the thread on topic please. Discussion on how to backup your ROM or flash another ROM or kernel do not belong here. Thanks.
[Nexus 4 General] eddy4823:
noted.
[Nexus 4 General] evosyn:
Hello, Apologies for posting so much info, but I figured it would be necessary for a full diagnosis of my problem. Let me know if anything doesn't make sense. I am rather novice at this.

I recently upgraded from 4.2.2 to 4.3 and am trying to regain root. However, when I try to boot from CWM using the ./fastboot-mac boot customrecovery.img, the screen lights up to a black screen, but nothing happens after that. Terminal says this

COMPUTER:android USER$ ./fastboot-mac boot customrecovery.img
downloading 'boot.img'...
OKAY [ 0.303s]
booting...
OKAY [ 0.002s]
finished. total time: 0.305s

and nothing happens on the device.

I tried flashing the custom recovery using "./fastboot-mac flash recovery customrecovery.img" but that didn't work either. I tried booting into recovery and got the same black screen.

I've reverted back to the stock recovery and cleared the cache. The system itself seems to be functioning normally. I did notice another error when I ran "fastboot devices"

COMPUTER:android USER$ ./fastboot-mac devices
************	fastboot
ERROR: could not get pipe properties

Extra information (not sure if relevant) -

I had a lot of trouble getting the 4.3 ota to install. I had to reflash the radio, system, boot, and return to stock recovery. At this point I accidentally typed "fastboot boot boot.img" and could not get the phone to boot into the system. Then I had to clear the cache while in recovery before the phone would boot normally (trying to clear the cache with "fastboot format cache" resulted in this error:

Formatting is not supported for filesystem with type ' '.

After I had everything functioning normally again (stock 4.2.2, unrooted), I used adb to upgrade to 4.3 and it finally worked.

I still have the CWM app installed and there is an icon for the SU app, although it has an error when I try to open it (no binaries). Should those be removed first?

Thanks for your help.
[Nexus 4 General] efrant:
Please read part E in the OP for how to root, particularly the part in red.

Note that if you update via OTA, you lose root, and you can't just "update the binary". Follow steps in part E.
[Nexus 4 General] kac.:
Help!

Hi - apologies for repeating previous issues but I'm stuck in a boot loop and think I've bricked my phone...

I can access the bootloader and get the dead android when I try to go to recovery mode. I then hold power, tap vol up and release both to access the system recovery menu. I wipe data/factory reset, wipe cache partition and the phone auto reboots but gets stuck on the google/splash screen (with the open padlock icon).

To get out of this I need to hold power and vol up [buzz] and hold vols up, down and power to get into recovery mode again. This is where I am. Can you help?

Also, I'm using a mac.
[Nexus 4 General] BlueBagodah:
LTE

Hi Guys,

I've read the first post (With the Updates), and I'm comfortable flashing my phone, but before I do, I want to know if there is a way to enable LTE on the N4 with 4.3.

From what I've read, it's not as simple as Rooting, and flashing the .33 Radio...

I am itching to move to 4.3, but I don't want to go back to the dark days before LTE...

Thanks
[Nexus 4 General] evosyn:
Thanks. Didn't realize I had the latest bootloader.

Only issue I'm having now is that Chainfires SU wont update past 1.43, but that's likely an issue for another thread.

Appreciate the help.
[Nexus 4 General] efrant:
That's my mistake. I've updated the link in the first post. You need to flash the newer version of SuperSU, not 1.43. Follow the steps in part E again.

Aside from flashing a radio older than 0.48, you also need to set up the proper LTE APN for your carrier, and go into the phone menu (*#*#INFO#*#* in the dialer) and select LTE/GSM auto. (You obviously also need to have LTE provisioned on your account, and be in an area that has LTE on band 4.)

Follow all of the steps in the first post again to re-flash the images. Maybe something went wrong. (And by the way, as long as you can get into the bootloader, your phone is not bricked.)
[Nexus 4 General] evosyn:
No worries. I understood that much. However, I think the app is having issues at the moment because chainfires site itself seems to be down. My root is working, but SuperSU can't update binaries since the server is down.
[Nexus 4 General] drdingo21:
Yes. I also just raan through them all again step by step and I'm still only showing 5.40 gb free of 5.68.

Its almost likes its the 8gb image
[Nexus 4 General] efrant:
Try this http://xdaforums.com/showthread.php?t=2033692
[Nexus 4 General] golan5:
i need help

for root:

1) Download (to your computer) the latest version of CWM (from here) or TWRP (from here) for your device;

i have nexus 4, and I did not understand what i need to download? (can i get a direct link?)

thanks!
[Nexus 4 General] El Daddy:
Click the hyperlink

Sent from my Nexus 4
[Nexus 4 General] golan5:
i tried.

there are 3 options:

ROMs, Download Recovery, Download Touch Recovery

and if i chose ROMs, there are a lot of options

what i need to download?
[Nexus 4 General] cue_32:
Download the recovery one... and rename it according to the instructions and copy it to the folder containing your fastboot, etc.. files are
[Nexus 4 General] drdingo21:
Thank you. I googled and searched here for an hour last night and never stumbled on that thread.

For anyone else that may have this issue. I'm not sure how it was fixed. I followed the above link but after it was complete the phone would hang on the X. So I tried the factory data reset to no avail and then ran through all the D steps again. Still hanging on the X. I verified the MD5 of the image I was using (all was well) and I as at a loss.

I had downloaded the toolkit before finding this thread and tried that. The restore image option is what finally worked for me. I have no idea what it did different that what I was doing but that was finally how I got the phone booting again. I'm not really sure what actually fixed the storage issue though.
[Nexus 4 General] efrant:
I'm not sure what would be causing the issue for some and not for others. I have a feeling that something isn't clear in my first post, and maybe what I am trying to explain is not getting across exactly right.
[Nexus 4 General] Dster:
Stuck at the X

Followed the instructions, stuck at the X.

What exactly is the sequence of presses to get to recovery?

Holding power during the X turns it off.

From off, what do I do *exactly*?
[Nexus 4 General] efrant:
I will add this to the first post to make it clearer:

1) Turn off your device.

2) Boot into the bootloader by holding volume down, and then pressing and holding power.

3) Navigate using the volume keys until you see "Recovery" on your screen, and then press power.

4) You should see the Android with the red triangle and exclamation point. When you do, hold power and press volume up.
[Nexus 4 General] Dster:
OK, I think something happened when I flashed recovery.

When I do these 4 steps, I get the Android with the spinning thing in its belly, and a rapidly moving status bar below, then it reboots to Google logo and then X.

What do you recommend doing from Bootloader? Some people had luck with flash-all.bat, right? Can that be done from a Mac?

EDIT: "fastboot erase userdata" from bootloader seemed to let me get back to recovery.
[Nexus 4 General] schemeKC:
Holding volume up alone at the red triangle and exclamation should be sufficient. I got the same never-ending X animation and holding both power and volume up never successfully got me into stock recovery, but volume up alone did.
[Nexus 4 General] drdingo21:
I'm not sure. I think your post is clear and to the point. I will mention that no matter what I always had to re-flash a recovery. Even after I would flash the stock recovery then try booting into it i would just get the android with the red !. Then if I would flash CWM all was well.

On that link you sent me it has the switch -w and then the tgz file. Isn't the same commands as what you have listed - just yours are broken down?

Even when I ran through your steps I was also getting stuck on the X which would force me to flash a recovery to do a wipe data.

When I get home tonight I can look at the bat file the tool kit uses to see what its doing different.
[Nexus 4 General] Vanhoud:
or you could just run the flash-all.bat file found in the factory images
[Nexus 4 General] El Daddy:
http://xdaforums.com/showpost.php?p=35053402&postcount=87
[Nexus 4 General] Ivan Fuentes Hagar:
Thanks for the very throughout guide!

At first all I wanted was to just root with the easiest method possible... I read many of them saying I would be able to download OTA updates, but not install them, so I changed my mind, since although I'd like to be rooted, I'd like to have my phone as close to factory as possible. Then your guide offered not just to unlock and root without loosing that, but also to see what happens step by step, and that's great.

If you took all that time to write something that benefits me, I'm absolutely willing to spend all the required time to read what you took the time to write.

May I just confirm that I understood the process I did?

- I unlocked the bootloader, meaning I "allowed" my phone to flash other images (I can't find the correct terminology, so excuse the blurriness here)

- I flashed the stock Android I downloaded, part by part.

- I then rooted my phone, but instead of flashing CWM, I booted from the image I had on my laptop. From there, I installed SuperSU. Since I ran CWM off my laptop instead of flashing it on my phone, I still have my stock recovery mode, so next time I get an OTA update, I will have no problems running it.

Is this all correct? Again, thanks for all the instructions! I come from a Skyrocket, where I usually flashed CWM with Odin, and then just installed Superuser. It's good to do things step by step. Where can I learn, by the way, more about the terminologies and definitions of the Android booting process, structure and whatnots?
[Nexus 4 General] efrant:
Everything you said in your post is 100% correct! :)

HAve a look at this thread for some additional info.
[Nexus 4 General] Ivan Fuentes Hagar:
will do, thanks!
[Nexus 4 General] GuusWikkerink:
Thanks!