yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Einwod:
Did you place the bootloader and radio images in the fastboot folder and try from there with the short commands? Have you updated the version of fastboot in sdk tools?
[Nexus 6P General] tadjx2:
Yes I got the same partition table error and my version is 1.0.32
[Nexus 6P General] Einwod:
In that case, I would restore the factory images and try again from scratch. There's no reason for the partition table error unless you are making a mistake in the commands.
[Nexus 6P General] tadjx2:
I got it to work. I was using windows via parallels on my mac to do it, which I've done in the past and it's worked fine but not this time. I used terminal on mac to do it instead and everything worked perfectly. Thanks for walking me through this I really appreciate it. Also, it looks like you don't need to flash the modified boot.img anymore unless youre on the android N preview, is that corrrect?
[Nexus 6P General] Einwod:
That's right. The modified boot image for N. Glad it's sorted.
[Nexus 6P General] mswal2846:
I had to come back to Stock due to restrictions my employer imposes on the apps I need to use. Due to this, there really isn't a need for me to have an unlocked boot loader either. So I wondering if, AFTER, I relocked the boot loader I can still flash TWRP and restore my data (since my data will get wiped with the relock)?
[Nexus 6P General] 13ONK:
You can't flash anything with a locked bootloader, so nope.

You can flash twrp and then lock the bootloader.
[Nexus 6P General] LeftHandedWave:
The data will get deleted when you unlock, not when you lock.
[Nexus 6P General] Einwod:
And if you read the first post correctly, you would have seen this: Important: do not relock your bootloader unless your phone is fully stock. You must flash the factory images first in order to remove root and custom recovery (if you have them), if this precaution isn't taken you may end up with a brick. Please see section 10 of this guide for full instructions on how to return to stock.
[Nexus 6P General] 13ONK:
Oops sorry for the mis-information. I've relocked my bootloader with a custom recovery before but it was on a different device so there could be different results.
[Nexus 6P General] mswal2846:
Yea, I got that. Everything is stock BUT recovery. So I was wanting to know if I could flash just recovery (TWRP) AFTER relocking, which I didn't see covered in the OPS. But I have my answer, no TWRP after relocking ... but also, no loss of data (which is great news).

Thanks, all!
[Nexus 6P General] mswal2846:
Ok, so I did a ''fastboot flash recovery recovery.img" (to get to root recovery), rebooted to make sure all was well, then a "fastboot flashing lock". I received a question on whether I wanted to lock the bootloader and do a factory reset of my phone. According to the posts above, I should loose my data. But, if I say yes to the relock, it will do a factory reset and I will lose my data.

So I've left my phone unlocked.
[Nexus 6P General] CyberZeus1977:
You should relock your phone only if it is full stock, otherwise you will get a bootloop

Nexus 6P with Chroma rocks!
[Nexus 6P General] mswal2846:
Yes, I know. Everything but Recovery (because I had TWRP installed) was stock. So I flashed stock recovery to get everything back to Stock before I tried to "lock".

My point was I don't want to lose my data and have to reinstall everything. So I will remain "unlocked".
[Nexus 6P General] CyberZeus1977:
Sorry, I misunderstood

Nexus 6P with Chroma rocks!
[Nexus 6P General] macinmac:
Hello and a simple informative question: let's say that I have all the phone stuff under the backup setting, automatically, and then I do the factory reset, then I restore all the data; if in the data that was in the backup was some sort of error that would cause the phone not working properly (hopefully not), will that problem be restored too?

Wonder what is the best way to backup, and after that, a clean install?

Thank you.
[Nexus 6P General] equilateral_sq:
Absolutely boots, but it asks me for the password to decrypt the internal storage. I skip this prompt but the internal storage does not get mounted so I can't create a backup.

Got an idea of the next step?
[Nexus 6P General] DJBhardwaj:
Is your internal storage encrypted?

And also, is your device running Android N?
[Nexus 6P General] equilateral_sq:
Yes, android encrypted my internal storage when setting up the phone. Also, it is running Android N.
[Nexus 6P General] DJBhardwaj:
Currently encrypted Android N causes several issues on TWRP. While if you choose to decrypt, you would be able to avoid them.
[Nexus 6P General] AreOh:
Where is the option to encrypt or decrypt? I can not recall coming across that. Unless what I assumed was right in thinking that the phone is encrypted when you set up the option for a pin while booting. Is that right?
[Nexus 6P General] nathanchance:
The phone is encrypted unless you specifically decrypted the phone with the info in section three. If you have the option to ask for your PIN while booting enabled, the encryption passphrase is that PIN. If you have that option disabled, the encryption passphrase is "default_password". You can check your status in Settings > Security.
[Nexus 6P General] Az Biker:
I always make a nand right after booting up with a clean install.... then I allow the apps to update, I restore TiBu (app data ONLY), then I reboot. If all is well, I make a new nand then delete the first nand from after the clean flash.

I'm sure there a lots of ways to skin that cat. With each new build, I also make a new copy of my EFS, just because :D

But yes, IF your previous issue is in a setting or an installed app and you make a nand in that state, you would likely reintroduce that issue with a restore.
[Nexus 6P General] tarroyo:
Can you accept the latest May OTA if you're rooted? Or should you for that matter???? Reason I ask is that I accepted the April ota less then 2 weeks ago and don't wanna lose my data if I manually flash the latest image.
[Nexus 6P General] nathanchance:
You can't take an OTA if you are rooted. Just flash the factory images like it says in section 9, you won't lose your data.
[Nexus 6P General] pdppdp:
I can't find an answer to my question...

I want to root my device and put on twrp.

The tutorial says in point 3 to decrypt the data partition. Does that mean the device is not encrypted after rooting or does it get encrypted again after rebooting (and stays encrypting)?

To flash the monthly security updates I already read a few posts above that it need special treatment not to loose all data.
[Nexus 6P General] nathanchance:
Rooting does not decrypt you, it gives you the option to decrypt should you desire. You have to follow section 3 to decrypt, it does not happen any other way. If you don't do those steps, your device will just stay encrypted.

Updating stock Android is covered in section 9 of the guide.
[Nexus 6P General] pdppdp:
Is there any reason or advantage to decrypt? Sorry for the noob question.
[Nexus 6P General] nathanchance:
I did it for a few reasons:

1. Boot times are just slightly faster.

2. I hate the option to require security before startup (which sets the encryption passphrase) so my password would be default_password, which isn't secure to me.

3. I don't have to worry about TWRP being able to decrypt me when updates happen.

Other than that, there is not too much reason to decrypt. You lose your internal storage and apps/data when you do and if you ever accidentally encrypt again, you would have to do it again.
[Nexus 6P General] Prattham:
Why only data? I mean why just not restore apps via tb:highfive:
[Nexus 6P General] pdppdp:
Just wanted to thank you again for your quick help. TWRP is now installed, it's rooted and everything works :D

Even the may security patch is already installed.
[Nexus 6P General] Az Biker:
Sometimes an old, non-updated app causes problems (FCs, etc) so IF I were having unknown issues, I wouldn't restore a TiBu of apps just in case it was an old/corrupt app file...
[Nexus 6P General] logic88:
Sorry if this has been asked multiple time but I'm new to Marshmallow as I just upgraded to a 6P last month and used this very useful guide to root.

Now that the May patch is available, I'm wondering how much work it is to install.

I'm using the stock ROM and have only installed SuperSU, Xposed (5 modules), and Adaway.

If I follow the steps outlined in Item #9 and reinstall SuperSU and Xposed, will my Xposed modules retain their settings or will I have to reconfigure all of the modules.

Does everyone update for each month's security patch? Or do some folks wait and install several month's worth at a time?

Thanks!
[Nexus 6P General] nathanchance:
Your modules should retain their data since the /data partition is not touched but it is possible you will need to (not too familiar with Xposed).

I like to update right when it is available, that's part of having a Nexus device :p
[Nexus 6P General] NPOA556:
I update my 6P every month and my Nexus 7 whenever I get around to it (I sometimes skip a month). Including the time spent making a backup and transferring it to my laptop, the whole process takes me less than hour. Backup, flash images, flash TWRP, flash SuperSU, flash Xposed framework. Xposed does not need to be setup again. It's not as convenient as an OTA, but it's worth the extra hassle to me to have root and Xposed.
[Nexus 6P General] XAL2:
ADB Devices command

When I do the adb devices command I don't get my devices serial number back. Is this a problem or can I continue? Is it because I'm not on a stock rom? Thats what im trying to do is return to stock then re root.
[Nexus 6P General] DJBhardwaj:
You need to have USB debugging enabled in Settings > Developer options, for ADB to recognise your device.
[Nexus 6P General] adrman:
Yeah, I thought I had adjusted my path when I moved my sdk folder last week, but I just checked and I didn't. At my age, I think I've done things I haven't a little too often. :)
[Nexus 6P General] airmark:
Any suggestions here? It seems that entering the sideload menu stops the connection with adb so I can't sideload. Googling didn't help.
[Nexus 6P General] effraie:
About manually installed Android sdk...

I used to go with my Linux distribution packaged adb and fastboot, but as they seem outdated, I'll now go with up to date Google package.

Yesterday I installed a whole bunch of tools just to be sure I've got everything I need, but the full directory is 18go, wich is most probably way more than what I need...

Can somebody please tell me what is strictly needed for adb and fastboot?i just flash some rom, recovery and unlock some bootloaders, here, no development or compilation
[Nexus 6P General] mrRobinson:
All you need is platform tools then. Just use the sdk manager, uncheck everything else.
[Nexus 6P General] wirelezzz:
I had root working perfect , went to mod the build prop for multi screen and whole thing messed up

i started from scracth and everytime i install the boot.img and twrp phone stays at google reboots .

what would be the reason for that . i have don this few times . flashed my nexus 5 as well many time

NEVER MIND I was using my nexus 5 image boot
[Nexus 6P General] xda4ck:
Did anyone who decrypted the data partition by doing format tried running some benchmarks to see if the data read write speeds have improved or not ?
[Nexus 6P General] Swatto86:
I am a little confused because I have unlocked the bootloader but now I do not know what I need to do - apparently I need to flash a modified boot.img (which I have never had to do before with my other none Nexus devices), the problem is I am on build number: MDA89D and the modified boot.img is for MDB08K?
[Nexus 6P General] effraie:
you should OTA update to MDB08K, or flash it, before continue procedure
[Nexus 6P General] Aridon:
After I got into TWRP:

I FORMATTED, not wipe, format

Rebooted system

Setup my account, print as there were no more wipes

Setup adb debugging again in developer options

Pushed supersu apk via adb to /sdcard/

Reboot recovery

Flashed supersu in twrp

wiped caches

Reboot system

Fin

---------- Post added at 04:04 PM ---------- Previous post was at 03:33 PM ----------

Folks, if you fail to do these two things you will boot loop 100% of the time:

1. Fail to start this on the correct version. You must be on MDB08K. If you haven't gotten the OTA then download the updated image and flash that first.

2. Format in TWRP. Wipe is not a format. You must format.

If you follow the directions in the post you will succeed. If you fail to read these key points or others you will boot loop.

Take your time, it works you just can't miss those two important points.
[Nexus 6P General] TheRectified:
I ended up following this and another method of rooting partially last night and wound up with a busted phone. Regrouped today and following this guide totally and I now have a fully functional and rooted 6P.

Thank you so much for this guide!
[Nexus 6P General] Spartan117H3:
I can't seem to get my phone to be read by typing in adb devices. I have the phone unlocked/screen on and usb debugging enabled ( butwhen I plug it in, it doesn't ask me to verify the RSA of my computer like my old phone did). I tried reinstalling the Google USB Driver using the Android SDK manager, but it still doesn't read it. Am I missing something?
[Nexus 6P General] tcat007:
"This will delete all user data on device" (for unlock), does this include internal memory (music etc)?
[Nexus 6P General] Heisenberg:
The correct packages are mentioned in the OP, in the prerequisites section. Use the SDK Manager to make sure they're up to date and you should be fine.

I've seen the results of some testing and the performance gain was really small, nothing to write home about. I don't have a link unfortunately, sorry.

If you read the instructions it states clearly that you need to update to the MDB08K build before flashing the modified boot.img.
[Nexus 6P General] Badger50:
Yep! That's why it's good to do that before you set anything up :)
[Nexus 6P General] Swatto86:
Apologies, I didn't read it properly. Everything is fine now - I'm running with root. Thanks for the guide.
[Nexus 6P General] Born<ICs:
Following the OP instructions at this step "Boot into TWRP, enter the wipe menu and format (not wipe) data" are you able to select the format f2s partition option in TWRP at the same time? Or?

Thanks
[Nexus 6P General] Spartan117H3:
Anyone got any suggestions for how to fix this? I've attached a screenshot to the command prompt if it helps.

Edit: Looking at device manager, I have an old modified driver from ClockworkMod dated from 2012, but when I tried to uninstall it and reinstall the ones from the SDK folder (as taken from the OP), it reinstalled the same drivers. Any way to get rid of the old ones and reinstall the new ones? I've attached screenshots of my driver properties as well.

Edit 2: I fixed it, ADB is now working as it should, never mind. For whatever reason, I uninstalled it two more times before it gave me the Google USB driver.
[Nexus 6P General] Jamesholz:
Hi there, thanks for this guide.

I have successfully unlocked the boot loader and was attempting to root which seemed successfull, but was receiving gapps process errors when the device was active. I redownladed stock firmware MDB08K and instead it successfully.

However my 64gb device is now showing the tot storage available is only 24.17GB..

Any ideas?

Thanks heaps
[Nexus 6P General] Heisenberg:
Where did you download the factory images from?
[Nexus 6P General] Jamesholz:
From the official android website..
[Nexus 6P General] XAL2:
I do have it enabled. That's why I'm confused as to why I'm not getting anything back in return.
[Nexus 6P General] DJBhardwaj:
You have your phone connected while booted in OS right? Also, when you launch the command for the first time, you should get a prompt on the device to confirm the RSA key fingerprint. If you don't give it an OK, the command won't return anything.
[Nexus 6P General] XAL2:
Yes. When I try the command I do not get a prompt on the phone. What am I doing wrong lol? This worked perfectly before when I first got my nexus and rooted it. I am on CM13 if this helps any.
[Nexus 6P General] DJBhardwaj:
Bit odd. Have you updated your SDK tools to the latest version ?
[Nexus 6P General] XAL2:
Yes I have. I found what the problem is. On the computer I was on it didn't install the ADB drivers properly. So I just switched computers and all is well haha. Thank you for replying to me and trying to help out! I feel like such a newb when I'm not.
[Nexus 6P General] DJBhardwaj:
We all miss a few bits, even when they are right in front of you. Nice to know :good:
[Nexus 6P General] jedimyndtryx:
Thank you! Worked like a charm. Exciting to be back on Android! :)
[Nexus 6P General] Nsx93:
does it matter if what build your phone is on?

i just purchased this phone and it is on Build MHC19Q...

would this method apply to my current Build?

thanks
[Nexus 6P General] DJBhardwaj:
Irrespective of the current build, flashing the factory image will work. If you want the OTA update, you will need to join Android Beta Program, and the update shall arrive to your device directly.

But, before you go any further. Please know that both the process will wipe your device completely, so make sure to have a backup of your internal storage, and all other necessary things.

Android Beta Program - g.co/androidbeta
[Nexus 6P General] logic88:
Thanks for the info, nathanchance and NPOA556.

Just updated and it went fairly smoothly. The one thing that I forgot was that I run at a custom DPI so after updating, it reverted back to normal DPI and my home screens were messed up. Had to then go through and restore all of my widgets and app shortcuts. Next time I'll have to remember to take screenshots so I can easily restore all of the widgets and shortcuts to the way they were.
[Nexus 6P General] mswal2846:
I've not received the OTA push.

I've unrooted but left the unlocked bootloader. Would that still mean I can't receive the OTA? And if so, if I locked the bootloader would I begin to get the OTA again?
[Nexus 6P General] Heisenberg:
No, the bootloader status has no effect on whether you can take OTA's. You can wait and see or flash the factory images to update.
[Nexus 6P General] kench33:
Open a command prompt from within your fastboot folder (navigate to where you have fastboot.exe located on your PC, shift + right click anywhere within that folder, select open command prompt here), enter these commands to flash:

Code:

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

fastboot reboot-bootloader

fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.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 vendor C:\angler\images\vendor.img

Note: You should never flash the userdata image. It doesn't take into consideration the storage capacity of the device and always allocates 32gb of storage. This is ok for the 32gb model, but for the 64gb and 128gb models you'll end up with much less storage capacity than you should have. If you wish to wipe your internal storage you'd use the following command instead:

I am a little confused on this part, do I not need to flash userdata at all once I run that command? I have a 64gb 6p.
[Nexus 6P General] CyberZeus1977:
No you don't. Simply format userdata

Nexus 6P with Chroma rocks!
[Nexus 6P General] kench33:
When he says to not flash the userdata does he mean in TWRP, but it's okay to do it through the command prompt though?
[Nexus 6P General] CyberZeus1977:
No, neither. Userdata image is only for 32 GB devices. Anyway, he does mean through command prompt.

Nexus 6P with Chroma rocks!
[Nexus 6P General] Prattham:
Can you tell whats the size of ota?

Is it the same as downloading the whole img files?
[Nexus 6P General] CyberZeus1977:
Usually OTA is much smaller than factory images

Nexus 6P with Chroma rocks!
[Nexus 6P General] Prattham:
is there a link for may ota to flash via adb?

i could not find in the thread where ota links are posted

also

i'm already on april build with PN so can i just skip flashing bootloader and radio?

also i want twrp so should i flash the stock reocvery first and after flashing all flash twrp and super su or just simply skip that as well and flash system and vendor images?

cheers
[Nexus 6P General] Heisenberg:
If you're on PN why don't you just flash the latest PN build? The radio and bootloader are the same as previously so there's no update there. The only thing you really need to update is the vendor.
[Nexus 6P General] fotizz:
--------------------------

I m trying to return to stock #10 but after downloading the angler...I dont get the folders after the unzip...only one file I dont how to open it. Can you help? I tried almost all the versions and the same happened.
[Nexus 6P General] Heisenberg:
It's another archive, you need to extract it and then you'll see the files you need.

PS. Please don't ever quote the whole OP on XDA, it clogs up the page because they're usually huge. Can you please edit your post and remove that humungous quote? Thanks.
[Nexus 6P General] Dipayan4u:
The latest is angler-mtc19t-factory-1ad31a27. Unzip the folder to c driver where you should create a folder images.

Since its .tgz file, after unzipping you will get a .tar file, on unzipping you will get angler-mtc19t. This is the folder said in OP.
[Nexus 6P General] Prattham:
I just want to revert to stock and test something:D
[Nexus 6P General] Heisenberg:
Well if you're on PN you can't flash an OTA, an OTA can only be taken if you're stock, which you're not. You'll need to flash the latest factory images.
[Nexus 6P General] Prattham:
i think you didn't understood my ques

i have downloaded april factory images and want a link to the may ota if possible which i didnt found in your thread
[Nexus 6P General] Heisenberg:
I understood your question, but I'm yet to see anyone post the May OTA, so you need to download the May factory images and flash those instead.
[Nexus 6P General] fotizz:
Finally worked out but after the end of the procedure the kernel is still EX.
[Nexus 6P General] Heisenberg:
Did you flash the boot.img?
[Nexus 6P General] fotizz:
Yes I did... but I didn't check if any error occured during the procedure...I'll do the whole thing again.:fingers-crossed:
[Nexus 6P General] Ozark_8125:
I was on stock rooted / prev version, updated stock / leaving internal data, rebooted and it boothung. I forgot to flash supersu, so flashed twrp and supersu again, but still boothung. Something wasn't right... but not sure what, so I tried to wipe art/dalvik and it gave an error could not be mounted. Any ideas what I messed up?
[Nexus 6P General] fotizz:
I get ''FAILED'' when I flash boot.img...
[Nexus 6P General] DJBhardwaj:
What command did you use exactly to flash? Also, kindly put up a screenshot of the message or quote the complete message, it will help us get a better idea of your situation.
[Nexus 6P General] Ozark_8125:
Oops - read too fast and breezed over the add ons: flash twrp & supersu again BEFORE rebooting... :silly:
[Nexus 6P General] srikat:
Hello,

I have followed

on my MHC19Q Nexus 6P and am now trying to sideload the MTC19T OTA zip file.

I went to TWRP, selected the sideload option, connected my phone to the laptop, ran

adb sideload ota.zip

but getting an error (attached a photo).

Can anyone help?
[Nexus 6P General] CyberZeus1977:
Error 7 means that system partition has been modified and so OTA won't install.

Follow guide on how to update without loosing data. (chapter 9)

Nexus 6P with Chroma rocks!
[Nexus 6P General] tu3218:
What's the best way to get just stock recovery back? I went against recommendation and used wugfresh toolkit to flash stock awhile ago(everything has been running smoothly) and I went to go into stock recovery and nothing. I get the android and exclamation point and hit volume up and power button and nothing. I'm guessing I'm missing stock recovery? Not sure.