yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Chromium:
To flash SuperSU root binaries you will need a custom recovery. To install a custom recovery you will need a PC.
[Nexus 5 General] vermaekansh:
stock recovery options???

Hi Chromium_,

I want to wipe data n do a factory reset and wipe cache/dalvik cache in stock recovery, if I reboot into recovery thru bootloader I only see a android but no options.

Is there any way I can enter into stock recovery to have some options to wipe and factory reset.

Thanks.
[Nexus 5 General] Vercion3:
Which recovery do you have? Twrp or cwm?
[Nexus 5 General] vermaekansh:
I do not have any recovery, I have stock... I have just unlocked my bootloader and rooted it not flashed any recovery.

Is there any way to have options(wipe and factory reset) to wipe in Stock recovery.
[Nexus 5 General] Vercion3:
Flash the recovery then u can wipe. I dont know if you can using stock because I've never done and heard of it with stock....
[Nexus 5 General] aavvaallooss:
Volume Up button into stock recovery
[Nexus 5 General] parichay:
LG-D821

Hi Everyone,

I am new here, and I have a maybe naive question to ask. I just bought the Nexus 5 LG-D821, and noticed that in this thread (and in all others, including those in Nexus 5 Android Development) - it does not have any "separate" section for the LG-D821. So does this mean that this root guide also works for the LG-D821 (which is the non-US version)? Or is the LG-D821 not supported yet? And also as a rule of thumb, does the same logic apply to other Nexus 5 threads too?

Thank you!

Cheers,

Parichay
[Nexus 5 General] Primokorn:
All threads are compatible with both models.
[Nexus 5 General] parichay:
Thank you! XDA is awesome :)

Cheers,

Parichay
[Nexus 5 General] Chromium:
What you are seeing is the stock recovery splash screen. In order to get to the menu you need to hold power, then quickly tap volume up and then release both buttons at the same time. Its a little tricky, but you should be able to get it after a few tries.
[Nexus 5 General] ArtieQ:
Any reason to root if I'm not gonna flash custom rom?
[Nexus 5 General] Chromium:
First let me clear something up: Rooting (flashing SuperSU) is not necessary if you plan to flash a custom rom. To flash a custom rom, you just need a custom recovery.

Regardless, there are many reasons to root even if you want to stay on stock rom. You can use root apps which are generally more powerful and can take more advantage of your phone (hopefully in a good way), you can install Xposed framework, you have access to system allowing you to install systemui mods, change fonts, switch boot animation, block advertisements across the whole phone (I cant remember the last time I saw an ad show up on my phone) etc. There are tons of advantages in my onion, and little to no disadvantages (for me at least).

I personally cant imagine using a phone without root. I would feel so restricted, and wouldn't be able to do tasks which I have become so accustomed to doing. So my answer would be yes, root is good even if you plan to stay stock.
[Nexus 5 General] JNMM:
Just to clarify because my nexus 5 is coming soon but with CF-Auto root it unlocks bootloader and pushes Supersu. I think then you can install a custom recovery via goo manager or rom manager. Without a computer. Am I right?
[Nexus 5 General] Chromium:
Yes. CF-Auto root unlocks bootloader and roots the phone by pushing the su binaries, but it leaves you without a custom recovery.

From there you can get a recovery installed using only your phone (no PC) with apps such as Flashify, goo manager, rom manager, etc.
[Nexus 5 General] JNMM:
Thank you for clarifying. Your expertise and tutorial are much appreciated
[Nexus 5 General] mikeacela:
edit: haha i figured out my question
[Nexus 5 General] vermaekansh:
thanks all done...

actually in intial setup I restore the apps thru Tb and after that my batter was not good....so I had to do a factory reset and I installed each and every app individually , hoping this time i;ll get good battery life...

if not then I'll unroot it and to the basic and then again start the process :( .

thanks for the help.
[Nexus 5 General] vercety974:
Is it possible to save the stock recovery before flashing the twrp one ?

Envoyé de mon GT-I9100 en utilisant Tapatalk
[Nexus 5 General] adrian089:
Same results unforunately.
[Nexus 5 General] xnatehatex:
Somehow I have no OS installed... Can someone please help me out? I have TWRP installed and an unlocked bootloader. I just want stock. I've downloaded factory image, I get, archive does not contain boot.sig, recovery.sig, or system.sig

checking product... FAILED

update requires 'deb'

If someone can help me get back into stock 4.4 I'd really appreciate it.
[Nexus 5 General] El Daddy:
Did you rename the recovery "recovery.img" or just "recovery"?

If recovery.img remove the extension and try again.
[Nexus 5 General] xnatehatex:
hit tab after you type
[Nexus 5 General] Chromium:
Give this a try: http://www.theandroidsoul.com/nexus-5-driver-adb-fastboot-installation-guide/

Download the stock rom here, push using adb, then flash via TWRP.
[Nexus 5 General] patass:
is there something i have to do after sending the recovery? it's successful but when i try to boot into it it just shows an android with a red !
[Nexus 5 General] xnatehatex:
Thank you so much man. I was so worried haha
[Nexus 5 General] :
Will rooting allow the native tethering to work? I'm a new T-Mobile subscriber and was surprised they can block tether on the phone.
[Nexus 5 General] adrian089:
how do i push something using adb? I'm in the same situation.
[Nexus 5 General] Chromium:
Try different USB ports on your computer.

Put the ROM on your desktop and rename it to ROM.zip. Boot the phone into TWRP. Open command prompt and run:

cd Desktop

adb push ROM.zip /sdcard/

Sent using xda-developers app
[Nexus 5 General] xnatehatex:
If you run into the problem I had where the OS was deleted this helped.

[YOUTUBE]

https://www.youtube.com/watch?v=uO7HkTrRzwM&feature=youtube_gdata_player[/YOUTUBE]
[Nexus 5 General] AntikytheraTech:
Thanks for this - I guess I am still a bit lost on how to set up and install the ADB on mac for this particular operation. Any chance that someone who does could create a similar thread that does a walk through with these steps? I have found other walk throughs but they are for older Nexus devices and call for lots of additional steps such as using Text Wrangler, obtaining unlock codes for the bootloader, etc. Thanks for your info gang!:highfive:
[Nexus 5 General] adrian089:
any way I try to push something using adb I get failed to mount, kinda worried I bricked my phone good

basically i tried to revert to stock using kwogger and nexus 5 toolkit and both result in a bootloop.

---------- Post added at 11:10 PM ---------- Previous post was at 11:04 PM ----------

I managed to get it to boot. Went to the stock recovery and did a factory reset. Thx for your help though. I learned a few more things using CMD throughout this process.

I know I've sounded like a noob but this is the first time I've ever had trouble doing this kind of stuff on a device out of a htc hero, gs2, nexus 4, lg optimus g, kindle fire.
[Nexus 5 General] ptrm2:
great guide, for whatever reason the recovery did not work in the nexus folder, so I moved it to platform tools and it worked
[Nexus 5 General] Covart:
Just wanted to say great write-up. Everything worked as it should have. Clicked on thanks as well. :good:
[Nexus 5 General] theesotericone:
Google "SDK". Click the first link. The best write up you'll ever get.
[Nexus 5 General] StegoStegmeier:
Think I will try to root this afternoon, all preparations are made. Hope my n5 is at home when I arrive. Your guide looks great so far, hope it all works for me.
[Nexus 5 General] TecQuality:
[MENTION=4883664]Chromium_[/MENTION] and others: is there a manual command for backing-up the efs?
[Nexus 5 General] Far_SighT:
It sure involves a lot less steps than rooting and s-off for a htc phone.
[Nexus 5 General] abaaaabbbb63:
Don't even get me started :D HTC are the most horrible phones to control.
[Nexus 5 General] abaaaabbbb63:
You can get the stock one from the factory images, and flash it anytime.
[Nexus 5 General] Maxx247:
i dont know much about unloacking bootloader.. but i can use any network sim on my nexus 5 and now i wanna root and flash a rom on it ....... so i have to unloack bootloader first before rooting and flashin a rom? thanks in advance !
[Nexus 5 General] Web_E:
There is only difference in antenna and radio firmware.

Otherwise everything is same. So yea all rooting , kernel are compatible with both of them.

Before doing anything serious, just read the instructions carefully. It will be mentioned if something is different.

And try not to use toolkits. Lean how to do things, it will be helpful if something bricks.
[Nexus 5 General] Ubichinon:
I did everything as described in OP and now i have a rooted N5 with CWM ^^
[Nexus 5 General] Alfablos:
Hi guys,

I just got my N5 and followed Chromium's stap-by-step guide. Everything works just fine, my computer (Windows 8.1, recognizes both ADB interface and bootloader mode. But when it comes to pushing the superSU file I get the error

error: device non found

I googled a little bit but I couldn't figure out what the problem is. Of course "debug mode" is activated on the device, and the prompt on my PC says Android Debug Bridge Version 1.0.31.

So I tried the full installation of the sdk tools (not the zip one) so I could give the command in the prompt from anywhere. I tried then again to push superSU but I got the same error (this time I had to put the entire path of the zip of course).

I tried all of the three methods to install nexus 5 drivers.

In the end I manuallly copied the file into the device, but what if, in the future (It's already happened to me) I can't boot and the only thing I can access is the recovery? I couldn't push ZIPs and I'd be screwed :(

Please Help :(
[Nexus 5 General] gee2012:
Is your device listed when you type `fastboot devices`in cmd?
[Nexus 5 General] Alfablos:
Yes It is. Still no luck :(
[Nexus 5 General] gee2012:
Well you`re device is not properly connected i guess because it is not beeing recognized. What exactly are you trying to do?

Go to adb sideload mode in TWRP so you can sideload the superSU.zip or a rom.
[Nexus 5 General] jd1639:
Just boot up your phone and drag and drop it from your pc to /sdcard/download
[Nexus 5 General] Alfablos:
What's what I did but what if I can't boot and my only way is pushing a ROM through adb? I must face the issue...
[Nexus 5 General] abaaaabbbb63:
Yes, pushing the ROM through ABD is a workable solution.
[Nexus 5 General] Alfablos:
But, as I was saying, It doesn't work:

Error: device not found

Yet the device appears when I give "fastboot devices".

Both bootloader mode AMD adb mode are recognized in Device Manager in Windows (8.1)

:(
[Nexus 5 General] jd1639:
When in recovery type adb devices. Does it return your serial number?
[Nexus 5 General] JNMM:
Try a different USB port or something...
[Nexus 5 General] Alfablos:
Nope. It says

List of devices attached

and then nothing :(

Is it about the driver I installed? I installed google driver from sdk manager, universal lg drivers and then the third method posted by Chromium_ :(

Didn't work either...

The only way to get it working is booting the phone :D But It's not very useful since the problem might be not having any sistem installed at all :D
[Nexus 5 General] jd1639:
Your correct, the adb drivers aren't setup. Google tool adb fastboot drivers xda. Try those. Have your phone connected by usb when you set them up.
[Nexus 5 General] Alfablos:
It was chromium_'s third option. Doesn't work either :(

When the phone is in recovery mode and is plugged ti my PC, It's recognizer as "AOSP in Hammerhead", with a yellow mark which means "no good, no drivers" :(
[Nexus 5 General] jd1639:
Can you right click on the one with the yellow mark and then install the drivers?
[Nexus 5 General] Alfablos:
Universal naked drivers?

I did, and the response was:

An error occurred while intalling the driver. The device driver was recocnized, but there was an error during the installation.

Google Galaxy Nexux ADB Interface

File hash not available in specified file catalog. The file is probably damaged or tampere.

I translated It from Italian, I hope this makes sense :)
[Nexus 5 General] jd1639:
That's what I used
[Nexus 5 General] Alfablos:
I'm on windows 8.1

Maybe those drivers aren't yet optimized for this OS. But what else can I do then...?

For now, TWRP gives me the possibility to mount OTG devices, so I can flash form there (i.e. a USB pen), but tthis is risky, and the fact that I can't seem to find proper drivers quite annoying -.-
[Nexus 5 General] jd1639:
I'm using Windows 7. I've seen others on 8 having issues but I don't remember how they fixed it. Maybe someone on 8 will see this and help.
[Nexus 5 General] BirchBarlow:
Try ADB Driver Installer.
[Nexus 5 General] Alfablos:
It says "Incompatible with windows 8 x64.

I hope parallels on mac will do the job XD
[Nexus 5 General] BirchBarlow:
Did you follow the instructions? Is your machine set to allow unsigned drivers?
[Nexus 5 General] Alfablos:
I did. What do you mean with "set to allow unsigned drivers"?? How fan I check this and eventually allow it?

EDIT

THAT was the problem. Solved, solved, solved. Thank you guys! :)
[Nexus 5 General] funnel71:
If you want to flash a rom yes you have to unlock the bootloader

---------- Post added at 05:11 PM ---------- Previous post was at 05:09 PM ----------

I'm not sure which drivers you use but I found that the naked driver set seems to work the best
[Nexus 5 General] gee2012:
I`am using the Google drivers from the sdk and they work well, both in adb and fastboot mode.
[Nexus 5 General] srt99:
hi, i recently bought nexus 5. quite a big leap for me..

coming to kitkat straight from gingerbread..so i have a few questions.

unlocked the bootloader..

flashed clockworkmod recovery..

and rooted it..

all went successfully :good:

but there is one problem cwm,

whenever i choose 'reboot the system" it says

"Root access possibly lost. Fix?"

- no

- yes - Fix root (/system/xbin/su)

i have selected both option several times, but i am still getting that msg in cwm.

root works fine for all apps :good:

also, i have other few question:

- where can i find the backup?

i've looked in clockworkmod folder, but there is no file.

- which default backup format is better? tar, dup or tar + gzip ?

what is difference between these three?

cwm version: v6.0.4.5

Supersu version: v1.91

running on 4.4.2

please reply to my queries,

it's long i know :P

thanks
[Nexus 5 General] gidgiddonihah:
Didn't read too much further (I wanted to get this down before I couldn't find your post again) so strike me down if it's already been said but... Everything software is identical with the phone. Google even packaged both versions' radios in one file so you can flash backwards and forwards without doing anything bad. I agree on all other accounts though :).
[Nexus 5 General] ArtieQ:
So what do I need to have done if I want to install Cataclysm ROM and Franco Kernel? I'm really ****ing bad at this.
[Nexus 5 General] crxmax:
i dont understand what the hell i did wrong...i went through every step. i think i had a problem around the time when i tried to flash supersu. seems like my adb drivers took a **** and then the phone was being recognized as "nexus 5 again" anyway i couldnt get the phone to turn on all i got was the loading screen. i had to abort the whole operation and had to resort to installing factory image....4 years with android and this is the first time i had to abandon ship during a root procedure.....i dont understand what i did wrong..
[Nexus 5 General] abaaaabbbb63:
What exactly happened?
[Nexus 5 General] crxmax:
well i thought everything was going fine. i got cwm installed and when it said to adb push super su that didnt work cwm was telling me sd card not recognized so i said ok whatever. i tried to boot and all i got was the nexus loading screen with the 4 bubbles... was stuck there for a while until i realized it was not going to load. so i went back to cwm. by then i realize that i no longer have fastboot so i followed the instructions and uninstalled and reinstalled adb drivers (had to resort to method #4 on op) when i finally got adb working again i push wiped and push loaded omni rom through adb in cwm. i got it to load and then when i rebooted all i would get is omni loading screen. after 15 minutes waiting around i just said screw it and flashed stock image. now at least i got my phone to turn back on....think i should try again? might just take a break and try again in the morning...
[Nexus 5 General] peste76:
Quite normal with CWM 6.0.4.5 - i´m also getting asked everytime i´m rebooting in CWM. With TWRP this not happens, but i love CWM a lot more :)
[Nexus 5 General] jd1639:
Both of you probably did not fastboot reboot after unlocking the bootloader.
[Nexus 5 General] peste76:
Yes i did and it´s quite long ago now (few month). Have this problem only with the official CWM. On Unofficial no problem at all. And never had one.

We´re not the only ones: http://xdaforums.com/showthread.php?t=2439466
[Nexus 5 General] ashu01:
plzzz help guys...

guys i was just starting to root my nexus device.. i shut down my device and entered into stock recovery ande done nothing after that... just rebooted my nexus device.. after that my signal stops responding.. many apps stopped responding.. camera dosent work.. and most importantly my storage doesnt show in my pc.. its also not accessible in my phone but shows in settings storage option... i need to back up my crucial data in pc.. help guys... asap...
[Nexus 5 General] ashu01:
urgent...

guys i was just starting to root my nexus device.. i shut down my device and entered into stock recovery and done nothing after that... just rebooted my nexus device.. after that my signal stops responding.. many apps stopped responding.. camera dosent work.. and most importantly my storage doesnt show in my pc.. its also not accessible in my phone but shows in settings storage option... i need to back up my crucial data in pc.. help guys... asap...
[Nexus 5 General] artista93:
warrantly

hy guys. I have some problems with my nexus 5. I can't go in recovery mode and turn on the phone (I have written also in this forum but noone can help me). I have unlocked the bootloader and done root. The warrantly is still valid??Today an operator said me yes and another no...help me please :(
[Nexus 5 General] jd1639:
Is your bootloader unlocked? Does the phone boot? It sounds like you are just having a problem getting into recovery?
[Nexus 5 General] Chromium:
Going into recovery doesnt ruin your device. You must have done something else that caused the problem.

Flash the factory images.

Can you get into the bootloader? If you can, then you will be able to flash the factory images and relock the bootloader which will restore your warranty to a valid state.
[Nexus 5 General] artista93:
no I can't, it turns off after 1 second when i get into the bootloader...it's unlocked and it boots but after the written google it turns off..
[Nexus 5 General] BirchBarlow:
This is a bug with the official CWM on the N5. PhilZ Touch CWM fixes this issue.
[Nexus 5 General] peste76:
Thanks, using Philz since a few days :) Found it on my own, but thanks! :)
[Nexus 5 General] gee2012:
Quote: Found it on my own, but thanks!

That`s how it should be bro ;)
[Nexus 5 General] Haik0:
No OTA ?

So, after all this 3 steps, I won't be able to use OTA,, right ?! If so, how do I update my OS?

Thanks
[Nexus 5 General] gee2012:
If you have a unchanged stock image (rom, kernel and recovery) and haven`t removed system files you will get the OTA even if you have root. In all other cases you will not.
[Nexus 5 General] Haik0:
thanks

System files ? - Does that mean also uninstalled apps ?

So there is such recovery (while flashed permanently ) which will allow me to get OTA ? the only work around to have my device rooted (while keeping the stock ROM) is to use temp. custom recovery boot ?

Thanks
[Nexus 5 General] agneI:
e

Thanks, :good:

I just root my N5
[Nexus 5 General] ArtieQ:
Root > install custom recovery > install kernel and roms.

Is that the order to do it?
[Nexus 5 General] srt99:
it's unlock bootloader > install custom recovery > root > install custom kernel or rom

afaik, u can flash custom rom without root, it just need custom recovery..
[Nexus 5 General] fraussantin:
No

not the root should be done after the flash unless the rom does not already contain the root inside
[Nexus 5 General] jedinegotiator:
I am trying to flash the custom recovery. I have already unlocked the boot loader successfully. When I issue the following command

fastboot flash recovery recovery.img

it says that it is writing the recovery and I get a message that says OK indicating that it flashed. When I hit restart boot loader on my phone it just takes me back to the stock bootloader. What am I doing wrong?
[Nexus 5 General] Chromium:
You havent done anything wrong. You have just flashed custom recovery, not bootloader. Your bootloader will remain stock. You need to use volume keys to scroll to recovery mode and enter that.
[Nexus 5 General] jedinegotiator:
Gotcha, I am in the cutom recovery now. Thanks!

TWRP or Clockwork? Which to you recommend. I have always used clockwork on my previous phones.
[Nexus 5 General] Chromium:
I personally prefer TWRP because of how it offers a lot more features, but either one is good. Up to you.
[Nexus 5 General] jedinegotiator:
Any particular ROM you would recommend? Battery life and stability are the most important things for me. Features are nice but they come second.
[Nexus 5 General] shadowdevil:
Try KANGAKAT stable with good battery life..!

Personal choices may differ...:o
[Nexus 5 General] ArtieQ:
Ah cool, thanks. Yeah I saw that Cataclysm had root already, that's good.
[Nexus 5 General] BirchBarlow:
You might also want to check out PhilZ Touch (link in my sig). It's built on CWM and has more features than either TWRP or official CWM and fixes some of CWM's kinks with the N5.
[Nexus 5 General] jedinegotiator:
Do any of the recoveries support accessing storage with USB while in the recovery?
[Nexus 5 General] Chromium:
Nope, the nexus 5 doesn't have usb mass storage mode.
[Nexus 5 General] borgerapper:
Deptford ealfau

Thank you so much!!
[Nexus 5 General] omaryahya97:
Hey guys when unlocking boot loader do I need to enable us debugging before going into fastboot?
[Nexus 5 General] Chromium:
No, USB debugging has no effect on getting the phone recognized while in fastboot.

Its only useful for when the phone is booted into android.
[Nexus 5 General] omaryahya97:
ok then when i try "fastboot devices" in command prompt nothing happens anyhelp?
[Nexus 5 General] Chromium:
You need to install/fix your drivers. Try all of the suggestions found in the OP.
[Nexus 5 General] omaryahya97:
already did

im really messed up
[Nexus 5 General] Chromium:
Try harder...or provide us with some relevant information so that we can actually attempt to help you.
[Nexus 5 General] omaryahya97:
Never mind after trying for the third time installing drivers it worked... Finally!!
[Nexus 5 General] BirchBarlow:
You need to install the drivers manually through the SDK manager, not through plug and play.
[Nexus 5 General] Arrar:
Thanks for the guide. It was really easy to follow and got my N5 rooted in no time. Now running xposed and gravitybox and also flashed lg camera port! Thanks a lot again! :)
[Nexus 5 General] Bambora:
How do I Know if I have the Drivers properly installed?

I installed it via the 1st link.
[Nexus 5 General] jd1639:
Type fastboot devices. If you get a list of your device they're working. Make sure your path to fastboot is correct.
[Nexus 5 General] Z1cK:
All your tips and tutorials working flawlessly !!! :good: