yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Heisenberg:
My point was that he knows you only need to flash two files (ROM + gapps), he was listing different ROMs that he has attempted to flash. Performing a factory reset after performing a full wipe (system, data, cache, dalvik cache) in the advanced wipe menu is unnecessary, you're just wiping the same thing twice. Wiping cache/dalvik cache after flashing the ROM is also unnecessary for the same reason. I know you're trying to help him but perhaps more experience is required to know which questions to ask when troubleshooting.
[Nexus 6P General] hamzaintrouble:
I am attaching the install logs for both the ones i checked the md5 for which is the Paranoid and the SlimRoms. I am using TWRP 3.0.2-0.

By any chance do you need the rest of the log? Before the installation?

Oh ALSO: PureNexus installed successfully when i tried installing it.
[Nexus 6P General] Heisenberg:
Nah that's all the log I wanted to look at. I'm honestly stuck at this point. After looking at the update script I believe you're getting an MD5 mismatch for the system partition after it has been extracted, I have no idea what might be causing this though. I'm about to flash the Slim zip myself so I'll see what happens.

EDIT: No such problem for me, flashed without incident.
[Nexus 6P General] hamzaintrouble:
Thank you for responding and trying to help! I'm gonna flash stock for now and go to sleep :crying: :crying: :crying:

Just gonna *accidentally* drop the phone and use that Nexus Protect LOL

---------- Post added at 11:09 AM ---------- Previous post was at 11:01 AM ----------

hmm. Do you think it might be an issue because i haven't rooted the phone? That's the only thing at this point that could be affecting this after trying all of this. :confused:
[Nexus 6P General] Heisenberg:
Root isn't required to flash ROMs so it isn't that. Anyway, even if you did root prior to flashing, root access would be erased when you wipe (before flashing the ROM) because it resides in the /system partition. Sorry I can't be more helpful, get some sleep, maybe [MENTION=6842057]nathanchance[/MENTION] can have a look at this issue for you when he has a spare minute.
[Nexus 6P General] ^tyrant^:
Having a weird problem today,

My rear facing camera doesnt seem to be working. The Camera app crashes, Facebook and Snapchat only let me use the front facing camera..

Anyone have any ideas?

EDIT

Clearing the cache and dalvik cache seemed to have fixed my problem.
[Nexus 6P General] nathanchance:
I'd reflash stock everything (including recovery), boot up (only if you are encrypted, don't do this if you are decrypted), then reflash TWRP and try again. Error 7 is a sign of corruption I believe and if that is happening with all zips, something is very messed up.
[Nexus 6P General] hamzaintrouble:
Hmmm that's no fun. I've flashed full stock and went back to install just TWRP and try to flash the roms multiple times.

It did work for the purenexus ROM though.

Could you say this maybe happening because I used the root toolkit previously?
[Nexus 6P General] jesssiii:
When you flashed to stock multiple times, did you also format userdata at any point? It wipes the whole device so you'd need to backup files on SD to computer then transfer them back but it made the difference when I've had corruption.

Nexus 6P
[Nexus 6P General] hamzaintrouble:
Yes I have done the command fastboot format userdata every time. As per the instructions at the beginning of the thread.

Do you think flashing userdata image might fix this?
[Nexus 6P General] gregk232:
Hey, I put the instructions in the OP on going from complete stock N6p to custom ROM (CM13 in my case) into a video.

https://youtu.be/QCA6vTNU9Qo
[Nexus 6P General] dallen5:
I need some help...the other day I was just sending an text and my phone frozed up and started bootlooping. I've went back stock and it's still bootlooping on the Google screen
[Nexus 6P General] yeroc1982:
OK iv been trying to update to the newest stock. Iv made all the folders accordingly, run the code, starts to go but keep getting errors, I'll try post it when I have more time tonight
[Nexus 6P General] Heisenberg:
Weren't you asking about this somewhere else? Anyway. If you have tried flashing the factory images, and formatted userdata too, you could be facing a hardware failure.
[Nexus 6P General] dallen5:
Yes I was and I was just trying to make sure before I sent my phone off to Huawei
[Nexus 6P General] Heisenberg:
Alright, but creating duplicates ain't allowed. I think sending it off is your only option unfortunately.
[Nexus 6P General] yeroc1982:
OK here's a pic of what happens when I flash, any help?
[Nexus 6P General] CyberZeus1977:
My suspect is outdated sdk. Try to update

Nexus 6P with Chroma rocks!
[Nexus 6P General] yeroc1982:
OK how do I go about that?
[Nexus 6P General] CyberZeus1977:
Launch SDK Manager and see if there are updates for platform tools

Nexus 6P with Chroma rocks!
[Nexus 6P General] yeroc1982:
OK thx I'll check it out and see
[Nexus 6P General] Heisenberg:
I don't think the problem is an outdated SDK. Are those the actual filenames of the files you're trying to flash? Did you actually rename the bootloader file to "bootloader-angler-angler-xx.xx.img"? I only have them named like that in this guide for demonstration purposes. You need to enter the command so it matches the filename of the file.
[Nexus 6P General] yeroc1982:
Ah OK in like an editor or something?
[Nexus 6P General] Heisenberg:
I'm not sure what you mean. What I'm saying is I think you're entering the command incorrectly. If you're entering this command:

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

That means that fastboot is looking in C:\angler\images for a file called "bootloader-angler-angler-xx.xx.img", if the bootloader file in that location is not named that then fastboot can't retrieve it to flash because it doesn't exist. So go and open C:\angler\images and see what the bootloader file is actually named as, then you need to enter the command to suit it.

If the file is called "bootloader.img" then the command would be this:

fastboot flash bootloader C:\anger\images\bootloader.img

Or if the file is called "bootloader-angler-angler-3.51.img" (which is the actual name for the latest bootloader) then the command would be this:

fastboot flash bootloader C:\anger\images\bootloader-angler-angler-3.51.img
[Nexus 6P General] yeroc1982:
OK tried again switching and still no luck. Figured maybe the path would be different because in bootcamp??

Edit, think I forgot to add .IMG
[Nexus 6P General] Heisenberg:
You definitely forgot to add ".img" at the end of the command.

Also, why have you added BOOTCAMP to the command?
[Nexus 6P General] yeroc1982:
Thanks for the help, I gotta pay more attention lol, damn noobs haha

---------- Post added at 12:58 AM ---------- Previous post was at 12:39 AM ----------

So is it best to do 1 line at a time? I was under the impression you do the whole paragraph of code at once..
[Nexus 6P General] Heisenberg:
One command at a time.
[Nexus 6P General] yeroc1982:
OK great. I only added the "bootcamp " for the hell of it, didn't know what I was doing wrong at the time.
[Nexus 6P General] Heisenberg:
Ok, but why? I'm not sure what that even means. It probably isn't wise to mess around too much with fastboot, you could end up damaging/bricking your phone.
[Nexus 6P General] yeroc1982:
Ooook, you can see my path and the files in the folder, still getting error...?
[Nexus 6P General] Heisenberg:
The problem is that you have file extensions (.exe, .jpg, .zip, .img etc) turned off in Windows Explorer. You can see that the boot.img is only visibly named "boot", but it's still technically named "boot.img", you just can't see the ".img" part because you have file extensions turned off. So, I'm guessing you've renamed the bootloader and radio files and manually added the ".img" to the end, which is unnecessary because it's already there, you just can't see it. If you go into Windows Explorer settings and turn file extensions on you'll see that the bootloader and radio files are ending in ".img.img". Remove the extra ".img" and your commands will work.
[Nexus 6P General] yeroc1982:
Yes I did add the .IMG on. OK so I'll go back and take it off then find file extensions and turn on. I knew there was something I was missing. I just reformatted my a Mac and installed bootcamp yesterday so I'm in the process of getting everything back to normal. Thank you very much for the help. I'll have to tracker this tmrw now after work. I'll let you know how it goes, again thanks!?
[Nexus 6P General] Heisenberg:
No worries, happy to help.
[Nexus 6P General] Rasool-Hamilton:
Hi, Thanks for such a co.prehensive and helpful topic...

I just have a question remaining in my mind, and that's

Do we get OTA updates after unlocking the bootloader or no it will gone ?
[Nexus 6P General] nathanchance:
Yes, you can still receive OTA updates with an unlocked bootloader. However, you will need to have an unmodified system partition.
[Nexus 6P General] Vintage144:
why does my screen say : Download Mode:DISABLED , when i try power+ down volume ?

when i run adb its shows adb works , but when it try from the screen i dont see a serial number ? so i assume somethings not right ,like i said boot into bl and it says device :locked , qfuse status :enabled, Offmode charge : enabled , should the off mode be set to something other than charge?

***ok I found what was wrong , i had to manually install the driver in device manager , now it shows adb bridge version and it also shows my serial !!!******
[Nexus 6P General] yeroc1982:
Mine says download disabled too
[Nexus 6P General] Vintage144:
Not sure what that is , just make sure to go into device manager and make sure your drivers are good for and , when you plug your phone and it's good you'll get a flash screen for USB I think it says I can't remember but you need that checked marked, then it takes about 10 seconds to unlocked the boot loader, I already added recovery, backup and efs backup and going for root in a second
[Nexus 6P General] yeroc1982:
I get hanging at flashing system.img, says max downloaded then big number and never moves past that. And now when I boot my phone it says there's internal errors or something like that, seems to still work though. Where did I go wrong again?
[Nexus 6P General] Heisenberg:
Open SDK Manager and tick platform-tools, update that package then try again.
[Nexus 6P General] yeroc1982:
I'll give it a shot after little one is sleeping, will report back, thank you!

---------- Post added 21st June 2016 at 12:10 AM ---------- Previous post was 20th June 2016 at 11:53 PM ----------

Still getting target reported max download 4298734982938(not exact number)

If i tick platform tools i can only delete not update so i deleted and reinstalled.
[Nexus 6P General] Heisenberg:
Is there no "update selected packages" (or something like that) button at the bottom of the SDK Manager window?
[Nexus 6P General] yeroc1982:
When I click Android platform tools the only option is to delete
[Nexus 6P General] Heisenberg:
Open the command prompt from within your platform tools folder and issue this command:

adb version

What version is it? Also, how did you install the SDK? From the Google site like explained in the OP?
[Nexus 6P General] yeroc1982:
Version 1.0.36
[Nexus 6P General] Heisenberg:
And how did you install it?
[Nexus 6P General] yeroc1982:
Through your guide, clicked on the link and followed
[Nexus 6P General] Heisenberg:
Not sure what's going on. How long did you wait when flashing the system image?
[Nexus 6P General] yeroc1982:
Few mins, don't think it was for full 5 min. How long should it take?
[Nexus 6P General] Heisenberg:
The whole system flash process takes a few minutes, you should definitely get process updates after what you were seeing though.
[Nexus 6P General] yeroc1982:
Yep, I'll try again and let it sit and see what happens. Thanks

---------- Post added at 01:53 AM ---------- Previous post was at 01:02 AM ----------

Alright it seemed to get through slowly. Let it reboot, dis the updating apps, but now when I try to boot to recovery,i get the Android guy laying down with the triangle. Powered off then back on now
[Nexus 6P General] Heisenberg:
That's normal for stock recovery. Do you want TWRP? Just flash it again.
[Nexus 6P General] theleet:
I have a problem, I followed the tutorial to unlock the bootloader and it went fine, now I'm trying to flash recovery so I dl'ed TWRP, flashed it, rebooted into fastboot again, selected recovery mode and.. it's stuck on "Google" with unlocked padlock below (I left it alone for 40 minutes). If I force a reboot it works but recovery is back to stock. Help?

//edit

ok nvm I figured it out, turns out you have to let the phone boot and go into bootloader with adb reboot bootloader instead of manually power + vol down... Weird.
[Nexus 6P General] yeroc1982:
Haha yeah that's what happened to me yesterday, got it all figured out now.
[Nexus 6P General] Big Cam:
Just had to swing by and say thanks, I went lazy and tried to use a toolkit to get an OTA to flash, after lots of failures and wasted time, I came back here, got ADB installed on my brand new laptop, and flashed the newest stock build the right way.

Tried and true.

Thanks!! [MENTION=4153349]Heisenberg[/MENTION]
[Nexus 6P General] Aslam Driver:
I want go back to stock. I downloaded images from google. They gave me Flash-all.bat. So I shouldn't rut this flash-all.bat ? Will my 64gb goes to 32 gb if I run this ? or I should run every single command as mentiond at OP ?
[Nexus 6P General] Heisenberg:
The answer seems to be in one of the quotes you posted...
[Nexus 6P General] Vintage144:
Your guide is great, it just takes the reader time to read it , im wondering something though , ive been doing this a long time , but have never backed up EFS before, should you leave that backup on the phone or put it in the cloud or both , ive never bricked a device beyond never never land ? I will always back that up from now on , thanks!
[Nexus 6P General] Heisenberg:
Personally, I keep a copy of the EFS backup on my phone, one on my PC, and one on the cloud. A corrupt EFS partition is nowhere near as likely on this device as it is on some others but better to be safe than sorry.
[Nexus 6P General] grimloktt:
Hello. Thank you for this thread! I cannot get into TWRP...or is TWRP for this phone in list view?

I've followed step 1 and unlocked my bootloader. Then, I tried to install TWRP. In adb, it says TWRP was sent, wrote and is OK/finished; however, when I select "Reboot bootloader" on my phone it restarts back into the regular fastboot screen of green android on back w/ chest open. I tried to flash the next older TWRP and get same results.

I tried to reboot into "recovery" and get the android on his back w/ red triangle and "no command."

I'm able to alternate presses of power and volume up and then get into "Android Recovery" from google/angler/angler...with list of options. I'm used to TWRP being boxes. Is TWRP on this phone in list view?

Please, help...thank you!!!

---------- Post added at 11:16 AM ---------- Previous post was at 10:37 AM ----------

How do you do this? I'm having same issue. So, do I boot into fastboot mode using power and volume down and then use adb reboot bootloader? When I try this, it says "error: no devices/emulators found."
[Nexus 6P General] theleet:
Once you unlocked bootloader let your phone start completely, connect USB cable and use command prompt:

adb reboot bootloader

fastboot flash recovery twrp.img

then immediately use your volume down and power keys to go into recovery, no need to reboot. That's it.
[Nexus 6P General] grimloktt:
Restart as in regular operating mode? I let it fully start and use adb reboot bootloader then get "error: no devices/emulators found."

OK...figured it out. I had to enable developer mode again.
[Nexus 6P General] theleet:
Yes reboot into Android. Do you have adb drivers installed? You should see your device by typing adb devices. I don't remember now but maybe you have to put your device into file transfer mode (from the notification, default is charging only mode) and obviously usb debug has to be enabled.
[Nexus 6P General] grimloktt:
Thank you. You must've posted before I edited my previous post. I had to enable developer mode again...
[Nexus 6P General] rohitchouhan07:
I just got my new 6P and I was able to follow the steps and I successfully got twrp installed but after getting into twrp it prompts me a password to decrypt the data partition......also I was prompted a pin to boot my device( but I performed a factory reset and booted into the stock rom .........I wanted to know the drill from now to successfully install a custom ROM.
[Nexus 6P General] Heisenberg:
What version of TWRP did you install? There's a whole section of this guide that instructs how to flash a custom ROM.
[Nexus 6P General] rohitchouhan07:
I followed the guide properly and flashed the ROM without a hiccup .....

Thanks for the wonderful guide.
[Nexus 6P General] Einwod:
Mine is a 64GB version and I have used the flashall.bat file many times. It did not have any adverse effects on my device. I still had 64GB of space.
[Nexus 6P General] kyzn:
Thanks. Unlocked my bootloader and rooted without any hiccups. Running a custom ROM now. Man, I sure missed Android.
[Nexus 6P General] DAC.IT:
FAST BOOT

After reading this thread , thank you!

one question though , concerning the partition ,( yes i know how to get my 64 gigs back from having 32 ), but can I use the fastboot command "fastboot format userdata" , without having to go back to stock? in other words boot in to BL , ADB>FASTBOOT>fastboot format userdata ?
[Nexus 6P General] CyberZeus1977:
Hi, formatting userdata doesn't mean returning to stock. ROMs are in system partition.

Nexus 6P with Chroma rocks!
[Nexus 6P General] Heisenberg:
Yeah you can run that command at any time, it won't affect anything but your personal data.
[Nexus 6P General] slicer2k:
"Please note: this will erase all user data from the device!"

I was following the guide and stopped at that part.

Can i jump that part or i will have to erase anyway?
[Nexus 6P General] Heisenberg:
It depends what you're trying to do. I assume you're trying to decrypt? If that's your goal then you must format. But why do you want to decrypt? It isn't necessary anymore unless you want to use the Android N Developer Preview.
[Nexus 6P General] SlimSnoopOS:
Gotta be more specific. Are you referring to unlocking the bootloader or doing fastboot format userdata? If you want root access or custom roms, you need to unlock the bootloader. If formatting userdata, that is not required.
[Nexus 6P General] chaitanya_sai:
Can you make a guide to update to Android N from a rooted 6P?
[Nexus 6P General] nathanchance:
Section 9 of this guide is just that.
[Nexus 6P General] chaitanya_sai:
Thank you! I was skeptical about it. I thought a completely new version might require something else. I never thought it is the same as Section 9. I'll do it right away. Can I make a nandroid backup of the MM stock ROM and flash it if at all I want to come to MM after trying N?
[Nexus 6P General] nathanchance:
I'd always recommend a backup; however, if you are going from M to N, you will to follow section 11 with the following modifications:

1. Instead of flashing the stock boot.img from Google, you will need to flash the one found in this thread.

2. Omit flashing the stock recovery if you want TWRP.

3. You will need to run fastboot format userdata after flashing the images so your phone decrypts, which is currently necessary to use TWRP. This will wipe your entire internal storage and data partitions so make appropriate backups before doing this.
[Nexus 6P General] slicer2k:
Just root, i will stay in stock rom, all i need is root acess for some apps that requires it, like sixaxis app wireless.

thanks!
[Nexus 6P General] Heisenberg:
Yeah no need to decrypt then.
[Nexus 6P General] Aslam Driver:
Thanks, although I alreday tried flashall.bat and everything is ok

It's doesn't matter, You can use fastboot command before or after complete boot. You can even use this command on bootloader without phone's normal boot.

He's real concern is go to 64gb from 32gb. The mean of "returning to stock" is normal boot up.
[Nexus 6P General] CyberZeus1977:
"Returning to stock" doesn’t mean "normal boot up". Never. Absolutely.

Nexus 6P with Chroma rocks!
[Nexus 6P General] Heisenberg:
Please elaborate on what you mean by this, that isn't the definition of returning to stock.
[Nexus 6P General] LtSuperturd:
cant find device?

please link me to a thread if it exist already.

yes ive followed the steps

nexus 6p

android 6.0.1

android security update patch level may 1 2016

baseband version

angler-03.61

kenel version

3.10.73ga12dd8b

build number

MTC19T

any help at all please

my end goal is to install resurrection remix rom

my phone is has oem unlocking on and usb debugging

it cant find my device( dosent say that though)

[IMG="cmd and sdk"]https://postimg.org/image/63ldunh9t/[/IMG]
[Nexus 6P General] DAC.IT:
You need to use the link in the OP , its just gonna be samsung drivers basically, re read the op , its there, unless adb recognizes you cant fast boot, once it recognizes youll get splash screen.on your phone abd then youll be ready
[Nexus 6P General] markeightch:
please help

Hello: I'm attempting to root my Nexus 6P and have followed the steps you've outlined in your How To Guide For Beginners. Everything worked as prescribed: adb and fastboot checked out properly and returned serial numbers. Post #1 steps 1 and 2 proceeded fine. I completed step 3 even though after I did it I realized I didn't need to because I'm using the lastest TWRP.

I then proceeded to step 6. In order to download it to my phone I set up the phone, choosing to copy my existing Google settings from a nearby device, my current phone, an ASUS, which is rooted. I'm not sure if that's a problem or not because it restored Superuser and Busybox. I needed to set up the phone because I didn't know any way to download the Superuser.zip to my phone other than to use Chrome and get it from the web page link.

My problem is I can't see it anywhere on my phone using the TWRP recovery. When I attempt to Install, I can't see it in any of the folders I can navigate to using TWRP. Using Chrome I downloaded the zip file, then went to the Downloads app and selected it and copied it to a folder I created in Internal Storage named su, and in the Android/data folder. When in recovery trying to Install the zip I can't find the su folder, and when I select the data folder I don't see the zip file - there's nothing in it.

I'm wondering what did I do wrong. Things seem to be working OK, I followed all your steps, I just can't find the zip file to install.

Is there a way to install Superuser from the SDK Manager?

(by the way as it is now when I attempt to open the Superuser app that was restored to my phone, I get the message that there is no Superuser binary installed)

I'm wondering if copying the Google settings from a nearby device is something I shouldn't have done.

Thank you for your time in reading this: any guidance you choose to provide is greatly, greatly appreciated.
[Nexus 6P General] XAL2:
fastboot devices

Can anyone help? I have tried issuing that command multiple times but it will not return a number back. The adb commands are working just not fastboot devices. I'm rooted running cm 13 if that helps any. I'm just trying to have that working so I can flash Android N.
[Nexus 6P General] DAC.IT:
Drivers arent correct
[Nexus 6P General] XAL2:
Are you saying this to me?
[Nexus 6P General] DAC.IT:
Yes , because adb should give you your serial number if it doesn't show your serial number fast boot wont work and that's because your drivers aren't correct , when the drivers are correct you'll know as the phone itself will show a flash screen acknowledging it from there its easy sailing
[Nexus 6P General] Heisenberg:
Instead of posting about this in multiple places (which isn't allowed) let's maybe continue in the dedicated thread here:

http://xdaforums.com/nexus-6p/help/phone-wont-boot-t3409939