yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] techbeck:
Something didnt root properly. I flashed a diff prerooted ROM and now it works fine.
[Nexus 6P General] Heisenberg:
Which version of SuperSU did you flash? Were you using any other root apps?
[Nexus 6P General] techbeck:
One posted in the OP. I loaded root apps and SU asked for permission and all. Apps were listed in SU as well. So not sure what happened.
[Nexus 6P General] a1exus:
I tried to flash twrp and got this:

mbp:~ alexus$ fastboot flash recovery twrp-2.8.7.2-angler.img
target reported max download size of 494927872 bytes
sending 'recovery' (5 KB)...
OKAY [ 0.037s]
writing 'recovery'...
FAILED (remote: image is not a boot image)
finished. total time: 0.059s
mbp:~ alexus$

please advise
[Nexus 6P General] sirxdroid:
Your download of TWRP is corrupted, it can't be only 5 KB.
[Nexus 6P General] a1exus:
I re-downloaded again, where is official place to check md5 checksum? I cannot find it on Huawei Nexus 6P(

mbp:~ alexus$ md5 ~/Downloads/twrp-2.8.7.2-angler.img
MD5 (/Users/alexus/Downloads/twrp-2.8.7.2-angler.img) = c5d2eecfa70dbdf962a49042493358c6
mbp:~ alexus$

applying "Android Security Patch Level." meanwhile..
[Nexus 6P General] grv00711:
twrp

unlocked bootloader ok,, latest update from google ,,fastboot twrp.. twrp will boot on phone... when i go into recovery mode then fastboot send twrp ?>..did initial backup ..reboot into bootloader try to open recovery in nexus..without computer, android guy, red diamond, no command ? cannot get twrp to open unless i send it from the computer ?//
[Nexus 6P General] sirxdroid:
Not sure where the official md5 is, but yours is correct, it matches mine. Flash away, should work now.

---------- Post added at 09:31 PM ---------- Previous post was at 09:27 PM ----------

If you boot stock ROM without rooting first, stock ROM will reinstall stock recovery. Technically you don't need to flash TWRP, you can simply boot it when you need it without wiping stock recovery:

fastboot boot twrp-2.8.7.2-angler.img
[Nexus 6P General] grv00711:
thank you ! this was causing me some doubt ! once i root twrp will be in place.. got it
[Nexus 6P General] Heisenberg:
I don't think it was a root issue then, not sure what's going on to be honest.

The md5 is correct. Is your adb/fastboot up to date?
[Nexus 6P General] techbeck:
Figured out my issue finally. The modified boot.img from from MrRobinson in the OP did not work. I downloaded the other one and adaway installed no issue. So all is well, for now :)
[Nexus 6P General] sirxdroid:
[MENTION=4153349]Heisenberg[/MENTION] - maybe we should remove the link to the modified M boot.img until [MENTION=3355398]mrRobinson[/MENTION] figures out what's wrong and provides an updated version. This is the 2nd report that something doesn't work with that version.
[Nexus 6P General] Heisenberg:
Yep, done.
[Nexus 6P General] techbeck:
Didnt know there were issues with that one. To many pages to read :)
[Nexus 6P General] L30nZ:
3. How To Decrypt Your Data Partition

This is no longer necessary as long as you use TWRP 2.8.7.1 or newer

Is it still a good thing to do?
[Nexus 6P General] Heisenberg:
It's personal preference. Encryption keeps your data safe.
[Nexus 6P General] MegaHz:
Hi [MENTION=4153349]Heisenberg[/MENTION]

i followed your precious guide (upgraded to K etc etc etc) and rooted my 6p.

today i have received an OTA, which it says that it's 8M.

I've got 3 questions for you.

1. Do you know if this ota includes the L and the M? or i should apply and see?

2. Reading the following quote from your FAQ, at the 3rd step "Apply this update", does this mean that i should reboot and wait for the android to give me the ota?

3. again from your FAQ, the step "Extract and flash the system.img, recovery.img, and boot.img." does it factory resets/wipe user data?

thanks
[Nexus 6P General] Heisenberg:
1. OTA updates occur in sequence so I assume it'll be L.

2. Reboot into Android and let the automated updater do all the work.

3. No.
[Nexus 6P General] MegaHz:
great thanks, after that i should proceed with flashing twrp, and then supersu correct?
[Nexus 6P General] tmulhearn:
Hi all,

Currently having issues trying to get the boot loader unlocked .

I'm on linux, have android debug bridge 1.0.32 and fastboot installed, OEM unlocking enabled in developer settings, updated android studio. Fastboot commands work, adb works, but the command fastboot flashing unlock does not do anything, just returns list of options flashing unlock not being one of them. Have I missed a step ?
[Nexus 6P General] Heisenberg:
How did you install adb/fastboot?
[Nexus 6P General] Heisenberg:
You'll also need to flash the modified boot.img again.
[Nexus 6P General] tmulhearn:
Its been on my machine awhile, pretty sure using sudo apt-get in ubuntu, sudo apt-get install android-tools-adb android-tools-fastboot
[Nexus 6P General] MegaHz:
yes yes that too. thanks. Did you have the chance to play with systemless root?
[Nexus 6P General] Heisenberg:
Ok that's your issue. You need to install it via the SDK. Download this:

http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz

Create a folder called SDK in /home and extract it there. Open the "Android" program, this is the SDK Manager application. Make sure you have the four packages I mention in the OP checked to install/update. Once they're all installed navigate to /home/SDK/platform-tools and right click then select "open terminal here" or "open in terminal", I'm not sure which because I don't use Ubuntu. If neither of those options are available you'll need to open a terminal and manually change to that directory:

cd /home/SDK/platform-tools

Once you're sure you're executing commands from the platform tools directory you can start issuing your fastboot commands. You just need to prefix each command with "./", so the unlock command would be this:

./fastboot flashing unlock

Nah I haven't bothered.
[Nexus 6P General] tmulhearn:
Right ok, will give this a shot when I get home this evening and see how I go. I did not think this step was needed as I already have android studio with platform-tools installed. The only thing I did not do was run the command fastboot flashing unlock from within platform-tools and my fastboot and adb commands are global and work any where in terminal. Thanks for the tip, I'll report back later.
[Nexus 6P General] ridobe:
Well, that's the rub with Linux. We went through this quite a few pages ago. At the time, the distros weren't updated yet. My problem was that I ONLY update with the SDK and it still wasn't working. I have also always kept this folder in my path and never had a problem before. But, for some reason, I still had to precede the command with the ./. Try that first since the package may very well have been updated.
[Nexus 6P General] tmulhearn:
I will def give that a try first, now just need to get this work day over with so I can go home and play with my new shiny toy !! :D
[Nexus 6P General] cahollow:
Ckc90745,

I had the same problem. What I found I had to do was I needed to download the recovery and the boot image at the same time. I first flashed the boot image and THEN flashed the recovery. When you boot TWRP you don't have the option for it to not root really so you have to have the image in there before you run it the first time. If you feel like giving it another try, try this order and let me know how it works for you.
[Nexus 6P General] Born<ICs:
.

You may know this but you need to update the applicable bits of SDK to v23.

.

.
[Nexus 6P General] tmulhearn:
All updated, will be trying ridobe and Heisenberg suggestions later
[Nexus 6P General] psxan8:
I think i finaly got the flash-all.bat command to work when flashing stock . I copied bootloader-angler-angler-xxxx.img, flash-all.bat, flash-all.sh, flash-base.sh, image-angler-mdb08m.zip, radio-angler-angler-02.15.img in \AppData\Local\Android\android-sdk\platform-tools and all of a sudden the script worked.
[Nexus 6P General] XavierD8188:
Having issues flashing the boot image. Says it's complete when I do it but when I go into settings I still see MDB08L and Not the Modded K version
[Nexus 6P General] a1exus:
mbp:Downloads alexus$ fastboot flash recovery twrp-2.8.7.2-angler.img
target reported max download size of 494927872 bytes
sending 'recovery' (16880 KB)...
OKAY [ 0.388s]
writing 'recovery'...
OKAY [ 0.250s]
finished. total time: 0.637s
mbp:Downloads alexus$ adb devices
List of devices attached
8XV5T15A20000560	recovery

mbp:Downloads alexus$

I'm flashed TWRP recovery, however after first reboot whenever I'm try get into recovery, I end up with "Android Recovery" instead.

Am I doing something wrong?

---------- Post added at 12:13 PM ---------- Previous post was at 12:12 PM ----------

I'm also little bit confused about following step:

Do I need to uncheck default selection and just have EFS or I need to check EFS box in addition to default selection?
[Nexus 6P General] efrant:
http://xdaforums.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928/post63741496
[Nexus 6P General] bobby janow:
A couple of posts down from the above link you'll find this too.

http://xdaforums.com/showpost.php?p=63745524&postcount=751
[Nexus 6P General] nowy57:
message when my nexus boot saying "your phone is corupted, lock the bootloader " is very annoying me .

is there any solution to fix it ?
[Nexus 6P General] tmulhearn:
[MENTION=3354333]ridobe[/MENTION] [MENTION=4153349]Heisenberg[/MENTION] .

Didn't need to install anything else in the end . Just needed to be in the platform-tools directory and use ./ before the command. Confusing as i thought my global fastboot commands would work anywhere and kind of do without ./., just not getting the latest commands like fastboot flashing unlock

I've been using linux for years and every time i think I'm getting a handle on it and am feeling like NEO from the MATRIX, it likes to remind me I'm a NOOB. Thanks for the help guys :good:
[Nexus 6P General] efrant:
In order to not be in the platform-tools directory and to not use ./, you need to replace the fastboot file that you have in your path (like in /usr/local/bin/ for example) with the new one.
[Nexus 6P General] tmulhearn:
That actually makes alot of sense, and seems so obvious now that you mentioned it . DOH ;) !! Thanks for the tip
[Nexus 6P General] mrRobinson:
My bad guys. I used the systemless which should be fine seems everyone using the normal one (where I forgot to edit the fstab in the ramdisk, oops). I just edited that post with a re-uploaded image. I tested Adaway works beautifully on it, etc. All good now, resume your normal rooting :good: [MENTION=4153349]Heisenberg[/MENTION] and [MENTION=4966885]sirxdroid[/MENTION] for FYI
[Nexus 6P General] sirxdroid:
I think you will need a custom ROM/kernel not stock. But really, is it that annoying? Do you reboot your phone a lot? Initially while messing with it and setting it up sure we reboot a lot, but once I'm past the honeymoon phase I rarely reboot.
[Nexus 6P General] baddison:
What am I doing wrong? This is still not working for me. I am on UBUNTU, and am sitting in the /SDK/platform-tools directory. But stilll when running the command, I am getting "No such file or directory"
[Nexus 6P General] Heisenberg:
Are you remembering to prefix the command with "./"?

./fastboot flashing unlock
[Nexus 6P General] baddison:
SHOOT!!!! LOL...thanks!! :good::good: we are in business now!!
[Nexus 6P General] tmulhearn:
Heisenberg beat me to it, glad you got it sorted
[Nexus 6P General] mtw4991:
Slight OT, if I have Android Pay set up with a credit card already on stock mdb08M and root, will it still work? Heard it works but can't add any more cards later. Anyone know or test it?
[Nexus 6P General] Heisenberg:
This isn't related to this thread at all, please ask in the q&a thread here:

http://xdaforums.com/nexus-6p/help/qa-noob-friendly-qa-help-thread-t3206934
[Nexus 6P General] mtw4991:
No problem, I can test myself. Btw, great thread! Went with standard SuperSU 2.52 and Mr. Robinsons' modified boot img, no issues at all.
[Nexus 6P General] dark_saint:
Unroot

How do you unroot your phone and return it to stock?

In SuperSU there is an option called "Full Unroot" is that a good option to unroot your phone? or do I use step 9 in your instructions to unroot?
[Nexus 6P General] a1exus:
Step 9
[Nexus 6P General] davidrqli:
Nothing came up on search, so quick question--

I've updated successfully to the latest Android build and verified that I still have root. Previously, I had decrypted my data partition in order to use TWRP, but now that there's encryption support in 2.8.7.2, what would be the easiest way to reenable encryption (and would I lose my user data)?
[Nexus 6P General] toyanucci:
Just wanna thank you for this very thorough and straightforward guide. I've unlocked my bootloader, flashed custom recovery and successfully flashed pure nexus rom and elementx kernel thanks to you and it was simple to do thanks to your detailed instructions.
[Nexus 6P General] Zlatty:
I tried following your instructions to restore the phone back to stock. Now it is stuck on the Google screen. Fastboot does not work any longer, so I'm not sure what to do! Is the device bricked?
[Nexus 6P General] joebrit:
I think it would be worth making it clear on your guide not to swipe yes when twrp offers to install supersu.

I didn't click it as I've been trawling through this thread and apparently it doesn't work without a modified boot image

and pressing it can cause problems, but obviously twrp doesn't say this and it was definitely tempting to press it!
[Nexus 6P General] effraie:
If you have both locally installed sdk (from Google) and system wide installed (from your packages manager), you need to check your $path to determine which one has precedence. By the way, you should choose one way or the other, having both is useless
[Nexus 6P General] skippajack:
I am missing something, adb and fastboot working, downlod twrp , copy to tools folder with adb and fastboot from android sdk.

Bootloader is unlocked, From phone turned on I can ( adb reboot fastboot) and it reboots to fast boot.

Theses are the errors I am getting when trying to flash twrp. " cannot load" , unknown partition.

I have tried with the full file name and changing to just twrp.img fastboot flash recovery twrp.img still a no go for me,, wonder what I am doing wrong or missing a step. Any Ideas?
[Nexus 6P General] ylexot:
+1 I actually did let TWRP install it because I didn't read the entire thread (I did read several pages) and figured, why not? Well, now I know why not after having to go back and flash everything again to get the phone up and running again. Not a huge deal, but it would be nice to warn people (remember, this is for newbies) about this message that will pop up in TWRP.
[Nexus 6P General] gqukyo:
The instructions didn't work for me either. I just did the flash all from the stock images and that worked. You can try that. I did have to wipe the entire device clean though. I don't know why but it wouldn't complete successfully until I did that. YMMV
[Nexus 6P General] Zlatty:
Ugh, thus feeling is the worst. Adb and fastboot seem not to work any longer. Could you be a bit more specific of what you did exactly to restore it to stock. How exactly do you wipe clean. My TWRP is gone from doing the manual flashing. I'm so confused ?
[Nexus 6P General] jrytan:
Help: Can't see my device when running [adb devices]

Thanks for the awesome guide. I am however having a slight issue. I can't get past adb devices. It doesn't return my device serial number neither is there an error. I'm using Windows 7. I'm not sure what I am supposed to do to get it to be able to see my device.

Any advice would be most appreciated! Thanks.
[Nexus 6P General] cmlohff:
I had the same issue. I downloaded the drivers from the link below that has previously been mentioned and this fixed the issue for me.

https://dl-ssl.google.com/android/repository/latest_usb_driver_windows.zip
[Nexus 6P General] cmlohff:
Right click the "android_winusb" file and choose the "Install" option.
[Nexus 6P General] jrytan:
Thanks! Didn't work for me though. It kept saying "The INF file you selected does not support this method of installation"

However, I managed to find this link which solved my problem!

"developer.android.com/tools/extras/oem-usb.html#Win7"

Had to do this cuz I'm too new and XDA doesn't allow me to post urls

Fingers crossed that my root works now. :)
[Nexus 6P General] techbeck:
Crap happens...no worries.

---------- Post added at 05:36 AM ---------- Previous post was at 05:34 AM ----------

If you are stuck at the Google screen, just hold the power button until the screen goes black. Then press volume down and power. Phone should load the bootloader.
[Nexus 6P General] sirxdroid:
Who wants to try the new modified M and report back? :)
[Nexus 6P General] Heisenberg:
Encryption shouldn't wipe your data, it'll encrypt what's already there. It may take some time if you have a fair bit of data.

That's a good idea, I'll add that.

Have you tried putting the phone in PTP mode?

It seems odd that fastboot wouldn't be working anymore, what have you done to troubleshoot this so far?
[Nexus 6P General] jrytan:
Yes I did. But I think it was just my computer being stupid. It seems that I had to point out to Windows manually where the google usb drivers were, which was one of the 4 packages you said needed to be downloaded.

I have completed steps 1 to 4 of your guide. :good:@Heisenberg

Device now rooted. No issues thus far. Looking forward to Xposed release for Marshmallow. Apparently its gonna be this week!
[Nexus 6P General] Zlatty:
I can get to the bootloader, but ADB and FASTBOOT no longer work. They did prior to me following the "Restore to Stock" method in the original post. Like right now I am sitting at the android guy and no matter what OS (X or Windows) I can't use fastboot.

---------- Post added at 01:25 AM ---------- Previous post was at 01:24 AM ----------

Besides yelling at it and trying to pull out my nonexistant hair? I tried to set up a VM on my machine and start from scratch since what I have on my Windows 7 machine does not seem to be working.
[Nexus 6P General] Heisenberg:
Hmm, very puzzling.

1. Have you tried uninstalling and reinstalling the drivers?

2. Are you sure you entered every command in my guide?

3. Did you check the md5 of the file after downloading it?

4. Which build did you flash?

5. What is your bootloader version?

I've flashed the factory images manually a few times now and haven't had any problems.
[Nexus 6P General] Zlatty:
First off. Thank you for your assistance.

1 - I just installed SDK tools and everything else on a Windows 8 VM.

2 - yes, I'll follow it again

3 - no - the files extracted did not give errors

4 - K build - which one should I be on?

5 - I don't know how to get this...

Right now I have fastboot working in the VM and am going to repeat your restore steps. What build should I flash?
[Nexus 6P General] farbods0:
Im trying to flash the bootable image file from this guide yet they dont have my build number MDB08L. Am i supposed to use an alternative or do I wait till they release it?
[Nexus 6P General] Heisenberg:
It's probably best to update to the latest M build. At least you have fastboot working now, it's virtually impossible to brick a Nexus unless you flash something to the bootloader partition that isn't actually a bootloader image. You can find out your bootloader version by looking at the text in the bottom-left corner of the bootloader screen (it's the top line).

You could start by reading the instructions, or the FAQ section in the second post...
[Nexus 6P General] Zlatty:
Ok I followed the official instructions in original post with the build ending in M and everything worked out. I am trying to set up the phone right now. Need to get that root and tethering working!
[Nexus 6P General] Heisenberg:
Great news, very glad to see you got it all sorted.
[Nexus 6P General] skippajack:
This is what happens every time I try to flash twrp, I have all drivers working fine and I have made sure it is a good download on twrp but can't cannot load message, anybody know what I am doing wrong, bootloader is unlocked, hahaha, thanks
[Nexus 6P General] justbabu:
Are you missing the extension .img?

Sent from my Nexus 6P
[Nexus 6P General] Heisenberg:
Looks like you're missing the file extension (.img) at the end of the command.
[Nexus 6P General] Zlatty:
I got it all figured out. The trick is not to use OSX for this stuff and just use a VM since the SDK game is on point there. Now, how do I go about enabling tethering?
[Nexus 6P General] combat goofwing:
I unlocked my bootloader and other than flashing the latest software to take me from 89k to 80m ,everything held is the same ,no root or custom recovery.I take it I should receive OTA updates as normal
[Nexus 6P General] skippajack:
Yeah,you won't have any problems gtting ota's with just the bootloader unlocked.

I am going to stick my sim in my moto x style and relock my bootloader and start fresh and I bet it is going work like a charm, even though I added .img to the end of file it still gave me cannot load error.

Can't hurt to start from scratch since once I get recovery I am going to flash CHROMA,, yee haa!
[Nexus 6P General] Heisenberg:
Or you could just ditch that awful OS altogether and get on the Linux train :p

Isn't tethering built in? See screenshot.

Yeah you'll be fine to receive and apply updates as long as you have no modifications to /system.
[Nexus 6P General] skippajack:
Still can't get twrp to flash,never had this problem with any of my other nexus device's. I am kinda stumped, my environment is good,drivers all working fine. Have redownloaded the file multiple times to make sure it is good. Tried it with full twrp-2.8.7.2-angler.img and also renamed to just twrp.img and still no go. I relocked and unlocked bootloader so was starting fresh and still can't get the file to flash.

Anyone with any other ideas I am all ears and eyes, hahaha
[Nexus 6P General] Ok_Kaleidoscope5109:
Ok, am I just being stupid? I do "fastboot flash recovery twrp-blahblahblah.img" and I can reboot into TWRP recovery. However after I reboot into my ROM and do whatever I want, and I try to go back to Bootloader => Recovery, I get the red dead android with an exclamation. It seems like the stock recovery is overwriting TWRP? What's going on?
[Nexus 6P General] sacredsoul:
Quick question. What's the process to get root and ElementalX? Flash the modified boot.img for root and then ElementalX?
[Nexus 6P General] Heisenberg:
You have file extensions turned off in Windows Explorer, and because of this the extension you've put on the end of the filename is actually still part of the filename. If you turn file extensions on in the settings you'll see that the recovery file is named as so:

I'd suggest leaving file extensions turned on, remove the extra ".img" from the filename, and flash again.
[Nexus 6P General] Heisenberg:
1. Unlock bootloader

2. Flash TWRP (with fastboot)

3. Flash modified boot.img (with fastboot)

4. Flash SuperSU (with TWRP)

5. Flash Elemental (with TWRP)
[Nexus 6P General] sacredsoul:
So on a brand new 6P, the process to have a rooted cutom rom with custom kernal should be...

Unlock bootloader - Fastboot

Flash recovery - Fastboot

Flash custom rom & gapps - Recovery

Flash modified boot.img - Fastboot

Flash SuperSU - Recovery

Flash ElementalX kernel - Recovery

Is this right?
[Nexus 6P General] Heisenberg:
If you're wanting to install a custom ROM you shoultn't need to flash the modified boot.img because the ROM will include it. So it'd be:

Unlock bootloader - Fastboot

Flash recovery - Fastboot

Flash custom rom & gapps - Recovery

Flash SuperSU - Recovery

Flash ElementalX kernel - Recovery
[Nexus 6P General] skippajack:
Thanks Brah! That was it,, I am now ready to rock my new nexus! Thanks again
[Nexus 6P General] Heisenberg:
No worries, glad to help, it's always something simple yet not overly obvious that trips us up.
[Nexus 6P General] cturbos:
Heisenberg

Thank you for your work,I keep getting the SU update and when I try to update,always fails?I know I have root because I changed the Fonts on my device.Any ideas?

Thank you

Nexus 6 P

MDB08L
[Nexus 6P General] Heisenberg:
What update do you mean?