yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Droid_Nut:
Back up your apps and data with Titanium backup.

I might hold off on N http://forums.androidcentral.com/nexus-6p/715378-how-nougat-so-far.html#post5358378
[Nexus 6P General] mobileman88:
I have the same problem too. Most files created by TWRP cannot be copied out. Keeps giving me access or permission errors. Even using "adb pull" fails. It should have something to do with SELinux. But when I turned off SElinux in Magisk Manager, it still gives "unspecified error" when trying to copy it using Windows explorer.

---------- Post added at 06:50 PM ---------- Previous post was at 06:50 PM ----------

Using "adb pull" you mean?
[Nexus 6P General] Einwod:
Simply drag and drop the file out when connected to your computer. No need for adb commands
[Nexus 6P General] mobileman88:
Thanks. Dragging it out in TWRP works but not when booted to system. Noticed that lots of files are owned by uid and gid "root" . What gives?
[Nexus 6P General] mimmo13:
Does the point 14(upgrade to Nougat) leave internal Storage Intact???

Inviato dal mio Nexus 6P utilizzando Tapatalk
[Nexus 6P General] Heisenberg:
Yes it does.
[Nexus 6P General] mimmo13:
Thanks. But in your opinion, can I leave all my data or is better to erase all my internal Storage?

Inviato dal mio Nexus 6P utilizzando Tapatalk
[Nexus 6P General] Heisenberg:
You don't need to wipe your internal storage.
[Nexus 6P General] kyzn:
I remained encrypted and was able to update to N and keep TWRP. Rooted using TWRP too. Fully stock made me cringe so I flashed the debloated ROM.
[Nexus 6P General] 89titanium:
Yo Heisenberg,

In Section 14 regarding returning to stock, you say "Download MTC20F factory images." Personally, I kept my phone on 6.0.0 and in my settings it says my build is MDB08L. Should I obey your guide and get the MTC20F images or do I need the MDB08L images?

Thanks.
[Nexus 6P General] Heisenberg:
Theoretically you should be able to sideload the OTA zip over any build as long as you're stock.
[Nexus 6P General] 89titanium:
Thanks, but I wanted to make sure that I can just slap the stock MTC20F build on top of my current rooted MDB08L build. That's no problem?
[Nexus 6P General] Heisenberg:
That's no problem. If you're rooted you'll need to wipe data though.
[Nexus 6P General] llmnm:
Upgrade to Nougat with TWRP recovery

Thanks again for all the guidance on this forum. So helpful!

In the new guide section 14, it says that you need to wipe data if you have any modifications. I don't think that applies to me, but want to make sure. I have an unlocked bootloader and TWRP recovery. I have not rooted or flashed any ROM. If I update to MTC20F and flash the stock recovery, then I should be good to go without having to wipe any data as described in 14 part A, correct?

And once I do upgrade to Nougat and flash TWRP again, I will still be able to access all my backups bc they are in the internal storage which is preserved in the update, correct?

Appreciate the help!
[Nexus 6P General] Heisenberg:
Correct on all questions.
[Nexus 6P General] mohdfahad47:
Hey, how are you. I'm having some issues, I was rooted on cm 13 (MTC20F) and decided to go stock to (MTC20F)following your guide. But as i flashed the bootloader, radio and vendor earlier this month to update my phone..while going to stock i skipped flashing the bootloader,radio and vendor. So this is how i flashed the images( fastboot flash boot

Fastboot erase cache

Fastboot flash cache

Fastboot flash recovery

Fastboot flash system

Fastboot format userdata

Fastboot flashing lock) and locked the bootloader soon after i rebooted i got the message ( your device is corrupt and cannot be trusted) message before the google screen. However my phone booted properly without issues. I tried to go to recovery for doing a factory data reset hoping that would solve the corrupt message and i get a no command dead android message. ( i tried many ways to get into recovery mode ( pressing the button combinations) but nothing works. I then performed a factory reset from the phone but nothing got solved..neither the corrupt message nor the recovery problem...how can i slove these problem? im kinda nervous.
[Nexus 6P General] Jammol:
So you are still getting the corrupt message? Go into bootloader mode and see what your bootloader's status is. It might say unlocked which would explain the message you're getting at boot. At boot is there an "unlock" lock under the Google boot screen?
[Nexus 6P General] mohdfahad47:
Yup im still getting the corrupt message, i checked in the bootloader menu, it says the device is locked and. And i don't get the lock/unlock icon under the google screen...
[Nexus 6P General] CyberZeus1977:
Download factory image. Unlock bootloader and launch flash-all.bat. Relock bootloader.

Nexus 6P with Chroma rocks!
[Nexus 6P General] mohdfahad47:
This will solve the issue right?:o
[Nexus 6P General] CyberZeus1977:
Sure

Nexus 6P with Chroma rocks!
[Nexus 6P General] mohdfahad47:
Thanks

---------- Post added at 06:27 PM ---------- Previous post was at 06:05 PM ----------

I have the MTC20F factory image that i flashed earlier...i can use this right?
[Nexus 6P General] CyberZeus1977:
Yes, but launch flash-all.bat

Nexus 6P with Chroma rocks!
[Nexus 6P General] mohdfahad47:
Ok...thanks
[Nexus 6P General] thanhngo:
i follow the guide to return back to stock but after i "fastboot flash boot.img...etc" my phone reboot back to the custom rom i'm running which is RR what can i do ?
[Nexus 6P General] irropik:
I have a buggy sound mod.. can't remove it after factory resetting how do i dirty flash the stock image?
[Nexus 6P General] wilflare:
I have a rooted 6P. looking at 14, may I know what's the point of this step? "Boot into TWRP recovery and enter the wipe menu, select advanced wipe, check only the data box and swipe to wipe"

I've been doing 9 for my previous updates so this step is new.
[Nexus 6P General] Heisenberg:
The point is to remove all traces of root and ensure that the update process completes without any issues.
[Nexus 6P General] Heisenberg:
Did you flash all of the images?

Section 9.
[Nexus 6P General] wilflare:
thank you!

we don't need to do that for Step 9 because we are flashing factory images and not an OTA update/full package (that requires the system to be "clean"/no modification) right?
[Nexus 6P General] Heisenberg:
That's right and that step isn't included in section 9.
[Nexus 6P General] AreOh:
I'm currently on part b of updating to Nougat and everything went smooth except after I enter the command to sideload the zip it returns with "error: no devices/emulators found". How could everything else be recognized but this last part? What should I do now? My phone is currently on the Android Recovery screen.
[Nexus 6P General] thanhngo:
I flash bootloader-angler-angler.img.. and then i reboot bootloader and then i flash radio.img so the following should be flash boot.img right ? So as soon as i flash boot.img my phone reboot back to the custom rom the i currently using.

Am i missing some steps ? Should i flash all the img before flash boot.img right ?
[Nexus 6P General] Rodeojones:
Not a noob, but admittedly I'm stuck. I've been unlocking/rooting since the OG Droid and I've never had issues.

Upgraded to the 6P today. Turned it on and immediately got the notification for the 7.0 update. Since I was stock and locked, I took it. Looks great and decided to move on to unlock/root.

Hooked up the the PC that I always do this on. Checked adb devices and fastboot devices. All good - I get a serial number. I use commands to boot into bootloader, also works. Double check fastboot devices (I'm literally following the guide in the OP even though I've done this many times - I want to make sure I don't mess up). Still good. I put in <fastboot flashing unlock> and basically get a help menu in my command window. It lists a bunch of fastboot commands and what they do.

I don't get the option to unlock my phone. I've rebooted multiple times and have tried the command about 10 times now. Every time I get the same results.

Thoughts? Suggestions?
[Nexus 6P General] Heisenberg:
So you flashed the boot.img and the phone automatically rebooted without any input from you?
[Nexus 6P General] Rodeojones:
Well, that was weird. No matter what I did, I couldn't get it to work. Tried the Wugfresh kit to unlock and it worked fine. I'm sure I was making a stupid mistake over and over.
[Nexus 6P General] thanhngo:
Yes
[Nexus 6P General] mobileman88:
Did you flash all the files?

- Radio

- Bootloader

- Recovery

- Boot

- System

- Cache

- Vendor

Also do a wipe on Data.

This should get you back to stock
[Nexus 6P General] Rodeojones:
EDIT: Solved the issue on my own.
[Nexus 6P General] thanhngo:
As soon as i get to boot.img my phone reboot
[Nexus 6P General] Giants18Won:
I've somehow got my 6P stuck in a bootloop. I was moving from a custom rom (Chroma) and started with step 14. I'm not sure what I did wrong so I went back and started with step 10 to reflash stock from scratch. However I am still stuck in a bootloop. If I do fastboot erase on system/windows/cache/recovery/boot and then flash all those items will that resolve it?

Any help or advice is much appreciated. Thanks!
[Nexus 6P General] mobileman88:
That's very strange. What recovery are you using?

On PC

- Fastboot flash bootloader bootloader.img

- fastboot reboot-bootloader

- fastboot flash boot boot.img

Did you do the 3 commands above to flash boot.img?

---------- Post added at 10:25 AM ---------- Previous post was at 10:25 AM ----------

Follow all the steps to go back to stock and you should be good to go. I used MTC20F build successfully. But all the other builds should be fine.
[Nexus 6P General] thanhngo:
yes i used those steps and i'm on lastest TWRP will try it again and report back

Edit: i got it work now, thanks you so much i dont know what went wrong but now it's working really appreciate your help and [MENTION=4153349]Heisenberg[/MENTION]
[Nexus 6P General] Giants18Won:
Thanks Mobileman. As I already replaced my twrp recovery, and while stuck in the bootloop so I cannot do the first step by factory resetting from settings. Instead can I do it from the stock recovery for a wipe data/factory reset? I've tried that and followed the remainder of the steps but when I go to do the final fastboot reboot the phone gets stuck in a loop. Should I make sure to lock the bootloader again?

Thanks!
[Nexus 6P General] mobileman88:
Glad it works out for you. Most thanks to [MENTION=4153349]Heisenberg[/MENTION] for his fantastic guide
[Nexus 6P General] thanhngo:
after flashed everything i reboot via the command "fastboot reboot" and then after the phone boot up the "Unfortunately, System UI has stopped" constantly appear on a black screen ???
[Nexus 6P General] mobileman88:
Do boot into TWRP and wipe data/cache/dalvik then reboot to system again. See if you still have this issue as there could be leftover data from previously. My upgrade went very smoothly.

---------- Post added at 11:08 AM ---------- Previous post was at 11:07 AM ----------

Do try to reboot into TWRP and wipe cache/dalvik/data and then reboot again to system if it goes away. App optimization went surprisingly fast on N compared to M

---------- Post added at 11:09 AM ---------- Previous post was at 11:08 AM ----------

Boot into bootloader then go into TWRP again and do a data/cache/dalvik wipe before rebooting.

Please try not to lock your bootloader in this state. You might end up with a brick.
[Nexus 6P General] Giants18Won:
Since I already flashed the stock recovery should I reflash twrp?
[Nexus 6P General] mobileman88:
Yes, you will need to do that if you want to flash SU and other flashable zips as those cannot be flashed in stock recovery. Just go into bootloader and reflash TWRP after you have booted N fully at least once.
[Nexus 6P General] thanhngo:
recovery mode show a red triangle and everytime i reboot it need the password to boot up the phone

Edit: some how i lost twrp so flash it back in twrp and i was able to wipe data/cache/dalvik, one more question though, if i want to receive OTA update from google but i'm still on twrp recovery do i have to adb it back to stock recovery ?
[Nexus 6P General] mohdfahad47:
Like i mentioned earlier about the ( your device is corrupt ) message that im getting, i was going to go full stock. But i didn't wipe the data partition from twrp before flashing the stock images, and also i didn't flash the bootloader, radio and vendor images because i already flashed them at the beginning of the month for update purposes, is this the reason why im getting the corrupt message? Ill be reflashing the images using the flash-all.bat later today(after unlocking the bootloader), hope it solves the issue....please tell me if im correct or if any other method is required.. Thanks.
[Nexus 6P General] Giants18Won:
So after I flash to go to stock - MTC20F - when I do a flashboot reboot it gets stuck in a bootloop. Should this be corrected first or should I adb sideload the N OTA before trying to boot the phone up? I'm not sure how to resolve this first bootloop. I've followed the steps outlined in section 10 several times now to no avail. I even tried flashing the previous version of stock - MTC19X.
[Nexus 6P General] shortbus1234:
Download Mode: DISABLED

Trying to flash this rom and noted the above in the Bootloader screen. "Download Mode: DISABLED"

I was wondering if anyone knows how to fix.

Also error message at the bottom "Connect USB Data Cable"

When the phone is booted it will see my phone under Adb Devices but not in fastboot devices. I am not sure what to do.

Biggest issue is that ODIN does not assign a COM port. :(

TWRP is working just fine and device is rooted.

Here are the entire bootloader status

Console: NULL

Batter OK

Device is UNLOCKED

Qfuse Status: ENABLED

Off-mode-charge: ENABLED

Download Mode: DISABLED

Any help is appreciated.
[Nexus 6P General] mobileman88:
You will need stock recovery to automatically receive and flash ota
[Nexus 6P General] shortbus1234:
Answered my own question. Followed the following link - https://developer.android.com/studio/run/win-usb.html#top Reboot into fastboot and goto Device Manager. Follow instructions to update fastboot device as in Device manager it was showing up at Yellow ! with triangle in it.

To install the Android USB driver on Windows Vista for the first time:

Connect your Android-powered device to your computer's USB port. Windows will detect the device and launch the Found New Hardware wizard.

Select Locate and install driver software.

Select Don't search online.

Select I don't have the disk. Show me other options.

Select Browse my computer for driver software.

Click Browse and locate the USB driver folder. (The Google USB Driver is located in <sdk>\extras\google\usb_driver\.) As long as you specified the exact location of the installation package, you may leave Include subfolders checked or unchecked—it doesn't matter.

Click Next. Vista may prompt you to confirm the privilege elevation required for driver installation. Confirm it.

When Vista asks if you'd like to install the Google ADB Interface device, click Install to install the driver.

Or, to upgrade an existing Android USB driver on Windows Vista with the new driver:

Connect your Android-powered device to your computer's USB port.

Right-click on Computer from your desktop or Windows Explorer, and select Manage.

Select Device Manager in the left pane.

Locate and expand ADB Interface in the right pane.

Right-click on Android Composite ADB Interface, and select Update Driver Software.

When Vista starts updating the driver, a prompt will ask how you want to search for the driver software. Select Browse my computer for driver software.

Click Browse and locate the USB driver folder. (The Google USB Driver is located in <sdk>\extras\google\usb_driver\.) As long as you specified the exact location of the installation package, you may leave Include subfolders checked or unchecked—it doesn't matter.

Click Next. Vista might prompt you to confirm the privilege elevation required for driver installation. Confirm it.

When Vista asks if you'd like to install the Google ADB Interface device, click Install to upgrade the driver.

Hope this helps someone else.
[Nexus 6P General] slzihc:
Some questions

Firstly, a huge thanks to Heisenberg for a great guide.

I completed each section from 1-7 with the exception of section 3. I have a few questions regarding a couple of sections in the guide.

Section 4 - I made an Nandroid backup. Although I was already running an earlier version of CM13, is this section only relevant if I was running a stock version of Marshmallow or is it still relevant with a custom ROM installed?

I'm wanting to free up space on my phone. In regards to the Nandroid backup and EFS backup, do I have to keep them on my phone or can I transfer them over to my PC? Also, I'm assuming that vendor.img and CM ROM were only necessary to have on my phone to install CM13 and can now be deleted.
[Nexus 6P General] Heisenberg:
A nandroid is handy to have in case something doesn't flash right our something goes a little wrong, it's there as a backup. You can really choose whatever ROM you name the backup of.

I'd definitely keep the EFS backup on your phone, it's tiny in size so shouldn't matter. You can choose to remove the nandroid but Murphy's Laws suggests that the moment you do that something will go wrong, you'll need it, and for some reason or another you won't be able to transfer it back to the phone. That probably won't happen and if you really get in a jam you can flash the factory images with fastboot anyway.

Once flashed you can remove the files that you flashed from the phone if you want to. Probably handy to keep the vendor though because if you choose to flash something else you'll need to flash it again. Of course you could just transfer it back.
[Nexus 6P General] Giants18Won:
Coming from a custom ROM, I followed steps outline in section 14 but I ended up with a bootloop. Now I've been using the steps in section 10 to flash the factory images and return to stock. However I am still stuck in a bootloop. Any suggestions? I tried with the most recent factory images of MTC20F.

I also went back to make sure my ADB and Fastboot was up to date as well the usb driver.

Any ideas or suggestions?
[Nexus 6P General] polarbbr:
Did you fastboot format userdata?
[Nexus 6P General] Giants18Won:
Yes I did fastboot format userdata prior to fastboot reboot....
[Nexus 6P General] Einwod:
Use the factory images and double click the flash.all file. Simple. Can't go wrong.
[Nexus 6P General] mohdfahad47:
Hey there, thanks for helping, I tried flashing stock by launching the flash-all.bat script. It flashed bootloader and the the fastboot.exe used to crash. I tried several times but it was the same, then i flashed all the images manually (locked the bootloader) and I got rid of the corrupt message.now Im rocking 7.0.
[Nexus 6P General] CyberZeus1977:
Glad you sorted it out!

Nexus 6P with Chroma rocks!
[Nexus 6P General] mohdfahad47:
Btw, are you rooted on 7.0? And if I want to flash twrp, do I have to flash the modified boot image before flashing twrp?
[Nexus 6P General] ElGuedez:
Hey guys,

Coming from a custom ROM so I did all the steps mentioned on the point 14 on this tutorial.

The problem is that when I'm "installing" the nougat OTA in the command prompt the message I get is "error: no devices/emulators found"

Can someone help me?

Thanks
[Nexus 6P General] CyberZeus1977:
No I'm on a custom ROM named Chroma and my waiting the dev to port it to Nougat.

With the last TWRP you don't need custom boot image.

Nexus 6P with Chroma rocks!
[Nexus 6P General] Einwod:
No modified boot image necessary. Just make sure you have the very latest TWRP to avoid being stuck. Then flash supersu 2.76 and you'll be good to go.
[Nexus 6P General] mohdfahad47:
Oh, you're still on marshmallow, best of luck going to nougat. The update is really good. And thanks..
[Nexus 6P General] CyberZeus1977:
Yes but the dev is working hard to make Chroma Nougat

You're welcome!

Nexus 6P with Chroma rocks!
[Nexus 6P General] Giants18Won:
I've tried doing the flash-all file as well...still no luck. Assuming I'm doing this right, I move all of those files into the same folder as fastboot/adb before clicking flash-all otherwise I get an error and it aborts. Also, there are several lines that the archive does not contain the boot.sig, recovery.sig, system.sig and vendor.sig files it doesn't find anything before it moves on. Is that an issue? Does this mean there could be some hardware failure or my phone is bricked? I envisioned a bricked phone as something that wouldn't even turn on...

Any other suggestions? Any help is much appreciated.
[Nexus 6P General] CyberZeus1977:
I believe you extracted also the files contained in the zip, right? You don't have to. Extract only the tar file, so you have bootloader, radio, vendor, zip file and flash-all scripts. Then run flash-all.bat

Nexus 6P with Chroma rocks!
[Nexus 6P General] hexinn:
deleted
[Nexus 6P General] mohdfahad47:
Yea, i know. I really liked chroma, i used it for months.
[Nexus 6P General] Giants18Won:
Yeah that's what I did. I didn't extract the extra zip file. The .bat file continues to flash all the other files and reboots without any errors. However once it reboots, I get stuck in the infinite boot cycle. I'll let it cycle about 5x before turning it off.

I appreciate your help so far!
[Nexus 6P General] ultyrunner:
A bit of a variation question here, but I figured you'd know. I used the linked OTA and your guide, went back to stock, wiped and installed it no problem. I also flashed the modified boot.img at the time, TWRP and rooted it. Again, all went fine. After flashing ElementalX, I haven't been too happy with the battery on N and was thinking of going back to stock kernel. Since I'm currently on N, would I be able to flash the modified boot.img again via TWRP (or ADB?), no wipe, leave everything else and be back on stock kernel, while keeping root and the few mods I've done? It sounds too simple to work but seems to make sense. Please let me know your thoughts.
[Nexus 6P General] Heisenberg:
Yeah you should be able to just flash the boot.img without worrying about anything else.
[Nexus 6P General] CyberZeus1977:
It is strange, factory image replaces everything.

While in bootloader mode, before running flash-all.bat, run fastboot format userdata

Nexus 6P with Chroma rocks!
[Nexus 6P General] ultyrunner:
Thanks. Think I'll make a nandroid to be safe but going to give it a go.
[Nexus 6P General] Giants18Won:
I just tried this and I'm still experiencing the bootloop. I'm not sure what else to do. I've tried different factory images for the 6P. I've gone through the individual steps outlined in Heisenbergs guide as well as trying the flash-all.bat approach.

If I have a recovery file stored on my PC, can I flash TWRP to my phone while it is in this state? And then attempt to restore a previous complete backup (all items checked) from a few weeks ago?

Thanks guys. I appreciate your help so far. I'm just glad I kept my old N6 to fall back on temporarily...
[Nexus 6P General] CyberZeus1977:
Yes to all questions

Nexus 6P with Chroma rocks!
[Nexus 6P General] mobileman88:
For N, it seems that erasing Cache/Dalvik Cache does not make any difference from recovery. It boots right back to the phone without the optimizing nonsense. Would this cause problems when we have errors somewhere in the cache, we will no longer be able to wipe and reset it? Sorry if this has been discussed before as I don't see it anywhere in the OP from [MENTION=4153349]Heisenberg[/MENTION]

---------- Post added at 07:03 PM ---------- Previous post was at 07:03 PM ----------

For N, it seems that erasing Cache/Dalvik Cache does not make any difference from recovery. It boots right back to the phone without the optimizing nonsense. Would this cause problems when we have errors somewhere in the cache, we will no longer be able to wipe and reset it? Sorry if this has been discussed before as I don't see it anywhere in the OP from [MENTION=4153349]Heisenberg[/MENTION]