yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] dokie80:
Thanks Efrant , Will try.

Thanks moriel5 for the head up :(
[Nexus 5 General] moriel5:
Thanks to my friend who notified me.

I used to have a Nexus 5, until it was stolen, but then again, I generally use a custom ROM such as NamelessROM, so I wouldn't have noticed.
[Nexus 5 General] qbdx:
Hi, I'm having trouble getting the update to work, I'm following instructions from the op and effiants, and its still doing the error.

"

I modified the update-script to remove the lines suggested from Effiant, and that is not working in TWRP.

I've also tried the op's post to Scenario A - adb sideload, and that is erroring also.

Any suggestions?

I have

LMY48B -- I also don't mind going bak to stock recovery and no root-- if you could recommend either route to simply get the latest update without losing user data, that would be most helpful.

note: i haven't tried section D, i worry that it loses personal data.
[Nexus 5 General] gialakias:
If you have modified other parts or files of the system it will not apply. Flash the system.img and boot.img of the current 5.1.1 I factory image, format cache and reboot. Then reroot your phone and all will be like yesterday but you will be in I build. If you want with the zip file you have to flash your current system.img and boot.img and after it will apply. In both situations you will need a computer I am afraid... Correct me if I am wrong.

Sent from my Nexus 5
[Nexus 5 General] ddimple4:
Restore stock without unlocking bootloader?

I had rooted with the Kingoroot app, so never unlocked bootloader.

I have unrooted and removed Supersu, but still have TWRP recovery.

Is there any way to restore stock for the OTA without unlocking bootloader (and losing all data)?

Many thanks.
[Nexus 5 General] efrant:
Yes. Get root again, then use BootUnlocker to unlock the bootloader. (Or just flash [MENTION=4544860]osm0sis[/MENTION] BootUnlocker script.) Then flash the image files (except the userdata image) contained in the latest factory image using fastboot.
[Nexus 5 General] Dalar:
Hi. I tried this because I wanted to save some time without dirty flashing the new images.

For some reason, just deleting those lines didn't work. (No modified system files, just TWRP and root.) But thanks anyway for instruction on how to modify the updater script.

Edit. Well I also had Franco kernel installed besides root, which might affect things?
[Nexus 5 General] efrant:
If it didn't work, what was the error output? You should easily be able to tell which file it's failing on.
[Nexus 5 General] Dalar:
With sideload it didn't tell anything but "install failed". The normal install gave some error output, but sorry, I didn't take notes... But it was something about that a fingerprint isn't correct, which is weird, because I think your instructions effectually removed every mention (and assertion) about fingerprints in the updater script?

I now remembered that /system wasn't completely in clean state, because I had installed Franco kernel. Let's hope someone has the same issue and remembers to rapport.
[Nexus 5 General] gialakias:
Yes, no stock no party! Otherwise it would work with efrant's instructions.

Sent from my Nexus 5
[Nexus 5 General] Dalar:
Well, yes. But I've understood that it's all about the assertions and verifications in the OTA's updater-script, and one would be able to make modifications to the scripts, so that it would run on a modified Android. Note that I was on stock ROM, just a different kernel (including it's custom settings of course). Besides, root itself modifies /system, so it's not stock then, and efrant gave instructions also for root.

Of course, this is dangerous, and the safest bet is to apply OTA to stock, or just flash new updated partitions, as I did.
[Nexus 5 General] efrant:
Some custom kernels, including franco's, change some files in /system. So even if you return your boot image back to stock, some files in your /system partition still have been modified.
[Nexus 5 General] BLONDMAN:
hi.

what Method for update in twrp ?

i have just root and have twrp.

i have not any kernel.
[Nexus 5 General] ironia.:
from lmy48b image flash system and recovery.img, erase cache and then apply ota
[Nexus 5 General] BLONDMAN:
which system and recovery.img?

and what method update ota in TWRP?!
[Nexus 5 General] ironia.:
It s not possible to update via twrp.

Flash the IMG files extracted from Google image
[Nexus 5 General] zero_x3:
I've got the latest OTA ready to download and install. Can someone tell me how to capture the URL without adb? Unfortunately I don't have a microUSB cable with me.

EDIT: Apparently I downloaded it already and couldn't capture the URL from logcat. Here is the update from /cache
[Nexus 5 General] Haul:
The URL is https://android.googleapis.com/pack...ed-hammerhead-LMY48M-from-LMY48I.79fa6114.zip

I downloaded the .zip that you provided and used the command "shasum update.zip" in Linux to calculate the SHA-1 checksum of the file. The hex strings in the URL are the full SHA-1 checksum and the first 8 characters of the checksum, respectively. THanks so much for providing the .zip file.
[Nexus 5 General] dvdbos:
Is this from version I to M, or from B to M?
[Nexus 5 General] Haul:
As the filename says, I to M. We don't know if Google will even create a B to M update, but we'll see.
[Nexus 5 General] perusmuro:
Nothing
[Nexus 5 General] deusfaux:
Hi. Looked over this last page and gonna read some more, but I'm on stock 5.1.1 (48I), unlocked & rooted and there is an update available (is this the 48M I see mentioned?) that results in an error when rebooting.

I find this strange because within the past several hours I went from 4.4 to 5.1.1 the same way, by accepting several OTAs. Why is this one failing? I restored the hosts file that adaway changes and that didn't help. Do I have to unroot? I've never had to in past updates. There's nothing else that isn't stock about the phone.
[Nexus 5 General] shantaram77:
I was stock with custom recovery and root. I replaced recovery and unroot but Ota didn't installed. At the end I updated with a a different method suggested here in the forum that consists in flashing different file from LMY48M zip
[Nexus 5 General] ironia.:
you must have

everything stock

!

so if you want to install OTA, than reinstall the current original rom parts extracted from google's factory image:

system.img if you are root (not just unroot from app!!!)

recovery.img if you have custom recovery

boot.img if you have custom kernel

and OTA:...

if you want to have directly the latest os without installing the ota, follow this guide
[Nexus 5 General] shantaram77:
Yes I flashed system, recovery and boot from LMY48I but Ota didn't installed. I hadn't nothing changed except recovery and root. I didn't understand. When I tried to update system give me message that was starting to reboot but at the end it didn't reboot. In any case I ve update flashing all the most important img from LMY48M
[Nexus 5 General] siamak5561:
thanks bro, very usefull.
[Nexus 5 General] kanav1234:
OTA fails at cache/update.zip

I have rooted my Nexus 5 since the 1st month and have been flashing factory images since 4.3.

Now I want to install office emails however every time I try to install Mobile iron it gave me an error that your device is compromised.

I have factory flash the image and also changed flag using Nexus tool kit but it still.not letting me to install OTA meaning if I install Mobile iron it will give an error anyways.

Luckily OTA is acting as a check for me and unfortunately all my efforts have taken me back to point A from where I started.

Need your help on how to install stock image in order to get OTA while I will not root my phone this time due to security restrictions from Mobile iron.

OTA sticks at check/update.zip
[Nexus 5 General] ern88:
Just dirty flashed and all went well.
[Nexus 5 General] stbxxl:
Just flashed on my stock, un-rooted N5. No issues.
[Nexus 5 General] kicksilver:
Sideloading the OTA as I type.

Hope all goes well.
[Nexus 5 General] deusfaux:
Are there any differences in results or likelihood of issues with these 2 methods for a rooted, stock user:

Method 1 (OTA)

1. RE-flash system.img from 5.1.1, undoing the changes to it from the rooting process.

2. Accept and run OTA update to 6.0, which won't fail now because of step 1

3. Re-root by flashing supersu.zip via custom recovery (personally I only boot into custom recovery, and don't flash it to the phone)

Method 2 (manual)

1. Flash the 5 .img files (excluding userdata.img) from the 6.0 factory image

2. Re-root as above.

As far as I can see, they both get you to the same place, but I can understand arguments for either having less potential problems, if any.
[Nexus 5 General] Wh1t3Rose:
No difference. Just one requires more work.
[Nexus 5 General] deusfaux:
Which one is that, in your opinion? The first means flashing a single file. Which appears to be less work than flashing 5 files. Perhaps it takes slightly longer time to download and apply the OTA?
[Nexus 5 General] Klawd3:
Hello all,

I just received a new Nexus 5 with 4.4.2 (KOT49H) bought online.

The vendor, at my inquiry, replied that it was new and not refurbished or regenerated.

The OTA says "up to date" and won't update to lollipop.

Can't figure out what's wrong. Anyone has any idea?

PS: I checked with cpuz to see if the hardware is correct and it doesn't seem to be a chinese replica. (lol)

thank in advance.
[Nexus 5 General] ironia.:
flash directly the MM factory image :good:
[Nexus 5 General] Klawd3:
The point is that it won't update to 4.4.3 neither... and it seems strange.

Anyone could point to a cause?
[Nexus 5 General] Joh@n:
Why would you like 4.4.3 if you can flash the 6.0 factory image? Otherwise you have update all the way up to 4.4.4, 5.0, 5.0.1, 5.1, 5.1.1 etc.
[Nexus 5 General] J_The_Nerd:
Marshmallow ota https://android.googleapis.com/pack...402b.signed-hammerhead-MRA58K-from-LMY48M.zip

Just downloaded, not flashed yet.
[Nexus 5 General] EddyOS:
Bit late to the party dude ;)

http://xdaforums.com/google-nexus-5/general/ref-nexus-5-stock-ota-urls-t2475327
[Nexus 5 General] efrant:
Your first method requires that you be completely stock, so it means flashing a single file if you only made changes to /system (such as root). If you flashed a different radio, you need to flash back the one that came with 5.1.1. If you flashed a custom kernel, you need to flash back the stock kernel. If you flashed TWRP, you need to flash the stock recovery, If you made changes to /system, you need to flash the stock system.img. Then, after doing all that, you need to sideload or accept the OTA update. Then the OTA update has to patch all the appropriate files, which takes a while. Same amount of work if not more than your second method, and it takes longer.

If you use your second method, you flash the images and you are finished.

End result is exactly the same.
[Nexus 5 General] deusfaux:
Well for the record I did say a 'stock' user, but thank you for the further information regardless.
[Nexus 5 General] efrant:
Missed that part, sorry.

There is one advantage for each method that I can think of (it's pretty obvious I suppose): If the OTA is released before the factory images get posted, then you can update immediately without having to wait for the images to get posted. Likewise, if the factory images are posted, and no one has posted a link for the OTA update, then you can update immediately with the images rather than wait for someone to grab the URL and post it.
[Nexus 5 General] misbehave:
Hi,

My Nexus 5 is still having android 4.4.4.

Do I need to flash all the Android 5.x OTAs before I can flash the Android 6.0 OTA? Or can I skip all the 5.x and go straight to 6.0?

BTW, my Nexus5 is rooted with stock kernel and CWM recovery.

Thanks!
[Nexus 5 General] Srandista:
If you want to use OTA files, you have to update from previous version (5.1.1 in this case), because OTAs are just incremental update.

If you want to update directly to 6.0, use Factory image.
[Nexus 5 General] misbehave:
Will the process of flasing a 6.0 factory image wipe out all the existing apps and data on my phone?

Also, since I have a custom recovery, if I choose to go with the OTA update route, does it means I will have to flash to a stock recovery first before doing the update?

Thanks.
[Nexus 5 General] Srandista:
If you have unlocked bootloader (which you probably will, when you have custom recovery), then you can delete -w flag in flash-all.bat and you will not loose data in your phone during update. Its called dirty flash.

However, since you are having such an old version of system, I cannot guarantee this for you. I did dirty flash on my Nexus, but from 5.1.1 to 6.0, without problem.

Also, yes, after dirty flashing you need to install custom recovery, and in the case of wanting root, also new kernel and new SuperSU.

If you go through OTA route, system from version 5.0 will require have also stock recovery present.
[Nexus 5 General] Talos77:
Hey guys... I have a stock nexus 5 with an unlocked bootloader but not rooted or anything like that.

I'm trying to follow Scenario #1 and am hitting an issue. Firstly I had to update to ADB 1.0.32 from 1.0.29 because it was showing my 5.1.1 N5 as being in Offline state. After doing that I got it to show up as device instead so i thought all good.

I then follow through the steps in the Scenario #1 and i get the phone to reboot into recovery mode. I then press the power button + Vol Up and get it to the point where it is waiting for adb sideload but when I go to do that step it comes up with the error:

loading: 'update.zip'

error: device '(null)' not found

If I do an adb devices at this point its showing an empty list... it appears that once i enter the adb reboot recovery command it loses contact with the N5 and then i can't do anything with it.

any ideas on what i'm doing wrong? I'm using the universal driver also.
[Nexus 5 General] :
Is USB debugging enabled in developer options in settings?

And you do have stock recovery?

Just checking on those. :good:

Have you considered just flashing the image with fastboot? Assuming it's available. (sorry... A little out of the loop on N5 happenings)
[Nexus 5 General] Talos77:
Yeah mate i'm using stock recovery - its basically a brand new nexus i got back from an RMA with google because the 3g antenna in my old unit gave up the ghost.

And yes i do have USB debugging enabled otherwise i wouldnt be able to do the ADB reboot recovery step right? its just once it gets past this step that it disappears from the system and adb/windows can't see the phone.
[Nexus 5 General] efrant:
There have been a few cases like yours that I've seen. What I've found that works is to install the driver when your device is in ADB sideload mode.
[Nexus 5 General] :
^ Him knows! ;)
[Nexus 5 General] Talos77:
Thanks for the help guys.. that worked perfectly.. applying the OTA now...
[Nexus 5 General] IllusionedDreamer:
I have a doubt.

If I'm rooted, but with stock recovery,

can I directly use the OTA update?

When I say 'use the OTA', I refer to sideloading 6.0
[Nexus 5 General] Srandista:
No, you can't. Root is changing some files on /system partition, so OTA will fail.
[Nexus 5 General] krishnadev.mr:
OTA from Developer Preview 3 to FInal Build?

Hi Guys,

So around a month back I got all excited and flashed the MM Developer preview 3 build (MPA44I).

Now, I know that almost everybody on my network has received the 6.0 (MRA58K) OTA . They were all on stock Lollipop.

Any idea if I will be receiving the OTA or will have to manually flash MRA58K?

I am guessing I will have to flash it, but just asking if anyone knows of a way to sideload the OTA?
[Nexus 5 General] Winesnob:
No OTA is available. Google stated this on the M Preview front-page.
[Nexus 5 General] TheMathMan:
But now 6.0 is rolling out to devices, there should be an OTA zip somehwere.

In fact, I just found this link...

http://www.ibtimes.co.uk/how-install-android-6-0-marshmallow-update-nexus-devices-ota-links-1522630
[Nexus 5 General] Winesnob:
Those OTA links are from 5.1.1 to 6.0. There is NO OTA from M Preview to final version.
[Nexus 5 General] Claghorn:
My Nexus 5 just told me I could download the android 6.0 update, so it is fetching it now. I'm completely stock, so hopefully, I won't have any problems.

And the install is now finished with no immediately obvious problems. Started the install a couple of minutes before 2:30pm and it finished updating all the apps and rebooting at a tad after 2:50pm (so it didn't take the full 45 minutes the install screen warned about :).
[Nexus 5 General] TheMathMan:
Are you UK based?
[Nexus 5 General] Claghorn:
Nope, I'm in South Florida.
[Nexus 5 General] CPNowell:
I am UK based and got my 6.0 ota update yesterday evening. Running like a dream.
[Nexus 5 General] Underwater Mike:
Any sluggishness, memory, camera or other issues? Did you re-root or not?
[Nexus 5 General] CPNowell:
No. None at all thus far. The surprise for me was that I got nearly a gig of memory back after the update without any other changes. The Nexus 5 has been the first phone I've owned where I've never felt a burning need to root it at all and so, in answer to your second question, it was bog standard before and still the same now (apart from all my apps of course). In fact, I had already prepared myself mentally to do a full factory reset after M arrived but so far, I really haven't felt the need to go through with that... I still may at some point just to give it a good clear out internally...
[Nexus 5 General] Underwater Mike:
Okay, thanks. Just too may apps I use that require root, and I'm not comfortable at this point with the workarounds I see posted -- unless someone knows of a solid (i.e., relatively foolproof, as I am a pretty big fool) method of updating and then re-rooting the N5.
[Nexus 5 General] trent999:
I was surprised when my Nexus5 updated to MM last week. I had unlocked the bootloader long ago to edit the sqlite database to enable tethering via my T-Mobile pre-paid 5gig sim and never relocked it. I don't think I ever rooted, and I don't think the tethering hack survived this OTA, but I was still a bit surprised the OTA to android 6.0 completed.

I guess Pay won't work...haven't tried.
[Nexus 5 General] :
You can OTA with an unlocked bootloader. No problem. It's custom recoveries or other certain system changes that will stop it. Xposed installed for example. Usually a no go then. :good:

There's pretty much never a need to lock the bootloader.
[Nexus 5 General] imtiax:
i live in canada. still waiting for ota. completely stock
[Nexus 5 General] Haul:
Android Pay works just fine with an unlocked bootloader and NO ROOT. You will be able to add cards AND actually make transactions too.
[Nexus 5 General] CPNowell:
So, a question that follows from that then is, is there any benefit in having an unlocked bootloader and no root?
[Nexus 5 General] efrant:
Yes: if you end up getting into a bootloop or something else happens and your device doesn't boot, a quick re-flash of the system and boot images will fix the problem. If your device has a locked bootloader, you would have to unlock first before you can flash the images, which would wipe all your data on the device.
[Nexus 5 General] manojks256:
Hello Everyone,

Currently my phone is running on Developer Preview-3 of Android 6.0 which I installed a month back

It's been 20 days, google released official OTA of Android 6.0

All my friends using Nexus 5 here got OTA 10-15 days back

My question is, will I get OTA of official Android 6.0 update or do I need to install manaully

Thank you,

Manoj Kapuganti
[Nexus 5 General] gialakias:
You have to install it manually.
[Nexus 5 General] anthonypiccolo:
My Nexus 5 is rooted and in the past OTA updates have always worked just fine. I don't use a custom recovery. However, the November Android security update fails. I was thinking this was because BBS was installed as a system app. After uninstalling that it still doesn't work. The only other thing I use is Adaway, so I reverted back to the original hostfile and also uninstalled BusyBox. Still no dice. Or is it perhaps Marshmallow OTA updates simply won't work if the phone is rooted? How come in the past I've been able to do OTA updates with my phone being rooted?

What can I do to get the update? Does that mean I have to basically lose my user data every month to do an OTA update now and reroot my device? That's ridiculous!
[Nexus 5 General] efrant:
The easiest way to update is to flash the factory image (except the userdata.img file) and then get root again. No user data is lost.
[Nexus 5 General] anthonypiccolo:
Hey, how can I do this? How do I know specifically what factory image to flash? And how do I do it?

I rooted using Wugs NRT, can I use that?
[Nexus 5 General] gialakias:
I think there is an option in the toolkit to upgrade without losing data. You have to use the next version of the which you are already.
[Nexus 5 General] donpippo:
Hi, I'm on Android 5.1.1 rooted, custom recovery and encryption.

Is there a way to apply OTA?

I think I need to flash system and bootloader but I'm not sure if there is any problem with encryption.

Someone have experience?
[Nexus 5 General] b14s:
Upgrading from stock 4.4.4 KTU84p rooted

Hi,

Iam not sure which guide shall I use, i hope somebody could point me to the right direction.

current OS: original 4.4.4 KTU84p, the only modification is root enabled with TWRP.

I have 5.0.1 OTA notification on my phone for more than a year, but I couldn't install it through the phone.

I would like to keep my root and data if possible and upgrade it to the latest android.

Thanks in advance,

b
[Nexus 5 General] gialakias:
Flash system.img recovery.img boot.img of the 4.4.4 factory image and then all the updates will apply flawlessly. Se OP for details.
[Nexus 5 General] b14s:
Hi,

thanks for the fast reply. That was I guess I need to reroot my phone and will loose all your data?

cheers
[Nexus 5 General] gialakias:
You will receive all the updates and then reroot. No data or settings loss.
[Nexus 5 General] b14s:
thanks a lot!
[Nexus 5 General] BrownEye02:
Anyone running the latest 6.0.1. update also having battery % issues?

[IMG="4,000% battery"]http://i1130.photobucket.com/albums/m532/BrownEye02/Mobile%20Uploads/Screenshot_20151208-1148222.png_zps2kjhzuvn.jpeg[/IMG]

I saw a post in the nexus 9 forms on this but no answer. Im running root with the modified stock kernel that allows root. I'm wondering if the issue has something to do with the kernel.
[Nexus 5 General] ironia.:
here you go;)

[GUIDE] Update stock rooted/modified rom to last 6.0 Marshmallow w/o losing your data

Tip
[Nexus 5 General] Yaz75:
Every response I've seen on this points to the kernel.
[Nexus 5 General] BrownEye02:
Sorry forgot to edit my post and say the fix can be found here.

http://xdaforums.com/google-nexus-5/help/android-6-0-1-claims-battery-charged-to-t3266352

And yes its the kernel.
[Nexus 5 General] samnaction:
Hi, I am in 6.0 (MRA58N) stock (rom, recovery) and locked bootloader. Can I side load the OTA? or do I need to flash radio and bootloader?
[Nexus 5 General] cpanos:
You need to unlock the bootloader, which will wipe your device. After that you can flash anything without wiping (ota, radios, factory images, etc,). This is why it is good practice to unlock the bootloader early on.
[Nexus 5 General] gialakias:
Of course you are wrong. No need to unlock to install an official update.

[MENTION=4861628]samnaction[/MENTION] proceed with the update with no fear.
[Nexus 5 General] cpanos:
Stand corrected, got ahead of myself, you need an unlocked bootloader to flash factory images, no need for one to flash an official OTA.

[MENTION=4861628]samnaction[/MENTION] Download the OTA, install ADB tools on your computer, boot into recovery on your phone and connect it to your pc, press and hold power then press volume up to go into the recovery options, select apply update through ADB, then, on your computer, type in a console "adb sideload update.zip", where update.zip is the name of the OTA file.

P.S. Since marshmallow, you can apply an OTA directly from the sd card of the phone (there is an option in recovery saying "apply OTA from sd card"), but I havent tried updating that way.