yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] thloe:
Hello Heisenberg!

Thank you, have rooted my N6p yesterday with your instructions - great work!!!

I´ve a question about flashing custom roms. When i flash a new rom or update a custom rom it´s necessary to unlock/remove PIN, fingerprint or else? Or it´s just for the first flashing/rooting to remove this?

Thanks for your answer in advanced!

Greetings
[Nexus 6P General] Heisenberg:
It isn't necessary to remove security prior to flashing a ROM. It's only been necessary to do do prior to making a backup, but I believe the newest build of TWRP has fixed that issue so it might not be necessary at all anymore.
[Nexus 6P General] Badger50:
It is still necessary to remove your finger print, and/or your pin or pattern security before making/restoring a backup. Many of us have tried with the new TWRP. Just an FYI :)
[Nexus 6P General] Heisenberg:
Hmm, I could have sworn I'd seen people having success with it in the TWRP thread.
[Nexus 6P General] Badger50:
Initially we did. I was one of them. However, after a reboot, it no longer worked.
[Nexus 6P General] Heisenberg:
That's a shame, thanks for the info.
[Nexus 6P General] ridobe:
Something has to be different for me. While I haven't restored with 3.0.0 yet, I never had a problem with the prior version. I probably restored 4 or 5 times. Stock rom, leankernel, rooted, pin + fingerprint.
[Nexus 6P General] Dr.DL:
Heisenberg , just to be sure:

well, I previously unlocked my 6P's bootloader and flashed TWRP+CM13

if I wanted to restore the device to factory status *with locked bootloader*

I should do as follow:

1-Formatting *system, data ,cache...etc* through TWRP advanced wipe.

2- Installing stock Google rom latest edition.

3.booting into system and checking that there's no boot loop or other issues and that the device is functional.

4.Locking the bootloader.

correct?
[Nexus 6P General] Heisenberg:
1. You need only wipe data with TWRP.

2. Yes.

3. Yes.

4. I never advise someone to lock the bootloader, you need it unlocked to flash of something goes wrong in future. Unless you're selling the device.
[Nexus 6P General] jpizle:
Hi there just got my 6P today I've set up SDK and JDK just like the prerequisites in the op. ADB works while the phone is on but when i get into the bootloader screen it doesn't seem to recognize the phone anymore. ie. I can use adb reboot bootloader command but when I get to the bootloader screen the fastboot devices command doesn't show anything. I'm fairly new to nexus coming from the Samsung family any thoughts on this would greatly appreciated. Sorry if this was covered theres just a whole lot of posts to go through.
[Nexus 6P General] Heisenberg:
If you still have any Samsung drivers on your PC remove those and reboot the PC, try fastboot again. You might also need to put the phone into PTP mode while connected for fastboot to work (connect phone, pull down notification bar, tap on connection type and select PTP). I vaguely remember that helping with fastboot.
[Nexus 6P General] jpizle:
Stupid question where would I find the Sammy drivers on my pc? I cringed having to ask that.

---------- Post added at 06:01 AM ---------- Previous post was at 05:30 AM ----------

Thanks for the help, still can't get it to work but I'll not give up.
[Nexus 6P General] Heisenberg:
Windows key + X them then select device manager.
[Nexus 6P General] jpizle:
Am I just looking for Samsung? Can't find anything.
[Nexus 6P General] Heisenberg:
Yeah it's usually called Samsung usb driver or something along those lines. Can you see anything related to Android apart from the Google drivers from the SDK? Did you try putting the phone into PTP mode?
[Nexus 6P General] jpizle:
Yes I tried ptp, still a no go. I just don't understand how it can work until I get into boot loader then it doesn't recognize that it's connected.
[Nexus 6P General] Dr.DL:
I'm facing serious problem, bootloop, I flashed the stock rom, then rebooted to find myself stuck at bootloop, I deleted my data and repeated stock rom flashing few times , but still, boot looping

I did almost everything comes to my mind, but still ineffective, now I flashed TWRP recovery again and went to CM 13, till I find some kind of solution.

Pure nexus is also working

Please help, what should I do?
[Nexus 6P General] Tommebaas:
I'm facing the exact same problem. I have adb installed and it detects my 6P.

But it looks like it's loosing the connection when the phone is in the bootloader.

adb devices: none.
[Nexus 6P General] Heisenberg:
You are trying "fastboot devices" and not "adb devices", right?

Which build are you flashing? Are you flashing all of the images?

The adb devices command won't work while connected in the bootloader, it never will because it isn't meant to. Only fastboot commands work while in fastboot mode.
[Nexus 6P General] jpizle:
I'm only using fastboot devices command in boot loader. This is what I do "adb reboot bootloader" *boots to bootloader* "fastboot devices" *new command line pops up with no devices listed
[Nexus 6P General] Heisenberg:
Driver problems like this can be a real pain in the butt. I can only suggest you uninstall the drivers, reboot your PC, install them again, reboot your PC, and try again.

PS. When replying to someone on XDA please use the quote feature by clicking the reply button on the post you're replying to. That way the conversation can be easier to follow, especially in a thread with multiple people posting. Plus, the person you're talking to will be notified if you quote them in this way.
[Nexus 6P General] jpizle:
[MENTION=4153349]Heisenberg[/MENTION] I found ask the Samsung drivers and got rid of them. Do u think I should uninstall the nexus 6p drivers and sdk and do the whole thing again?
[Nexus 6P General] Tommebaas:
Thanks a lot! Everything worked and I flashed the latest february patch and I locked my bootloader.

:)
[Nexus 6P General] Heisenberg:
It's worth a try.

Just be aware that with a locked bootloader you won't be able to flash the next update, or get out of trouble if it arises in future. If you somehow get into a boot loop you'll be forced to unlock it again to flash, which will wipe your data that you most likely won't have access to to backup first.
[Nexus 6P General] Tommebaas:
But I can install OTA's right?

I'm not planning on rooting and I just want the latest updates.
[Nexus 6P General] Heisenberg:
You can install OTA's as long as you're not modified (excluding the bootloader). I still believe it's best to have your bootloader unlocked just in case, you'll regret locking it if you ever run into trouble. There's really very little advantage to having it locked.
[Nexus 6P General] nolander99:
help with root

I'm having trouble booting into my OS. It is stuck in "Google" boot screen

Using your guide I was able to do the following...

1. Unlock bootloader

2. Install TWRP Recovery

3. somehow I managed to skip the decrypt data partition

4. I made a nandroid backup with TWRP recovery as well as EFS backup

5. I used systemless root

From this point I was able to boot into the OS, and I was getting ready to download a ROM. but I forgot to put the ROM onto the SD card in the phone

I went back into TWRP and I saw that I forgot to decrypt data partition and I mistakenly decrypted data partition at this point which deleted my backup.

Now I only have an unlocked bootloader and TWRP Recovery, but no OS and no backup. What are my options ? :crying:
[Nexus 6P General] mbutandola:
Except if you get your phone stolen ;)

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] Heisenberg:
If you go into the mount section in TWRP and turn on MTP you can connect it to your PC and transfer a ROM zip across. Or you can flash the factory images to get it booting again.

That's true, but I firmly believe that anyone who has their phone stolen simply isn't taking great enough care of the device that they paid hundreds of dollars for. Phones pretty much only get stolen of the owner allows it to happen by being careless, most of the time anyway.
[Nexus 6P General] nolander99:
I enabled MTP and my windows 8 machine doesn't see my phone. Thanks.

Should I try to flash stock image using ADP ? as described in section 11 of your guide.
[Nexus 6P General] Heisenberg:
Yes that's your other option if MTP isn't working.
[Nexus 6P General] nolander99:
I flashed stock image per your instructions and it worked. Starting over root process...

Thanks! You're the BEST !!
[Nexus 6P General] Dr.DL:
Followed your instructions, flashed all .img with exception of userdata image.

I noticed something during flashing process, when I give the flashing orders *copied from your instructions*, adb continues flashing all of the images spontaneously, until reaching vendor image, it stops, and shows me

"fastboot flash vendor C:\angler\images\vendor.img" , so I press "enter" and it continues without any problems.

The builds I tested :

- angler-mmb29p-factory-25ed9560 *tested few weeks earlier and it's 100% functional*

- angler-mmb29q-factory-239acdde

................................................

Btw, I'm coming from CM 13. lately it keeps show's me "There's an internal problem with your device. Contact your manufacturer for details."

Solved by this http://goo.gl/F5V8f7

.............................................

After failure of stock installation, I flashed CM13 again and it's functional, then flashed pure nexus, and it's 100% functional.

With pure nexus, even the red triangle *corrupted device* had disappeared.

..............................

Sorry for long comment.
[Nexus 6P General] Heisenberg:
I'm not sure why but it looks as though you've used the flash-all.bat file found within the factory images, that can be the only explanation for the images flashing spontaneously. As for why you keep getting corruption messages I really don't know. Did I suggest for you to wipe data in TWRP first? If not I'd definitely do that, and then flash the factory images again. If you've already done that I can only really suggest you wipe everything (system, data, cache, dalvik cache) in TWRP, then flash the images again, including a format of the userdata partition.
[Nexus 6P General] Dr.DL:
I did wipe everything through TWRP and used "fastboot format userdata"

But no benefit.

My question is why I can use custome rom e.g. pure nexus, but I can't use stock rom?

As regarding corruption massage with red triagnle, it disappeared once I installed pure nexus. " I think it's a feature in the pure nexus rom"

Regarding formating userdata partition, how I can do it? My device is 64 GB.
[Nexus 6P General] Heisenberg:
Formatting userdata partition is achieved via the "fastboot format userdata" command, which it looks like you've already done. It's very difficult for me to know what's going on remotely because it's virtually impossible for me to have every exact piece of information. Is this corruption message appearing while you're 100% stock? As in prior to installing TWRP again? Or is it appearing after installing TWRP?
[Nexus 6P General] Dr.DL:
Persist throughout entire process.

Never disappears whether TWRP is installed or not.
[Nexus 6P General] Heisenberg:
TheThere has to be something that you're missing or getting wrong, I just don't know what it is unfortunately.
[Nexus 6P General] Dr.DL:
I wish I can know what's wrong.

I'd been in the space of rooting for about 3 years, but now I don't know what to do.

I'll try later on, again, pure nexus is quite good rom, gonna stick with it for a while.

Thank for your epic post and support.

Best Regards.
[Nexus 6P General] sgskale:
did not work for me.

nexus 6p angler, twrp, latest cm 13 nightly from the 12th feb, the message "Ther's an internal problem with your device..." is still there

Послато са Nexus 6P уз помоћ Тапатока
[Nexus 6P General] Dr.DL:
Worked for few times with me.

TWRP : twrp-2.8.7.2-angler

The only advice I can give, is to try another rom.
[Nexus 6P General] jpizle:
[MENTION=4153349]Heisenberg[/MENTION] just tried the fastboot devices again on a different computer, same results. the phone while in bootloader says insert usb like its not even detecting its pluged in. im about to pull my hair out. lol i guess i should have stayed with samsung
[Nexus 6P General] eduardmc:
I have a problem I just tried to root now, got everything right, installed twrp 3.0 it goes in, into twrp. but if I boot into the marshmallow. turn off the phone, turn on to go back to recovery it show no recovery ( shows the adroid with red triangle "no command") so my recovery twrp is not sticking, in order for me to use it again I have to flash it, but everytime I reboot I have no recovery..
[Nexus 6P General] ellnic:
[MENTION=5610577]jpizle[/MENTION] - I had the same issue with my 6p, couldn't get it seen for more than one devices query in either fastboot or not. It seems there is an issue with the Google driver in some cases, because the drivers from here: http://www.koushikdutta.com/post/universal-adb-driver solved it for me.
[Nexus 6P General] fergdizzle9090:
Cannot get fastboot devices to recognize my device in windows 10

adb devices finds it but not fastboot devices

any ideas? adb works fine, device works fine with windows explorer, using the google usb driver from sdk manager.exe, using the small cable it came with
[Nexus 6P General] Heisenberg:
The "connect usb cable" message never changes, that's normal on this phone for some reason. Try the drivers that the other guy who tagged you mentioned.

Are you allowing TWRP to modify system or keeping it read-only?

Try the drivers that the guy above you mentioned.
[Nexus 6P General] fergdizzle9090:
EDIT: I know it is sometimes frowned upon to use toolkits but this worked for me

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

Still didnt work.. I have done a lot of rooting before and have no idea why fastboot wouldt be working? only thing i can think of is driver issues.

Thoughts anyone?
[Nexus 6P General] TechMillz93:
MMB29Q images apk keeps failing on me anyone have an updated version that will download?
[Nexus 6P General] A_N_D_R_E:
Encryption pop-up.?

I keep seeing an "encrypt phone" window pop-up randomly while I'm using the phone. Flashes up briefly and disappears.

Stock systemless root, TWRP 3.0.0, Xposed + Rootcloak.

Settings menu shows that the phone is encrypted.

I use corporate email client (Citrix Worxmail) that tries to force encryption and it's saying that my phone is not encrypted.

Any thoughts?
[Nexus 6P General] Heisenberg:
Apk?
[Nexus 6P General] Einwod:
Could it possibly be USB 3.0 is the problem? I tried tonight on a new laptop and had the same problem. ADB recognised the phone but fastboot not. Gave up and will have to wait to try USB 2.0.
[Nexus 6P General] TechMillz93:
I mean the build to flash the images. Q keeps failing on me
[Nexus 6P General] fergdizzle9090:
nope im on usb 2. i couldnt get it to work with the official android platform apps. I used the tool i mentioned in that post and it worked, but it says you shouldnt in the main post... :/
[Nexus 6P General] Heisenberg:
I usually have mirrors in my index. I haven't uploaded my mirror for Q yet but there's one here:

https://www.mediafire.com/folder/zyg63bsr5h8fc/MMB29Q_(6.0.1

I haven't downloaded it yet myself so I can't verify whether it's untouched or not, but if you download you can check the MD5 to verify that yourself:

MD5: bc44a06770f886c6896daecef2bd7d77
[Nexus 6P General] SlimSnoopOS:
Turn off zip verification in TWRP.
[Nexus 6P General] jordanwillis:
I'm looking for a little confirmation here. Would I follow the instructions for #10 every single month to get the latest monthly security updates since I won't be able to install them OTA? Is this standard practice or do you guys wait a few months before flashing the latest stock ROM?

By the way, thanks for the great guide. This was my first time rooting and everything worked flawlessly.
[Nexus 6P General] Heisenberg:
Yes, if the security updates are important to you that's what you need to do.
[Nexus 6P General] chrsada:
If you only unlock bootloader, but using stock ROM, the monthly security update will work. Everything must be stock, including recovery. So if you have TWRP, then flash stock recovery > apply OTA > re-flash TWRP.
[Nexus 6P General] Heisenberg:
I'm 99% sure he's rooted.
[Nexus 6P General] Heisenberg:
No, root has never been required to flash ROMs. There's no real systemless root anymore, and no point to leaving TWRP as read-only, so I'd just allow it to modify system. But in answer to your question, whether it's read-only or modifying system has absolutely no bearing on your ability to flash a ROM.
[Nexus 6P General] sgskale:
that is the solution, bravo and thank you, it did a job and there is no more annoying message!

thjs is reply to #2716 message of SlimSnoopOS

Послато са Nexus 6P уз помоћ Тапатока
[Nexus 6P General] brichardson1991:
So if systemless root is pointless, what do i do to take the latest security patch and yet still have root and xposed ?

Looking more and more hassle to stay stock with root now. Might have to do custom rom, which is what i was hoping to avoid.
[Nexus 6P General] Heisenberg:
Flash the factory images as normal, then add root and mods.
[Nexus 6P General] brichardson1991:
Root using the systemless then convert to system root? then add whatever else?
[Nexus 6P General] rusty-ragster:
fastboot no device found/waiting for device fix

after days of pulling my hair out i found out that fastboot and adb use different drivers..

*Whilst you may see your device under adb when your phone is on it will not be detected by fastboot until you install the driver for it and hence will show "waiting for device".

You can follow the steps below to do so:

Open your device manager and reboot your device into fast boot by pressing volume up, down and power button simultaneously

You will notice that device manager refreshes and now your phone has a yellow icon

Download the Google USB driver, it is a zip file so go ahead and unzip it in your local directory

Right click on the yellow triangle for your device and update driver, select the option update from local storage and select the folder "usb_driver" under extracted files in previous step

You are good to go now, fastboot oem unlock will detect the device now* copied from android stack exchange

link for google usb driver http://developer.android.com/sdk/win-usb.html#top
[Nexus 6P General] rusty-ragster:
i did the system root before reading your comment lol...how do i get twrp to stick now? the option does not appear for me now when i flash twrp..and for converting to normal root should i just use the terminal emulator procedure prescribed in the thread?
[Nexus 6P General] Heisenberg:
Just use systemless root, there's no need to convert as systemless has become like traditional root anyway.

See my reply above about systemless/traditional. As for getting the prompt to appear, I'm not sure.
[Nexus 6P General] ^tyrant^:
ever since the latest updates, i have noticed that my signal says H instead of LTE most of the time.. anyone else having similar issues?
[Nexus 6P General] lrcquest:
having problems with call reception on latest radio. Is it ok to flash the radio from previous version as img in twrp? Is this anything to do with bootloader?
[Nexus 6P General] HerrT:
I've seen this after flashing, too. But it is working fine now since the day after flashing (and rebooting). So I'm not sure if this is really related...
[Nexus 6P General] ^tyrant^:
ive rebooted many times since i did the latest updates.. it doesnt seem to affect my calls, just my internet at times is horrible when im on carrier ... but then again it could have always been doing this and i just now noticed.
[Nexus 6P General] Royalbaecker:
Thank you!!!
[Nexus 6P General] madrascafe:
select the "Android" device in "Device Manager" & change the drive to LG Android USB , it will work.
[Nexus 6P General] TinyNumNum:
Help !

Hey dude i have an hardware issue and i would like to go back to full stock like when it was fresh and new. Is it possible ? is it Hard ?
[Nexus 6P General] NPOA556:
Read the first few posts by Heisenberg. They will tell you everything you need to know. If you run into a problem or have a specific question, post back here and someone will help you out. But until you make an effort to read and follow the awesome instructions already prepared by Heisenberg, you're not going to get much help.

I see that this is your first post on XDA. I suggest you read the forum rules to get a sense for how this place works. There are many incredibly smart and helpful people on XDA, but most will not help you until you try to help yourself first.
[Nexus 6P General] The Tech Xperts:
Lmao. Im always late to the party. Just got my 6p, and love it bone stock. But came here to thank the OP. Heisenberg what an amazing and totally complete write up. I was worried there would be no root, but I see you all have been very busy since it seems like day one. Thank you so much for this, and this is the reason why XDA is the greatest forum on earth!
[Nexus 6P General] Heisenberg:
Thanks for your kind words, greatly appreciated!
[Nexus 6P General] The Tech Xperts:
Deleted due to my ignorance.
[Nexus 6P General] Heisenberg:
That's a real shame. Altering the IMEI is illegal whether it's carrier locked or not, this is pretty standard worldwide as far as I know. Even if it wasn't illegal, trying to use a phone that you know is stolen definitely is. Anyway, discussing the alteration of an IMEI is strictly forbidden on XDA (because of its illegality) so you can't request help with that, and nobody can offer to help. And secondly, selling and trading is forbidden too, so you can't offer to pay someone for anything here. I really think the only course of action for you at the moment is to contact Google and/or the local authorities, anything else you decide to do is illegal.
[Nexus 6P General] lrcquest:
Flashed back to latest stock rom (angler-mmb29q-factory-239acdde) but the issue is still persisting. Has anyone else faced this issue? Also, can i use the older radio alone on newer build? if so, is it ok to go with the radio from (mmb29m) ? Usual flashing thru fastboot will be ok?
[Nexus 6P General] onyez:
Heisenberg, I've got a question. If I unroot and flash back to stock recovery can I take OTA updates?
[Nexus 6P General] Heisenberg:
I haven't tried flashing older radios but in theory it should be ok.

As long as you have no modifications (bootloader excluded), yes.
[Nexus 6P General] Az Biker:
I flashed the 2.15 radio over the latest 2.50 radio and my reception is much better (I'm on Verizon). Flashing radio in fastboot super easy.

...from my NexsixP
[Nexus 6P General] frank060272:
Can someone help me out, i would like to root and thre is a file i need one of these:

"Download the appropriate modified boot.img for your current build below:

MDB08K (post #1)

Compatibility: MDB08K, MDB08L, MDB08M

MDB08M

Compatibility: MDB08M

MMB29N

Compatibility: MMB29N

MMB29M

Compatibility: MMB29M"

I have a MMB29Q which is not listed, which one can i use?
[Nexus 6P General] subhjvlz:
Exactly same question/problem
[Nexus 6P General] Badger50:
You don't need any file at all. Tout on the latest stock build. So just follow the instructions in the OP to unlock the bootloader, root, recovery...etc..etc and you'll be good to go :)
[Nexus 6P General] subhjvlz:
Needed.... Some ppl want system root
[Nexus 6P General] Badger50:
Why? There's no benefit to it anymore with the changes that Chainfire has made to systemless root. However, I'm sure you can find su 2.52 out there :)
[Nexus 6P General] SlimSnoopOS:
See here: http://xdaforums.com/showthread.php?t=3306684

Modified MMB29Q boot.img to allow system root on stock.
[Nexus 6P General] gadget069:
So just to double check as things have changed since the last time I looked at rooting my Nexus.

Unlock Bootloader

Install TWRP

No need to decrypt, using TWRP 3.0.0

Do a nandroid and backup efs

Use systemless root method, copy supersu reboot to twrp and install, no modified boot.img needed.

Thanks
[Nexus 6P General] Heisenberg:
There's no benefit to using traditional root. The newest systemless root gives you what is for all intents and purposes a traditional root anyway. Just flash the latest SuperSU beta.
[Nexus 6P General] Heisenberg:
Correct.