yashsingh1/xdaforums huggingface dataset:
[Nexus 6  General] cam30era:
As [MENTION=5302753]Evolution_Tech[/MENTION] indicated, you can download the factory image from Google and fastboot flash it while booted into bootloader.
[Nexus 6  General] jeffrey81:
Kind of lost here why I have to flash back to stock?? Can I download the factory image and flash it via toolkit to keep root and data?? Sorry for the noob question
[Nexus 6  General] gee2012:
Never used and never will use a toolkit so i have no idea tbh :)
[Nexus 6  General] :
Download the factory image for the OTA you want. Unzip it and extract the system image. Flash the system image with fastboot. Then if desired, fastboot flash TWRP and then flash SuperSU with TWRP. Just like that, updated, custom recovery with root. Done.

No. Data. Lost.
[Nexus 6  General] MikeZ:
Hi in this post: http://xdaforums.com/showpost.php?p=61021498&postcount=442

you mention that you could just do this:

That seems to imply that your data is not lost.

However the method mentioned above clearly says that you'll wipe your phone.

I want to upgrade from 5.1 to 5.1.1 but got the "system partition has unexpected contents" error thrown at me. (rooted/stock / normal encrypted).

Can i use the method you mentioned in post 442 to flash all the necessary images and still keep my data ?

If so will you please elaborate on the actual commands to enter ?

thnx mike
[Nexus 6  General] NLBeev:
Your N6 is stock and unrooted.

When you want to upgrade there is a toolkit available. at Wugfresh.com

The toolkit downloads the factory image, modified boot.img and supersu.

When the toolkit starts you will see a button 'Flash stock and unroot' and in there is a setting 'No Wipe Mode'
[Nexus 6  General] MikeZ:
My N6 is rooted as stated..
[Nexus 6  General] efrant:
These are the things that wipe your data:

1) unlocking the bootloader

2) locking the bootloader

3) using the "fastboot format userdata" command

4) using the "fastboot erase userdata" command

5) performing a factory reset in recovery or in Android

6) flashing the userdata.img file contained in the factory image via the "fastboot flash userdata userdata.img" command.

So, if your bootloader is unlocked, you can proceed to follow that guide, and flash all the images

except

the userdata image. You will still have all of your data.
[Nexus 6  General] MikeZ:
So what wipes my installed programs and its settings ?

I gather userdata is fotos etc.
[Nexus 6  General] efrant:
Userdata is all of your programs, settings, photos, docs, etc.

Everything

other than what comes on the phone when you pull it out of the box...
[Nexus 6  General] MikeZ:
Just to be sure: when i do flash these imgs separately i need to use the factory image for that right ?

Flashing the separate bits from the update.zip doesn't work right ?

tia

UPDATE:

Well i bit the bullit ; flashed all files from the factory img except userdata, and all was well.

Off course you loose root, but that is easy enough.

If only the process of optimizing 300 apps would go faster..
[Nexus 6  General] NLBeev:
Yes a typo. Sorry

Q about update.zip.

After unrooting and when you have the OTA message and downloaded update.zip, you can update.

EDIT. Read the next post.
[Nexus 6  General] cam30era:
FWIW: using the "unroot" option inside SuperSU is insufficient on Lollipop. It leaves a few stray files laying around which will not let the OTA install. You have to flash the system.img from the factory image to effectively unroot, for OTA installation.
[Nexus 6  General] starfish_001:
I did this for 5.1 update for 5.1.1 -people seem to be using 5.1.1 (For Sprint, USC ONLY) (LMY47Z)

take factory image - Unzip everything and keep the following images: bootloader, radio, boot, recovery and system.

fastboot flash bootloader bootloader-shamu-moto-apq8084-71.08.img

fastboot reboot-bootloader

fastboot flash radio radio-shamu-d4.0-9625-02.95.img

fastboot reboot-bootloader

fastboot flash boot boot.img

fastboot flash system system.img

fastboot flash recovery recovery.img

fastboot format cache

fastboot reboot

fully stock 5.1 without losing your data.
[Nexus 6  General] crackers8199:
i've been trying to read through this entire thread, i think i've got it but i want to just ask this here to make sure: i just got my nexus 6 from amazon on friday...popped in my verizon sim and everything is beautiful. unlocked, rooted, xposed and gravitybox running...but still on the original software (LNX07M) - can i use this method with the system images to upgrade to 5.0.1 or 5.1 without losing data? and, if i can, do i have to go to 5.0.1 first or can i go right to 5.1?
[Nexus 6  General] gee2012:
Sure,

flash the latest stock rom (5.1.1):

- (optional) flash the bootloader, fastboot reboot-bootloader

- flash the radio, fastboot reboot-bootloader

- fastboot erase system

- fastboot flash system system.img

- fastboot flash boot boot.img

- fastboot format cache

- fastboot flash cache cache.img

- Reboot and that`s it.

BTW LNX07M isn`t listed on the Google site.
[Nexus 6  General] crackers8199:
cool, thanks. but once i go to 5.1 i can't go back to 5.0, right?
[Nexus 6  General] gee2012:
You can always downgrade with a Nexus, even the bootloader can be downgraded if you want.
[Nexus 6  General] crackers8199:
awesome! thanks!
[Nexus 6  General] gee2012:
Good luck;)
[Nexus 6  General] efrant:
Just a quick BTW:

In your list of commands, the following are not needed:

fastboot erase system

fastboot flash cache cache.img

They don't hurt, but don't do anything either, assuming you perform all the other commands you mentioned.
[Nexus 6  General] :
Also, to my knowledge, downgrading the bootloader is only possible coming from the "M" preview.
[Nexus 6  General] andypa1:
Sorry chaps I feel really dim having to ask this as I see many others are in a similar position but I just don't get what I need to do.

I bought my nexus 6 in the UK, second hand and it is rooted. I've now had enough of the reminders to upgrade to 5.1.1!

I now want to upgrade but also want to keep root, preferably without losing any data.

Your help would be greatly appreciated!
[Nexus 6  General] :
Your best bet would be to download the factory image of your choice. Unzip and extract everything. Fastboot flash everything but userdata. You will have to flash custom recovery again and re-root but you won't lose any data.

Generally, what I'll do is flash system, boot, cache. As well as bootloader and radio if I feel the need. Then when everything is done, I'll flash custom recovery in the same session. Then boot to recovery, flash SuperSU and I'm done. The longest part is downloading the factory image. :)
[Nexus 6  General] crackers8199:
Is it still possible to downgrade to 5.0 after upgrading the bootloader to 5.1? i.e. just leave the bootloader alone but downgrade the system image?

For that matter, why can't I just flash the older boatloaders from the system images?
[Nexus 6  General] cam30era:
You can downgrade the system image, but if you downgrade the bootloader you risk bricking your device.
[Nexus 6  General] crackers8199:
That's good to know, but why is that? Am I not just flashing one image over what's already there?
[Nexus 6  General] gee2012:
You can downgrade the M Preview 71.11 bootloader to the L 71.10 bootloader, did it myself but i don`t know if thats the case for all Lollipop bootloaders.
[Nexus 6  General] cam30era:
See post #429 > http://xdaforums.com/nexus-6/help/noob-friendly-qa-help-thread-t3068327/post60557520#post60557520
[Nexus 6  General] crackers8199:
Thanks again. Can I still run older versions of Android then on the upgraded bootloader? Or am I stuck once I go to 5.1?
[Nexus 6  General] :
Yes, you can, but why? ??? ;)
[Nexus 6  General] gee2012:
You can safely downgrade firmwares.

---------- Post added at 03:46 PM ---------- Previous post was at 03:10 PM ----------

I just nominated [MENTION=3209971]cam30era[/MENTION] for RC for his helpfull posts here to aid and assist other users, i`am obligated to post this nomination and lets hope he turns green soon :)

Greets gee2012
[Nexus 6  General] daddioj:
why are these builds so scattered. what is google doing . i dont like it :(
[Nexus 6  General] touche112:
Google has this listed: "5.1.1 (For Sprint, USC ONLY) (LMY47Z)"

That one ok? They don't have an international one listed.
[Nexus 6  General] hackdrag0n:
Thanks for this, couldn't find the z update on Google's page.
[Nexus 6  General] bkircher:
Has anyone had any issues with flashing the stock factory image of build Z? Seems like whenever I try and flash a new build, I always get an error saying missing system image and end up having to do a dirty flash...
[Nexus 6  General] :
Are you using the flash-all script? If so, don't. Flash the images individually.
[Nexus 6  General] xdatastic:
Get latest version of fastboot. Latest sdk tools is 24.3.3, an earlier version had a bug with the way it breaks down the system image to send it to the device.
[Nexus 6  General] bkircher:
Sorry for the Noob question, I can get that from the Android development site?
[Nexus 6  General] gee2012:
flash-all is still broken in 24.3.3 (missing system.img) ;)
[Nexus 6  General] xdatastic:
Bottom of this page:

https://developer.android.com/sdk/index.html#Other

---------- Post added at 06:42 AM ---------- Previous post was at 06:39 AM ----------

Odd, works OK for me since updating. I'm using a Linux box tho.

Just realised this is the wrong thread for this discussion anyway. Best done over at one of the help threads.
[Nexus 6  General] gee2012:
Windows 8.1/ 10 Insider Preview atm, not working and stops after flashing the BL and radio.
[Nexus 6  General] 4L3xN3t:
Hi all,

in the next days I should see the N6 coming home...I'm collecting tools and stuff, you know, just in case...

I was trying to understand what's the last android release for the international N6 and there's something that can't understand...

in this thread I can find LMY47Z, but from here https://developers.google.com/android/nexus/images it seems that the last available build is LMY47I...who's wrong? is it google that released an OTA without providing a factory image link or there's something wrong in this thread?

maybe I'll just update stock phone with ota befor unlocking/rooting, but my idea is even to keep a good zip on the NAS...

thank you so much! ;)
[Nexus 6  General] Tang034:
LMY47Z factory image is the latest international version. Google just doesn't label the factory images in the same way. See this very first post in this thread.

International - 5.1.1 / LMY47Z
[Nexus 6  General] 4L3xN3t:
yeha, I read it, but also read this "5.1.1 (For Sprint, USC ONLY) (LMY47Z) " on google web site, anyway, I'm pretty sure tomorrow the OTAs I'll receive will make things clear;)
[Nexus 6  General] :
It is already clear. Ignore what Google has titled the build. LMY47Z is for international as well as AT&T and VZW.
[Nexus 6  General] gee2012:
Just flash the Verizon LMY47Z Image in fastboot from here http://www.randomphantasmagoria.com/firmware/nexus-6/shamu/vzw/.
[Nexus 6  General] ac29593:
The flash fails for me using twrp.

Do we need to use Odin for this?

I am on Att.

Thanks.
[Nexus 6  General] adildroid29:
Using Toolkit Nexus... Nicee
[Nexus 6  General] david279:
Good old fastboot
[Nexus 6  General] :
If you are trying to flash an official ota with TWRP installed, it will fail every time. No, no Odin ever. There's another thread in development section with TWRP flashable files.
[Nexus 6  General] cam30era:
[MENTION=711602]wrecklesswun[/MENTION]

"Z has been out for some time, what improvements do this brring?"

For me, 47Z is indistinguishable from 47D.
[Nexus 6  General] wrecklesswun:
i flashed the Z image and no real change. Which has the call manager feature like the droid turbo?

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

flash fails stating it is looking for version 5.02, not 5.1...
[Nexus 6  General] CyanROMz:
Please forgive me if overlooked this as I read through this thread and thw stickies. When sideloading the OTA for VZW, I get the Status 7 error, system partition has unexpected contents. I am under the assumption that sideloading the OTA will allow me to upgrade from 5.1 to 5.1.1. while still root with an unlocked BL (stock ROM) ?
[Nexus 6  General] CyanROMz:
Has anyone successfully updated from VZW 5.1 to 5.1.1 via the following method?

extract the stock 5.1.1 image, and perform ADB Fastboot commands:

fastboot flash boot boot.img

fastboot flash system system.img

fastboot flash recovery recovery.img

fastboot flash cache cache.img
[Nexus 6  General] EAK128:
No you still need to unroot and flash stock recovery.
[Nexus 6  General] CyanROMz:
Can I instead extract the new 5.1.1 stock image and selectively fastboot flash the img files:

fastboot flash boot boot.img

fastboot flash system system.img

fastboot flash recovery recovery.img

fastboot flash cache cache.img

? Or is unroot still required? (I am on stock bootloader).
[Nexus 6  General] landstander:
That definitely works, assuming the bootloader is unlocked... I've done it several times. Might want to consider flashing the bootloader and radio as well, if they've been updated from the version you currently have installed.
[Nexus 6  General] cam30era:
The VZW N6 isn't unique. All N6's are the same, and utilize the same commands. In addition to the above commands you would want to fastboot flash the radio.img and bootloader.img.
[Nexus 6  General] CyanROMz:
Will I loose data or root via this method?
[Nexus 6  General] :
As long as you DON'T flash userdata, you won't lose data. :)
[Nexus 6  General] CyanROMz:
Awesome, so root will remain (sorry for being so thorough) ?
[Nexus 6  General] stevexyz0:
No you will have to re-root. Rooting is a modification to the system partition, so reflashing system.img undoes it. You can easily re-root with chainfire since your bootloader is unlocked.
[Nexus 6  General] :
No, you will have to re-root. Just flash TWRP again and then flash SuperSU in TWRP.
[Nexus 6  General] CyanROMz:
Thanks for the response. I take it the app settings will remain as well?
[Nexus 6  General] :
Yes, if I remember correctly. Lol, it's been so long since I've done it. I know all my apps and data remained so naturally, settings remained as well. :)
[Nexus 6  General] CyanROMz:
Going to try this tonight, hopefully, all goes well. Thanks again :D
[Nexus 6  General] phoenixus:
Do you have to sideload the OTA via ADB? I can't download it to the phone and just flash it via stock recovery?
[Nexus 6  General] cam30era:
You have to download it to your PC and sideload it via ADB. And you need to be 100% stock. No root. Stock encrypted kernel.
[Nexus 6  General] phoenixus:
Yeah i'm 100% stock. I thought since I would you could just use the apply update in stock recovery. What makes that not work?
[Nexus 6  General] housry23:
Stock Android recovery doesn't do flashable zips. It will only flash zips through adb sideloading.
[Nexus 6  General] optoisolator:
I am on Verizon 5.1. I've rooted, and have installed the latest TWRP. I am otherwise stock. What do I need to do to upgrade to 5.1.1? The OTA is out of the question, obviously. Is there any way to flash the system files only from 5.1.1 without wiping all of my data??
[Nexus 6  General] cam30era:
Fastboot flash:

Bootloader.img

Radio.img

System.img

Boot.img
[Nexus 6  General] :
+1 and then just flash TWRP again and superSU from TWRP. :)
[Nexus 6  General] cam30era:
If you just select "Recovery" on your phone while in bootloader, you don't even have to flash TWRP again.
[Nexus 6  General] david279:
Have to flash stock system image. It's not accepting the ota because the current system is rooted.
[Nexus 6  General] the3dolla:
Thanks david279. I was wondering about root, thought that I would just lose it. Just flashed system from the 5.0.1 factory image and got it to apply. At 5.1 now. I'm not too into Android... customizing.. I'll wait for the Nexus Root Toolkit to update so I can re-root. Er, maybe I don't really need to wait?
[Nexus 6  General] biggiestuff:
I flashed system.IMG, boot.IMG from 5.01 and then adb side loaded the OTA successfully.

I was stock rooted with Franco. any idea when we'll get root back?
[Nexus 6  General] david279:
You can reroot now, no reason to wait.
[Nexus 6  General] mr pnut:
I'm up and running on Tmobile nexus 6.....But of course I side loaded the ota.
[Nexus 6  General] the3dolla:
Had to redo the net.provisioning, but hotspot is working after 5.1. Now on to .. Advanced Calling... so far I don't see it in the menus. Eh, it's already added to my line on Verizon, but it won't let me remove it to re-add it. I think I turned it on when I first got my N6, then again, maybe it was already on from my Droid Maxx. I'm guessing it won't work until Verizon releases their N6?
[Nexus 6  General] david279:
update adb by updating android sdk. A updated adb will be in the updated sdk. check adb version by running "adb version".
[Nexus 6  General] SilkyJohnson:
Same thing is happening here. Trying different drivers now.
[Nexus 6  General] Travelawyer:
I have updated to 5.1 via ABD sideload. Needless to say my N6 has lost root for now.

Any idea how to get root again already, or do we have to wait a couple of days for chainfire to update his files?
[Nexus 6  General] :
Unlock bootloader, fastboot flash twrp recovery, flash SuperSU zip in recovery.
[Nexus 6  General] SmallPsych:
Can you give a link to the toolkit? Have you tried this fix? My problem is also that once in recovery where I'm supposed to send the OTA via ADB, my computer doesn't see my device AT ALL. I can't find it in device manager or anything.
[Nexus 6  General] ixa20:
I had this problem, I had to go into the adb sideload screen and when waiting for a connection I unplugged the usb cable and plugged it back in.. it then recognized it.

Of course then I had the problem of it not accepting the google usb drivers. Solved that using the instructions here:

blog.dantup [dotcom]/2012/10/fixing-adb-device-not-found-with-nexus-7-in-recovery-mode/

Basically my Nexus 6's hardware ID wasn't in the usb driver inf file, so I added it. Easy enough, now i'm up and running on Android 5.1.

Think editing that file breaks the driver's signature, on Windows 8.1 this complicates it a bit but there's instructions for that in the comments on that site I linked to. Forunately I used Windows 7.

Edit: Also for those who don't want to wait for factory image and have modified the system, just flash the system.img from the 5.0.1 factory image.. then sideload the update & re-root etc if you want to.
[Nexus 6  General] edved:
I'm using wugfresh and mine stalls at the same place.

What a drag! I've been trying to do this for several hours. The gf is hating me!

G
[Nexus 6  General] efrant:
Open up the file (which is located in /META-INF/com/google/android/) and delete the line.
[Nexus 6  General] YankInDaSouth:
I get the update to sideload via adb, but it gets stuck at the Google boot screen :(

verified the sha and everything ... no idea why it won't boot
[Nexus 6  General] efrant:
Give it 10-15 mins to boot.
[Nexus 6  General] YankInDaSouth:
it keeps looping though .... the Google splash screen comes on, then flickers off for a second and comes right back on. I took this as bootloop ... is this normal behavior?
[Nexus 6  General] efrant:
No, that's not normal. You'll probably have to flash the 5.0.1 stock boot and system images and try again.
[Nexus 6  General] YankInDaSouth:
thanks for the replies .... that's what I figured too. In the process of doing that now. Thanks again!
[Nexus 6  General] edved:
Sorry, but what is the solution? I'm using wugfresh and experiencing the adb device not found dilemma.

I'm now here "footer is wrong" and "signature verification failed".

Thanks,
[Nexus 6  General] ninjaijr:
hey all. i am a little stuck on this and hope to get some assistance

my stats.....

-Win 8.1

-using a 64gb n6 from Motorola (full stock, no root, still encrypted, stock recovery)

-on vzn

-using 47D build (5.1)

have adb and fastboot installed and working

i know Verizon moved to the Z build and i went ahead and downloaded the international version as i did not find a D -> Z OTA specific for verizon. i know it never will release as big red never had D build. I am assuming the international Z build is the same as everywhere i have seen it the same build number as big reds z build number.

where i am currently at......

i can run adb and fastboot

i verify adb works as i can verify and get my n6 to show up as a device

i can fastboot as well

where i get stuck at.........

so after verifying i can see the device (my n6). i follow the process to go to bootloader (i can still see it in ADB) then i get to recovery to sideload the OTA BUT thats where i get stuck.

i get past the red android icon and can get my n6 into recovery to be ready to sideload but when recovery comes up the connection drops and adb no longer sees my n6. i can hear my PC disconnect after i hit the button combo get get into recovery.

What i have tried.......

swapping usb cables

swapping usb ports

downloading the drivers so i can try to get it recognized again through device manager when in recovery screens (remember it worked fine while its booted up or when in boot loader mode)

uninstalling the driver, plugging it back in to re-recognizing it (which it does when its fully booted)

i have sideloaded before on this computer but that was before before my latest reinstall of 8.1 so I'm familiar with the process (im not a complete noob ... lol)

im thinking it something with my PC but im unsure. thoughts on how to get my PC to maintain the connection while going from bootloader to recovery so i can sideload the OTA?

thanks in advance :)
[Nexus 6  General] :
With Windows 8.1, you have to disable driver signature verification. Just Google "how to disable driver signature verification on Windows 8.1". I had the exact same issue on my PC at work. Also, consider using this tool:

http://xdaforums.com/showthread.php?t=2588979

That is what I use on both Windows 7 and 8.1.

:)
[Nexus 6  General] FoneWatcher:
How to prevent OTA?

I aplogoize if this is covered, but couldn't find one with my search terms.

I'm om 5.1.1, rooted stock, TWRP. I want to prevent OTA being automatically queried and/or prompted to install. What (if possible) do I disable/block to do so? I want to stay right where I am.

TIA
[Nexus 6  General] :
When the prompt for an OTA should appear, long press on the notification, select app info, then untick the box for "show notifications".
[Nexus 6  General] MisterChuffy:
Hey guys I have a question I have that one bug since I got my nexus 6 at the beginning of January. It started that I got my phone. Stock. I charged it until 100% and then at 12% it died all the time. Then the value got higher. 15%.20%. Now I reached 30%. I have 70% to use maximum. I didn't found much online. It's always the same. I charge and it dies at 30-32%. Then I try to restart and the icon for battery is empty appears. Sometimes when I wait long enough I can restart it and use it until the bug appears again. It was gone sometimes. But in the last weeks it got intense. Does anyone else have a problem like this?

Ps: I used a lot of roms and kernels now always the same. Also new radios stock radios and m radios. No difference
[Nexus 6  General] :
Sadly, this is a somewhat common issue for Nexus 6. If you search the Nexus 6 Q and A forum, you'll see what I mean.

http://xdaforums.com/nexus-6/help

The only real solution, is to RMA unfortunately. This is a sign of a defective battery. Sometimes, if you boot into bootloader, select bootloader logs, and reboot, it will temporarily fix the issue. It will, most likely return however.
[Nexus 6  General] MisterChuffy:
Thanks even when I hoped to find a solution without sending it back. But well then I will have send it back.
[Nexus 6  General] kpjimmy:
Can anyone verify if the tmo file works? I think it's me. I am getting the Status 7 errors when trying to sideload the sucker lol. I have downloaded the file multiple times (LYZ28J from LYZ28E) and I am on adb 1.0.32 IIRC. Any ideas?
[Nexus 6  General] oldblue910:
Are you 100% stock and unrooted? If your system partition has so much as one byte modified, the OTA will fail.