yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] zer0se7en:
Updated to 6.0.1 (MHC19Q) rooted with latest SuperSU and latest TWRP. Also flashed latest ElementalX kernel. Done without any problems. Flashed dirty and didn't even made a backup.

But I followed this one by accident which is from Nexus 5 forum - http://xdaforums.com/google-nexus-5/general/guide-update-rooted-device-to-5-1-lmy47d-t3050789

I guess it's a universal update method for Nexus devices. I only followed the command lines.
[Nexus 6P General] ultyrunner:
I hope that was by accident and not standard practice. A really bad idea.
[Nexus 6P General] stickperson:
Just got my 6p yesterday. I read some other guides before finding this one. What's the deal with people flashing modified boot images? I'm assuming you don't need to do that since this guides doesn't say anything about it. What do they do?
[Nexus 6P General] DJBhardwaj:
Well actually, when you get the device, it will automatically encrypt the complete storage on first boot. So, we here, flash a modified boot.img (kernel) that has automatic-encryption (dm-verity) disabled. Once you flash the modified boot.img, you will also need to decrypt your storage by formating the userdata, using the following command:

fastboot format userdata

Detailed instructions for decrypting are present in Section #3 of this thread.

EDIT: As [MENTION=4712293]Wintersdark[/MENTION] already mentioned, it is not mandatory. You can choose if you wish to decrypt or not.
[Nexus 6P General] Wintersdark:
I will note that this is in no way mandatory. It's perfectly ok to remain encrypted if you wish to do so.

You just need to use a newer version of TWRP; but you need that anyways to get it to work at all with newer Android builds.
[Nexus 6P General] Heisenberg:
As previously stated, a modified boot.img is generally used to disable forced encryption. Some users choose to decrypt, but it isn't necessary, and the real-world performance gains are probably not even noticeable.
[Nexus 6P General] tarroyo:
I'm on build MMB29MM which version of TWRP should I flash? or should I update to the latest 6.0.1 build before flashing TWRP???
[Nexus 6P General] nathanchance:
Personally, I'd update to MHC19Q then flash TWRP 3.0.2-0.
[Nexus 6P General] Big Cam:
Also curious about doing some updating, I'm on MMB29P and TWRP 2.8.7.2 . Do I need to update TWRP?

I want to update to the latest 6.0.1 (MHC19Q).

A small problem I'm having is when I download the tar file from here and I unzip it, I get one giant file, not the multiple files I usually get.
[Nexus 6P General] jesssiii:
Yes, I can attest to that myself. Heard it would speed things up, but I notice no difference, not in speed nor boot times. Thanks [MENTION=4153349]Heisenberg[/MENTION]!
[Nexus 6P General] Heisenberg:
You will need to update TWRP to art at least 3.0.0-1. The file inside the archive should be another archive, extract that too.
[Nexus 6P General] mobileman88:
Yes. You need the latest twrp if you are encrypted.

For the image, after you gun zip, you need to untar to get the files inside
[Nexus 6P General] Big Cam:
Thanks for the response. How do I extract it again? It just shows up as file type "file" if I right click with my windows 10 laptop, there is no option to extract again. Sorry for the noob questions, I rarely use this laptop anymore, I do everything from my phone.
[Nexus 6P General] Heisenberg:
You'll need a different archive manager, I believe Winrar and 7zip should both work.
[Nexus 6P General] Big Cam:
Thank you much, I should be able to take it from here;)
[Nexus 6P General] AriStar:
but step 1 of part 2 says to download TWRP recovery

I clicked the link and download shows the playstore link.
[Nexus 6P General] Heisenberg:
You get the file from their site, the link is within that screenshot. I thought this was pretty obvious because if you read the rest of the instructions they say to flash the zip with fastboot, and make no mention of TWRP Manager. I'll make this more clear in the directions. Here's a link:

https://dl.twrp.me/angler/twrp-2.8.7.0-angler.img
[Nexus 6P General] effraie:
is there yet a way to disable the corruption screen at boot ? only cosmetic, but annoying...
[Nexus 6P General] AriStar:
alright seems to be working, only problem is it won't let me setup imprint or factory reset.

any time i try it says settings failed
[Nexus 6P General] Heisenberg:
What build are you on?

No at this stage.
[Nexus 6P General] AriStar:
Oh ****, the wrong one.

Okay ill stock to the mdb08k then redo step 2-4

Sorry, its my first time doing this, thanks for all the help.
[Nexus 6P General] Heisenberg:
No worries, just take your time and read carefully, you'll get used to all this.
[Nexus 6P General] AriStar:
Okay, followed steps correctly and everything is working as it should. Was not able to create a nandroid backup, but I wasn't able to read the error. Not sure why, but it seems to be rooted and everything working.
[Nexus 6P General] Badger50:
Out of curiosity, has anyone tried the boot image that Despair Factor came up with to disable BCL that will allow root. I don't have my device yet, but just trying to get my ducks in a row before I start my flash party. Thanks for all the work you do gentlemen :)
[Nexus 6P General] bigknowz:
sideload savior

adb sideload with new SDK did the trick, thanks!
[Nexus 6P General] Simer03:
Ridobe, when you try adb devices, does it come as offline or show the device?
[Nexus 6P General] Heisenberg:
So guys, has anyone here on Linux successfully unlocked etc? Or are all the Linux users encountering problems?
[Nexus 6P General] eprisencc:
Just wait for wugfresh Nexus root toolkit. The most fool proof way to unlock the bootloader and root the phone. This current guide is too overly complicated for the average user.
[Nexus 6P General] adrman:
I unlocked earlier tonight and also flashed factory images on Ubuntu 15.10. I did have to be in the platform-tools directory and also alter my fastboot commands, using "./" to preface them. I didn't have time to investigate why though. I could have lost path due to a couple of factors, the update to 15.10 or that I had recently moved the location of my android-sdk directory. I also performed a "--no -ui" update to the sdk before beginning.
[Nexus 6P General] Heisenberg:
Thanks for replying, so the unlock command became as follows?

sudo ./fastboot flashing unlock
[Nexus 6P General] adrman:
Yes. Although I did use sudo initially, after experimenting, I found it unnecessary.
[Nexus 6P General] Heisenberg:
Interesting, I'll have to give that a try without the sudo command.
[Nexus 6P General] effraie:
No issues here, after manually install Android sdk from Google. adb & fastboot packaged in distributions are outdated (in Ubuntu at least)

You always have to provide a relative or absolute path to manually installed command, that's what is the ./

You can avoid it by adding platform-tools/ to your $PATH environment variable
[Nexus 6P General] adrman:
I'm pretty sure I had closed and opened another command window. I was dividing my attention between flashing and the world series. :p adb commands definitely were working without sudo.

---------- Post added at 07:34 AM ---------- Previous post was at 07:30 AM ----------

I thought I had changed the path variable when I moved my sdk folder, but I'll need to verify it today.
[Nexus 6P General] mrRobinson:
That's just cause platform-tools wasn't in your path so you have to tell your OS what you are executing. since you were in the dir with the fastboot binary in linux or mac you'd have to execute it with ./

its just saying execute the one in the folder i'm in. if you were back a folder and fastboot was in platform-tools like it normally is you could have executed with platform-tools/fastboot flashing unlock.

The only reason you'd need sudo is if you installed it or copied it there as root and then your local user had no perms to execute it.
[Nexus 6P General] winxuser:
ok so i flash twrp, reboot back into bootloader then boot into twrp, but it just hangs on the twrp startup, it doesnt come up with any options?? can anyone help,, does it matter that i am running android N preview
[Nexus 6P General] Heisenberg:
Which version of TWRP? Did you follow the instructions and also flash the modified boot.img for Android N?
[Nexus 6P General] nathanchance:
I have heard that the N Preview has caused TWRP issues. Have you tried flashing 3.0.0-0, as that is the one I have seen that has worked.
[Nexus 6P General] DJBhardwaj:
I flashed a modified boot.img and decrypted the /data partition to solve this. However, I am still not sure that it's the only solution. Please wait while someone else having experience with this situation comments.

---------- Post added at 12:36 PM ---------- Previous post was at 12:34 PM ----------

[MENTION=6842057]nathanchance[/MENTION] did you gave a try to v3.0.2-0? That seems to have fixed this, I guess.
[Nexus 6P General] nathanchance:
I am using TWRP 3.0.2-0 but I haven't flashed the N Preview on Angler (I am in the process of flashing it on Shamu right now so I'll let you know).
[Nexus 6P General] DJBhardwaj:
I am cross-checking. That fixed it for me, now waiting for you to confirm. :cool:
[Nexus 6P General] winxuser:
I did flash the modified boot.img for N. Although i did flash the latest twrp, which one would be the better version to flash??
[Nexus 6P General] Heisenberg:
So you're saying you flashed both? The latest TWRP (3.0.2-0) and the modified boot.img?
[Nexus 6P General] winxuser:
Yes
[Nexus 6P General] Heisenberg:
Have you decrypted your userdata partition?
[Nexus 6P General] winxuser:
Yeah i have
[Nexus 6P General] Heisenberg:
Hmm. So just to be clear, you have definitely:

A) Installed TWRP 3.0.2-0

B) Installed the modified boot.img

C) Decrypted the userdata partition using the "fastboot format userdata" command

Correct? And you still can't get into TWRP successfully?
[Nexus 6P General] winxuser:
Yes but didnt do it in that order. Does it have to be in that order??.. If so then maybe it should be in op
[Nexus 6P General] DJBhardwaj:
Okay try this:

1) Flash the modified boot.img for your build.

2) Decrypt your storage by wiping userdata and cache.

3) And then, flash TWRP v3.0.2-0.
[Nexus 6P General] Heisenberg:
The main point is that you ensure you have the modified boot.img installed before you decrypt.
[Nexus 6P General] winxuser:
Oh right no worries. Will do that later. Cheers for the help
[Nexus 6P General] M_Shaaban:
I know how to flash the img files separately. My question is to flash all together, should I put all the extracted files in he fastboot folder and enter which command in the Command Prompt? Is "flash-all.bat" the command to flash all?
[Nexus 6P General] Einwod:
Yes.
[Nexus 6P General] queengab:
Thanks very much! All goes well, you're right is better with adb and fastboot!

I installed the latest rom, the reflashed twrp and super su without losing data (i don't backup my phone in this case beacuse there wasn't need, but i think it's safer to do it.)

When do you think Android N will be ready to flash?

Bye

Gabriele
[Nexus 6P General] winxuser:
Android n is actually pretty smooth and stable for me. I have Ben running it most of the day. Not long enough for it to settle in. But ATM it's great
[Nexus 6P General] zer0se7en:
I've been doing the same thing since my Nexus 5. I just do not include userdata.img whenever I flash an update. The only time I cleaned my 6P was when I unlocked it's bootloader last December. I never had any problems. I use a Mac when flashing by the way.
[Nexus 6P General] Az Biker:
I think he meant 'not making a nand' is a bad practice...

...from my NexsixP
[Nexus 6P General] zer0se7en:
Yeah. I get that. I'm just not that worried coz I'm not a flash-a-ROM-a-holic everytime there is an update. I just keep it Stock rooted with EX kernel with some tweaking. No Xposed. I get 6hrs++ SoT max.
[Nexus 6P General] ultyrunner:
I use a Mac too, but that has nothing to do with why you'd want a nandroid. One bad flash is all it takes, you don't have to be a flash-a-holic. On the off chance that something borked, it's just a lot easier to go back to a nandroid than having to start from scratch.
[Nexus 6P General] winxuser:
OK so I'm running stock Android n at the moment. I want to flash cm, so I have the zip on my phone, which gapps should I use x64 or x86-64.. And which vendor image can I flash to be able to boot and run cm.. I'm new to Nexus and all this vendor flashing for custom software's etc.
[Nexus 6P General] Heisenberg:
Use arm64 (x64) gapps. As for the vendor, it's most likely the latest (MHC19Q), but I can't be sure about that.
[Nexus 6P General] winxuser:
Thanks I wasn't sure which gapps, I thought it was a x86-x64.. I will try mhc19q to see if it boots??
[Nexus 6P General] zer0se7en:
Point is, the procedure of doing all of these flashing are really safe if we follow instructions correctly. As safe as not worrying about not making a backup. Even using a Mac still made it safe.

<MOD EDIT - No Personal Attacks thank you.>
[Nexus 6P General] ultyrunner:
Relax dude. Safe, but not foolproof, and a nandroid has the benefit of returning your phone to a specific state. A recent nandroid is also a convenience. Ugh, indeed.
[Nexus 6P General] berry_lthird:
Success with Beta Enrollment OTA Build # NPC56W

I was able to root from OTA enrollment. My build # is NPC56W.

At first I was stuck where TWRP hangs on the splash screen. But after reading this thread more carefully, I was able to root.

First I did step 1 to unlock the bootloader, then step 3 to decrypt the data partition, then step 2 to install custom recovery, and finally step 6 to install SU in that exact order using the latest files available as of April 9, 2016.

The recovery version I used was:

https://dl.twrp.me/angler/twrp-3.0.2-0-angler.img.html

The SU version I used was:

http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

I didn't have to use any of the modified boot images or anything. Hope this helps someone!
[Nexus 6P General] chuck4100:
Hello all, I am not sure if batch scripts are against the rules here (didn't see anything on it) but I made a script to go along with this guide.

More specifically it is for the flashing of stock images and custom recovery images. I plan to expand it but it is really just for my personal ease of use.

I put some good time into making it functional and pretty(ish) and thought I would try sharing it.

https://mega.nz/#!gQFEXKCa!6pAIsaNz5GDFwYlyTMAEa6VLf9_yqC8rVE1fC9V1uo0

It is a batch script, so windows only.

Also, if it is deemed worthy I shall continue uploading updates.
[Nexus 6P General] winxuser:
That would really come in handy.. Even better with a GUI for Windows so people who don't use Linux can do this
[Nexus 6P General] chuck4100:
I tried to make it as user friendly as I could. It is windows only. Certainly not a gui but I feel that the options are presented well enough. If it became popular to any extent then maybe I could try real stuff but basic batch scripting is the extent of my programming knowledge.
[Nexus 6P General] Green-Bot:
Unable to install/boot into Custom TWRP recovery, Please Help

Hi,

I have unlocked my bootloader (Lock state is Unlocked). I guess i'm saying right :p

After following second step of installing TWRP recovery, i am stucked at android system recovery despite following every step clearly.

In fastboot mode, i issue command "" fastboot flash recovery twrp-3.0.2-0-angler.img "" and i can see the img file getting pushed on N4 displaying the following:

D:\SDK\android-sdk-windows\platform-tools>fastboot flash recovery twrp-3.0.2-0-angler.img

sending 'recovery' (16932 KB)...

OKAY [ 0.542s]

writing 'recovery'...

OKAY [ 0.931s]

finished. total time: 1.481s

I believe the file is pushed to device.

After this i reload bootloader and when it come back i try to enter recovery. I see some random abrupt multi-color lines with white background. This white background eventually turns dark blue in next 3-4 seconds. Now the display is on but its too dark but i can see that display is ON and its not turned off. I have tried with two recovery files ; twrp-3.0.2-0-angler.img and twrp-3.0.1-0-angler.img Same results. Not able to start the custom TWRP recovery. Even the system recovery doesn't start. After turning phone off, i again go to fastboot and try to install TWRP recovery then only i always lands :(in Android system recovery instead of TWRP. I am running 5.1.1. LMY48I. Please help.
[Nexus 6P General] jesssiii:
Probably should post this in your own new thread. [emoji6]
[Nexus 6P General] Badger50:
After you flash the TWRP recovery with fast boot, manually enter into TWRP using the volume rocker to scroll to "recovery" then hit the power button to enter TWRP. Once there you can flash the SU of your choice. Do not let TWRP install it for you. Hope you get it sorted out :)
[Nexus 6P General] jesssiii:
Looks like you're flashing an Angler recovery to an N4?
[Nexus 6P General] DJBhardwaj:
Yes I guess too. See the comment that the user above you quoted. He is on 5.1.1 on Angler?

[MENTION=4930936]vinay28761[/MENTION] Which device are you using mate?
[Nexus 6P General] Heisenberg:
You're flashing a recovery that's meant for the Nexus 6P, not the Nexus 4, you're lucky you haven't done more damage to your device. Go to that Nexus 4 section and follow the guide there, and always ensure that you're flashing things that are meant for your device.
[Nexus 6P General] chuck4100:
I probably will if people like it but it is made specifically following steps of this guide and I didn't really include much info in it either. But ya... testing waters, don't normally contribute to things =\
[Nexus 6P General] Green-Bot:
Yes, i was flashing the wrong recovery file to N4. Thanks for your support:good::good:

---------- Post added at 06:27 AM ---------- Previous post was at 06:25 AM ----------

Sorry Mate, i flashed 6P recovery file to N4. Thanks for your support!!
[Nexus 6P General] swapgut:
Hey I got some new hardware, installed win7x64, updates, the 24.4.1 sdk zip is what I used to get the files needed, it updated immediately to 25.1.1. I've got no adb or fastboot now. Have the phone set for usb debugging, even tried changing the usb option to file transfer but no dice. All I could get is the adb version. Never ever had fastboot not work for me.

Thinking of trying Koush's universal adb driver but I know that's from almost three years ago now. I'll save that for Plan C.
[Nexus 6P General] Einwod:
This may sound stupid, but have you rebooted the computer? Sometimes that's all it takes. Otherwise go into device manager with the phone attached and remove the entry. Then rescan and the drivers should update automatically.
[Nexus 6P General] swapgut:
Cala Einwod, I'll try that right away.
[Nexus 6P General] swapgut:
OK, so I tried that after I got back last night and no dice. Tried with the koush universal adbs and win kills the "outdated process" immediately. So I guess `cause msft keeps trying to put win10 on my drive and I couldn't get a single pick & choose update without taking them all..... Don't want to wipe out a new ssd just to update twrp but I might. One 6p has the new radio and bootloader the other doesn't, one has twrp 3.0.0 the other 3.0.0-1. (where's the bang's-head smiley?)

Any ideas folks?
[Nexus 6P General] enkrypt3d:
Nope it doesn't. . I was forced to do "fastboot format userdata" in order to get TWRP to not prompt me to enter a password (Even the default passwords did not work).
[Nexus 6P General] DJBhardwaj:
You can also try TWRP v3.0.2-0. The new version has fixed the issues with encryption. :cool:
[Nexus 6P General] Einwod:
On Windows 10 here and don't have any problems connecting to PC and transferring files.
[Nexus 6P General] swapgut:
I can transfer, just can't do any adb or fastboot commands on my rig now. Maybe with the win10 "upgrade" looming I'd have those commands again?
[Nexus 6P General] jesssiii:
That's with twrp 3.0.2? The newest? It was supposed to fix that issue, I was planning to re-encrypt. Maybe I'll wait for confirmation.

---------- Post added at 18:42 ---------- Previous post was at 18:40 ----------

I followed this guide on Windows 10 and had no problems with adb or Fastboot.
[Nexus 6P General] swapgut:
Well, anyone know how I can get Android commands to work again on fully-patched win7x64? It was flat out easy before, just not now.

I'm one of those that would join a class-action against msft (eula probably prevents it, but there are no laws anymore in the ussa) when they get win 10 past my firewall. Since I got a new ssd at the wrong time and couldn't get updates at all without allowing auto, I'm F'd I guess.
[Nexus 6P General] DJBhardwaj:
That fixed for me, at least.
[Nexus 6P General] KLit75:
Just got my 6p. I was happy to see adb and fastboot both worked, no fuss but the unlock command is unrecognized.

I can reboot bootloader with adb

Same goes for fastboot

But unlock with fastboot command don't work

Any ideas? Thanks.
[Nexus 6P General] nathanchance:
Have you updated adb and fastboot?
[Nexus 6P General] KLit75:
That was gonna be my next step. I just thought I'd already verified adb &fastboot was working because usually if it recognizes the device I have no issue.
[Nexus 6P General] nathanchance:
Yeah I can't argue with that logic. I think the flashing command is fairly new though which is why an update would be necessary.
[Nexus 6P General] KLit75:
Hmmm. Was that ALWAYS the flashing command for 6p? Or did it receive an ota that changed it from oem? If its the latter its possible the phone needs an update (and there is one waiting on me now)

Update--yes. Needed to update adb and fastboot. All set. Thanks!
[Nexus 6P General] matt4321:
Yeah I had this issue, I got my 6P about a week ago.

From what I can tell 'fastboot flashing unlock' is a new command and needs the updated fastboot. It's not supported in older versions like what I had. Dunno why they changed it from 'fastboot oem unlock'

But yeah, update your fastboot to support the new command
[Nexus 6P General] TheAtheistOtaku:
does anyone know which partition to flash the radio img through twrp? i assume its either the boot or system partition, but i want to make sure. I would also assume that you would flash a updated bootloader img to the boot partition through twrp, right?
[Nexus 6P General] Heisenberg:
Noooooo, no, no, no, nooooooo. To both. You can't flash either of those via TWRP, only with fastboot. The radio gets flashed to the radio partition and the bootloader gets flashed to the bootloader partition.

fastboot flash radio <filename>.img

fastboot flash bootloader <filename>.img
[Nexus 6P General] cameljockey1:
I am still confused on what to backup in twrp. Boot. System data and vendor. Do we also do the images of system and vendor?
[Nexus 6P General] DJBhardwaj:
For a regular ROM backup, you will need to check Data, Cache, System, Boot, and Vendor, if you're going to cross flash between N and Marshmallow.

And also, in this case, you do not need to backup any images, including system, vendor, etc.
[Nexus 6P General] Az Biker:
If making a nand prior to an update for the same Rom build, backup: system, data, boot.

If making a nand prior to flashing NEW build, backup: system, data, boot, and vendor.

If your new build (and new vendor) gets wonky and you want to restore previous build (and the previous vendor), you want your vendor to match your build.

This is my understanding.

...from my NexsixP
[Nexus 6P General] scoot0073:
Deleted
[Nexus 6P General] tarroyo:
On windows, which file should be downloading for the sdk? In the OP it says 'Scroll to the bottom of the page and find Other Download Options>SDK Tools Only, and grab the right version for your OS' There's no longer a sdk tools only option.
[Nexus 6P General] evanw68:
fastboot does nothing. i installed all the drivers and whatnot to the letter
[Nexus 6P General] DJBhardwaj:
At the very bottom of this page: http://developer.android.com/sdk/index.html

You will see a title labelled 'Get just the command line tools'. That's what you want. The OP just needs to be updated, since the webpage had a design overhaul yesterday.
[Nexus 6P General] Einwod:
Fastboot also does nothing for me unless I give it the proper commands. What have you tried and what was the result? Noone can help you with that statement.