yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] facemob:
i'm just getting home from work so i am gonna try it. i will post results when done
[Nexus 6P General] zer0se7en:
I never had any problems flashing anything on my Nexus 6P. One thing was just confusing me.

When I sideloaded the first official OTA on 7.0 Android N, it gave me the worst battery ever. Doze does not kick in. Even factory reset and reflashing\sideloading again never solved anything. So I flashed back to MM. Then flashed the latest build with Sept security update. Getting great battery life again. Doze kicks in when expected.

Now the question is, does the new Android N with Sept security patch solved the battery drainage problem? I have downloaded it but holding back on updating. Any opinions on this matter? Thanks in advance.
[Nexus 6P General] facemob:
2.77 didnt work either... im starting to wonder since the boot.img gets modified could that be the reason the phone wont boot?
[Nexus 6P General] vik4:
I flashed Nougat factory hoping to keep data. Worked fine, but the first boot went into a bootloop (or so I thought). I hard-booted after about 15 mins into the first boot, but then got an "Encryption Unsuccessful" error message.I now suspect it was encrypting the phone while doing the first boot. If this was the case, thats a big usability flaw IMHO - it should notify what's going on, and tell the user to connect the charger. Anyways, looks like I'm going to have to restore from backup :(

Perhaps the Howto should mention that an upgrade to N may try to encrypt the entire device, so you should allow the first boot to do its thing (and plug in the power too)
[Nexus 6P General] facemob:
OMG... i feel like such an idiot... i finally got it to work.....

i didnt have usb debugging enabled
[Nexus 6P General] mobileman88:
Using a stock unmodified boot will always force encryption if you are not encrypted
[Nexus 6P General] d4m4s74:
Just installed TWRP and supersu in my nexus 6p following these instructions. No issues at all. Thank you.

Any other must-do things you recommend aside from backupping everything ?
[Nexus 6P General] puchodog1977:
hi. great write up btw ... i was able to root in no time.. i have a question.. i made a nandroid backup and backed up my efs also. i never installed a custom rom. i have tweeked my kernal with some apps but thats it.. can i use sdk to unroot and lock my boot loader without having to install a stock rom because i never installed a custom one in the first place or do i need a stock image?
[Nexus 6P General] scoot0073:
After creating a nandroid I would copy it to your computer so that you always have a copy if something goes wrong and you Internal Storage gets wiped..

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

You Never relock your bootloader with custom anything . Only can relock bootloader when back to Full stock..
[Nexus 6P General] puchodog1977:
Right but if i unroot my original stock rom I'm good to lock boot?
[Nexus 6P General] CyberZeus1977:
You also must have stock kernel and stock recovery

Nexus 6P with Chroma rocks!
[Nexus 6P General] puchodog1977:
its funny. i wasnt even gonna root my nexus 6p because it was already so awesome. and i rooted other phones for wifi tether but this didnt need it. i used nova launcher and everything was swell. then i got an idea to root and 1 week later my bezel has a bend in it. dont wanna send it back rooted even though i dont think they will check. i have sent phones in with custom roms and they have replaced screens and buttons no questions asked.
[Nexus 6P General] kenikh:
Ran into an interesting challenge where I could flash every image except system.img. I kept receiving the following error:

"error: cannot load 'C:angler\images\system.img"

For some reason fastboot reported the max allowable file size for loading was 494927872 bytes (500 MB) - not good when system.img is 2.5 GB.

Solution? Fastboot flash recovery the latest TWRP, sideloaded system.img from TWRP and flashed system.img from TWRP "Install" options. This might seem obvious, but wanted to throw it out there in case anyone else gets similarly stuck.
[Nexus 6P General] Xewyph:
Hey all. Just downloaded the Android N zip from Google official list (7.0.0), but can't flash it. Twrp says something like there is a problem with the Md5 ! Do you guys know what can i do ? :) Thanks !

Btw : i'm rooted on NPD90G with twrp !

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] markwebb:
I just got that error as well on brand new 6p.
[Nexus 6P General] Xewyph:
Oh the error says : "Could not find meta-inf/com/google/android/update-binary" ! I can't flash the official update :(

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] Einwod:
You don't flash it with TWRP. You use fastboot commands. Read the writing on the page you downloaded the factory image zip from. It could not be more simple.
[Nexus 6P General] Xewyph:
Oh Well, thought i would be able to with Twrp ! Gonna do this ! Thanks ! :)

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] Milly7:
Update your Android SDK
[Nexus 6P General] Michael833:
I loaded NRD90U from the factory images, but now I need to go back to MM for a bit. Can I just restore my TWRP backup, or do I need to downgrade something, like my radios or some other piece of the system?
[Nexus 6P General] Dr.Tautology:
I want everyone to know the nightmare I went through today. It was HELL!!! Moral of the story: DO NOT ATTEMPT TO REVERT FROM NOUGAT TO MARSHMALLOW. If you do, then you better hope to god you have an older back up of your EFS partition.

Refer to this found here:

http://xdaforums.com/nexus-6p/help/botched-nougat-install-phone-boot-loop-t3445709/page42

Quote:

Originally Posted by bogomil4e

Hello everyone! I bring news from the TWRP developers from the #TWRP IRC channel! TWRP 3.0.2-1 has a fatal bug! If you backup and restore EFS it will brick you! Do not backup and restore EFS on 3.0.2-1! Use 3.0.2-0 instead! This has already been fixed in the newer builds!

If you have been bricked you NEED to Erase the EFS partitions and that will fix it immediately.

For the Nexus 6P go to TWRP. Then on PC Open Command Prompt with access to ADB ( Android Debug Bridge) and execute the following commands:

ADB shell dd if=/dev/zero of=/dev/block/platform/soc.0/f9824900.sdhci/by-name/modemst1 bs=16384

and

ADB Shell dd if=/dev/zero of=/dev/block/platform/soc.0/f9824900.sdhci/by-name/modemst2 bs=16384

This should fix it for ANY Nexus 6P users. Users on other phones with the same problem await instructions!

DO NOT ATTEMPT TO BACK UP OR RESTORE YOUR EFS USING TWRP 3.0.2.1 OR 3.0.2.2!!!! Use only 3.0.2.0
[Nexus 6P General] mbutandola:
I'm sorry you had to go through this, but this is common knowledge among people who's been following this thread for sometime.

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] mobileman88:
If sending into Huawei support from my experience is any help. Their support is really firm with your phone being stock or they might void good warranty when your have an unlocked bootloader. HTC was a lot nicer about it

---------- Post added at 08:48 AM ---------- Previous post was at 08:44 AM ----------

By the way how did you bend your phone? My 6p developed a slight bend on the bezel neat the power button like on the first week of use and I never dropped or sat on the phone.
[Nexus 6P General] puchodog1977:
I sit on it. Sleep on it sometimes. Drop it. I just actually bent it the other way and the bend went away...... For now. I get new phones all the time but this bugs me a little. I like my phone perfect. I use Spigen and glass screen protector.
[Nexus 6P General] Dipayan4u:
Installed Nougat (factory image). Now I want to root. But I couldn't. I followed the OP instructions but I keep getting error when flashing latest TWRP.

Error Writing recovery

Access denied.

What can be issue?

Even I checked developer options and found OEM UNLOCKING option to be disabled. If I try fastboot flashing unlock command, it says I am already unlocked.
[Nexus 6P General] Einwod:
Is USB debugging on?
[Nexus 6P General] Dipayan4u:
Yes. Done all as said.
[Nexus 6P General] Assassino92:
Hi!! I have a problem with OTA of Nougat on my 6p. I don't understand when put the zip file of OTA. Adb give me an error.
[Nexus 6P General] mxjcmxjc:
I followed the instructions in 14. and it ended up wiping my data, I was coming from MM. Was that supposed to happen?

***I totally forgot that I had to unlock the bootloader which would have erased my data.***

Luckily I made an adb backup prior :). Thanks for the quick replies!!!
[Nexus 6P General] Starphish:
That should not happen unless you accidentally flashed userdata.img.
[Nexus 6P General] mobileman88:
Never supposed to happen.
[Nexus 6P General] Heisenberg:
Can't happen unless you flashed or formatted userdata.
[Nexus 6P General] Cherser:
Ur phone is encrypted. U have to flash modified boot.img.
[Nexus 6P General] llmnm:
Upgrading from Older Build

Hello. I am preparing to update to Nougat and wonder if I have to go through all the security patches first before I update. I am currently on MTC19X. Do I need to install MTC20L, NRD90T and finally NRD90U to be fully updated? Or can I go right from my current build to NRD90U?

My other question is if I create a TWRP backup on MTC19X, will I be able to utilize it if I go to NRD90U?

Lastly, can someone point me in the direction of instructions to how to utilize the TWRP backup in case flashing the new system images goes wrong. Particularly if the update installs the stock recovery, then how do I utilize the backups that I now have saved on my comp?

Thanks!!
[Nexus 6P General] greyhd:
You can go directly to 90u but use the Google images. As for your backup, you can use it as long as the vendor images match and you use two 3.0.2-1 or -3(unofficial).
[Nexus 6P General] Dipayan4u:
Can you link me to the modified boot.img file please?
[Nexus 6P General] Giozer:
Hello.

I have a rooted Nexus 6p with MM (MTC20L) with TWRP 3.0.2-0 and SuperSU 2.78.

I would install Andorid N (Factory image NRD90U) as explained in paragraph 14 of the Heisenberg guide (14. How To Update To Android 7.0 Nougat).

Before doing this, what should I do:

1) Backup to PC or USB OTG,

2) Change TWRP (3.0.2-2)?

3) uninstall Xposed? or it is overwritten by the new factory image?

4) after flashing Android N root it is loss and I have to do it again (with flash TWRP and SuperSU 2.78 installation)?

More things to do before?

Thank you.
[Nexus 6P General] CyberZeus1977:
How can I get TWRP 3.0.2-3 (unofficial)?

Thanks

Nexus 6P with Chroma rocks!
[Nexus 6P General] Heisenberg:
A quick search (3.0.2-3) of the TWRP thread uncovered this:

http://xdaforums.com/showpost.php?p=68656140&postcount=1205
[Nexus 6P General] Heisenberg:
1) It's a good idea to keep a backup on your phone and also on your PC or USB drive.

2) Use TWRP 3.0.2-3 instead: https://idlekernel.com/twrp/nexus/

3) Xposed will be overwritten.

4) Yes you'll lose root and will need to flash it again.
[Nexus 6P General] shawnaye:
Hey just a quick question, if i'm currently rooted, twrp and custom rom.

is it ok for me to just adb flash the factory image from google?

I dont mind losing everything , kinda want a fresh start.
[Nexus 6P General] Heisenberg:
You mean fastboot flash? Yes you can but you need to wipe date and caches in TWRP first.
[Nexus 6P General] shawnaye:
Yeah fastboot flash.

Oh alright, so i'll do a factory reset in TWRP first then fastboot flash "flash-all.bat" .

Is that alright?
[Nexus 6P General] Giozer:
Thank you for your answer.

I have to install the new PC recovery after updating to Android N, then when I have to redo the root? Or for some reason it may be better to install it before you upgrade to Android N?

Thank you.
[Nexus 6P General] Assassino92:
This is my situation: https://goo.gl/photos/oP84wc9LvRBMCCWv8

Someone can help me?
[Nexus 6P General] CyberZeus1977:
Hi! Have you put the recovery into sideload mode?

I'm Italian too [emoji1]

Nexus 6P with Chroma rocks!
[Nexus 6P General] Heisenberg:
You're better off flashing the images manually, the script will wipe your whole phone.

What do you mean by PC recovery? Do you mean TWRP? Flash it after updating.
[Nexus 6P General] Assassino92:
Ahah ciao amico! Ahah

Sorry but I don't understand what do u say! ADB recognies every command, only adb sideload ( ota.zip ) give me problem.
[Nexus 6P General] CyberZeus1977:
You have to press and hold volume - and then press power while your phone is in recovery

Nexus 6P with Chroma rocks!
[Nexus 6P General] Assassino92:
Ok, and what happen with this combination?
[Nexus 6P General] shawnaye:
Hmm, but isn't asking me to wipe my data and cache already wiping my whole phone.
[Nexus 6P General] CyberZeus1977:
Your recovery will be in sideload mode and you can run adb sideload

Nexus 6P with Chroma rocks!
[Nexus 6P General] Giozer:
Sorry!

Install recovery TWRP from PC.
[Nexus 6P General] onbacardi:
Hi guys, sorry for a noob question.. I have never owned a nexus phone.

I am wondering if the nexus 6p is rooted can you still get updates from google over the air?
[Nexus 6P General] Giozer:
I just upgraded my Nexus 6P to Nougat, following the instructions in paragraph 14 of the Heisenberg guide. Everything went smoothly with no problems, and I have kept all my data, settings, apps.

Now I have to redo the root (l hate intrusive advertising, I want to install Adawy!).

I tried, unsuccessfully, to install from a PC the TWRP recovery 3.0.2-3.

Fastboot flash recovery ... TWRP-3.0.2-3-angler.img.

Apparently it seems that it is installed, but on reboot to revocery appears only the little Android robot and the word "no command".

Maybe something wrong? Perhaps it is not the correct version of recovery?

Suggestions?

Thank you.
[Nexus 6P General] Badger50:
After you flash TWRP with your computer, then manually boot into recovery with the phone buttons. Then flash SU 2.76 or 2.78, then reboot your phone and it should stick. If you don't see SU once your phone is up and running, just install it from the playstore [emoji106]
[Nexus 6P General] Giozer:
But I can not see the TWRP. I so do not know if it is installed.

I read somewhere that 3.0.2-3 is not official. Maybe there are installation problems?

If I enter the Stock Recovery can not find the command "install zip" and then how can I install SuperSU?

If I download the SuperSU from Google Play, SuperSU realizes the absence of root and therefore will not work.
[Nexus 6P General] Badger50:
If your in fastboot, then flash TWRP 3.0.2-3, which is what I use and it works fine, you should be able to see on your computer if the flash was successful. If so, you should be able to manually boot into TWRP using the phone buttons [emoji106]
[Nexus 6P General] Heisenberg:
No, the script will wipe everything, including all of your personal data. Wiping data in TWRP only wipes apps and settings.
[Nexus 6P General] Heisenberg:
No. There's an FAQ that answers this btw.

Are you booting straight to the recovery after flashing or are you rebooting to the bootloader first?
[Nexus 6P General] bliston78:
I'm on the same boat as the above quoted, just flashed TWRP-3.0.2-3, reset the bootloader, still don't have anything that says "TWRP" or "Recovery". I checked in the recovery mode to see if anything was displaying in there as well with nothing new.

Nexus 6p, Rooted it last night, running Android ver 7.0 nougat
[Nexus 6P General] Heisenberg:
Try booting directly to recovery after flashing it, then you need to flash SuperSU to get it to stick.
[Nexus 6P General] MSITHero:
DELETE
[Nexus 6P General] Giozer:
I solved the problem by following precisely your advice. Thank you.

But currently I have this weird problem.

I see in all screens, with all applications, the navbar and statusbar always have the same color. This color I think they have taken from the app ilmeteo.it, but continue to keep all applications, even if they have different colors. I show you some screenshots. How do you think I can solve this that is aesthetically unpleasant?
[Nexus 6P General] SlimSnoopOS:
Hey, it's not XDA compliant to post the same question in multiple threads unless a day or more has passed. I answered your question in the Q/A section.
[Nexus 6P General] meleelord:
Turn off battery saver in the battery section and it will go away.
[Nexus 6P General] tpthatsme:
I upgraded my 6P to 7.0 and rooted per the instructions, but a few of my apps fail to gain root access. Apps like Adaway, ES File Explorer Pro, Secure Settings. Is there a problem with downgrading back to 6?
[Nexus 6P General] scoot0073:
Open up SuperSU app and make sure they are not being blocked.
[Nexus 6P General] Giozer:
Thanks for your advice.

To my surprise, I saw the problem resolved spontaneously.
[Nexus 6P General] lord_citan:
rooted on 6.0.1, want to fresh install N7

hi all,

have a rooted 6p on MHC19I and want to do a fresh install to Nougat.

Do I just follow Step 14 and add this command at the end?

fastboot format userdata

or do I do a Factory Data Reset on my device BEFORE starting the flash process?

TIA
[Nexus 6P General] SlimSnoopOS:
Either works in this case
[Nexus 6P General] sengab1991:
is there a way to backup before unlocking/locking bootloader to restore after ?
[Nexus 6P General] Heisenberg:
No. To perform a nandroid you need TWRP, to have TWRP you need an unlocked bootloader.
[Nexus 6P General] Giozer:
I have installed TWRP 3.0.2-3 on my Nexus 6P - Android N.

The TWRP 3.0.3-3 safe? There are problems with Backup? From what we read about it it seems that it is not an official version? What does that mean?
[Nexus 6P General] Heisenberg:
The backup problems were with the previous versions. It should be safe. Unofficial just means it wasn't built by TWRP themselves but by another member of the community (to fix the bugs in previous versions).
[Nexus 6P General] gonza_r156:
unlock without oem option

Hey is there a way to unlock the bootloader, without setting the OEM unlock option, my touchscreen is dead, and I can't get to the menu...
[Nexus 6P General] Heisenberg:
Unfortunately, no.
[Nexus 6P General] jesssiii:
Can confirm using this version with successful backup and restore of MM after flashing N.

Nexus 6P
[Nexus 6P General] gorman42:
Coming from a Note 3, rooted, I got today my 6P 128GB (managed to score it at an incredible price, partly compensating the bad luck I had with my Note 3 crashing on the floor and being unrecoverable, even with tempered glass protection and a good Spigen cover :( ).

Back then I rooted Note 3 with towelroot and thought that the Nexus 6P would have been easier. I now see it isn't, and I have already started downloading and installing system updates. If I unlock the bootloader, would the system updates (not going to Nougat, just Marshmallow stuff) stay in place?

When the time comes, by updating to Nougat would I lose everything once more? Or are nandroid backups smart enough to restore stuff in the right place after versions updates? Thanks for the help.

---------- Post added at 05:18 PM ---------- Previous post was at 05:04 PM ----------

If I unlock the bootloader after installing system updates (it's taking ages), would I need to redo that from scratch or will the system stay updated?

Edit: Off topic... Google really should try to streamline this process. If one buys a 6P today, there's easily three to four hours of system updates awaiting. Or maybe I should have done the updates before installing apps, as the optimization process seems to be eternal... :(
[Nexus 6P General] kyzn:
Actually, for the initiated it will take roughly 15 minutes to download files, unlock and root a Nexus. That's why we consider it easier. We don't need any other program or whatever Samsung makes their users do to get root. Everything can be done through ADB and fastboot.

There are toolkits available but I prefer to do everything manually.

1. Yes. Your phone will be on whatever update you are on currently. Unlocking the bootloader will only wipe your data not the system.

2. Yes. You must be completely stock to update via OTA to not lose anything. Never ever take OTA on an unlocked and rooted Nexus. It's preferred to sideload OTA zips. You also cannot restore backups over OTAs.
[Nexus 6P General] gorman42:
This is *really* good news. Thank you for clarifying.

Yeah, ok. But say I disable OTA (or in any case ignore the prompt to update) and wait to be able to download the right files from here:

1) Are they identical worldwide or is it similar to other brands where different regions need different files?

2) Once I have the correct files for Nougat updating, would the update delete everything or that only happens for the very first time one unlocks the bootloader? If using the same files that are sent OTA, I suppose the update would keep everything, but it's better to ask first than being sorry later.

3) Would updating to Nougat via sideloading keep or lose root?
[Nexus 6P General] Heisenberg:
1. Identical worldwide.

2. The data will only be wiped when you unlock the bootloader.

3. You lose root. So fully update your phone first, and then go through the rooting process.
[Nexus 6P General] mb88_peace:
Hi!

So I temporarily enrolled in Beta to get the Nougat. Guess what? It was a mistake! How can I get back to Marshmallow without getting my device's bootloader unlocked (therefore, wiping everything)? Can I side-load the older OTAs? Does it need a unlocked bootloader?

Thanks!
[Nexus 6P General] sirxdroid:
You need to unlock the bootloader to flash an image, so you will lose all your data. See the flashing instructions here:

https://developers.google.com/android/nexus/images

You can use a backup tool to salvage some of the app data, definitely back up /sdcard. Not sure which tool to recommend for backups, I've only used TiBu but that requires root.
[Nexus 6P General] Heisenberg:
You can't flash older OTA's, it just won't work. You'll need to unlock your bootloader, no way around that, so unfortunately your userdata will be wiped. You can easily backup all of your personal media by connecting to a PC and copying it across, your apps and settings will be lost though.
[Nexus 6P General] sirxdroid:
How good are apps such as Helium Backup and the likes at salvaging app data if you are not rooted?

Or even the Android backup feature in Settings > Backup & reset?
[Nexus 6P General] Heisenberg:
Whenever I've tried to use Helium it's been completely useless. The native backup/restore feature will remember your apps so that they can download again after you've flashed but no data is saved (because the apps are being downloaded freshly).
[Nexus 6P General] funebral:
thank you for your great guide. please i am new with nexus 6p today i have nrd90u but i would like to install cm 13 so my question is do i have to return to mm or it could be install in nougat? if i have to downgrade how can i do that? thank you
[Nexus 6P General] Einwod:
You should be asking this in the cm13 thread, not here.
[Nexus 6P General] Heisenberg:
He's fine to ask that here, I don't mind slightly off topic questions. This question is on topic anyway.
[Nexus 6P General] Heisenberg:
You should be fine to just flash it, the only thing you need to make sure of is that you flash the correct corresponding vendor image for the ROM.
[Nexus 6P General] funebral:
thank for your answer but please do you have a link where i can find how to use or find the corresponding vendor image because i new in nexus i came from samsung galaxy note 4.
[Nexus 6P General] Heisenberg:
All vendor images are listed in my index:

http://xdaforums.com/nexus-6p/general/index-huawei-nexus-6p-t3213583

The information on which one you need will be in the ROM thread.
[Nexus 6P General] llmnm:
Thanks greyhd! That is good news. When you say, "use the google images", are you suggesting a step different than what is posted in Heisenberg's instructions at the beginning of this thread (section 14)? By google images, you just mean the system images on the google developer site for 90u, right? Thanks or clarifying!
[Nexus 6P General] greyhd:
Yes the images on Google's developer site. They are zip files now and the instructions tell you how and where to unzip them.