yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] Kmb470:
HELP: OTA Update to Android 5.1

Hey Guys,

I've searched the forums and tried to figure out how to solve my issue installing the Android 5.1 update I received months ago and continue to receive popups for. First I thought it was a recovery issue, since I couldn't flash to Recovery, so I reinstalled and updated TWRP to TWRP 2.8.70. I have root access with SuperSU PsuedoPro v2.46. I then re-downloaded the OTA 5.1 system update, flashed recovery, located the update in the /cache folder, and tried tried to install it. It failed!

What am I missing/doing wrong!?!
[Nexus 5 Original Android Development] furbyx92:
Maybe ask in the wrong thread...
[Nexus 5 Original Android Development] Kmb470:
Well that's helpful!

I only posted in this thread because that is how I rooted the device originally. Mind pointing me to the right thread? I would greatly appreciate it!
[Nexus 5 Original Android Development] dmonleo:
Chainfire is #TheMan!!!
[Nexus 5 Original Android Development] AcuraKidd:
guys i need help

How do I perform this root without wiping my device? I already have an unlocked bootloader, I am on stock android 5.1.1 build LMY48I

I used to be rooted when I was on KitKat and had SuperSU, but then I did OTA update and now get the error in the below screenshot
[Nexus 5 Original Android Development] jd1639:
Do you have twrp on your device? To root just flash supersu in twrp. If you don't have twrp Google nexus 5 teamwin. Flash the recovery image file with fastboot. Then flash supersu in twrp
[Nexus 5 Original Android Development] 513263337:
Will rooting cause future OTA to fail?
[Nexus 5 Original Android Development] cogito808:
OTA and Root

I know that I cant grab the OTA while rooted but if I un-root, get the OTA, and re-root with the tool will it wipe the device? The OP leads me to believe not, but...

(I haven't unlocked the bootloader and really don't want to. Its kind of the reason I got the Nexus)
[Nexus 5 Original Android Development] AcuraKidd:
It's my understanding that only unlocking the bootloader is what wipes the device, not the actual root
[Nexus 5 Original Android Development] cogito808:
I swore when I rooted originally after getting the device it did wipe it.

The OP says: Note that if your device had not been unlocked before, this procedure will wipe all your data !

I figure with the recent Stagefright update someone must have tried and know. I'll give it a day or two to see if anyone else has some input before trying it and report back.
[Nexus 5 Original Android Development] jd1639:
If your bootloader is unlocked, rooting will not wipe your device. Unlocking the bootloader is what wipes your device. Just flash supersu in your custom recovery to root the device.
[Nexus 5 Original Android Development] chamjisky:
i had 5.1.1 rooted and getting an annoying update popup. i also faced this earlier . .so last time i did a bit complicated things . this time i wanted to unroot and try ota update as it was failing .. tried the unroot option in su and it took forewver to unroot and after reboot .. rootchecker said not properly rooted.. tried nexus root toolkit it would successfully say rooted. but same situation..

i was unable to apply ota when i was improperly unrooted.

tried this cfroot and it immediately rooted it again..

orignally my phone was locked .. and to root it had to be unlocked. unlocking caused loss of data .. (i had bakedup earlier as i was aware of it )..

so rooting/unrooting doesnt causes loss of data..

now my question is how to avoid that anoying popup for new update ?

can i update without losing any data as i did when updating from one iteration below 5.1.1 ?
[Nexus 5 Original Android Development] cogito808:
That's the thing, I didn't unlock the bootloader (didn't see an need to have a recovery with a Nexus, just root). My only option is to re-root after update with this tool and I'm not sure if the second time will wipe (unless I am misunderstanding how it works and the tool does unlock the bootloader to flash SU).
[Nexus 5 Original Android Development] jd1639:
If you're still rooted get bootunlocker from the play store. You'll be able to unlock without wiping your device.
[Nexus 5 Original Android Development] Sobaro:
i just updated my nexus 5 to Android 6 build MPA44I, is there any chance to root with Chainfire method ?
[Nexus 5 Original Android Development] Paget96:
Try to root with stock kernel
[Nexus 5 Original Android Development] cogito808:
An update on what I did and was successful. I got the app and it was indeed unlocked (later found out that root method unlocks it and keeps it that way, even says so when your running it--doh!). Since it was unlocked I went ahead and flashed TWRP (the app makes it so easy nowadays). Even though initially I wasn't interested in unlocking or a recovery, since it was unlocked what the hell. From there I followed these instructions: http://xdaforums.com/showpost.php?p=62288667&postcount=196.

And done. No data lost, settings the same, and root back. At least I know what to do for Marshmallow... I might try it without installing the recovery on my significant others phone later.

(and I reinstalled TWRP, why not I had a backup, and I kinda missed it)

---edit: worked flawlessly without installing a recovery as well.
[Nexus 5 Original Android Development] attila123456:
OTA failed after full unroot

So before installing the latest OTA, I used the full unroot option of the SuperSU app. It went fine, app closed and uninstalled itself, I rebooted, applied OTA, and got an error.

Was there something I missed? I guess now I have to flash boot and system, don't I.

Thanks.
[Nexus 5 Original Android Development] soumian:
As far as i know, there's no way you can apply OTA unless you flash system.img or something like that because it's not stock even after unrooting. If you want to update without loosing your data you can either follow this Guide or i think there's also a way with WugFresh Nexus Root Toolkit.
[Nexus 5 Original Android Development] cogito808:
This is going to be a little tedious with the new "monthly update" cycle. Really wish someone much smarter than me could figure out a way. I'd buy them beer.
[Nexus 5 Original Android Development] soumian:
I can assure you the process is really simple and harmless. The tedious thing is waiting for the Android is upgrading... Optimizing app X of 150. On my phone it takes at least 20 or so minutes
[Nexus 5 Original Android Development] AcuraKidd:
What is the process, can you please explain
[Nexus 5 Original Android Development] cogito808:
Yes. That is what I meant, and it has to optimize twice with each update. Not only that I have to do it for two phones. I guess that is the price you pay for peace of mind, security, and to get rid of that damn annoying notification.
[Nexus 5 Original Android Development] soumian:
Already did on mesaage 901 a couple ones above yours.

http://xdaforums.com/showthread.php?p=62860672
[Nexus 5 Original Android Development] cogito808:
How to Apply OTA Update

I used this guide . In case you don't catch it is missing the obvious reboot to fastboot before step 4 of flashing the images.

Since it was written for the last update just make sure you are grabbing the right factory image from here (it should be the one you are currently on).

edit: forgot to refresh and didn't see soumian's post (I do like my linked guide as it is far more concise).
[Nexus 5 Original Android Development] Narsage:
Does this work on marshmallow update for nexus 5 (MRA58k)
[Nexus 5 Original Android Development] mondohow:
Since the images only got released today, and you're so eager, why don't you try it and let us know.
[Nexus 5 Original Android Development] sturmeh:
No, it does not.
[Nexus 5 Original Android Development] Pretoriano80:
After reading this - - > https://plus.google.com/+Chainfire/posts/XJYJFPtS9Qb < - - i'm not sure we will see a new version of SuperSU soon. And also the my trust level took a hit.
[Nexus 5 Original Android Development] mondohow:
Maybe you should read the entire thing before declaring the sky is falling...

At least give the man the benefit of the doubt after all these years of providing an great service.
[Nexus 5 Original Android Development] Pretoriano80:
Mate i've said 'soon' not never, which is completely coherent with what you quoted.

Second i never said i doubt Chainfire or that i didn't appreciate his work, so please don't jump to conclusions. We can already have root on M when using a custom kernel, so sky is clear, not falling at all.
[Nexus 5 Original Android Development] Shirokishi:
On the plus side if you do attempt to use this to root your nexus 5 on marshmallow you get a fun bootloop.

Yay loopy boots
[Nexus 5 Original Android Development] Primokorn:
We do have a new version of SuperSU: http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344

Chainfire will continue to work on this project during the next 2 years.

Marshmallow is official for a few days so give him some time to prepare a new version (stable) of SuperSU.

Moreover I'm sure that SuperSU for Marshmallow is the top priority for CCMT.
[Nexus 5 Original Android Development] Florian Bichl:
I heared we have to flash a modified Kernel if we want to root MRA58N. Is this true and does this zip do this? or do we have to do this before using this zip?
[Nexus 5 Original Android Development] Jens1969:
What's THIS zip? Auto-root does not work for 6.0, at least for me. The systemless method works fine. Read about it in CF's threads on xda. Watch out, to extract the boot.img from the zip file that can be found in CF's thread.
[Nexus 5 Original Android Development] Florian Bichl:
Sorry but I didn´t find anything about a systemless method. Can you share a link how to root MRA58N?
[Nexus 5 Original Android Development] Jens1969:
No problem:

http://lmgtfy.com/?q=Xda+Android+6+systemless+root

If this does not help you, you should not root your phone.
[Nexus 5 Original Android Development] :
Help me to unlock bootloader and root

Hello Guys, I want to unlock the bootloader on my N5. My phone is in Android Ver 6.0.2 with Feb patch(Build Number MMB29Q). Please help me in doing so. Also i would root my device, i would prefer TWRP. Please anybody...
[Nexus 5 Original Android Development] jd1639:
This has everything you need to know. http://xdaforums.com/showthread.php?p=53439068. Note that unlocking the bootloader will wipe your entire device so backup everything first.
[Nexus 5 Original Android Development] tedrogers61:
Deleted

DELETED - reposted in Q&A forum.
[Nexus 5 Original Android Development] ewoks:
Root Nexus 5 on stock MMB29V

Are these root instructions still up to date?! I am on stock Android for Nexus 5 and March security update with already unlocked bootloader. Any advice on rooting it? 10q
[Nexus 5 Original Android Development] tedrogers61:
I did it for the first time on a Nexus 5 last month, and it's very easy. Worked fine. Just run the relevant batch / script file from a computer. If the device is already unlocked it will just skip that part.
[Nexus 5 Original Android Development] BlackVader:
Anything for MMB29X for the N5 ?
[Nexus 5 Original Android Development] tenaciousd93:
Work like a charm with Android 6.0.1 build MOB30D (april 2016)|
[Nexus 5 Original Android Development] elgar:
Hello! I am having trouble with secure settings (plugin for tasker) getting root. It says "Root access was not detected". Is there a fix for that?
[Nexus 5 Original Android Development] DDeanNN:
thx

works like a charm, thanks!! (6.0.1 MOB30M) June update
[Nexus 5 Original Android Development] useruser12:
nexus 5 not flashing

randomly my nexus 5 restarted

google came on screen and now only those four animated circles are showing up and the phone doesnt go further

went in bootloader but cant wipe cache, cant format, or anything else from there.

usb debuggng must be off as far as i remember

trying to flash through sdk manager. have downloaded image. but stops at "waiting for device" in cmd and it doesnt go any further than that. even tried doing it manually through cmd.

when the phone is connected it is showing the drivers but it isnt installng and can see the yellow exclamation.

manually downloaded the drivers and tried installing manually but shows drivers are up to date.

uninstalled driver and reinstalled but same issue. it is connected to usb 2.0.

now how do get it to work?
[Nexus 5 Original Android Development] ayman saeed:
root

is it available for nexus 5 build mob30m
[Nexus 5 Original Android Development] Xaif:
Sometimes I get bootloop while flashing the zip file of Super SU
[Nexus 5 Original Android Development] flickerclear17:
Thanks for this—I rooted my Nexus 5 yesterday and your .bat file worked great.
[Nexus 5 Original Android Development] bimmerdriver:
I'm planning to root my stock nexus 5 running marshmallow (6.0.1). I don't want to lose my configuration, apps or data (e.g., particularly, SMS messages, but also device contacts, photos, and WhatsApp). I was looking at using adb backup, but I understand it may not backup and restore SMS. Would someone who has rooted their phone please confirm what you used to backup and restore it? Thanks in advance.

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

Looking further, on the website for Titanium Backup, there is a page called backup without root. It uses adb adb backup -apk -all. Can anyone confirm that this backs up SMS and other info? Thanks in advance.
[Nexus 5 Original Android Development] chamjisky:
just remembered that i also faced similar problem with wugfresh when i tried to root last time which i resolved by using cf root.

so i tried cf root and it did the magic.

for my and other refrence i am posting the link to that post.

https://xdaforums.com/google-nexus-5/orig-development/nexus-5-cf-auto-root-t2507211
[Nexus 5 Original Android Development] thongboi33:
Ok
[Nexus 5 Original Android Development] praneethls4008:
pls tell me how

---------- Post added at 04:47 PM ---------- Previous post was at 04:43 PM ----------

One thing I want to know how to dwl adb and fastboot pls senda detailed video bro:(
[Nexus 5 Original Android Development] akashchintamani:
[youtube]nO0C6Pcsn8A[/youtube]

This is a youtube link:good:
[Nexus 5 Original Android Development] Raj kumar saini5:
ok
[Nexus 5 Original Android Development] Arnav Sethi:
i just got a refurbished nexus 5. i unlocked the bootloader and downloaded the latest twrp recovery Europene one and flashed it. recovery was flashed successfully but when i tried to boot into recovery screen start flashing in twrp showing "files not mount", couldn't see clearly then phone got into bootloop. i have a model no D821 with lastest update 5 oct 2016 security patch. please suggest me which version of twrp recovery should i flash........

PS: i flashed the stock rom to get the phone working
[Nexus 5 Original Android Development] Mohdanasa077@gmail:
:svetius::svetius:
[Nexus 5 Original Android Development] HJB1963:
Root has gone

Hi, my nexus 6 died and I had to get my nexus 5 out. I updated it to nougat but locked the bootloader and idk how but the SU is not on the rom. I've no computer. The phone has TWRP working and BB installed.

Is there a way to get root back?

If I flash a rom with SU will it loop or be OK?

Tnx for any help!
[Nexus 5 Original Android Development] Sam Nakamura:
Don't lock the bootloader unless you're back to full stock, it's actually pretty risky to lock the bootloader with any significant modifications, like a custom recovery, custom rom, kernel, etc., honestly I wonder how's this even possible without softbricking the device....

SuperSU was dropped by chainfire, so you should probably switch to Magisk, magisk manager can patch the boot image, you'll however extract your kernel or find a compatible boot.img, then use magisk manager, tap "install" and chose "patch boot image" and navigate to the folder the boot.img is in and select it, after successfully patching the image flash it via TWRP.

You'll maybe clean/dirty flash your ROM and/or run osmosis' unsu.zip, depending on the way SuperSU was originally installed...

Or simply flash the LineageOS SU addon if all you need is basic root privileges, the SU-option was removed long time ago...

https://download.lineageos.org/extras

Chose SU for lineageOS 14.1 for arm
[Nexus 5 Original Android Development] JoopNL:
Worked fine. I had already "oem unlocked" (first thing I did when I got the N5). Just booted the img and root working nicely.

Donation coming your way.
[Nexus 5 Original Android Development] tintin1892:
Finally rooted

---------- Post added at 04:50 PM ---------- Previous post was at 04:44 PM ----------

Find this has anyone tired this out

http://www.theandroidsoul.com/nexus-5-clockworkmod-recovery-cwm/
[Nexus 5 Original Android Development] floepie:
Thanks for the effort! Just a curious question. Why is the img file over 10MB and the extracted zipped SuperSU only 2MB?

Edit: Ok, I see that the phone uses the boot.img stored on the PC. Then, what happens? Is the SuperSU injected into the /system keeping the original boot.img unmodified?
[Nexus 5 Original Android Development] dumbo octopus:
from op:

so yeah.

~dumbo.
[Nexus 5 Original Android Development] H3ISENB3RG:
Can somebodey tell me what i am doing wrong if the root windows.exe doestn find my device?

i already installed the USB-drivers in adb but i only get an unnormal sound from windows if i plug the phone and device wont be found?
[Nexus 5 Original Android Development] dumbo octopus:
if you're using windows 8.1, try another computer with windows 7.

try another usb port, you may be using a usb 3.0 port.

~dumbo.
[Nexus 5 Original Android Development] H3ISENB3RG:
Can somebodey tell me what i am doing wrong if the root windows.exe doestn find my device?

i already installed the USB-drivers in adb but i only get an unnormal sound from windows if i plug the phone and device wont be found?

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

no i already switched to an windows 7 laptop and it doestn has usb 3.0
[Nexus 5 Original Android Development] dumbo octopus:
does your device show up under device manager? windows key+x -> device manager. if not then it's a driver issue.

~dumbo.
[Nexus 5 Original Android Development] H3ISENB3RG:
And would be to do if it isnt shown? :S
[Nexus 5 Original Android Development] MLAM:
Can I just confirm that all I need to do is to boot the phone into FastBoot mode and then run the batch file and thats it?

Do I need to install any drivers for the phone before hand?

My laptop is on windows 7.

Sorry for newbie question but I am quite new to Android :)
[Nexus 5 Original Android Development] nanosp:
You'll be able to download OTAs after root as long as you stick with stock rom. If you flash another ROM you'll have to flash a stock ROM then update and reflash the custom but the root stays no matter what.
[Nexus 5 Original Android Development] drnizeguy:
Thanks for your work,

But I'm in a bootloop now. It just keeps booting up in the cf-root interface with the red android..

[EDIT]

I think somehow the boot.img was flashed on the n5. Flashed an other boot.img and it runs fine.
[Nexus 5 Original Android Development] dont know:
It IS working with win8.1
[Nexus 5 Original Android Development] dumbo octopus:
ah geat, with my htc one adb and fastboot did not work with win 8.1 ... glad that was idiosyncratic to that device and not win 8.1.

~dumbo.
[Nexus 5 Original Android Development] Whyzor:
OTA also has a pre-install check that may fail if you or an app modifies system files, like /etc/build.prop...etc.This is the risk of rooting without having a custom recovery to make a backup.
[Nexus 5 Original Android Development] dont know:
Or OTA checks if custom recovery - this is the risk.. ;)
[Nexus 5 Original Android Development] sewer56lol:
Your both of the statements are incorrect. If it does not work on Windows 8.1 then you have either a problem with a driver , no/missing driver or a misfunctional USB port.

Whatever version of USB it is It won't matter.
[Nexus 5 Original Android Development] timvdlinde:
Sorry if I'm completely wrong.

So if I unlock my bootloader and install a custom recovery and make a nandroid. And then I'll root it I can always restore my phone with the nandroid to re-enable OTA if it gets ****ed up.

Thx
[Nexus 5 Original Android Development] Whyzor:
Yes, and it's recommend you backup the nandroid image onto your PC too.
[Nexus 5 Original Android Development] tttone:
thx``````````````````````````````
[Nexus 5 Original Android Development] danmaman:
Hi

A big thanx to you chainfire....

but one question.....

do you start also development for your app "stickmount" for nexus 5? if its possible

thanx and cheers
[Nexus 5 Original Android Development] Michealtbh:
I believe it's already been updated to support the N5
[Nexus 5 Original Android Development] Striatum_bdr:
He twitted yesterday that update is coming to play store.
[Nexus 5 Original Android Development] J.S.C:
I have done rooting and running custom roms in the past but with my shiny new device I am hoping to keep it as close to stock as possible with using root simply for customization and settings (Xposed installer for example).

It is important to me to have the latest updates as soon as possible with as little pain as possible. Could someone who understands this a little better than myself please explain exactly how OTA updates will be effected by this method.

Thank you for your help and sorry if the answer is staring me in the face, just seems to me that there is conflicting information.
[Nexus 5 Original Android Development] cushcalc:
Thanks for all your hard work. PayPal donation #24W33745514442024 sent.

Getting my Nexus 5 tomorrow. First thing I will do is use CF-Auto-Root!
[Nexus 5 Original Android Development] TR2N:
Hi folks,

i have a question regarding the correct procedure of rooting. I will get my Nexus 5 tomorrow and want to root it right of the box. Is it better to do the OTA update, that comes with the system setup after booting it the first time and than to install root, or can i root it before first time boot? What i don´t know - and that is why i ask: Will root stay persistent - even if an/the OTA update is coming? Which BusyBox do you prefer? Do i need one for Helium or Root Explorer?

Kindly regards,

Nico
[Nexus 5 Original Android Development] danmaman:
why i am asking is.......

im waiting for my micro_sd OTG from www.meenova.com that i have ordered:good::fingers-crossed::p:laugh::victory::D

i cannot wait:good::good::good::good::D:laugh:

cheers
[Nexus 5 Original Android Development] baker954:
I got my Nex5 yesterday. Using your tool to root it now.
[Nexus 5 Original Android Development] PsP.Hc11:
stock recovery?

just to be sure... the tool only root the phone (unlock bootloader + root) and install the superSU apk?

after i used the tool, i've still the stock recovery or twrp or anything other recovery?

ask because i want to OTA-updates and this is only possible with the stock recovery afaik... :)
[Nexus 5 Original Android Development] Phil402:
out of curiosity: how does this method work.

I thought i need to install a custom recovery to root the phone?
[Nexus 5 Original Android Development] Exel:
You don't.

Rooting and a Custom Recovery are two different things.
[Nexus 5 Original Android Development] J.S.C:
This seams to be a question many people including myself are interested in finding out.
[Nexus 5 Original Android Development] Basian Mile:
I think it clearly says "nothing else" on first post. So no other recovery will be installed. Just root and unlock
[Nexus 5 Original Android Development] Phil402:
Bootloader will be unlocked so i guess u could still receive OTAs as long as u dont install custom recovery. But i think u will loose root when u do so.
[Nexus 5 Original Android Development] Striatum_bdr:
There is no finding out, it's written in plain text in OP.
[Nexus 5 Original Android Development] Whyzor:
I know for sure on the N4, having a custom recovery still works with OTA as I've done this, so unless Nexus 5 changed, having a custom recovery shouldn NOT affect OTA either. Custom recovery is good for making nandroid backups in case you (or an app) messes up the phone accidentally with root.