yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] jeffreymcclain:
Minor Suggestion

I think you should update the prerequisites for step 12 of the guide (How To ADB Sideload an incremental OTA update package.):

"Prerequisites: unlocked bootloader (section 1), completely stock setup (the only modification allowed on the phone is the unlocked bootloader)."

Google has since changed the adb OTA updates to work even with a locked bootloader:

https://developers.google.com/android/nexus/ota#angler

In addition, there is a tool known as Flashfire that apparently allows for flashing OTA updates while retaining custom recovery and root.

https://www.reddit.com/r/Nexus6P/comments/4myv9s/flashfire_is_amazing/

https://play.google.com/store/apps/details?id=eu.chainfire.flash

Considering this is a "beginners" guide, I feel that mentioning these alternative methods could be useful. If others have already suggested these additions in the thread previously, my apologies for repeating. I just felt that the prerequisites for that section were a bit misleading.
[Nexus 6P General] Heisenberg:
You make a good point about that prerequisite for section 12, I'm not sure why I even had unlocked bootloader there in the first place. I'm gonna change that.

As for Flashfire, that has been suggested in the past and I've decided not to include any instructions for that. Part of the purpose of this guide is to familiarise less experienced folks with fastboot and how to use it properly, in order to make it seem less daunting and raise their confidence in achieving tasks manually. Flashfire is a shortcut of sorts. Sure, it might get the task done a little quicker but I believe if I included it here many newbies would bypass learning how to use fastboot in favour of the "quick fix" that Flashfire provides. Fastboot is what's gonna save someone if they ever get stuck in a situation with their phone so I believe the more people I can teach how to use it well the better.

Btw, thanks very much for your feedback :good:
[Nexus 6P General] qtsam11:
oem enabled

Yesterday, my Nexus 5x just stopped working. When I try to restart, it just goes in a loop and freezes and will not load. It seems many people have had this issue. I followed the instructions from Dallas Thomas (forum won't let me post the link) and everything worked but when I went to do the actual unlock, I got a message oem unlock is not allowed. From reading threads, it appears this would be due to the oem option not being checked, which makes sense cause I am nowhere near a developer and never mess with my phone. This is the first time I've even tried doing anything like this (this guy's instructions are perfect). But I cannot turn on my phone AT ALL so I cannot go in and change this option, if that is what is causing the issue. The phone will not boot at all and continues on a loop whenever it's tried , even in recovery mode. Google wasn't able to help. Does anyone know a workaround?
[Nexus 6P General] mobileman88:
New build MTC19X out. FYI :)
[Nexus 6P General] mobileman88:
Great. Using it with latest xposed and supersu. So far so good
[Nexus 6P General] homieguy:
A little confused.

I have my 6p rooted and want to update to the new OTA (MHC19Q --> MTC19T). If I use the Sideload OTA Incremental method, will I have to re-root? Is this the best method? I have everything backed up. Thanks.
[Nexus 6P General] Heisenberg:
If you're rooted you can't use an OTA. You need to follow the section for updating to a newer build using fastboot.
[Nexus 6P General] homieguy:
Ok, so will I have to re-root after updating to newer build? Do I need the cache.img file? Do I need to reinstall twrp and su or does it remain? I want to keep all my apps, calendar, accounts, settings, files if possible. Thanks for the reply.
[Nexus 6P General] force70:
Post 2, section 9.

Literally everything you just asked is answered there....gotta read dude:thumbup:

Sent from my Note 5, Nexus 6P or S6
[Nexus 6P General] rasikreality:
Do I need to install the vendor.img before or after installing the ROM? Should I flash all the zips first and then the vendor image or first ROM, then vendor, and then all the ZIPS I need?
[Nexus 6P General] Heisenberg:
It doesn't matter when you flash the vendor as long as it's flashed before you first boot into the ROM.
[Nexus 6P General] rasikreality:
It gives me an error with the latest build of CM13 that says: 'there's an internal problem with your device contact your manufacturer for details'. How can I solve this?
[Nexus 6P General] Heisenberg:
I don't use cm so it's hard to say. Which vendor.img did you flash? Did you wipe fully (system, data, cache, dalvik cache)? What gapps did you flash? Have you searched the cm thread? I can guarantee someone else has posted about this problem there so you should be able to find the solution.
[Nexus 6P General] rasikreality:
The vendor that uses cm13 it's mtc19v and I was flashing the mtc19x :o. I was so scared :laugh: but now it works perfectly. Thank you!
[Nexus 6P General] SixFourSix:
Hello. I hear that there's a new bootloader, can I flash it like you do on part 9 of the guide, but only the bootloader part? Like only do the bootloader part of those fastboot commands? I'm on custom rom (DU). On MTC19X.

Or is this even something I should bother with?
[Nexus 6P General] Heisenberg:
You can if you want to but there's no real benefit to it.
[Nexus 6P General] fibbity3:
I'm trying to follow the steps to root npd56n after being rooted on an m build:

1) flash twrp-3.0.2-0-angler.img

2) flash boot npd56n boot image

3) do I need to unencrypt again at this point? I haven't since I joined n beta, however in bootloader it says 'DEVICE is unlocked'.

4) download and install a version of SuperSU (I'm not sure which) via TWRP?

Is that it? I'm reading in other forums that flashing the boot image isn't required, but I'm currently unable to get past the splash screen in TWRP. Although I haven't unencrypted again yet if that is needed. Thanks for any help.
[Nexus 6P General] SlimSnoopOS:
In the morning, I'll have to find where I read this BUT you can fastboot DP4, fastboot the latest Marshmallow vendor.img and access TWRP while encrypted.

The alternative is to fastboot DP4, then decrypt with this command: fastboot format userdata, fastboot a modified boot.img/install a custom kernel in TWRP, flash SuperSU, then flash the DP4 vendor.img before booting into rom.

Edit: Option 1 is contained in post #629 by [MENTION=6807382]asj0422[/MENTION] in the Android N/MM modified boot thread:

http://xdaforums.com/showthread.php?t=3306684
[Nexus 6P General] asj0422:
[MENTION=7577783]fibbity3[/MENTION] also made a proper guide on it: http://xdaforums.com/nexus-6p/general/guide-android-nougat-developer-preview-t3410906
[Nexus 6P General] Sunandroid:
I'm still looking for a way to root the 6p without having to install a custom recovery.

My idea was to boot twrp via fastboot and then flash supersu (which is systemless and) which allows me getting root access without modifying the system partition. This would mean, I were rooted and still could take OTAs without worrying?!

Can someone tell me if I'm right or wrong and if I'm wrong tell me why?

Sorry, this thing with the unlockable bootloader is still a whole new world to me...
[Nexus 6P General] kyzn:
I don't believe that's possible. From what I remember the only time that rooting a locked bootloader was made possible through an exploit. Meaning a developer took time and worked with one because the manufacturer made the locked the bootloader down. And people won't bother finding an exploit with a Nexus to root it. :laugh:

And you still needed to have pushed TWRP in the system partition with a locked bootloader. At least that's how I rooted my old Xperia P.
[Nexus 6P General] Sunandroid:
The (un)locked bootloader is not the matter. It' unlocked already, but this doesn't prevent otas.
[Nexus 6P General] K3RRS:
This is my first experience with rooting, so excuse the total ignorance.

After installing the SDK Tools I got this message:

That made me wonder if the version of SDK tools I installed was out of date. I have installed SDK Tools Rev. 25.1.7

Under the tab "Packages" I clicked reload and after the list reloaded, there were a lot more options. One of them is for SDK Tools Rev. 25.2 rc-1. It isn't under the regular "Tools" folder.". It's in another Tools section that says "(preview channel)". Is that the one I need? adb is correctly installed and fastboot is working. Am I good to go or do I need to install Rev 25.2?
[Nexus 6P General] SlimSnoopOS:
Rev 25.1.7 is fine for everything you need on Marshmallow. That's what I use on OSX
[Nexus 6P General] K3RRS:
Okay, great! But just for my information, is that second version the most updated one? What does "preview channel" mean?
[Nexus 6P General] SlimSnoopOS:
I took it to mean it's a preview for people to test and provide feedback before it gets an official release. Nothing you need to bother with
[Nexus 6P General] Krunk83:
When I format data via twrp and reboot system and then check, it still says that I am encrypted. What am I doing wrong here?

Edit: I think I need a custom kernel to decrypt?
[Nexus 6P General] SlimSnoopOS:
Flash either a custom kernel, modified boot.img, or SuperSU after formatting userdata to be decrypted. The stock boot.img encrypts on boot up.
[Nexus 6P General] c6z06vette:
help getting custom recovery loaded into bootloader

I am new to the Nexus 6P, but not new to XDA and running custom ROM's. I had an LG G2 I ran for a few years very successfully and gave it to a family member. Went to an LG G4 only to find the Verizon bootloader lock out. I'm finally back to XDA and happy to get my 6P moving to a custom ROM.

I have ADB running fine and unlocked the bootloader; however, I can't seem to get the TWRP sideloaded in the bootloader. Below is a screenshot on the command prompt log. When I try to load into recovery I get a "no command" with the red triangle and my poor green android laying sideways....

What am I doing wrong to get TWRP loaded???? By the way I downloaded from the first page link TRWP version: "twrp-3.0.2-0-angler.img"

[IMG="Screenshot of ADB"]https://dl.dropboxusercontent.com/u/24999687/adb%20image.jpg[/IMG]
[Nexus 6P General] Heisenberg:
Did you check the MD5 of the TWRP image after downloading?

Are you on MM or the Android N Dev Preview?

Are you rebooting to the bootloader after issuing the command and before attempting to boot into the recovery? If not, try that. If you're already doing that try booting into the recovery without resorting to the bootloader.
[Nexus 6P General] logic88:
Did you try flashing again? When I first rooted, I had to flash twice for some reason. I got the "sideways droid" error on my first flash but when I tried again, it worked OK.
[Nexus 6P General] c6z06vette:
No

I thing my problem is the check sum command....I forgot about that:p
[Nexus 6P General] Heisenberg:
Yeah, it could be corrupt. Check the MD5 and make sure it matches the MD5 listed on the download page. Also try the other things I listed.
[Nexus 6P General] c6z06vette:
Guys.....

Thanks for your help!!! I'm in TRWP.....may the fun begin:laugh:
[Nexus 6P General] jerryeight:
Thanks got it up and going first try.

Continuing tradition to root and mod my phones with in 10 minutes of receiving them.
[Nexus 6P General] Heisenberg:
Lol, how exactly?
[Nexus 6P General] wonsanim:
Thanks Man Ready to work!
[Nexus 6P General] jerryeight:
Lol I always unbox with laptop setup and ready to go :D
[Nexus 6P General] Heisenberg:
Not what I meant. You said you go it up and going first try. I'm very curious as to how? The device hasn't even been released yet.
[Nexus 6P General] Big Cam:
Good lulz in here, noobs posting they tried it and it works, yet no one has this phone yet.

Coming from a Note 3 I am looking forward to the easy rooting available on Nexus devices.
[Nexus 6P General] notfaded1:
used to be another option...

When my nexus 5 came out someone made a way to root it without changing the recovery. This allowed all of the normal updates come through OTA while still rooted.
[Nexus 6P General] jerryeight:
Haha just joking around :) But yeah extremely hyped and considering to pick up the 64gb
[Nexus 6P General] Kingsmoke9:
Question

I am planning on buying a nexus 6p from google fi thanks to my invite, only to finance it without much penalty on my pockets. I have a question....They said that the google fi version cannot be used with other providers. I have a feeling rooting will allow me to use verizon's service till my contract runs out and then unroot it to use fi's service. Is this possible??

I am super noob to rooting. I would appreciate any sincere and helpful answers!

Thanks you!
[Nexus 6P General] :
Hi!

Your question is not related to this guide at all. Please ask for help in the dedicated help thread here,

http://xdaforums.com/nexus-6p/help/qa-noob-friendly-qa-help-thread-t3206934

Thanks!

Darth

Forum Moderator
[Nexus 6P General] XavierD8188:
Thank you for the steps [MENTION=4153349]Heisenberg[/MENTION] but is there a version of this for Mac users? Gonna be my first nexus and I'm a noob at this stuff but I follow instructions very well.
[Nexus 6P General] Heisenberg:
I only create guides for Windows, won't go near a Mac. You can use adb and fastboot on a Mac though, there are guides available online on how to set it up.
[Nexus 6P General] XavierD8188:
ahhh ok. I did setup adb and fastboot from a youtube video so I'm sure there will be a video on how to do it. Thank you.
[Nexus 6P General] Heisenberg:
The commands are essentially the same.
[Nexus 6P General] efrant:
The procedure is pretty much identical on a Mac (and on GNU/Linux). The only difference is you need the Mac versions of fastboot and adb (available the same way) and you preface any fastboot or adb commands with ./

For example:

fastboot oem unlock

becomes:

./fastboot oem unlock
[Nexus 6P General] XavierD8188:
Ok, then shouldn't be too hard. Thank you

Thank you for the tips
[Nexus 6P General] tf2manu994:
Worth pointing out there is no A to C cable in the box, so you will need to buy one to connect to your computer, unless you have type-c on your keyboard.
[Nexus 6P General] TonyHoyle:
You don't actually have to flash the custom recovery, just boot directly into it with fastboot boot. Most people flash, though.

You have to unlock in all cases, of course (subject to hacks being found, but why bother when there's an unlock command?)
[Nexus 6P General] dmarden:
What makes you think that? According to the store page, there is one included.
[Nexus 6P General] Big Cam:
You couldn't be more wrong, it says it right on Googles website, in the box.

What's in the box

Nexus 6P

USB Type-C 15W (5V/3A) charger

USB Type-C to USB Type-C cable

USB Type-C to USB Standard-A plug cable

SIM tool

Safety and Warranty information

Quick start guide

Google Play Music promo card

Link for reference.

https://store.google.com/product/nexus_6p

edit: Don't know how I missed dmardens post, the image wasn't showing up at first.
[Nexus 6P General] tcat007:
Thanks, one last question. I succesfully booted to TWRP. It's asking me to "keep read only", do I hit that button and swipe, or just swipe?

Edit: Couldn't wait, hit the "Keep Read Only" button. Only thing it wouldn't let me do is make a back up. I rebooted, and currently setting up phone. Will try recovery BU again later.
[Nexus 6P General] Aridon:
Swipe. Then format. Then follow the rest of the directions to get SuperSU.
[Nexus 6P General] tcat007:
I hit the button and went straight to main screen (no swipe). I guess I shouldn't have hit the button. "Format" what? (nothing about it in section 3 of OP)
[Nexus 6P General] effraie:
If you read the whole sentence, just after the closing parenthese, the word "data" tell you what to format.
[Nexus 6P General] tcat007:
I assume you're talking section 4 about flashing to get root. Now that I reread that, kind of pointless to "set-up" phone all the way if I lose all data (includes internal memory?). I was talking section 3.
[Nexus 6P General] effraie:
There's nothing to format in section 3, so I assumed you were talking about section 4

---------- Post added at 01:51 AM ---------- Previous post was at 01:49 AM ----------

And, yes, no point to configure if you gonna wipe it all just after. Unless you wanna keep an unrooted backup
[Nexus 6P General] tcat007:
No, can't get past section 3. I rebooted to recovery and tried making back-up, but nothing but error messages (can't mount data" or something like that).
[Nexus 6P General] effraie:
You won't be able to mount data, and have a place to put your backup, until you have removed encryption
[Nexus 6P General] tcat007:
So how to do that? I went through 1-3 successfully. I need to root before I can nandroid back up?
[Nexus 6P General] Heisenberg:
You need to use the wipe menu in TWRP to format the data partition first, TWRP can't decrypt so formatting in order to remove encryption is essential. Sorry about this, I'll edit that section of the guide appropriately.
[Nexus 6P General] tcat007:
Thank you! I think I'm losing it, was that sentence there earlier or did you just add it. That solved my problems, nandroid done. Send me back to newbie school :p
[Nexus 6P General] Heisenberg:
I edited it a few minutes ago, you're not going crazy. That was an oversight on my part, apologies for the hassle it caused you.
[Nexus 6P General] troymz1:
I can't get adb devices to see my phone.

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 you mention. i cant figure out why it doesnt see my device. yes it is unlocked with screen on.
[Nexus 6P General] MCASTILLO:
About recovery

(2. How To Install A Custom Recovery On Your Device

Prerequisites: unlocked bootloader (section 1), modified boot.img (below).

Download TWRP Recovery.

Make sure you check the md5 to verify its integrity (where possible).

Place the file in your fastboot folder (this is where fastboot.exe is located on your PC).

Before flashing TWRP you first need to flash a modified boot.img:

If you're not on the MDB08K build you must update to it first (see section 7 for details on flashing the factory images to update).

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

Extract the zip and place the file in your fastboot folder (this is where fastboot.exe is located on your PC).

Boot into the bootloader and connect it to your PC via usb cable.

Open a command prompt from within your fastboot folder (shift + right click, select open command prompt here), and enter the following commands:

Code:

fastboot flash boot boot.img

Once the flash has finished you can use the volume keys to scroll and power key to select the Reboot Bootloader option.

Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here), enter this command:

Code:

fastboot flash recovery <filename>.img

(The recovery filename in the command will change depending on which recovery you're flashing)

Use the volume keys to scroll and power key to select the Reboot Bootloader option. Once the phone has booted back into the bootloader you can use the volume keys to scroll and the power key to boot into your newly flashed recovery. It's now safe to disconnect your usb cable)....

Hello everyone.

we must to rename recovery file. for recovery.img?
[Nexus 6P General] troymz1:
No you do not need to (although you can) rename the file. whatever file you download as your recovery is the filename you use.
[Nexus 6P General] wirelezzz:
Flashed to stock and used oem lock bootloader but keeps telling fail . bootloader won't lock . qfuse ?

Never mind you have to flash "fastboot flashing lock " fastboot oem lock gave errors
[Nexus 6P General] MCASTILLO:
Are you sure. twrp-2.8.0.7-angler or revovery.img?

the code is

fastboot flash recovery twrp-2.8.0.7-angle.img or

fastboot flash recovery revovery.img
[Nexus 6P General] troymz1:
If youre really worried just rename it.
[Nexus 6P General] Badger50:
Much easier to rename then type all that stuff. twrp.img works for me :)
[Nexus 6P General] tcat007:
Thank you for all the help and instructions! I was going to wait to root, but I just couldn't stand the ads and lack of titanium. Didn't know how much I missed layers and v4a either. My 6p IS better than my n5 now!
[Nexus 6P General] ^tyrant^:
So i just finished doing the update manually, everything went as expected.. Reflashed TWRP and this is a first, its asking for a password to decrypt all the previous updates i have done it has never asked this before..

I can hit cancel and it goes to the main menu..

Any ideas?

EDIT:

TWRP does not seem to be staying after i boot the phone
[Nexus 6P General] Ghstudent:
+1 to this, can someone please tell me what we are doing wrong? i have had to restore my phone like 5 times now and I haven't even had it for 6 hours... I am on Android N (latest dev preview), not sure about other guy.
[Nexus 6P General] Heisenberg:
Are you on MM or Android N?

Did you go to this thread?

http://xdaforums.com/nexus-6p/general/stock-modified-boot-img-regular-root-t3306684

You need a modified boot.img and to be decrypted if you're on Android N.
[Nexus 6P General] Ghstudent:
Yeah, I followed those instructions. I've been going about rooting and boot unlocking for roughly 7-8 years now and this was one of the hardest that I've ever gone through (aside from the OG moto backflip, that was a pain.) You need to update your post for the Android N preview with these instructions in order for the TWRP to stick:

-Flash the custom boot.img

-Flash the TWRP img

-decrypt phone

-reboot bootloader

-from bootloader, go into recovery **DO NOT ALLOW SYSTEM TO START UP AS YOU WILL LOSE TWRP**

-Mount side load

-put your root.zip into the same folder as the fastboot archive

-

adb push root.zip /sdcard/

-flash root.zip from TWRP

Seems like without root the TWRP is unable to stick on Android N, so you have to side load and root before the system is able to revert back. Hope this helps you guys.
[Nexus 6P General] c6z06vette:
EFS back up in TWRP 3.0.2-0

According to the page one procedure in TWRP backup page I'm suppose to check the EFS tab only. The EFS tab (on the left) is not visible. Is is called something else?

Here are all my backup tabs to check:

Boot, System, System Image, Vendor, Vendor Image, Data, Cache

Which one do I select....sorry for such a nube question (in my old TWRP with my LG G2 it had a EFS tab.:D
[Nexus 6P General] Badger50:
Scroll up on the TWRP partitions page, you'll see EFS
[Nexus 6P General] c6z06vette:
Thanks.....got it! I knew it was a nube question.

Thanks for the quick reply:good:
[Nexus 6P General] Badger50:
And just an FYI, you only need to backup system, boot, and data [emoji106]
[Nexus 6P General] Heisenberg:
Unless he's specifically wanting to make an EFS backup, which looks to be the case. Plus, if you have any Layers theme installed you need to backup Vendor as well.
[Nexus 6P General] wilflare:
I'm thinking of resetting my phone - is there anyway to restore my photos without the timestamps being all messed up?
[Nexus 6P General] vassagout:
I received a notification about 2016-07 security patch. (17.7MB). My N6P has unlocked bootlader, twrp and root.

is the step 12 of the OP the correct way to apply it?

is it possible to flash the stock recovery from backup and apply the OTA which is already offered in my phone, and then flash twrp again?

regards.
[Nexus 6P General] SlimSnoopOS:
You can try but it will fail because you have root. It's better to manually update using fastboot.
[Nexus 6P General] jhomarsn:
Hi guys,

I need some help let's me explain:

Right now I'm running cyanogen on my device, but when o try to restore my backup (stock rom) my phone stuck on Google's logo.

You have some instructions for that.
[Nexus 6P General] Heisenberg:
What options did you select when backing up and what options are you selecting to restore?
[Nexus 6P General] jhomarsn:
Hi the first time I select system,vendor,boot and data and doesn't work the second one I only take system,boot and data .