yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] tarroyo:
It was paranoid android that encrypted my rom, Not sure what the next steps would be other then flashing a modified boot image.
[Nexus 6P General] a1exus:
I'd like to opt-in for google.com/android/beta, do I need to unroot and/or relock bootloader beforehand? Is there any drawback of going with noguat? I'm considering dropping root in favor of Android Pay as well.
[Nexus 6P General] Heisenberg:
You need to unroot and have the stock recovery installed but your bootloader doesn't matter.
[Nexus 6P General] SlimSnoopOS:
Run "fastboot format userdata" to remove encryption. This will stay this way if either SuperSU or modified boot.img is installed, since "forceencrypt" flag will be disabled in the kernel. It takes more effort to stay decrypted than to stay encrypted.

Additionally, TWRP 3.0.2-1 is available and it apparently supports Android 7.0 encryption. No more freezing!
[Nexus 6P General] tarroyo:
Will running that command wipe my data, factory reset my device?
[Nexus 6P General] Zyphur:
I got everything working well for me now from

completely stock N

to rooted N. Went from rooted with PureNexus to stock 6.0.1, erasing everything, then got the Nougat OTA because I was in the Beta program. To get rooted 7 working I did the following: Fastboot flash the Modified N Boot from DigitalHigh, flash TWRP 3.0.2-1, flash SU 2.76. Done. TWRP and Root stick, no bootloops, all good. Have since also installed EX, still all good.

It's been a while since I did major changes, good thing I had this thread bookmarked, major help again, thanks Walter :)
[Nexus 6P General] SlimSnoopOS:
Yes, everything will be formatted (gone). That is the only way to remove encryption.
[Nexus 6P General] Heisenberg:
Ate you encrypted or decrypted?

EDIT:

Don't worry, looks like decryption is unnecessary.
[Nexus 6P General] a1exus:
I have stock recovery, in order to unroot my device, do I just flash system partition?
[Nexus 6P General] Heisenberg:
You need to flash system, boot, and wipe data.
[Nexus 6P General] Heisenberg:
Updated 2016/08/23!

Added:

Link to modified boot.img for Nougat.

Information in section 2 regarding extra steps for Nougat.
[Nexus 6P General] jussaren:
I'm on the latest Dp5 with unlocked bootloader & rooted with twrp.

How do I unroot & go back to stock, wanting to get Official Nougat 7.0
[Nexus 6P General] a1exus:
and wipe data?
[Nexus 6P General] Heisenberg:
Wiping data is included in the post you quoted.
[Nexus 6P General] Heisenberg:
Pretty sure at least a couple of people have asked this...

Look back a bit.
[Nexus 6P General] a1exus:
Is wiping data required by opt-in for nougat? even with OTA?
[Nexus 6P General] Heisenberg:
It's necessary when unrooting.
[Nexus 6P General] Heisenberg:
Formatting userdata is the only way to decrypt. Flashing a boot.img/kernel with forced encryption disabled is the only way to ensure that you remain decrypted after formatting userdata. If you flash a kernel (or a ROM that contains a kernel) that has forced encryption enabled it will encrypt on boot.

You don't need to flash a modified boot.img just to get Nougat working but you do need to flash a modified boot.img to get TWRP working with Nougat.
[Nexus 6P General] 3ddfknmontana:
I think some1 needs to do a video on how to flash it from a custom rom, without loosing internal storage, twrp is not compatible they say.... I'm lost lol
[Nexus 6P General] Heisenberg:
Have you actually read the last few pages? Or any of the other threads that detail flashing Nougat?

1. TWRP is compatible. You need a modified boot.img.

2. You don't need to wipe your internal storage.

No video is necessary. This has all been discussed in the last couple of pages of the very thread you're posting in.
[Nexus 6P General] tarroyo:
What's up? I asked around and I'm getting a few answers about decrypting my nexus 6p.

My setup is I was on Dirty Unicorns, just recently I flashed ParanoidAndroid which encrypted me not knowing that from rom to rom my nexus would stay encrypted, Is flashing a modified boot image or formatting my user partition the only way to decrypt?

Something about the kernel is doing the encrypting and not the actual rom? So if I flash another kernel it won't matter then right? I'll still remain encrypted correct???

Also regarding android 7.0 I'll have to flash a modified boot image no matter what? What I mean is if I want to go from Marshmallow to Nougat I'll still have to flash a modified boot image????
[Nexus 6P General] Heisenberg:
I answered you here: http://xdaforums.com/showpost.php?p=68318086&postcount=4182
[Nexus 6P General] troymz1:
How do you get rid of ads with root? what is layers and v4a?
[Nexus 6P General] tcat007:
Rid of ads: Adaway (http://xdaforums.com/showthread.php?t=2190753)

Layers: http://xdaforums.com/android/apps-games/official-layers-bitsyko-apps-rro-t3012172

v4a: great sound (http://xdaforums.com/nexus-6p/themes-apps/viper4android-nexus-6p-t3237365, do your research, secret is use correct busybox)
[Nexus 6P General] troymz1:
Thanks!

I want to root but i cant get adb devices to find my nexus 6p. I've enabled USB Debugging. I've enabled OEM unlock. I dont want to start anything until i know for sure adb is working. i have installed the latest sdk from android webpage. and the 4 packages mentioned. i cant figure out why it doesnt see my device. yes it is unlocked with screen on.

do i need it to see my device before i unlock bootloader?
[Nexus 6P General] Heisenberg:
Adb isn't essential as we don't actually use it in this guide. As long as your fastboot connection is fine that's all you really need right now.
[Nexus 6P General] airmark:
Have you tried reinstalling the driver? Or installing an alternative one, such as this:

http://xdaforums.com/google-nexus-5/development/adb-fb-apx-driver-universal-naked-t2513339
[Nexus 6P General] nyjumpman:
I had the same problem with my 5X. You need to go to device manager in your windows settings and manually install the driver for ADB
[Nexus 6P General] MoNsTeReNeRgY22:
I followed the instruction in the OP but my new Win10 PC wouldn't recognize my ADB device. I installed the Google USB driver by itself and it worked like a charm.

http://developer.android.com/sdk/win-usb.html
[Nexus 6P General] troymz1:
Worked like a charm! Thank you!

Will i always have that warning at boot about locking my bootloader? or can i make it go away?
[Nexus 6P General] tcat007:
Yes, I always get that warning. I also get a warning on first line of twrp after a flash, a red message something about backlight error.
[Nexus 6P General] troymz1:
So i backed up using TWRP. Is it really worth to get titanium backup or is TWRP backup good enough? I dont plan on flashing custom roms on this phone. I just want Tasker and some other root apps and Xposed.
[Nexus 6P General] pittnuma:
just done a fastboot devices check prior to rooting and it states the devices serial number and unathorized.

Is this normal prior to rooting the 6P? Dont remember it on my Nexus 5 when I rooted that.

Also for a completely stock, which rom should I use? I don't want any with added bits etc if I can help it. "Cleancore do it?"
[Nexus 6P General] d1ez3:
Is it likely that in the future rooting and installing TWRP will be possible without formatting? Not sure if I want to root just yet but don't want to start setting up the phone if I have to wipe in the future without having TiBu or something similar
[Nexus 6P General] MoNsTeReNeRgY22:
They serve 2 different things.

TWRP backs up your entire system while TiBu backs up individual apps and their settings. I use both all the time.

Unlocking your bootloader always wipes data, always has.
[Nexus 6P General] tcat007:
You need to look at the phone while doing this. I got a pop up message about authorizing, after I got that on the phone and reran the checks, all went well.

Just leave the MDN08K stock rom.

PS: Can we turn off" "oem unlocking" in dev. options after bootloader is unlocked?
[Nexus 6P General] SFCurley:
SkipSoft Toolkit vs. following this guide

Any benefits (or drawbacks) of using SkipSoft's toolkit for rooting, decrypting, etc instead of following this procedure? (I think one benefit of SkipSoft might be not having to actually install TWRP and preserving OTA updates, but wanted to confirm that and also see of other benefits/drawbacks.)

Thank you.
[Nexus 6P General] LeftHandedWave:
I've never heard of SkipSoft before you said something. It looks great. I would also like to know what the benefits/drawbacks are to this.
[Nexus 6P General] aznriceballman:
Can I follow this guide even though im on build MDB08M?
[Nexus 6P General] troymz1:
Now that I've done everything in this guide, how do I update my 6p to the newest images? Also, why did they post two updates at the same time?
[Nexus 6P General] SFCurley:
Don't have an answer yet to my previous question, but FWIW, I did unencrypt and rooted my new 6p tonight using the Pro/Donate version of the SkipSoft package. Everything went as it should and didn't have any problems.
[Nexus 6P General] kkyyb:
About the command used for unlock bootloader, Isn't it should be the common "fastboot OEM unlock"? Or the " fastboot flashing unlock" is for Nexus 6p only?

Sent using XDA One
[Nexus 6P General] Heisenberg:
Updated 2016/08/23!

Added:

14. How To Update To Android 7.0 Nougat
[Nexus 6P General] saumil007:
I'm on stock MM rooted. I want to upgrade to Nougat but don't want to wipe internal storage, so what should I do?
[Nexus 6P General] thegios:
I am rooted but haven't made any modification: can I flash the ora in point 14 with flash fire?
[Nexus 6P General] Heisenberg:
Maybe read the first post of the thread? Or the last few pages? Or the post

directly above yours

? This question has been asked and answered numerous times today. To the point where I created a whole new section of the guide dedicated to updating to Nougat. The post directly above yours points out that this new section exists, and where to find it.

Surely it isn't too much to ask for people to at least try to search before posting, especially when the answer is both in the OP and on the last page. I'm all for helping people but the amount of repeated questions today just because people can't be bothered having a quick search before posting (rule #1 of XDA by the way) is utterly ridiculous.
[Nexus 6P General] Heisenberg:
I don't use Flashfire so I can't answer that. You can definitely follow the instructions in section 14 as they're written, though. I'm pretty sure I've seen people having issues with Flashfire while updating to Nougat, not sure if that's Flashfire itself or just user error though.
[Nexus 6P General] thegios:
Worked with ff :)
[Nexus 6P General] Heisenberg:
Did you keep root and TWRP through the process?
[Nexus 6P General] thegios:
Nope, but I have disabled optional for root.

I Remember I chose to keep twrp but IT was wiped anyway.

Flashing was perfect anyway, it took 5 minutes plus reboot and optimisation
[Nexus 6P General] xxBrun0xx:
We need to put in big bold letters somewhere: "If you're on a custom ROM, you need to go back to stock before you flash the OTA"
[Nexus 6P General] Heisenberg:
I can't believe anyone would even think flashing the OTA over a custom ROM would be a good idea. We could put it in huge bold lettering, hell, we could have a giant flashing banner across the top of the page but people don't freakin read anyway. This thread is a sticky. There's clear information in the OP. The last five pages are full of information too. That's all irrelevant though because a great deal of people are just too damn lazy.
[Nexus 6P General] off_d:
Hello!

Running MTC20F and always flashing latest secutiry updates using Section 9 from your guide. I had enrolled for the DP but never got an OTA to update. Whenever we use section 9, does it mean we don't get to receive OTA's ?

I want to flash the Nougat final OTA, but keep my files and settings intact. Also want to have it fully encrypted and stock (only bootloader unlock). What is the best option, because from what i have gathered, the OTA's that are available for download, are unencrypted (?) ? How can i make my 6p receive OTA's from MTC20F so that i enroll again on the DP and receive the final OTA ?

thanx.
[Nexus 6P General] quorn23:
Hi [MENTION=4153349]Heisenberg[/MENTION] I plan to redo my phone (for systemless root/xposed) and i could find an update of you in this thread that you splitted the "how to root" section into two parts traditional/systemless but the how to root section seems only be the traditional way. Would be sweet to have this section updated with the latest things, i will probably be able to get my info together, but i really love the cleanness of your Guide. :) Thanks for consideration.
[Nexus 6P General] Heisenberg:
The how to root section is actually only the latest (systemless) way, I removed traditional altogether because it wasn't being developed anymore and systemless was taking its place. It looks like it's traditional but that's only because systemless is more intelligent now; it requires no modified boot.img (only flashing SuperSU is required).

EDIT:

In saying that though I do believe the systemless method now modifies the system partition too. If you're looking for fully systemless there's a command that needs to be entered via terminal, I'll see if I can find it.

EDIT 2:

I might be totally wrong about that. The command I was thinking of was to force systemless root to modify the system partition, so probably the opposite of what you want. I'm sure there are some guides out there that can fully explain systemless root far better than I can anyways, I'm just a guy who knocks some information together.
[Nexus 6P General] quorn23:
[MENTION=4153349]Heisenberg[/MENTION] Oh, wasn't aware of that, thanks! For me that is fine as, if i recall correctly, this is needed for Google Pay and stuff, we don't have that here anyway, but i assume it wouldn't hurt, for myself as i will re-stock and do it fresh and for the Guide in general. Thanks!
[Nexus 6P General] Heisenberg:
Ok cool. The method here should be fine for what you need anyway.
[Nexus 6P General] libaba:
Hello,

I did all of the stages of updating to 7 but in the stage of apply update from ADB I received failed to mount (invalid argument)

Please help!
[Nexus 6P General] a1exus:
Hmm, I was not aware of that.. I was under impression that every time I apply security update, i also unroot my device and by re flashng SuperSU, I re root it back..
[Nexus 6P General] Jammol:
Read the OP. The ENTIRE OP on how to get to 7.
[Nexus 6P General] Heisenberg:
Systemless root, which is what we're all using now, mostly resides in the data partition. As far as I know anyway.
[Nexus 6P General] ivosimoes22:
Hi!! I'm a bit noob to these things like flashing, rooting, etc. I have android n installed on my N6P ota and i tried to get root working on this version. I followed the guide above and installed the modified boot.img and twrp 3.0.2-0 but when i try to boot into recovery mode it hangs in splash screen and cant enter in twrp. What should I do?? Sorry if this question has already been answered before.
[Nexus 6P General] mobileman88:
You need the latest twrp 3.0.2-1 to support N

---------- Post added at 09:42 PM ---------- Previous post was at 09:34 PM ----------

@heisenberg what would I lose if I wipe data to move to N? I am currently on the latest August update of stock rom with magisk, phh superuser and systemless xposed. Can I simply flash the August stock boot then run the nougat Ota? My phone is unlocked but encrypted
[Nexus 6P General] a1exus:
thanks for that info)
[Nexus 6P General] iosonofrancesco:
i did not flash a modified boot.img

1) updated to 7.0 from completely stock 6.0.1 with trwrp + root with FF

2) lost recovery & root on 7.0

3) flashed latest twrp and then supersu 2.76 stable

4) flashed a systemeless AdAway.

encrypted and everything seems to work just fine.

maybe you can add in the first post that it's possible to update with FF but a flash of twrp & supersu again might be necessary.
[Nexus 6P General] off_d:
Maybe you misunderstood. I do not want root and i do not want custom recovery. I am unlocked. I have done everything from 1-7 in the past, but for the last couple of updates i only flash using section 9, without reflashing twrp or applying root (therefore, stock unlocked). But, by using section 9, i haven't received any beta OTA. What i ask is if there is any way without loosing data or settings to be able to receive OTAs' and if i flash the Nexus OTA (using section 14), will i remain encrypted?

Thanx.
[Nexus 6P General] AreOh:
I had no idea that the directions for root in the OP was indeed the 'systemless' method. Seeing that term thrown around in different posts and sections made me confused and thinking I could not use certain mods. Like how there's a systemless AdAway and systemless xposed.
[Nexus 6P General] Heisenberg:
I don't include instructions for FF in my guide. Did you flash TWRP 3.0.2-1? It's possible that this latest version no longer requires the modified boot.img.

In section 14 it states that if you're stock with no root/modifications you can skip to Part B which is just sideloading the OTA zip. This will update you without losing any settings.
[Nexus 6P General] iosonofrancesco:
yes, twrp-3.0.2-1, worked just fine without modified boot.img
[Nexus 6P General] broolbache:
loading: 'nougatota.zip' * cannot read 'nougatota.zip' *

HI,

SECTION 14:

I am at the last step. I downloaded the OTA link, and moved the zip file to my platform-tools folder. In stock recovery, I selected apply update from ADB.

However, when I type adb sideload nougatota.zip in the command prompt, it says it cannot be read. I don't know what to do. Please help!
[Nexus 6P General] Cares:
I can't seem to root my device properly. Steps from upgraded to rooting that I did:

1) adb sideload ota.zip

2) booted up fully and optimized apps (

Device is encrypted does it need to be decrypted?

)

3) fastboot flash twrp3.0.2-1.img

4) flash supersu 2.76

5) reboot and it does the usual quick restart once and then boots up again and stuck at bootloop

I also tried flashing the latest modified boot from yesterday before twrp and supersu. Still bootloop.

Any ideas? I reloaded the ota a couple of times now and tried this process and still stuck at bootloop when trying to root.
[Nexus 6P General] mkp52mkp:
will the bootloader unlock procedure work with new nougat build?
[Nexus 6P General] edjanx:
Error Sideloading 7.0 via adb

Hello, and thanks for the awesome 7.0 tutorial. I got stuck on the following step:

[*]Once the phone has booted into the stock recovery (you should see Andy Android with an exclamation mark) hold power and tap volume up to get into the recovery menu. Use the volume buttons to scroll and use the power button (you might need to hold it) to select "apply update from adb".

[*]On your PC navigate to your fastboot folder, hold shift and right-click your mouse, select "open command prompt here". Issue the following command:

adb sideload nougatota.zip

I got the following errors:

Now send the package you want to apply

to the device with "adb sideload <filename."...

Finding update package...

Opening update package...

verifying update package...

Installing update...

Target: google/angler:7.0/NRD90M/3085278:user/release-keys

Patching system image unconditionally...

E1001: failed to update system image.

E:unknown command [log]

E:unknown command [log]

E: Error in /sideloadpackage.zip

(Status 7)

installation aborted.

Update: I re-downloaded the image file, and this time did not rename it to nougatota.zip per the OP, and it worked. I see another post below that someone had to unplug their cable and plug it back in to resume, and this also happened to me. I also had to open a new command window to side load after I dropped the new image file in the fastboot folder. Each issue gave me that sinking feeling in the gut, so I hope my experience may helps others in a small way.
[Nexus 6P General] saar73:
Hi all,

i did the guide to upgrade to nougat + recovery, and my phone stuck in the "google" window (the black one).

anyone know what i did wrong or what should i do now?
[Nexus 6P General] absolutzero1906:
Hello,

I tried to read all post pertaining to nougat before posting. I got all the way through part A no issues. I started Part B and when executing adb sideload I got error: no devices/emulators found. ADB and fastboot were working fine before I booted to factory recovery. I might try on my computer later at home, but any thoughts what driver I might be missing. I made sure SDK was updated. Manually installed ADB drivers and everything, but nothing yet.

Any thoughts?
[Nexus 6P General] RojoNinja:
I only had to unplug the phone and plug it back in.
[Nexus 6P General] absolutzero1906:
Yea I tried that multiple times.
[Nexus 6P General] kilasat:
Just updated to Android 7. Can I root the same way as for 6.0.1?

Thanks.
[Nexus 6P General] kyzn:
Thanks again [MENTION=4415799]heisenberg.[/MENTION] I'm on Nougat now. Coming from Pure Nexus 08/21 build. Can confirm you don't need the modified boot img anymore for TWRP 3.0.2-1.
[Nexus 6P General] edjanx:
I had no issues upgrading as I believe the image file is already unlocked.
[Nexus 6P General] sp44:
I have the same question.
[Nexus 6P General] tarroyo:
Am I encrypted or am I not? Still a little confused. After flashing factory images then flashing the 7.0 ota then doing all the steps required for twrp recovery/root I look in security and it still shows me as encrypted.

https://postimage.org/
[Nexus 6P General] nathanchance:
Yes, it says you are encrypted. Were you ever decrypted?
[Nexus 6P General] tarroyo:
I thought I was the first time I rooted, Even if I wasn't I did all the steps to decrypt after flashing 7.0 and still nothing.

What would I have to do next?
[Nexus 6P General] mobileman88:
Do you need to be decrypted? Because if you don't, I think it seems fine for those who upgraded to the latest N and using TWRP for recovery.
[Nexus 6P General] mohdfahad47:
But according to the guide, the phone needs to be decrypted in order to do anything from twrp right?

---------- Post added at 02:47 AM ---------- Previous post was at 02:37 AM ----------

I have another question, on updating the stock rom while rooted. Lets say a newer build of N comes out and i want to update it, according to the guide ill have all my apps and settings intact as long as i dont format userdata. And even if i dont flash the stock recovery image (according to the guide) sometimes the stock recovery gets patched on boot..so my question is, do i have to flash the modified boot image before flashing twrp( like it's done the first time when rooting android N) or just flashing twrp will be fine? And also do i have to decrypt again by formatting userdata so that i can use twrp to flash super su?sorry for the lengthy post but im a little confused... Thanks
[Nexus 6P General] FirstROMQuantum:
So I took the plunge and did not flash the modified boot.img.

I just used ADB to flash the latest TWRP and then I flashed the latest beta of SuperSU. ALL IS WELL and I am rooted.

But will I be screwed later when a security update is released and it will automatically install itself since I did not flash the modified boot.img? Or is having TWRP instead of stock recovery enough of a deterrent?
[Nexus 6P General] tarroyo:
yes, If you're running android n you need to flash the modified boot image for twrp to run, I backed up a nandroid so I'm not sure what it is with encryption.
[Nexus 6P General] mobileman88:
I understand that is no longer required since the release of the new TWRP yesterday.
[Nexus 6P General] mohdfahad47:
Oh, so you didn't decrypt the device?

---------- Post added at 04:14 AM ---------- Previous post was at 04:13 AM ----------

No longer required to decrypt the device?
[Nexus 6P General] Einwod:
I have no modified boot image and latest TWRP is running just fine. Flashed supersu 2.76,all going well.
[Nexus 6P General] mkp52mkp:
guys i got a problem here regarding efs. i made the efs backup n its in the TWRP folder. but i can't copy it to my PC or any other folder. i can't even compress it. i tried with es file manager, root browser everything failed. plz help.
[Nexus 6P General] Einwod:
Reboot to TWRP and copy it out from there. Should be alright.