yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Haik0:
Rooted stock ROM with OTA

I wont to have the stock ROM on my Nexus 5 to be rooted, BUT meanwhile also to be able to have OTA working with no problem !

What are the steps for that ? Do I just need to Unlock the Bootloader ?? and then I can Root it successfully ? or it is also necessary to install a custom recovery ?, (which as I understand will break the OTA functionality!)

Thanks
[Nexus 5 General] srt99:
you can root your nexus 5 by CF-Auto-Root

here is the link: http://xdaforums.com/showthread.php?t=2507211

afaik you will be rooted without any need to install custom recovery by this method..
[Nexus 5 General] jd1639:
You can just root using this method. Also, if you have a custom recovery and no custom Rom or changes to system files the ota works fine. You will lose root and the custom recovery when you take the ota, but they're easy to put back on. Use this method, not a tool kit and you'll know how to put root and a custom recovery back after the ota
[Nexus 5 General] cheddaface:
I have everything done right but im stuck, when doing the first command cd Desktop/android-sdk-windows/platform-tools it get an error saying the system cannot find the path specified.... i have no idea what going on,, any help???
[Nexus 5 General] BirchBarlow:
You obviously don't have the path right. Where did you install it?
[Nexus 5 General] cheddaface:
its on the desktop
[Nexus 5 General] BirchBarlow:
Then you have to type the complete path to the desktop.
[Nexus 5 General] gee2012:
Best is to install it straight on the C drive (C:\android-sdk), not in a folder. Here is a full tutorial http://www.redmondpie.com/how-to-set-up-android-adb-and-fastboot-on-windows-tutorial/.
[Nexus 5 General] cheddaface:
not exactly sure how to do that as i thought that was the correct path
[Nexus 5 General] BirchBarlow:
c:\users\cheddaface\desktop\...
[Nexus 5 General] LifeInAnalog:
.. Perhaps rather than making a path, simply open the folder that has your unzipped android sdk on your desktop, then hold shift and right click in the folder... then "open command prompt here"

1LifeInAnalog on Twitter
[Nexus 5 General] cheddaface:
Thanks everyone for all the helpfull info, i am up and running now.
[Nexus 5 General] dhaval31333:
if I will root my my nexus 5 will it return back from 4.4.2 to 4.4??? plzz help I need to root now
[Nexus 5 General] jd1639:
No, posting your question in one thread is usually enough.
[Nexus 5 General] JustSmall:
I'm having a little problem here...

I managed to make it to the 3rd point of "3. Rooting". Now my problem is that whenever the Nexus enters Team Win Recovery Project v.2.6.3.4 my computer no longer recognizes the phone which means that I can't push SuperSU over. I used the Google USB Driver because I didn't get the others to work properly. Should I try to install a different driver? Or what's my mistake?
[Nexus 5 General] jd1639:
Your abd driver isn't set up correctly. It's different than the fastboot driver. You might find it easier to boot your device and then drag and drop supersu into the download folder on your phone. Then boot into your custom recovery and flash it.
[Nexus 5 General] JustSmall:
Thanks a lot, it worked! :good:
[Nexus 5 General] bigpapanl:
Great guide, its all working now, thanks!

And just got my Nexus 5 one day ago :D
[Nexus 5 General] whizper:
In the OP under "Option B) Flash a custom rom which will come pre-rooted",

the process of how to "Copy a custom rom onto the phone" is not described.

Is the copy done via ADB (push)? Or is it ok to flash the ROM via ADB, after the factory reset and cache wipes are done within custom recovery?

Thanks for this step-by-step guide.
[Nexus 5 General] felystar:
Can I get root without unlocking bootloader? Or without installing a custom recovery?
[Nexus 5 General] jd1639:
Not without unlocking, but yes without installing a custom recovery.
[Nexus 5 General] Chromium:
You have a few options to copy a rom to the phone:

1. Push using adb

2. Sideload using adb

3. Download the rom directly from the phones browser

4. Copy the rom by dragging and dropping (the phone must be booted and MTP mode needs to be on)
[Nexus 5 General] skopje97:
Good guide all functional thanks xda
[Nexus 5 General] Calexako:
Hello guys,

Just followed the guide. Very thorough and useful. I am unlocked and rooted. I also just backed up my rom using CWM and i have a couple questions.

1) if i decide to flash a new ROM i should wipe all my data once again just like i did after unlocking the bootloader?

2) Can i remove the backup rom and place it in my PC as it occupies a good amount of space in my phone? Is there any reason i shouldn't do that? If i wipe the phone clean via CWM will it preserve the backup or it will wipe it also?
[Nexus 5 General] jd1639:
If you flash a new rom you should wipe, system, data, cache, and dalvik first.

Always keep at least one nandroid on your phone. If you mess certain things up you'll be glad you did. Otherwise you can store then on the pc. Also, good to have one there in case of mess ups too.
[Nexus 5 General] Chromium:
1) Yes, before flashing you should do a full wipe. To full wipe using cwm do the following: wipe data/factory reset, wipe cache partition, advanced > wipe dalvik cache. This will not wipe your internal storage like unlocking the bootloader does.

2) Yes you can place the backups on a PC, however it is always good practice to keep at least one backup on the phone in case something goes wrong and you dont have access to a PC. Doing a full wipe as i instructed above will not wipe the backup.
[Nexus 5 General] jd1639:
Beat you, lol. Always good when it's the same advice
[Nexus 5 General] Calexako:
So to sum it up, i will not lose my files (songs,documents etc) but my apps,widgets and settings will be wiped and i will have to set the up all over again. Am i correct?

So when i am about to install a new ROM or tinker with the phone i will just drag and drop the backup ROM in the backup folder and be safe.Otherwise i will keep it on my pc.

Thanks for the quick answers and for your help to a newbie. :)
[Nexus 5 General] Chromium:
Haha, yup.

Yep, exactly.

That works too, but i personally would keep one backup on the phone at all times. You never know what might go wrong, even if you arent doing anything particularly dangerous.
[Nexus 5 General] Fata7:
Hello, I just installed CM11 but I was surprised that HDR+ isn't in the features and I also saw that the video cam is dark!

Is there something to fix it ? (not for HDR.. need to wait for it I guess)

Thank you ;]

(cm-11-20140103-SNAPSHOT-M2-hammerhead)
[Nexus 5 General] Chromium:
This is not the right thread for this issue. Post in the nexus 5 ask any question thread, or create a new thread in the q&a section.
[Nexus 5 General] Fata7:
Okay, sorry =]
[Nexus 5 General] ivoniko:
Hi everyone,

I was almost done with everything when I pressed something by mistake. When I was in the newly installed recovery mode screen I pressed a small icon in the middle at the bottom of the screen and then the following appeared on an empty grey screen - Updating partition details...

and has been stuck for 10-15mins, I am not sure how to get out of here and continue with the root. Please advise, thank you in advance for all help

---------- Post added at 07:34 PM ---------- Previous post was at 07:21 PM ----------

OK, I managed to restart, when I enter the bootloader this time and click recovery mode it does not work and the small android robot appears with a red triangle. At the same time on my PC it says drivers not recognized
[Nexus 5 General] jd1639:
When you get the android push the vol up button
[Nexus 5 General] ivoniko:
Thanks. When I pushed volume up the following appeared -

reboot system now

apply update from ADB

wipe data/factory reset

wipe cache partition

Do I select the first one?

---------- Post added at 07:44 PM ---------- Previous post was at 07:42 PM ----------

I went to the last one - wipe cache partition and now cannot go back up with volume up to choose other options
[Nexus 5 General] jd1639:
Yes, reboot the system
[Nexus 5 General] ivoniko:
I cannot select it, stuck at the bottom one - wipe cache partition. When I click Volume up it goes back to the android robot instead of moving between the 4 options
[Nexus 5 General] jd1639:
You can't cycle through the options with the vol button? Use vol up and vol down. Use the power button to select one
[Nexus 5 General] ivoniko:
No, volume down worked for going down but I cannot go back up with volume up. When I press volume up it goes back to the android robot with the red triangle
[Nexus 5 General] jd1639:
That's weird, I've never seen that before. Go back to the step where you flashboot flash the recovery (twrp or cwm) and try that again. You still have the stock recovery
[Nexus 5 General] ivoniko:
ok, I restarted the phone, then rebooted the way you told me. Now what. When I go into recovery mode I still see the android robot with the red triangle?
[Nexus 5 General] jd1639:
Did you try to flash the custom recovery again?
[Nexus 5 General] ivoniko:
ok, will do that now
[Nexus 5 General] Damien11:
really helpful, thanks!
[Nexus 5 General] stev99d:
just want to tell that my phone is rooted now. thanks :).
[Nexus 5 General] Pro_SmarT:
thanks a lot.
[Nexus 5 General] FunDionysus:
N5 is now rooted. Time to try a ROM.
[Nexus 5 General] CAL7:
I'd sure like to get the performance from using ART (vs. Dalvic). Any success, or disaster, stories?
[Nexus 5 General] Chromium:
What made you think that this was the right thread for your question? Post your question in the q&a section...
[Nexus 5 General] enobia:
Thought I'd make my first post & just say excellent guide, helped me *A N00B* get through installing everything on my N5.

I am now officially rooted with Franco's Kernel.
[Nexus 5 General] sherashia.ashish:
Stuck on Boot Screen Animation

Hello Everyone, I just tried to root my nexus 5 4.4.2.

I unlocked my bootloader after that i installed CWM.

After that my phone is stuck in a boot loop at the animation screen.

I read various blogs and saw that they were saying that you must reboot the phone after unlocking the bootloader but what happened is that i didnt do it.

So please help me out because i dont want to send it to google for getting it fixed.

Thank you !
[Nexus 5 General] Chromium:
First of all, its not necessary to send it to google. Its a very easy fix. Read the second post of this thread for options/solutions.
[Nexus 5 General] jball:
I'll tell you this ,I swear there is always something left out.I fallow to the "t" and still can't get this adb/fastboot/drivers/working on my HP windows 8 laptop.have hit all the "if this don't work" links I can hit.so if anyone can say "teamview" I am willing to be straight up showed up.
[Nexus 5 General] sherashia.ashish:
I tried the first suggestion but the problem is that its not working

and in the second suggestion my phone is saying that can't mount on sdcard, I think sdcard is not their in nexus 5 so there's a problem with that as well.

Please suggest me some solution
[Nexus 5 General] Chromium:
Flash the factory images (suggestion 3).
[Nexus 5 General] Tunderpimp:
Do I need special drivers or can I use the ones that auto install when I plug the phone in ?
[Nexus 5 General] Chromium:
You will most likely need to install the extra drivers.
[Nexus 5 General] lowsnamebrand:
If you have adb installed it should find the appropriate drivers when you enable both boot loader and USB debugging
[Nexus 5 General] jball:
Just so everyone knows I did figure it out without any assistance .I do thank you anyways
[Nexus 5 General] jball:
Your post helped me the most thank you very much
[Nexus 5 General] Kedu:
Hi,

i have some problems with rooting my nexus 5. I tried it 2 month ago, got the bootloader unlocked, but had some issues with a bootloop. So i reset everything and dropped it for now.

Today i wanted to try again. The nexus 5 bootloader was still unlocked, so i "fastboot reboot" the phone via cmd, and wanted to follow the next step in this guide (start in bootloader again and fastboot flash recovery) the img file. I had the problem that i could not boot the phone into bootloader by pressing volume up down power if the phone was connected to the usb, so i unplugged it, booted it into bootloader, and plugged it in after that. Suprisingly i had no fastboot connection now. Im pretty sure tho, that i booted the CONNECTED phone into bootloader for the "fastboot reboot" minutes ago.

Can anyone help me with this ?

Thank in advance
[Nexus 5 General] Mr hOaX:
This will be useful for you http://xdaforums.com/showthread.php?t=2514396
[Nexus 5 General] Tunderpimp:
I've also noticed that I don't have to flash any factory IMG in the guide. In the N4 guide it said to flash the factory IMG as part of the process. Not complaining just didn't want to miss something .
[Nexus 5 General] Kedu:
Okay, fixed it myself. Another USB port did the trick.
[Nexus 5 General] rootbear:
Fantastic guide, thanks for the share, it was really helpful and got me rooted in no time flat.:laugh:
[Nexus 5 General] Mr hOaX:
You just need to flash recovery img :)
[Nexus 5 General] ColdFire InOx:
Hello there.

I have done every step successfully up until the Rooting part. When I try to run "adb push UPDATE-SuperSU-vX.XX.zip /sdcard/" it says device not found, although drivers were installed correctly. When I type fastboot devices, it also doesn't recognize my phone. What's up?

Fixed.
[Nexus 5 General] Chromium:
Just boot up the phone normally into android. Then open chrome on the phone, navigate to http://download.chainfire.eu/supersu, download the zip directly onto the phone, and finally reboot into recovery to flash the zip.
[Nexus 5 General] jd1639:
It's easier to boot you phone and then download supersu to it. Then boot into recovery and flash it from there
[Nexus 5 General] jball:
Just use your new recovery
[Nexus 5 General] Chromium:
Ha, beat you this time. Congrats on the RC title btw :)
[Nexus 5 General] ColdFire InOx:
Thank you all for the fast answers. Problem solved :)
[Nexus 5 General] nooblala:
flashing TWRP to replace CWM

guys.. I am now on CWM recovery... can I just flash TWRP with the instruction in first post to replace the CWM recovery?..

will it cause any problem with my existing ROM n files?
[Nexus 5 General] Chromium:
Yes you can just flash twrp using the Installing Recovery section. Shouldnt cause any problems.
[Nexus 5 General] gee2012:
No it will not. Just flash twrp.

Verstuurd vanaf mijn Nexus 5 met Tapatalk

Didn`t see you allready responsed, was on the go ;)
[Nexus 5 General] nooblala:
ok thx guys! =)
[Nexus 5 General] gee2012:
Didn`t see you allready responded, was on the go ;)
[Nexus 5 General] donsheff:
Thanks for all the info and instructions. Rooted my Nexus 5 in record time.
[Nexus 5 General] ChewyWade:
Recovery Step

I'm not able to download a valid version of TWRP or CWM to install. error: cannot open 'recovery.img' is the error that i'm receiving. Anyone know of another way to get access to TWRP? Also am I able to root first, then do recovery steps? I was able to get unlocked Thx Chromium_
[Nexus 5 General] gee2012:
TWRP download link http://techerrata.com/file/twrp2/hammerhead/openrecovery-twrp-2.6.3.4-hammerhead.img. Do not open it and copy to the fastboot folder and rename it there to twrp.img. In fastboot type in cmd: fastboot flash recovery twrp.img. Then open recovery and that should be it.
[Nexus 5 General] Oakley707:
Try what gee mentioned below. Make sure you rename the file with the correct filename. Show extensions and make sure it is in fact .img. Do you have the file in the correct root folder?
[Nexus 5 General] bldvx:
Thanks for all the info and instructions
[Nexus 5 General] ChewyWade:
Thx, so that helped me resolve the TWRP issue I was encountering earlier this morning (I hadn't moved it to the fastboot folder). Nexus 5 rooted.

Thx Chromium_, gee2012 and Oakley707
[Nexus 5 General] Cyvasse:
Hi everyone!

Is it ok (safe) to unlock bootloader and flash custom recovery if my N5, when in bootloader mode, is listed in device manager as "android bootloader interface", or it must be listed as Nexus 5 device?

I am asking because at the moment I have LG GT540 and I had flashed it many times succesfully, and was always shown in device manager in adb mode as "adb platform sooner single adb interface" or simillar, and when in fastboot "android bootloader interface" or earlier "asus bootloader interface". I was able to communicate through adb/fastboot. Adb devices command showed numbers 80A...... where dots are my IMEI number, was able to reboot in recovery and fastboot, adb push. And in fastboot, fastboot devices command showed up " ? fastboot device" but i could communicate with phone, flash recovery.img and all other stuff., never had problems.

Sorry fo off topic, but I was asking because I am expecting my nexus 5 and I'm curious is it crucial to get nexus 5 in device manager or it is ok to have as above "adb interface" and "android bootloader interface" shown in device manager when conected to pc in adb/fastboot mode if our phone listen our commands through adb/fastboot?
[Nexus 5 General] jd1639:
Just

fastboot devices. Or

adb devices

If you device shows up your good to go

Sent from my Nexus 5
[Nexus 5 General] jball:
Mine shows up

"android bootloader interface" and all is good
[Nexus 5 General] jaladhjin:
say I did method one http://xdaforums.com/showthread.php?t=2513701

however I did not relock my bootloader..

can I use flashify to reflash a custom recovery ?

Duurrr no I can't can I.. since I won't have root for flashify to get..

Do I need to do the fastboot method then ?
[Nexus 5 General] Suhail24:
So I have a question. I haven't updated my phone at all since I got it in November so I have the 4.4.2 update waiting for me. Question is how do I update? I have the TWRP and supersu root used here. Also, will I lose any data? I tried searching but I guess I suck at that as well.
[Nexus 5 General] jball:
In most cases an update gives you all the goods and don't touch anything else once you receive it anyways
[Nexus 5 General] Cyvasse:
Thanks, I also think that there would be no problem if phone receives commands through fastboot whatever named in device manager
[Nexus 5 General] LifeInAnalog:
..but keep in mind, the OTA update will not complete successfully, if you have changed any stock parts such as ROM, bootloader, radio or recovery. You'll have to get back to stock recovery if you want to implement the OTA update..

Might be easier for you if you just flash one of the stock Roms found here on xda.

1LifeInAnalog on Twitter
[Nexus 5 General] argrr101:
Thank you so much!! I learned so much from this, and I can't wait to learn more about what my phone can actually do :)
[Nexus 5 General] jd1639:
Good for you. Welcome to the forum:)

Sent from my Nexus 5
[Nexus 5 General] appb123:
Unable to unlock bootloader

Hi

My nexus 5 completely crashed the other day(process.media/acore/gapps and all apps have stopped) and I'm trying to get it back to a factory image. First I'm trying to unlock the bootloader. I follow the steps and the lock state goes to unlocked. Then i try to fastboot reboot and i don't get an android logo or progress bar. The phone just restarts and is still caught in a loop of booting. When i check to see it still is locked. Does anyone know why this is happening or how it can be fixed ?

thanks!
[Nexus 5 General] Chromium:
Try flashing the factory images first.

A link to the guide can be found in the second post of this thread.
[Nexus 5 General] scoot0073:
Thanks OP everything went smooth
[Nexus 5 General] mrbobhawk:
Thankss!!
[Nexus 5 General] Exprince:
Hello all.

I have a bit of a problem.I rooted my Nexus 5 about 1 month ago by a toolkit.I needed to get it done fast and it worked with no problems.Now i want to install a custom recovery (Clockwork touch) and i have been following this guide.

The guide goes:

1.Unlock bootloaded ( which i already have when i rooted it)

2.Install custom recovery

3.Root (already rooted)

My problem is when im trying to run "fastboot flash recovery recovery.img" command in CMD i get the "error: cannot open 'recovery.img' ".

The image is in the same folder as fastbot and ADB,and i have completed all the Preparation and Prerequisites in the guide with no problems.

Any idea what i could do to solve this ?

Thank you for your time
[Nexus 5 General] jd1639:
It's not finding the recovery.img. Are you sure you named it correctly. Try recovery.img.img.

Sent from my Nexus 5
[Nexus 5 General] gee2012:
Is the name of the recovery file in fastboot recovery.img or does it have another name? If not rename it. BTW you might consider Philz Touch recovery, its a modified CWM recovery with some extra`s.
[Nexus 5 General] Exprince:
It was named recovery.img. and recovery.img , both did not work.

Ty for the info about Philz i will see what its all about.Since im relatively new to all of this im always happy to get reccomendations

I have tried recovery.img.img. aswell but to no avail.
[Nexus 5 General] gee2012:
Do you have 2 recovery`s in the platform-tools folder with the same name? If yes rename the cwm one to cwm_recovery.img.
[Nexus 5 General] jd1639:
The other thing I'd suggest is to download the recovery image again. It could be a bad download.

Sent from my Nexus 5
[Nexus 5 General] Exprince:
This is how the folder looks like at the moment.
[Nexus 5 General] gee2012:
Remove the dot after img. so recovery.img
[Nexus 5 General] Exprince:
I have tried that.

Pretty much all combinations.

recovery.img

recovery.img.

recovery.img.img.

recovery.img.img

Im starting to think something is very wrong :D
[Nexus 5 General] abaaaabbbb63:
From the file itself, remove the dot, so the name is recovery.img

Then try moving the file to a different location, and write the path.
[Nexus 5 General] jball:
No you have one more option :

Remove the full extension so that means take off ".img"

Use the full command

That's what I had to do
[Nexus 5 General] Exprince:
Seems the moving of the file worked.I copied the file on to desktop and then wrote the path to it.

Cant bealive i did not try something so simple.

Thank you everyone for your help
[Nexus 5 General] asarjip:
this guide worked perfectly!

Thanks for all the work!