yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] thloe:
Have now unchecked the "read only"-box in mount, then nandroid. Then i´ved backed up the nandroid. In TWRP is all ok. but when phone boot i think it´s in a bootloop - 15 minutes and longer always the google logo.

Now i´ve to beginn from start - it´s horrible!!!

I think there is anything wrong. Can you tell me what have you checked / unchecked.

Thanks, greetings thomas
[Nexus 6P General] Heisenberg:
It's in a boot loop after restoring your backup? I really don't know, it's very hard to troubleshoot remotely. It's been that long since I actually used a nandroid. What partitions are you backing up and restoring?
[Nexus 6P General] Badger50:
If you backed up, and restored the vendor partitions, then that's likely your problem. Flash the appropriate vendor, then restore your backup, but make sure you uncheck the vendor partitions before you begin the restore process.
[Nexus 6P General] thloe:
I backup Boot, System, System Image, Vendor, Vendor Image and Data. And in Mount i´ve checked Data and Cache.

greetings
[Nexus 6P General] Heisenberg:
Ok, that might be your problem, my instructions only state to backup system, data, boot, and vendor. You probably don't need to backup vendor though.
[Nexus 6P General] thloe:
aha i thought all system and all vendor. ok will test it.

thanks
[Nexus 6P General] Az Biker:
You really only need to nand your vendor if your current backup is prior to flashing a new build and new vendor. You want your vendor to match the build. When flashing a new build and new vendor, if something goes wrong and you have to restore, you'll want the previous vendor to go with the previous build.
[Nexus 6P General] Riderunner:
Hey guys, I'm kinda new to unlocking rooting phones. So bear with me lol. I've unlocked my nexus 6p and I want to remove forced data encryption on my phone next. Problem is when I try to follow the instructions in this thread for removing encryption it erases user data but doesn't decrypt the phone. Do I need to be rooted first?
[Nexus 6P General] Heisenberg:
It does decrypt the phone, but if you're not using a custom kernel or ROM that doesn't enforce encryption it'll just encrypt again when you boot up.
[Nexus 6P General] Riderunner:
Okay, so I should be okay to go ahead and root the phone and install TWRP through the nexus root toolkit? thanks for the help btw.
[Nexus 6P General] Heisenberg:
You'd do it the other way around, TWRP first then root. You don't need a toolkit, everything you need is right here. I'd strongly suggest you do it manually, toolkits can cause problems, plus you really need to have knowledge of how to use fastboot if you're going to modify your phone.
[Nexus 6P General] todorcim:
Thank you for simply not promoting toolkits, although I have NRT on my windows PC, my Linux laptop is my go to for my nexus devices since the n4 I believe. Too many people rely on toolkits now without knowledge of adb & fastboot, and nowadays I see even devs saying to use a toolkit, because no one takes the time to learn about there devices anymore.

So hats off to you sir, you're one of the few that's left.
[Nexus 6P General] Dr.DL:
not sure if u remember my issue :D .

One question, could it be possible that CM 13 had damaged my ESF, and if I restored my stock esf, I'll be able to install stock rom without bootlooping? :silly:
[Nexus 6P General] rebel.mindset:
So, can't I lock my bootloader while I'm rooted and on custom recovery?

Cause I used to lock it on my Nexus 5, back then.
[Nexus 6P General] Einwod:
Why do you want to lock it? If you do you'll have to unlock again to flash updates and lose all info in storage.
[Nexus 6P General] Heisenberg:
It's highly doubtful that CM damaged your EFS. That wouldn't stop the phone from booting anyway.
[Nexus 6P General] lrcquest:
Finally got the warranty replacement. Tried to load TWRP but i get the "your device is corrupt , cant be trusted & may not work properly" message. Flashed the 29Q stock (got it on 29Q) without relocking the bootloader. After this , (@ stock recovery & unlocked BL) this message doesnt appear. (only the standard message of unlocked BL). However, after flashing the TWRP 3.000, the corruption message reappears.

Booting into system is fine, no error messages inside as well.

Have not proceeded further. Next step for me is to flash Purenexus from TWRP.

is there anything to be done to offset this as i know it is not normal.

http://xdaforums.com/nexus-9/development/fix-build-prop-variety-fix-aka-contact-t3133347

& is this still valid in this scenario???
[Nexus 6P General] Dr.DL:
umm, that's weird.

I'll try to restore the stock esf and flash the stock rom, final resort I guess. :crying:
[Nexus 6P General] Az Biker:
That is totally normal. It is basically saying, "Your bootloader is unlocked" which it is because you just unlocked it.

Proceed with the instructions in the OP with complete confidence :D
[Nexus 6P General] lrcquest:
These are 2 separate messages. One says that the bootloader is unlocked and the other says that the device is corrupt. As per op the first message should only be there. When i had the first phone all was normal. Attached screenshot earlier
[Nexus 6P General] SlimSnoopOS:
Whether it is after bootloader unlock or TWRP flash, both messages are normal. Per the OP, in section 1:

We all have this message on boot once unlocked and TWRP is installed.
[Nexus 6P General] lrcquest:
Agree with you on the first message. But beats me why i have the "is corrupted" message. Something gone wrong somewhere?
[Nexus 6P General] Heisenberg:
Why is that weird?
[Nexus 6P General] trader37:
I followed the instructions in post 10 to a T with the exception of locking the boot loader. I wanted to restore the phone to stock and lock the boot loader. The only thing I had done to it prior was to unlock the boot loader and to put TWRP on it.

Now, if I boot into recovery mode, it gives me an android lying on it's back with an exclamation mark coming out it's panel on the front.

The only thing I want to do is return the phone to stock... please help!

Thanks
[Nexus 6P General] Einwod:
That is the stock recovery. Relock the bootloader and you're done.
[Nexus 6P General] :
First of all thank you for this guide.

now I did everything and everything looks good except step 3. How To Decrypt Your Data Partition, I have TWRP 2.8.7.1. So there is no need to do this step right?
[Nexus 6P General] Heisenberg:
That's right, it's unnecessary.
[Nexus 6P General] Dr.DL:
I tried everything except restoring esf.

it's weird that stock rom keeps rolling in bootloop. :silly:
[Nexus 6P General] plumblucky@:
nexus 6p supersu flash fails on mmb29q

nexus 6p supersu flash fails on mmb29q, please help. twrp gives meta inf message and fails to flash?
[Nexus 6P General] belloni:
Great guide but would love some clarification. I'm currently on PureNexus with ElementalX, but would like to go back to stock but keep root due to adblock etc, what's the best steps for this?
[Nexus 6P General] SlimSnoopOS:
Factory Reset in TWRP, then boot into boatloader to fastboot flash boot, system, and vendor (if you used a Layers theme). Reinstall SuperSU in TWRP.
[Nexus 6P General] Heisenberg:
Sounds to me like a corrupt zip, download again and flash.
[Nexus 6P General] plumblucky@:
corupt zip file

Thanks for your reply, I've been using the supersu file in the link from the guide, On Mac OSX when Mac downloads the file it automatically decompresses it. TWRP would not read it decompressed so I would use finder to recompress into a zip. I believe this caused the problem. Because when I downloaded the zip in the same link with Windows 7 emulated on my Mac I had no issues with the root. thanks again.
[Nexus 6P General] SlimSnoopOS:
Use another browser, like Chrome. Safari does that for me on OSX sometimes.
[Nexus 6P General] belloni:
Thanks, so don't do advance wipe, just swipe then above.
[Nexus 6P General] JesusChristianBale:
Thanks for the great guide. Very thorough and easy to follow.
[Nexus 6P General] SlimSnoopOS:
You probably should, in TWRP, Advance Wipe/System, but that would be all I'd do.
[Nexus 6P General] Killerarl:
So I made one, possibly two, terrible newb mistakes 1) Iforgot to download SU to my Nexus 6p BEFORE beginning the process .... my bootloader is unlocked and boots into TWRP

2) I forgot to disable security before beginning (I left the fingerprint sensor and pattern backup in place) ... now if I try to boot from TWRP to system to download and install SU ... it asks me for my pattern, tells me that it is correct but that my data is corrupt and needs a factory reset .... doing the factory reset makes no difference.

I am not sure how to get SU on my phone at this point, or if that is even the right way to go about fixing the problem?

Any help would be greatly appreciated
[Nexus 6P General] greyhd:
You can download the SuperSu zip to your folder, connect your phone to the computer and transfer the zip to your phone's internal storage. Then boot into TWRP and flash the SuperSu zip.
[Nexus 6P General] dboren:
Hello again,

So im trying to unlock the bootloader, and my sdk tools and drivers are up to date, my oem unlocking is on, usb debugging is on, and when i type the first 2 commands of:adb versions and adb devices i get the appropriate responses. However, when i test the fastboot connection, nothing happens, at all. It just repeats the folder location and is ready for a new prompt. Not sure why or where to go from here. Thanks for the help!

Edit: Scratch that, did not know that the bootloader needed to update drivers as well
[Nexus 6P General] Heisenberg:
Are you connected while in the bootloader while issuing the command?
[Nexus 6P General] dboren:
ya while i was connected in the bootloader, the device wasnt recognized at all. so while in the bootloader, i updated the drivers through the device manager and that fixed it. While the phone was on it was recognized as a Nexus 6p, with updated drivers and all, but in the bootloader it was only recognized as Android, and that the Android Interface driver needed to be updated.
[Nexus 6P General] Heisenberg:
Cool, glad you're up and running.
[Nexus 6P General] RngrYogi:
I have a quick question.. I unlocked my bootloader. Tried out a custom rom and kernel. I could not work with either so I flashed back to full stock and luckily somehow did not get a 32gb storage problem on my 64gb model of my 6P, or at least my storage reports I have 64gb available. So I'm fully stock and I want to know being fully stock and on a unlocked bootloader can I still get and take ota updates. If not is there any good method to do a full backup then relock the bootloader and cause the wipe and then somehow restore the backup of my userdata?
[Nexus 6P General] Heisenberg:
You can still take OTA updates with an unlocked bootloader, no need to lock it.
[Nexus 6P General] gts24:
FYI there is a fairly big issue right now that seems to be affecting quite a few people (including myself) with this phone. LTE dropping and being difficult to get back. This is apparently specific to build 6.0.1 (in other words, those that are on 6.0.0 didn't have this issue).

I am presently on 6.0.1 build MMB29Q with Verizon and am experiencing the symptoms of LTE dropping then having difficulty reconnecting as outlined in this google problem thread: https://code.google.com/p/android/issues/detail?id=197102

user Jason J in post #273 says the following:

So my question is:

I am presently systemless root, can I easily flash MMB29M using Flashfire pro without having to wipe all data from the phone?
[Nexus 6P General] Heisenberg:
It probably isn't the best idea to go backwards without wiping data, could cause issues. You wouldn't need to wipe userdata though. I think you'd need to flash the images via fastboot though, I wouldn't trust an app to perform such an operation (if it even can).
[Nexus 6P General] GKalle:
Nexus 6P stuck on Google Logo after TWRP Backup Restore.

I tried to restore a backup (MMB29Q - system+data+boot, done after installing the last factory image without root) and I got blocked on the Google logo. I tried twice without managing.

In the end I solved the problem installing supersu v2.68 zip before restarting.

It's as though the restore needs the root to work properly.

What do you think?

Thanks.
[Nexus 6P General] Heisenberg:
It shouldn't require root. Did you flash your vendor partition? If not there could have been some residual data there that was causing a conflict. I usually backup and restore vendor as well as the usual system, data, and boot.

PS. I see you already posted this here:

http://xdaforums.com/showpost.php?p=65648679&postcount=19

Please don't double-post, it isn't allowed.
[Nexus 6P General] GKalle:
I had restored only system+data+boot and it didn't work two times. Then I restored system+data+boot and flashed supersu and it worked, I don't know why.

I know I posted this twice but nobody answered on the other thread and so I posted here because I know you always answer. I wanted to cancel the other post but I don't know how to do it because I rarely write on xda
[Nexus 6P General] Heisenberg:
I don't know why either. It could be that thethere was data left over from when you were previously running the backup, and it wouldn't boot without SuperSU there along with the data.
[Nexus 6P General] yeroc1982:
I'm on MMB29Q and I'm about to go ahead and do this. Only looking for root access, I'll stay on stock roms. Any weirdness with this MMB29Q I should know before hand? Really don't wanna brick my new phone lol. Thanks!
[Nexus 6P General] Heisenberg:
Nothing to really worry about, just unlock your bootloader, install TWRP, and install the latest SuperSU.
[Nexus 6P General] yeroc1982:
SuperSU i can download from play store right? After that should I nandroid and EFS backup then root? Thanks
[Nexus 6P General] ridobe:
You really need to read the OP.
[Nexus 6P General] Heisenberg:
You're better off just flashing the zip with TWRP. You could download it from the Play Store, the stable version is compatible now, but it'll have to boot up into TWRP to update the binaries anyway. But yes, make your backups first.
[Nexus 6P General] Rajeev:
Hello

I am new to N6P. Already done rooting and all thing. But yesterday faced one bootloop without any reason. So decided to flash stock image without wiping internal storage. All done. Flashed all needed files and now my phone is just like new . I lost root. Not a big problem. I don't need root anymore but how to relock the bootloader. ? The message coming every time when i reboot the phone. Is there any way to relock the bootloader ? After relock i can use OTA updates ? Please some one reply. ;)
[Nexus 6P General] subhjvlz:
If you wish to you can also relock the bootloader with this command:

Code:

fastboot flashing lock

(This command will wipe all user data from the device)

Important: do not lock the bootloader unless you have first flashed the stock images. Locking the bootloader while you have a custom recovery installed can result in a brick. Please also note that the locking procedure will wipe all user data from the device.

OTA updates are not affected by locked/unlocked state of BL. You can take OTA while BL is locked or unlocked
[Nexus 6P General] Heisenberg:
Phones don't usually boot loop for no reason. Anyway, I'd advise against locking your bootloader. If your device ever gets in trouble and you need to flash the factory images to get it booting again you'll need to unlock the bootloader again, losing all your data in the process, with no way to back it up first. So I think it's better to just put up with the message when you reboot. You may not think this happens often, but I've seen it happen enough times to worry about it.
[Nexus 6P General] Rajeev:
Thank you so much my friend..;)

Hello

Thanks alot for ur kind information. So i am now with the latest update. No root and no twrp recovery. Please answer my two questions..

1. If i have a unlocked bootloader , root and twrp recovery i can still get latest updates via OTA ?

2. If i have a unlocked bootloader ,no root and not twrp recovery i can still get latest updates via OTA ?

Thanks and Regards :) Sorry for my poor English. :p
[Nexus 6P General] subhjvlz:
1. No

2.yes
[Nexus 6P General] Heisenberg:
All the information you need is in the first three posts of this thread.

1. No, you can't receive OTA updates while you have TWRP recovery installed.

2. Yes.
[Nexus 6P General] Heisenberg:
No, you just flash the images with fastboot.
[Nexus 6P General] Rajeev:
No it won't delete ur app data. Make sure u did not flash userdata.img and do not do a factory reset.
[Nexus 6P General] spuri78:
I'm currently on MMB29M. So, I updated the vendor (downloaded from here). The flash process went through fine but when my phone booted, I had a message "there is an internal problem with your device. Please contact your manufacturer" and I'm still on MMB29M. I'm rooted with unlocked bootloader.

Thoughts?
[Nexus 6P General] GKalle:
"fastboot erase radio" that works on N5, doesn't work on N6P.

This command isn't essential before "fastboot flash radio" but I was curious to know why...

Thanks
[Nexus 6P General] Heisenberg:
Which vendor zip did you flash? And why did you flash it?

I've never used an erase command for the radio, but if it doesn't work for this device there's a reason.
[Nexus 6P General] spuri78:
I flashed MMB29Q_vendor.img. Why I flashed it? umm, wanted to have the phone up to date? Sorry, I don't follow what you are getting at.
[Nexus 6P General] Heisenberg:
You got the error because you flashed only the vendor image and it's incompatible with your current build. You have to flash all of the factory images (except userdata) for the build you want to update to, that's why I asked. It's all in the guide that you're posting in.
[Nexus 6P General] spuri78:
Ok, no worries. I was just hoping to avoid downloading nearly 1GB of file as my internet is busted at the moment and I'm on 4G. But not to worry, if that's the only way to do it, I'll wait until my internet if fixed and I'll flash it then.
[Nexus 6P General] GKalle:
Do you know the reason?
[Nexus 6P General] Heisenberg:
No I don't.
[Nexus 6P General] gts24:
Within TWRP ,

Wipe > then just do the "swipe to factory reset" option, (wipes Data, Cache, And Dalvik) ?

or

Advanced Wipe > _______________ what options here?

Second question , AFTER the above proper wipe question is answered can I simply flash this: N6P_6.0.1_MMB29M)_STOCK-flashable.zip within TWRP to roll back to MMB29M ?

(from this URL https://www.androidfilehost.com/?fid=24269982087014913 )
[Nexus 6P General] Heisenberg:
Go to advanced wipe and select data, cache, and dalvik cache. And no don't use a flashable zip, follow the instructions in my guide to flash the factory images.
[Nexus 6P General] Snowers96:
This is the worst tutorial in XDA, my Nexus turns into a hipster and claims to have been modified before it was cool and the autor of the post claim that he won´t be held responsable of that!!

Jokes apart, thanks Heisemberg for the tuto, i read carefully and everything works like a charm!

Saludos desde Argentina!
[Nexus 6P General] spuri78:
Just flashed a sound mod in twrp and got the same "there is an internal problem with your device. Please contact your manufacturer" message. Until I can flash the factory image, I just want to make sure that there is nothing wrong with my phone?
[Nexus 6P General] Heisenberg:
If your phone is booting up and working as it should I wouldn't worry too much.
[Nexus 6P General] rishabh56:
I am currently on pure nexus. What do I need to do if I want to decrypt my data partition? . Is there any significant advantage of decryption over encryption.
[Nexus 6P General] Einwod:
Obviously an encrypted partition is going to be more secure than an UNencrypted partition. What are you people frightened of?
[Nexus 6P General] rishabh56:
How can I decrypt it?
[Nexus 6P General] ridobe:
Item #3 from the OP.
[Nexus 6P General] rishabh56:
But it is written in op that it is not needed as long as you have 2.8.7.1

I have twrp v3. 0
[Nexus 6P General] Heisenberg:
It isn't necessary anymore, it used to be in order for TWRP to work though. But that is how you decrypt if you choose to.
[Nexus 6P General] mobileman88:
Anyone upgraded to MMB29V build? Any issues with supersu/xposed?
[Nexus 6P General] greyhd:
You should flash 29V yourself and report back :good:
[Nexus 6P General] mobileman88:
done. So far so good. Will feedback more after 24hrs.
[Nexus 6P General] newstar:
Hello , i am new to nexus , this is awesome guide and many thanks for it but it cover only systemless root via supersu beta , i want to do native system root , Help will be highly appreciated
[Nexus 6P General] Heisenberg:
There is only one root method these days anyway, what was systemless has been merged into the main SuperSU branch, so you're still getting a traditional system root. I need to update the wording in the guide.

EDIT: Actually, I had already fixed the wording. Whether you use stable or beta doesn't really matter, they both use the same method.
[Nexus 6P General] El-Lobo68:
Why not found in the Backup Option with TWRP 3.0 the Option EFS backup?
[Nexus 6P General] subhjvlz:
Scroll down below the cache
[Nexus 6P General] Heisenberg:
Too funny :silly:
[Nexus 6P General] bouchigo:
Take a look at this if you don't want systemless: http://xdaforums.com/apps/supersu/v2-64-2-66-supersu-mode-t3286120
[Nexus 6P General] SyCoREAPER:
Trying to find the right wording to search close to 300 pages so I am very sorry if this has been answered.

I read all of the steps of flashing From the front page I see all the methods of flash updating but not in regards to TWRP. What if I want to flash a plainass factory image from TWRP? Is there a quick and easy way to just flash a factory image from TWRP?

I just want to make sure because I've never owned a Nexus before nor used TWRP in this manner. So per my assumption of point 9, TWRP can't be used for flashing, you have to follow Step 9 and TWRP is literally only in place for creating and restoring backups?
[Nexus 6P General] subhjvlz:
I was also wondering....
[Nexus 6P General] SlimSnoopOS:
TWRP 3.0 can flash .img files for boot, system, and vendor for updating or downgrading purposes. Radio and bootloader .img files cannot be flashed in TWRP 3.0. If you are on a custom rom, do a Factory reset in TWRP then install the img files in TWRP.

If you are on stock MMB29Q, flash boot, system, and vendor. Then root if need be.
[Nexus 6P General] newstar:
Dear @ Heisenberg i have 64 gb variant i flashed stock data.img mistakenly now it show space as 32 gb .. What is solution
[Nexus 6P General] SlimSnoopOS:
Type the following command in fastboot, this will format internal storage:

Edit: WHOOPS! Originally wrote the wrong command, see [MENTION=5642871]GKalle[/MENTION] below
[Nexus 6P General] GKalle:
factory reset or "fastboot format userdata"
[Nexus 6P General] mswal2846:
Thank you very much for this guide. I'm new to Nexus (coming from Samsung Galaxy Tmobile S4 - unlocked boot loader). I wanted to upgrade my phone, but just couldn't bring myself to get into a hard locked bootloader. So I bought the Nexus.

I was able to follow your directions, but had to use a Windows machine to do it. I run Fedora 23 and wanted to get the environment setup so that I wouldn't need a Windows machine going forward. The guide here was very helpful to get everything setup on Fedora: http://forums.fedoraforum.org/showthread.php?t=298965

Perhaps it will help someone else.

Again, thanks for this forum!

Edit: By the way, the above link talks about adb, but it also works fine for fastboot.
[Nexus 6P General] MilitantApathist:
Thanks Heisenberg, this guide is great. I was able to painlessly root my Project Fi Nexus when I got it a month ago, and today the instructions in Step 9 worked perfectly to update to the stock March security patch (MMB29V).

If anyone is wondering, the March update seems to work fine with this root method and all tested stock and root apps are functioning as they should. For some reason I received a "permission denied" error when I tried to flash the stock recovery, but that didn't really matter as I immediately re-flashed TWRP and SuperSu after going through the rest of the steps with no issues.