yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Badger50:
If you fastboot it back to stock running the flash-all.bat script, then yes, it will wipe everything on your phone. There is a way to do it manually that will not wipe your internal storage, which is covered in the OP guide. If you do the same with TWRP, it will wipe out your rom and system data, but will not wipe your internal storage unless you tick that item in the menu.
[Nexus 6P General] teohguangli:
What about the Mods and Kernels? Will they be wiped and reverted back to stock too?
[Nexus 6P General] Badger50:
Any files you have on your internal storage will get wiped if you choose to do so. Which is why you should back everything up on your PC before you start flashing, or modifying anything on your phone.
[Nexus 6P General] teohguangli:
I meant what about the Mods and Kernels that I have flashed beforehand. Are they reverted back to stock too?
[Nexus 6P General] Badger50:
Yes.
[Nexus 6P General] Cesk87:
Hi everyone!

I've got a question..i've just updated from android 7.1.2 to android 8.0.0 using the section 9 of the guide..but my nexus 6p still give me the notification of the android 8 OTA update...how can it be possibile?
[Nexus 6P General] Badger50:
Were you on the beta program? If so, then un enroll from it. You should be able to disable the the notification by long pressing it, and then turning it off.
[Nexus 6P General] Cesk87:
Nope..no beta program for me...i've try also to download it just to see if the phone after that recognize that android 8 is already installed into the phone..but nothing changed..so ok,i'll try to turn off the notification as you suggest..thanks!:)
[Nexus 6P General] Badger50:
Maybe also try turning off "automatic updates" in the developer options section.
[Nexus 6P General] edwindroid:
[Problem Solved]

I have issued "adb devices" and "fastboot devices" commands in my adb. My phone successfully return the device serial number.

Then, I followed the step of sideloading full ota. When i issue the "adb sideload fullota.zip" command, my adb said that error device '(null)' not found. I think my computer can't recognize my 6p in recovery mode:(

Edit: I google the solution for it. After select the “Apply Update from ADB” option from within Recovery Mode, unplug the USB cable and then plug it back into the device. Then my computer recognize my 6p.
[Nexus 6P General] zer0se7en:
Weird thing is after flashing the latest factory image for the Nexus 6p (.017) the phone again gave an OTA notification of another 8.0.0 update. I had no choice but to download and install it just to get rid of the notification. Good thing it installed properly. Now the last 3 digit number is .019.
[Nexus 6P General] Cesk87:
mine did the same thing..so i decided to not flash the ota, 'cause mine nexus is rooted and with the bootloader unlocked,and i don't want to mess things up..:D
[Nexus 6P General] mobileman88:
With your bootloader unlocked it's very easy to recover from factory images so you're quite safe.
[Nexus 6P General] Giozer:
I have a rooted Nexus 6P with TWRP and AuperSU 2.82. Can I update my Nexus from Nougat to Oreo using the section 9 of the guide of Heisenberg without problem? Any suggestion?

Thanks.
[Nexus 6P General] beartek:
I use skipsoft kit and it works great!
[Nexus 6P General] saishiva:
Thanks Heisenberg for the instructions to root and unroot. I followed the instructions in this thread to root my phone for the first time (which was Nexus 6P). I had battery and performance issues lately, and I contacted google. They are sending me Pixel XL as replacement and asked me to factory reset my nexus 6P and send them back.

I am currently on DU 11.7 and rooted with SuperSU. I have couple questions before I start the process (as this would be my first time unrooting/locking the bootloader, want to confirm if I am doing it right :) )

As I want to wipe my personal data as well, following section 10. How to flash the factory images (And return to stock) should be enough or is their anything else I have to do along with it?

As I am on DU 11.7 which is based on 7.1.2 (august security patch), while following the steps to download factory images, I see Android 8 latest images. Can I just download Android 8 factory image and follow the steps or should I download and flash 7.1.2 (august security patch version)?

Do I need to unroot my phone before I start section 10?

Please Suggest. Thanks in advance
[Nexus 6P General] saishiva:
Deleted
[Nexus 6P General] mbutandola:
I think this is why we keep having those notifications. The version number on the developer site is different from the ota update.

Edit : downloaded the ota and flashed it with flashfire. The app kept my root and recovery. The process was quick and now the version is indeed .019.

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] mbutandola:
You got a pixel xl to replace your nexus? You're a lucky man.

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] saishiva:
Yes man :). So to unroot and lock the bootloader, I should just follow section 10?
[Nexus 6P General] rrohanjs:
when i press right click and shift on my windows 10 pc i don't get the option of OPEN COMMAND WINDOW HERE, instead i get an option OPEN POWERSHELL WINDOW HERE.

I know i can open command window from start but how do i get to my specific folder and also what is this powershell option i'm getting instead﻿
[Nexus 6P General] W@r10ck:
You can use powershell
[Nexus 6P General] rrohanjs:
in the folder called image-angler-opr6.170623.017 i have only boot recovery system and vendor, i can't see userdata.img, i know cache.img is not there from 7.1.2 onwards but what about userdata.img
[Nexus 6P General] mbutandola:
Don't know what section 10 says but when I had to return my nexus 6P I just flashed the latest stock firmware, which unroots the phone, then locked the bootloader.

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] SlimSnoopOS:
Cache and userdata aren't included in factory images anymore.
[Nexus 6P General] dratsablive:
Same procedure I use on my laptop with Fedora Linux.
[Nexus 6P General] dligon:
So this only works on the 6p not the Iphone 6s I am so confused with all these 6's coming out.:confused:

:p
[Nexus 6P General] gamzekal:
My new Nexus 6p is coming next month.Can wait:D
[Nexus 6P General] Rakeesh_j:
Can you just root without installing a custom recovery? I'd like to be able to accept regular OTA updates without having to mess with it (other than rerooting,) and don't have any particular need for the recovery as I like stock Nexus images just fine.
[Nexus 6P General] DespairFactor:
You just boot the recovery instead of flashing. Also, I bricked mine already;) does anyone have the stock images yet?
[Nexus 6P General] Badger50:
Nice!! :)
[Nexus 6P General] Rakeesh_j:
I thought there was an adb command to flash the supersu zip without going into recovery? Or at least, I thought I did that on my old Galaxy Nexus years back.
[Nexus 6P General] Joshmccullough:
FWIW, here's a quick link to a Lifehacker article on how to get ADB and Fastboot up and running on Windows/OS X/Linux without having to download and setup the entire Android SDK. I've found it very helpful and a heck of a lot quicker than the SDK route:

http://lifehacker.com/the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378

Can't vouch for if these steps work on the latest Windows/OS X builds, but works perfectly for my Linux Mint 17.2 KDE laptop and it also worked just fine on my old Kubuntu 15.04 laptop.
[Nexus 6P General] mrRobinson:
yea as despairfactor said you can just boot twrp recovery to flash supersu. 'fastboot boot twrp.img'.

if you prefer to use it and you see news of an ota coming out just fastboot flash stockrecovery.img and run the OTA. then flash back to twrp.

the beauty of the nexus phones....
[Nexus 6P General] joedeveloper:
Unlesss.. Marshmallow changes it.
[Nexus 6P General] tf2manu994:
I was mistaken, its the 5x that doesnt have a to c
[Nexus 6P General] Odinforce:
Or maybe he had access to a testing sample, like me for instance.
[Nexus 6P General] anthonyvardiz:
What?
[Nexus 6P General] wethead4:
Will there be away to get android pay working on a rooted 6p? all i want is the ability to tether on verizon unlimited plan
[Nexus 6P General] Heisenberg:
http://xdaforums.com/showpost.php?p=63058830&postcount=27
[Nexus 6P General] scallawag:
I have a couple questions.

When checking system/data/boot boxes to do the Nandroid Backup it’s obvious what the Cache and Recovery check boxes are for and why you don’t check them. What is the EFS check box for?

I have installed a few roms that seem to have a custom Kernel included is this the norm are do most roms not include a custom kernel?

Same with bootloaders and radios some seem to be a combo and some seem the be separate.

Am I missing something about roms, kernels, bootloaders and radios?

Thanks! The guide looks perfect and easy to follow. ADB and Fastboot always work fine on my Mac when referring to a guide like is posted here. I have edited my bash profile to eliminate the need for the ./ and changing directories.
[Nexus 6P General] DoUknoGREG:
I had to reset my mac, so I kinda ****ed up my fastboot setup. Now when I try to download the SDK Platoform tools, all I see is the "Android Studio" thing on the website.

Im a total noob with ADB/Fastboot, and this is the first nexus i'll be getting. Can I get some help getting this set up on my Mac again, since everything's changed D:
[Nexus 6P General] scallawag:
Just read through the first post of this thread

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

Just download the "android.zip" at the bottom of the first post (as the post says). Thats all you need.

Remember you have to change directory so the fastboot, adb and files you are working with are all in the same folder unless you alter your bash profile.

I'm not an expert on adb but this should get you up and running.
[Nexus 6P General] Born<ICs:
Will build.prop edit for Hotspot work in 6.0?

net.tether.noprovisioning=true

if so anything else needed?
[Nexus 6P General] DoUknoGREG:
Thanks for this! This was a very detailed post and helped me get it running again, thanks!

Now, to wait until November 10-12 for my 6P :crying:
[Nexus 6P General] Nekromantik:
Hi people

I just unlocked the bootloader and then flashed systemless root boot image and then twrp.

Now when I turn on the phone I get warning that the system cant be verified. Is this normal? Or did I not flash the correct boot image?
[Nexus 6P General] vinokirk:
I just did this too, thought id really messed up! I am downloading the MDB08M stock images as we speak.

I have installed the SDK and other files from the SDK Manager just fine.
[Nexus 6P General] Heisenberg:
This is normal, and has been discussed on pretty much every page of this thread.
[Nexus 6P General] vinokirk:
I have just done Step 2 and now my phone only boots into TWRP. How do I get it to boot too system?
[Nexus 6P General] vinokirk:
I had just flashed MDB08M

I have just flashed CleanCore. Just waiting for first boot now

Doesnt seem to getting past the Google logo now. I can get it into bootloader though.

Should I flash stock MDB08K as described in Step 8?

Was the problem in step 2 because the instructions state:

Go to this thread and download the appropriate boot.img (angler-mdb08k-boot.zip).

But as I was on MDB08M it errord or something?

Ok heres how it goes:

-Clean flashed MDB08K. Boots fine.

-Installed TWRP 2.8.7.1 via MSkips tool. Boots fine (got error about 'device is corrupt' (red triangle, not the usual orange one))

-Downloaded the latest supersu and flashed in TWRP. Not wont boot, Stuck at the pretty symbols moving around (about 10 mins now)
[Nexus 6P General] Heisenberg:
Stay on the M build, I'm not sure why you had issues because the modified K boot.img is compatible with the M build.
[Nexus 6P General] vinokirk:
Yep, done it again, still boot loop. Is it normal to get the red triangle and a message stating ' Device is corrupt'? I know about the orange triangle, but this one is red.

The only thing im not doing is Step 3 decrypting data, as im on TWRP 2.8.7.1

---------- Post added at 12:38 AM ---------- Previous post was at 12:20 AM ----------

OK, so Ive just done Step 8 to install stock MDB08K, and ive left it like that.

It seems like installing SuperSU or a custom ROM breaks the phone. Not sure whay that is. Any ideas anyone?
[Nexus 6P General] kd-:
Same exact problem after flashing SuperSU on MDB08M - what the heck is going on here? I had a problem where the phone seemed to reboot itself earlier (OTA update?) and wouldn't restart either...

---------- Post added at 09:20 PM ---------- Previous post was at 08:55 PM ----------

Alright, I think I figured it out. Got my 6P booting with root by

Flash mdb08k factory image from here

Flash modified angler-mdb08k-boot from here

Flash TWRP 2.7.1.0 from here

Flash SuperSU Beta 2.52 from here

What I'm not clear is how updates will work - I guess I shouldn't flash anything? Is there a way to disable automatic OTA updates?
[Nexus 6P General] bagarwa:
Thanks a lot for this comprehensive guide. I am usually familiar with the process, but the encryption and complicated rooting process of 6P had me a little confused. Not so much anymore.

One correction you might want to make in the OP.

For "Download SuperSu", you've linked to the main beta version; whereas for the systemless root method, chainfire has v2.56 here.

I have one question for you or other users. Do you guys suggest removing the force encryption permanently or should I let that remain as it is? From what I understood, if I let it stay now and want to remove it a few months down the line, I'll have to wipe all data; which I'm not a fan of. What are the pros/cons of letting encryption stay?
[Nexus 6P General] sesz:
I'm getting the " OTA" reminder using op instructions running K build. Tried for the heck of it just excepting the ota and failed. Read somewhere on the forums is possible just to add M img and still have root with a modified process. Will try in the AM
[Nexus 6P General] johnp357:
thanks dude.. you saved me. should have read this instead of restoring factory images 3 times... and 3 hours... wtf!
[Nexus 6P General] vinokirk:
OK so heres what i did;

1. Flash mdb08k factory image:

fastboot flash bootloader C:\angler\images\bootloader-angler-angler-01.31.img

fastboot reboot-bootloader

fastboot flash radio C:\angler\images\radio-angler-m8994f-2.6.28.0.65.img

fastboot reboot-bootloader

fastboot flash boot C:\angler\images\boot.img

fastboot erase cache

fastboot flash cache C:\angler\images\cache.img

fastboot flash recovery C:\angler\images\recovery.img

fastboot flash system C:\angler\images\system.img

fastboot flash vendor C:\angler\images\vendor.img

fastboot format userdata

It then rebooted into Android, great.

I set USB Debugging enabled

2. Flash modified angler-mdb08k-boot

I put it in my SDK folder and did:

fastboot flash boot boot.img

I rebooted bootloader

3. Flash TWRP 2.7.1.0

I put it in my SDK folder and did;

fastboot flash boot twrp-2.8.7.0-angler.img

I rebooted bootloader

I then rebooted into recovery but got the Android laying down with a red triangle above him.

I held down the power button to beboot the phone.

It booted into TWRP.

I press Reboot>System, I dont install the SuperSU TWRP asks me too.

Now my phone wil only boot into TWRP!

What am I missing?
[Nexus 6P General] johnhazelwood:
Did you install TWRP 2.8.7.1 or 2.8.7.0? If 2.8.7.0 then you need to do the decrypt step. Better to flash 2.8.7.1, which may be your problem. I'm not sure if you can just update to 2.8.7.1 (via TWRP), and then factory reset to get back up and going. I'd go through all of the steps again, but make sure you have 2.8.7.1. If you did have 2.8.7.1, then try all of the steps again (factory image included) and then you should be good to go.
[Nexus 6P General] Heisenberg:
Whoa, hold on! Your problem here is that you messed up the command to flash the recovery. Here's what you did:

fastboot flash [b]boot[/b] twrp-2.8.7.0-angler.img

See what's wrong there? You've flashed the recovery to the boot partition instead of the recovery partition, that's why it isn't booting up properly. So you need to flash the recovery correctly:

fastboot flash [b]recovery[/b] twrp-2.8.7.0-angler.img

Then you'll need to flash the modified boot.img again because you overwrote it when you flashed the recovery to that partition.
[Nexus 6P General] elecday:
thanks

works great
[Nexus 6P General] vinokirk:
Mdb08k
[Nexus 6P General] Heisenberg:
Did you see my earlier reply?
[Nexus 6P General] vinokirk:
Ughhhhh, rookie mistake. My apologies.
[Nexus 6P General] Heisenberg:
All good man. Just be super careful with using fastboot though, if you accidentally flash the wrong image to the wrong partition you can seriously bork your phone.
[Nexus 6P General] runawaybayeh:
screwed myself?

Ive created a problem. Wanted to flash to 8. Did everything according to instructions 10 ,but neglected to factory reset first. Is it toast? If I try and turn it on It just shows Google logo with unlocked icon. I can get into bootloader. I tried factory choice on bootloader it just shows Google logo with unlocked icon. I tried start,same.Any solution?
[Nexus 6P General] slaydog:
For PowerShell, just put ./ in front of all of the commands listed here...
[Nexus 6P General] mobileman88:
If you have twrp, just wipe data, then flash the boot, system, vendor and bootloader images from the factory image. You should be good
[Nexus 6P General] ^tyrant^:
Is is possible to flash back to a previous version? Example 7.1 back to 6?
[Nexus 6P General] Badger50:
Sure you can. Just download the factor image you want and fastboot that dude :good:
[Nexus 6P General] ^tyrant^:
I wasn't sure if it were that easy, I thought i read somewhere that you could not go back to 6 once you upgraded to 7
[Nexus 6P General] Badger50:
Well, I've been wrong before. I've never read that, doesn't mean it's not true, I've just never seen it. I don't think the phone would care what you flashed on it, so long as the code is accurate. I may just go do that for sh**s and grins to see if I can ;)
[Nexus 6P General] ^tyrant^:
lol if you do let me know.. I have stayed on 6.0.1 because i use xposed and now i see there is somewhat a working xposed for 7.1 so i might finally update
[Nexus 6P General] runawaybayeh:
Screwed unscrewed.

Thanks for the reply mobileman88.

I did not have the ability of getting into

TWRP.

Excuse any errors in my memory in describing the processes following.

Except for being able to get into the bootloader, all other functionality of the phone was seemingly gone.

We eventually stumbled across the ability to get into a recovery menu from the bootloader ;the tiny Android on its back with with a red exclamation. There is a"no command recieved" message on the screen, if I remember correctly.There is then the ability, using a pattern of key presses, to enter a menu of options, among which were adb side load. We (by that I mean my son) then loaded the factory image, and I got my phone back. My son was the real hero. Sorry I can't provide more of a specifically described process.
[Nexus 6P General] smallsmx301:
When you get to the tiny Android hold power then tap volume up

---------- Post added at 05:37 PM ---------- Previous post was at 05:33 PM ----------

So I'm having an issue when flashing a factory image. When using flashall.bat or manually flashing, anytime I flash the system. Img I get can't load system. Img. Can't allocate xxxxx bytes. I guessed it's too big of a file. Anyone have any idea how to fix this?
[Nexus 6P General] SlimSnoopOS:
Update your platform tools
[Nexus 6P General] smallsmx301:
Everything is up to date! I made sure of that. When I go into SDK manager everything is up to date
[Nexus 6P General] SlimSnoopOS:
I've really only seen this issue pop up for folks with outdated platform tools. Idk what else would cause this issue. Try using the minimal ADB tools linked in the OP and see how that fares. Restart the computer too.
[Nexus 6P General] runawaybayeh:
For the record here are the instructions:

"Hold down the Power key and select Power off. If the touchscreen is unresponsive, then you can simply keep holding down the Power key for several seconds until the device turns off.

Press and hold the Power key and the Volume down key. You should see the Android mascot on his back, a bunch of information about your device, and Start at the top of the screen.

To navigate through the menu options, you use the Volume up and Volume down keys. The Power key is used to make a selection. Press Volume down twice, and you should see Recovery mode in red up at the top right. Press the Power key to select it.

The white Google logo will pop up followed by the Android mascot on his back again with the words No command underneath.

Press and hold the Power key and the Volume up key for around three seconds, and then let go of the Volume up key, but keep pressing Power.

You should see the Android system recovery options pop up at the top of the screen. Use the Volume keys to highlight the options and the Power key to select the one you want."
[Nexus 6P General] zer0se7en:
Correct. Only happened to me once because I did not realize my Platform Tools were outdated. Once I updated it by double clickicking the Android file then the update lauched and I downloaded them. When I flashed the system.img it gives the 5 stage flashing. Never had a problem afterwards.
[Nexus 6P General] kahila:
Never mind.
[Nexus 6P General] rrohanjs:
" On 7.1.2 and above you'll also need to boot into TWRP recovery and wipe cache and dalvik cache. "

At what stage do i have to do this ?
[Nexus 6P General] Spannaa:
If you're fastboot flashing stock recovery, you'd have to do it first as TWRP wouldn't be there afterwards ;)
[Nexus 6P General] rrohanjs:
cool, so first i have to factory reset then wipe the cache then run the flash all script and i'm done right ?

i don't have to manually erase user data right ?

Also after running the script my storage will be wiped clean right
[Nexus 6P General] Spannaa:
Not sure you need to factory reset if you're using flash-all.bat

The -w flag in the line starting fastboot -w update... should completely wipe your device.
[Nexus 6P General] edwindroid:
If my 6P goes to the bootloop, can i still unlock the bootloader? (Assuming the OEM Unlock checkbox and USB Debugging have been enabled in the developer option)
[Nexus 6P General] Spannaa:
What's the update version it's offering you?

IIRC there's a .019 that updates the .017 version from the nexus roms site.
[Nexus 6P General] W@r10ck:
Has anyone updated to OPR6.170623.019?
[Nexus 6P General] zer0se7en:
I have. But thru OTA. Because after flashing the latest factory image (.017) the device again detected an update. Just to get rid of the notification I downloaded and installed the update. Turns out it is .019.
[Nexus 6P General] mobileman88:
Factory image 01 9 has dropped and 01 7 has been removed.
[Nexus 6P General] W@r10ck:
Finally updated and safetynet passed.
[Nexus 6P General] techemically:
Can I unlock the bootloader, then root the nexus 6p, then relock the bootloader? Is there any benefit to doing so (i.e., receive OTA without issues, etc.?) I want root so I can install titanium backup, xprivacy (is this still needed after the permissions changes in android 6/7?), and the xposed framework. Thanks to all who reply!
[Nexus 6P General] Badger50:
If you unlock or relock the bootloader, you will wipe the phone. I see no benefit to doing so. Why not just fastboot the factory images when they come out instead of worrying about OTA's?
[Nexus 6P General] techemically:
Thanks! That is exactly what I needed to hear! :)
[Nexus 6P General] sunandoghosh:
Pls add steps for updating to Oreo and then rooting from rooted nexus 6p android 7