yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] dlads:
Ran through this "10. How To Flash The Factory Images (And Return To Stock)" to return to stock (selling the phone)

The system.img wouldn't flash, unable to allocate, so used skipsofts tool to flash the image which was a success, the phone does attempt to boot, gets to the logo animation but won't go any further than that.

Other than using skipsoft for the system.img i followed the guide to the letter.

Any ideas?

Used skipsofts tool to flash the files i downloaded from this guide.

Went through on the first try :) anyone having issues i'd recommend his toolkit, even though my device wasn't listed, i chose the last one ending in Q, which appeared to be the closest i could find, then select option 11, then follow this guide.

You would need to put the pulled image files into the folder that says put image files here :)

Thanks for this [MENTION=6555069]Heisenburg[/MENTION] don't have any thanks at the moment, but will come back once i do, cheers.
[Nexus 6P General] Empty Hand:
It seems the answer is no, but is there a way to systemless root Preview 3 without decrypting or formatting userdata (and therefore without TWRP)?
[Nexus 6P General] Big Cam:
I tried this and I got the error that my system has been modified, the only thing I could think of was ada away, but even after changing that back, it didn't work.

So I think I'll go back to what I know (kind of) and flash the whole thing via step #9.
[Nexus 6P General] Jammol:
I have a bit of a stupid question I guess.

No.4 on the FAQ.

Can the bootloader be relocked, and if so, will it remove traces of it ever being unlocked in the first place? I'm asking because the wording for number 4 is slightly off on the last sentence.
[Nexus 6P General] Heisenberg:
Yes it can be relocked, the relock command is mentioned a few times in the guide:

fastboot flashing lock

Whether or not Google can tell whether it's been unlocked is unknown, but this doesn't matter because unlocking/rooting/flashing don't affect your warranty with Google.
[Nexus 6P General] Jammol:
Perfect. I knew it could be unlocked but wasn't sure on the policies or tracking of it (or lack of). Been a Samsung guy for a while up until now again, and they now have permanent Knox tripping.

Thank you for a clear answer.

Final question...

Is there really a need to relock to get ota? Wouldn't the functions (patches) just be integrated into most of the custom Roms available?

I've been doing some reading but don't really see anything mentioned of security patches being present or missing from custom Roms.

Please forgive my noobish questions.
[Nexus 6P General] Heisenberg:
Nah, Google are nothing like Samsung. This device is a development phone first and foremost, it's meant to be tinkered with.

You definitely don't need to relock the bootloader to take any OTA, you should actually leave your bootloader unlocked at all times, it's the only thing that'll save you if an update (or something else) goes wrong.

The security patches are included in all custom ROMs that I know of. I run Pure Nexus on my phone, and a few days after each monthly security patch comes out the ROM is updated to include all that new stuff.

Any questions are welcome here, no matter how noobish you think they might be.
[Nexus 6P General] Jammol:
Ah I see. It's been quite a while since I've danced with a Nexus. Lol

It's settled then, bootloader is definitely getting unlocked when it gets here, but I'll run it full stock for a day or two first though just for heck of it.

Thanks again for answering my questions. Definitely a great thread to have.
[Nexus 6P General] Heisenberg:
No worries, any time :good:
[Nexus 6P General] jodvova:
Where do I find systemless root for Preview 3 ? Or do I just flash supersu v2.74 and that's it ?
[Nexus 6P General] SlimSnoopOS:
Just flash SuperSU 2.74.
[Nexus 6P General] mrjoeyloke:
So I've checked in device manager and through sdk manager and they both say I'm up to date on drivers yet fastboot devices turns up nothing. Have developer options portion checked as well. Any idea why it won't turn up the serial number?
[Nexus 6P General] mocsab:
I have been looking for a guide to install TWRP on the Latest ANdroid N Beta - I tried installing 3.02 in the traditional way and twrp froze on splash screen - couldn't get past that - I have been able to root using CF Auto Root - but no luck with TWRP - any help is greatly appreciated. I googled everythign I could think of and couild not find a step by step guide - is it not possible at this time?
[Nexus 6P General] Einwod:
You are on the bootloader screen, aren't you? Fastboot devices only works from that screen, otherwise it's ADB devices when in the OS.
[Nexus 6P General] jesssiii:
Make sure to unlock before adding any custom ringtones or pics to the phone, as unlocking wipes internal storage.
[Nexus 6P General] Jammol:
Thank you for the heads up!!! I honestly didn't even think about that. I do have an otg setup I was using on the Note 5 so that should hold me over for any errors.?
[Nexus 6P General] cubarican84:
Went from MM to N via OTA update. Can't get TWRP to work. Is it compatible yet?
[Nexus 6P General] SlimSnoopOS:
Nope. You have to decrypt.

1) installing modified N boot.img via fastboot

2) wiping internal storage or use fastboot format userdata

3) now you can boot into TWRP and do what you need
[Nexus 6P General] tarroyo:
When flashing radio/baseband img files in TWRP, which partition do I flash them to?
[Nexus 6P General] nathanchance:
You can't flash radio images in TWRP, it must be done via fastboot.
[Nexus 6P General] byproxy:
not a huge deal... i realized what was happening once i encountered the problem and easily resolved, but i thought i'd share.

i had switched to N for a bit but too many of my programs that i use daily weren't working 100% so i decided to go back to MM. i figured i'd do a clean install while i was at it (i like to do that every so often).

anyway, while i know basically everything to do pretty well, i do always refer to the OP's instructions (which are awesome). however, i noticed what i think is an error in one of them on my most recent install. probably happened after an edit to update instructions to accommodate installs of N. anyway, this instruction:

isn't quite accurate in that it makes it sound like you don't need a modified boot.img if you're in MM. but i'm pretty sure you DO need the modified boot.img in order to install TWRP regardless of if you're installing MM or N. at least i think you do cuz i went ahead and tried installing TWRP without the modified boot.img on MM and was unsuccessful (it installed, but would not boot). after i reinstalled everything using the appropriate modified boot.img, twrp worked just fine.

anyway, not trying to talk trash or anything. the instructions are solid and very much appreciated. just thought i'd share. perhaps i'm wrong and just did something wrong.
[Nexus 6P General] Heisenberg:
You definitely don't need a modified boot.img for TWRP to work with MM, haven't needed that for months. What version of TWRP did you flash?
[Nexus 6P General] Jammol:
Stock rooted up and running!!! Thank you for the wonderful guides sir. Was absolutely painless. Took less than 10 minutes!
[Nexus 6P General] runawaybayeh:
clarification

when using fastboot to update only radio and bootloader must you always follow the command

'fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img'

with

'fastboot reboot-bootloader'

I dont do this often,Im not that proficient with deconstructing/constructing my phone,I dont want to mess it up.
[Nexus 6P General] byproxy:
i have twrp 3.0.2 installed. i have no idea what happened then. maybe the individual boot.img file i had from myd download of MTC19T just happened to be corrupt then? i did a full clean install twice and both times i got the dead little green man when trying to boot recovery after flashing twrp. wasn't until i downloaded and flashed the modified boot.img for MTC19T that i could actually get twrp to load.

anyway, clearly just some weird random fluke on my end then. no biggie. thanks again!
[Nexus 6P General] logic88:
When I flashed TWRP on my MM 6P, I had to do it twice for some reason. The first time I got the same "reseting android" boot error but that went away when I flashed TWRP again. I didn't need to fiddle with a modified boot.img.
[Nexus 6P General] Jammol:
So just for experiment purposes I went back to full stock everything. Upon extracting the factory image I noticed a "Flash-all.exe," boy that was a pleasant surprise. I actually like using that as I didn't have to type in or copy all of the commands. Downside to that is it erases everything and flashes everything!
[Nexus 6P General] winxuser:
Edit it so it doesn't format and flash userdata. Then it wouldn't erase everything
[Nexus 6P General] MSNemitz:
I've had my 6p for a few months now. I think I'm gonna go ahead and do this. I just recently got an OTA update, this is compatible with that correct?

Also, any recommendations to a new rooter? Any ROM's, Kernels, apps or anything I should try?
[Nexus 6P General] Heisenberg:
This guide will work no matter what build you're on. Pure Nexus is probably the most popular ROM, I don't use custom kernels so can't really help there.
[Nexus 6P General] MSNemitz:
Do you not like custom kernels? Don't see a benefit?

Sorry, I'm not an extreme noob I just haven't really been into rooting in some years
[Nexus 6P General] Heisenberg:
I have nothing against custom kernels I just don't really have a use for them.
[Nexus 6P General] CyberZeus1977:
I use Chroma ROM, fast, stable, always up-to-date and with a kernel that has DT2W.

Nexus 6P with Chroma rocks!
[Nexus 6P General] MSNemitz:
So if I upgraded to Android N beta, I can follow this and everything will work or do I need to go back ?
[Nexus 6P General] jejehtc:
Good evening,

I want to know if this story is true Qfuse on the Nexus 6p because I am fearful for my bootloader unlock for.

If anyone can tell me more.

Thank you
[Nexus 6P General] Einwod:
I'd really love to know what you're asking.
[Nexus 6P General] DJBhardwaj:
The story was basically a myth. Unlocking or modifying with custom ROMs has no effect on Qfuse, on the 6P. You can clear your doubts, by reading this: https://plus.google.com/+ArtemRussakovskii/posts/Q4LhkED2ZGC

There is no risk in unlocking the Nexus 6P bootloader, whatsoever.
[Nexus 6P General] jejehtc:
thank you for your reply
[Nexus 6P General] Jammol:
Yeah I was wondering about this too, but then I notice the QFuse status didn't change from before the bootloader was unlocked.
[Nexus 6P General] tarroyo:
Flashed the latest .64 radio, I did 'fastboot flash radio radio-angler-angler-03.64.img' and am stuck in a bootloop.

Anyone know what I did wrong? After flashing via fastboot, I got the successful message then rebooted into recovery and rebooted system.
[Nexus 6P General] Hindustani1990:
Okay so this question is a noob question

I am thinking of unlocking my bootloader and rooting my 6p

I have had some experience with unlocking and rooting and I started with galaxy note 1 when it was still young and then HTC one m7 but after my experience with m7 I stopped doing it as the phone had some hardware issues and the service centre people were not ready to touch it as I had tampered with it

Now my 6p is my daily driver and I don't want to mess it up as it has been so awesome experience

But now I want to root it but I am on Android N 3

So my question is which route will be less riskier ?

Going back to 6.0.1 and then unlocking and rooting or just trying the procedure on Android N ?
[Nexus 6P General] Heisenberg:
Are you 100% certain that you flashed the radio to the radio partition?

You can root Android N but it's a bit more complicated; you need to decrypt your userdata partition and you need to use a modified boot.img in order for TWRP to work properly. The easier route would be to go back to MM in root that, in my opinion.
[Nexus 6P General] Hindustani1990:
Thanks

That's what I was thinking

Hmm now one more tough choice to make
[Nexus 6P General] llmnm:
ADB returns serial when phone on but not in bootloader

Hi all,

First, thanks for this great guide and all the shared knowledge!

Please forgive me if this was covered previously...if so please point me in the correct direction to that post. I am having trouble with ADB. My developer options are correctly set and my bootloader is unlocked. When I turn the phone on, the default usb setting is for charge. So I switch it to transfer PTP. At this point, adb works great and the serial is returned when I type 'adb devices.' As soon as I power down and boot into the bootloader, even if I do this through the 'adb reboot bootloader' command, I can see the serial when I type 'fastboot devices', but adb gives me a few varying errors. This happens even if I don't unplug and replug in the usb.

Sometimes I will receive "could not install 'smartsocket' listener..." and sometimes just "adb server is out of date..." I have tried uninstalling and reinstalling the most current google drivers with no luck. I have also tried shutting down the adb process on my computer with no luck. Does anyone have any suggestions?

I have a feeling this is related to the usb default setting, but I am not sure how to keep it from defaulting to charge. Thanks for any and all suggestions!
[Nexus 6P General] mrjoeyloke:
Accidentally installed SuperSU that TWRP offers like an idiot. Chose to reboot the device. Seem to be stuck in a loop. Any advice?
[Nexus 6P General] CyberZeus1977:
Reflesh system partition

Nexus 6P with Chroma rocks!
[Nexus 6P General] mrjoeyloke:
Do I just boot back Into the bootloader to do this?

Reflesh system partition
[Nexus 6P General] CyberZeus1977:
Yep

Nexus 6P with Chroma rocks!
[Nexus 6P General] SlimSnoopOS:
ADB only works from recovery or while booted in Android.

Once you are in the 6P bootloader screen, you must use Fastboot commands. Fastboot flash, fastboot reboot-bootloader, etc. ADB commands will fail.

What are you trying to do or flash?
[Nexus 6P General] llmnm:
Ahhh. Ok, SlimSnoopOS. I am trying to flash the recovery to add TWRP before I format and install SuperSU. I just wanted to make sure everything was working before I move forward. I have 6.01 with the latest May Security patch on my 6P. Have there been any noted issues with this process since the usb connection continues to revert to charge only?

Thanks for your help!
[Nexus 6P General] mrjoeyloke:
Ok boys idk if I'm ok here or not. So I installed super user TWRP came with, didn't backup, pretty much did a wipe through recovery of what I could, installed cm 13. I don't have anything that says I have su and when I reboot I get a message.

There's an internal problem with your phone? This normal with cm or did I do something wrong? Thanks for the help by the way!
[Nexus 6P General] tarroyo:
yes, I was able to boot back up normally after holding down the power button and restarting that way I looked at the radio in settings it's the correct one. I've seen this issue with a nexus 4 some yrs ago as well, What step should I have done after flashing the radio img? Mayb I missed a step?????
[Nexus 6P General] Einwod:
Wrong version of TWRP. The latest does not offer to install SuperSU. At least not on my device.
[Nexus 6P General] SlimSnoopOS:
The primary issues that people run into are an out of date SDK or fastboot (usually from owning older Nexus devices) or USB Driver needing to be specifically updated through Windows.

In the bootloader, type this command on your PC: fastboot devices

If it prints off your serial number, then you should be good to go. Just follow the instructions and you will be all set. TWRP flashes fairly quickly.
[Nexus 6P General] ArmStrongDickPunch:
Quick question and I apologize if this was covered or answered already but I'm about to get my Nexus 6p and this is my first nexus phone, but can I install ota's with twrp? (Like can I flash it updates via system/updates?) Thanks!
[Nexus 6P General] scoot0073:
No u can't install ota updates with a custom recovery..

You have to be completely stock
[Nexus 6P General] ArmStrongDickPunch:
How do I install ota's updates then? Via fastboot? (I read something about using fastboot but need to read more on it and if u have a link pointing me in the right direction it would be greatly appreciated) The only reason I asked is bc I'm coming from the oneplus x and it's version of twrp can flash it updates lol (although I'm on cm13 lol) thanks?
[Nexus 6P General] Heisenberg:
Have you actually read this guide that you're posting in? It's all covered right here.
[Nexus 6P General] ArmStrongDickPunch:
Oh my bad lol I'll read the OP in the morning didn't get a chance too and I do apologize as a senior member i should know better haha thanks tho
[Nexus 6P General] mrjoeyloke:
A few questions. Can I format user data after I've already installed a rom? Can't seem to create a backup. Says can't mount E or something.

Also, do I just push the correct vendor img to my 6p through adb and install it like everything else? Getting a internal problem message on boot.
[Nexus 6P General] nathanchance:
Yes to both questions. You can run fastboot format userdata or click the Format Data option in the Wipe section of TWRP. With the newest version of TWRP, you can click the Install Image button in the install section, select the vendor image, and flash it to the vendor partition.
[Nexus 6P General] mrjoeyloke:
OK so I pushed the vendor. Img to my phone via adb. But I only get the option to flash it to boot or recovery partitions? Doesn't say vendor.
[Nexus 6P General] CyberZeus1977:
You can do it in TWRP or using fastboot.

Adb can't flash images

Nexus 6P with Chroma rocks!
[Nexus 6P General] nathanchance:
That's why I said latest TWRP, flash 3.0.2-0 and you will see that option.
[Nexus 6P General] mrjoeyloke:
Sorry. Didn't explain right in twrp it only gave the option to flash to recovery or boot. Any reason why I can only find files in twrp once every time I push to internal storage?
[Nexus 6P General] CyberZeus1977:
Update TWRP to latest version, reboot into it, tap install then image in the bottom right corner. Then you can choose vendor image

Nexus 6P with Chroma rocks!
[Nexus 6P General] mrjoeyloke:
OK! Sorry about all the questions. Can I install through my current twrp or via fastboot on the computer.
[Nexus 6P General] DJBhardwaj:
Could be done both ways. The simplest and fastest is by updating within TWRP itself.
[Nexus 6P General] mrjoeyloke:
I think I've downloaded the right vendor img from the download index. I just match the mtc19t that's in system/vendor to the download in the index and flash through twrp? I've done that and still get "There's an internal problem with your device. Contact your manufacturer for details." am I doin something wrong here?
[Nexus 6P General] scoot0073:
No that screen is normal when u unlock the Boot loader.. No worries everyone gets it that has unlocked their boot loader..
[Nexus 6P General] Registerforwhat:
I tried searching didn't see an answer here but I'm currently in the same situation. ADB finds my device fastboot does not. Everything appears to be updated, I'm in the bootloader and fastboot devices won't find my phone.

Any ideas? I have an older 6p got it back in November.

Thanks for any help.
[Nexus 6P General] fdbyrne:
Quick question. I don't need to be spoonfed, but prior rooting experiences have taught me a few things.

First and foremost, has the original post and links on page one been kept up to date through the various software releases and 300+ pages of comments since the first post? Just checking before I start at the beginning and spend the next 2 days reading only to find out that everything I needed was on page 1.

Thanks in advance for the writeup and time you have invested in helping us all.
[Nexus 6P General] Heisenberg:
Everything is up to date, all the information you need is in the first three posts.
[Nexus 6P General] fdbyrne:
Thank you. You probably know how rare that is. It's much appreciated.
[Nexus 6P General] jesssiii:
[MENTION=4153349]Heisenberg[/MENTION] is awesome!

Nexus 6P
[Nexus 6P General] Registerforwhat:
Ohh also I'm running windows 10 does that pose any issues? I hung onto every word on the prerequisites. Something isn't working...

Thanks in advance!
[Nexus 6P General] DJBhardwaj:
There is nothing with Win 10 that would pose a threat here. It is only the drivers that needs to be looked into.

Go to Control Panel > Device Manager, and check out the drivers while your 6P is connected in bootloader mode.
[Nexus 6P General] Heisenberg:
Please don't drive traffic away from this thread, or XDA in general. The entire point of this thread (and the forum in general) is to have discussions here that can be easily found/searched for by our members. Troubleshooting and instructions serve no purpose when they're hidden in a Hangout. If you want to help people please keep it on here.
[Nexus 6P General] Jammol:
I apologize, I am not trying to pull anyone away from xda. I just know how frustrating it can get to learn something new on here. And sometimes people get frustrated with the 21 questions and just ignore the user (Not saying it happened here). It's just something I've been doing for a long time. No need to worry, I won't be pulling anyone away.

Cheers.

Sig starts here...

Need assistance? Add me to Google Hangouts at xdahelper@gmail.com
[Nexus 6P General] KeepingItCuttingEdge:
Just "upgraded" (not sure if it's better yet) from a 6 to 6P and trying to root. I've only had the phone 2 days and had N Preview 3 (encrypted) running fine since the beginning. (Wanted to try it stock first.) Now I want to root.

I flashed the modified NPD35K (Preview 3) boot.img and here's where issues begin...

Nothing newer than TWRP 3.0.0-0 will get past the TWRP splash screen

TWRP 3.0.0-0 shows no files (only directories) and clearly the OP of this thread says:

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 this incorrect and I need to go ahead and wipe data to decrypt and access it now? If this is the case, I'll just sideload the SuperSU and kernel zip files.
[Nexus 6P General] Heisenberg:
Hmm, did you flash the userdata.img?
[Nexus 6P General] Jamesholz:
Yeah i did. i'm actually just gonna go through your whole process in the OP again to see if that fixes anything.
[Nexus 6P General] Heisenberg:
Weird, seems like it thinks it's the 32 gb model. I'd try flashing the userdata.img again perhaps.
[Nexus 6P General] Jamesholz:
So i just followed all the steps outlined in your first post (and below) to restore factory settings etc and same thing.. Bootloader is reporting Samsung eMMC 64gb, but android is only showing 24.17GB usable storage.. so weird?

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

fastboot reboot-bootloader

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

fastboot reboot-bootloader

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

fastboot erase cache

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

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

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

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

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

---------- Post added at 10:51 AM ---------- Previous post was at 10:33 AM ----------

I listed the partition table and this is what it shows.

Filesystem Size Used Free Blksize

/dev 1.3G 52.0K 1.3G 4096

/sys/fs/cgroup 1.3G 12.0K 1.3G 4096

/mnt 1.3G 0.0K 1.3G 4096

/system 2.9G 1.8G 1.1G 4096

/vendor 191.3M 173.6M 17.6M 4096

/cache 94.4M 88.0K 94.3M 4096

/persist 3.9M 740.0K 3.1M 4096

/firmware 80.0M 47.2M 32.8M 16384

/storage 1.3G 0.0K 1.3G 4096

/data 24.2G 2.6G 21.6G 4096

/mnt/runtime/default/emulated: Permission denied

/storage/emulated 24.2G 2.6G 21.6G 4096

/mnt/runtime/read/emulated: Permission denied

/mnt/runtime/write/emulated: Permission denied

---------- Post added at 11:18 AM ---------- Previous post was at 10:51 AM ----------

Sorry for the 3rd post - just wanted to report that i fixed the problem by using the flash-all command issued with the official firmware package.

Thank you for your help :)