yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] SlimSnoopOS:
When I wipe both caches in TWRP on Marshmallow, my apps only optimize on rom installs and dirty flashes. I wouldn't be worried about this unless you modified apps between rom/OTA installs.
[Nexus 6P General] doumer:
Hi and thanks for the update-decription!

I'm currently on the latest stock M with encryption still enabled and only root. Until now I've done updates like descriped (downloading factory image, extract, flash partitions, reflash SuperSU through TWRP) and never had any issues.

Regarding the N Update: If I read your description correctly I have to perform a full reset (with wiping data) and then apply the update.zip through stock recovery. Wouldn't it also be possible to do the same steps like a normal update (flash images through fastboot, flash SuperSU through TWRP)? And is a data-wipe really needed when coming from stock? The OTA doesn't wipe data as well, right?

Thanks four your help!
[Nexus 6P General] Heisenberg:
It would be possible to update via flashing the factory images but they haven't been released yet. They've been released for the 5X though so I imagine they're not far away for this phone. You do need to wipe data if you have root.
[Nexus 6P General] doumer:
Ah damn, just checked for my Pixel C and those images are available :p

Okay thanks, so wiping data before the usual process, got it. The "full unroot" function from SuperSU doesn't work to unroot?
[Nexus 6P General] Heisenberg:
I've seen reports of it not working properly so I personally don't trust it fully.
[Nexus 6P General] Giants18Won:
I just tried this and I still get a bootloop. I noticed afterwards when I went to look to backup I saw my vendor file had a memory size of some very large number (like 1312312422 MB). I think my backup got corrupt somehow. Should I try restoring the backup and then install the matching vendor file again before rebooting?
[Nexus 6P General] CyberZeus1977:
I suppose so

Nexus 6P with Chroma rocks!
[Nexus 6P General] ultyrunner:
I can verify this worked fine. I did, however, have to re-flash Super SU as the binary was no longer there and root was lost, and then had to reinstall V4A, but I was really glad I didn't have to fully back out to MM and re-sideload the full OTA ;)
[Nexus 6P General] zextek:
OK! My Nexus 6P is now running Android 7.0 rooted with TWRP recovery. On top, I flashed the Google Nexus launcher. I haven't found time enough to investigate too deeply in this new to me operating system but, everything seems to be working just fine, smoother and faster.

Thanks again for this great guide that helped me get this far. Not bad for an old fart (I'm 78).
[Nexus 6P General] mswal2846:
adb access issue?

Hi All,

I am stock with an unlocked boot loader, not rooted and running Fedora (linux) PC. I have been using fastboot (section 9 in this guide) to keep current every month for several months now. I decided I would try to go to N today. So I:

1) Went into TWRP and took a backup

2) "fastboot flash recovery recovery.img" to get to stock recovery

3) boot into recovery and see andy android

4) booted up my phone to make sure I had adb installed. I can issue adb commands but only if I am in PTP mode (under USB). "adb devices" returns a value

5) booted back into recover, see Andy

6) Use the volume buttons to scroll and use the power button to select "apply update from adb

7) Go to the directory with N zip file and open a terminal

8) Issue "adb devices" and see nothing ... seems the PC is not recognizing my phone since it's not "PTP mode"?

How do I get the right mode?
[Nexus 6P General] Giants18Won:
Ahh it finally worked. I had a pin on it so I followed Heisenbergs guide to delete the locksettings.db file.

Thank you for your help CyberZeus! I'm back on Chroma for the time being. I might just wait for Chroma 7 now...
[Nexus 6P General] adrman:
I had to unplug and replug the USB cable before I got a response out of adb.
[Nexus 6P General] ultyrunner:
Ditto. Unplug, replug, restart terminal (on my Mac) and my phone was recognized.
[Nexus 6P General] adrman:
I'm on Ubuntu. Didn't have to restart terminal though.
[Nexus 6P General] CyberZeus1977:
Glad you solved!

Nexus 6P with Chroma rocks!
[Nexus 6P General] vacaloca:
So I was on 6.0.1 (MTC19X) and updated to 7.0.0 (NPD90G), I attempted to root, and got stuck in the google animation, so I decided to go back to the nandroid backup. via TWRP. I restored everything I had backed up (including EFS, perhaps this was the problem?) and then it consistently bootlooped right after the first Google / unlocked padlock logo.

Regardless of any factory images I've tried to flash (manually or with the flash-all.bat) I cannot get it to stop boot-looping right after the first Google logo. I've followed the OP's, but no dice... at a loss and would rather not return to Amazon given I'd miss out on the prime day discount since they cannot do an exchange, sadly.

Any advice?
[Nexus 6P General] mobileman88:
This happened to me on a restore when I forgot to delete the cache and dalvik cache. Just make sure you do so on every restore.
[Nexus 6P General] vacaloca:
Just did that via TWRP (I can still manually flash and reboot to it) and same issue unfortunately. I've deleted system,data,vendor and reflashed them as in the OP. From TWRP's wipe page, i've done a wipe of everything but the system partition that I just flashed from the angler 19x factory image... still bootloops from the bootloader is unlocked to the google w/ padlock screen.

Any additional ideas? Even tried 2 different PCs and 2 different usb cables in case either of that was causing an issue.
[Nexus 6P General] mobileman88:
Have never seen that happen before. What are all the images you flashed? Did you flash all of the following in fastboot ?

In TWRP

- wipe data

- wipe cache

- wipe dalvik/cache

Flash in fastboot

- Bootloader

Reboot to Bootloader

- Recovery

- Radio

- System

- Vendor

- Cache
[Nexus 6P General] Badger50:
Ok Mr. Heisenberg, I need an honest opinion from you and the community. My 6p was just humming along fine and dandy on 7.0. Then, I restored a backup from TWRP 3.0.2-1, done this many times before. However, after the restore, I wound up in the loop :( Tried wiping and clean flashing nougat again, no luck. Went to fastboot, tried flashing factory images from MM, no troubles with the flashing, yet I'm still in the loop, she just won't boot up no matter what I try. I'm thinking it's time for RMA. Y'all think this is my only recourse at this point? Any advice would be much obliged. Btw, had no finger print or pin on my backup, and yes, I wiped the internal storage with fastboot before flashing the factory images to try and get back to stock MM. I'm thinking my beast is dead :(
[Nexus 6P General] Heisenberg:
Have you tried flashing the factory images with the flash-all batch file?
[Nexus 6P General] mobileman88:
It might not be dead. You tried wiping cache and dalvik?
[Nexus 6P General] :
is there a difference with clean flash and sideload update? i sideloaded M to N without formatting userdata and thinking of clean flashing it lmao :silly:
[Nexus 6P General] Heisenberg:
You never need to format userdata when clean flashing anyway.
[Nexus 6P General] Badger50:
That's about the only thing I haven't tried. Thanks for the tip. We'll see what happens. Guess this is why we buy insurance for our phones :)
[Nexus 6P General] :
omg, why did i post in 6p's forum! lol! anyways its still related :silly: so im good? i flashed radio, bootloader, vendor, EX N kernel, and stock N zip to update to N, then wiped data. i did not use the pc to flash anything. :fingers-crossed:

edit: its just many people say the flashing all the stock images of N makes N experience better than direct flashing it.
[Nexus 6P General] Heisenberg:
A brick from flashing factory images would be covered by warranty anyway.

Flashing the factory images is the better option but you still don't need to flash the userdata image.
[Nexus 6P General] yeroc1982:
Im having issue doing sideload. I enter in adb sideload the filename and i get error: no device emulators found. Iv tried unplugging everything and restarting sideload and reopened adb but still get same error
[Nexus 6P General] :
thank you! so im flashing all img except userdata? :)
[Nexus 6P General] yeroc1982:
I just tried rebooting bootloader then back into stock recovery then update sideload adb, replugging in phone and restarting my work folder, still same error
[Nexus 6P General] Heisenberg:
That should do it.
[Nexus 6P General] yeroc1982:
:confused:
[Nexus 6P General] vacaloca:
I even left it overnight bootlooping in case it was some sort of weird fluke, but came back to it exactly doing the same.

Tried multiple... angler mtc19v, mtc20f, npd90g, downloaded from https://developers.google.com/android/nexus/images

Just did exactly this with npd90g, turned it off for a few seconds just in case, turned back on, and still bootloops.

The interesting part is that sometimes the white google logo will start to animate, but then it will hang on the animation and then bootloop again, and the logo might or might not get to start animating again.

The only thing I can think of which could have caused any issue is that I had flashed back the EFS partition backup from TWRP that I made when I was still on mtc19v, along with the rest of that full backup to get back to a working state, and that's where I was not able to get any factory image to boot again. The only thing I can boot to is bootloader and recovery (whether stock or twrp flashed from fastboot)

I have not tried to lock the bootloader, not sure if that's worth trying?
[Nexus 6P General] Badger50:
Well sir, tried the flash-all batch file solution, and still no luck. Do I need to lock the bootloader again? Also, when I go into stock recovery, little green android dude on his back with chest open with red triangle. I know that's normal, however, I get no screen menu to wipe cache or do a factory reset. I'm out of options I think unless you have any other words of wisdom. Thank you very much for all of your help my friend. Your guide has been an invaluable tool to my learning curve :)
[Nexus 6P General] Heisenberg:
Locking the bootloader won't help, it'd actually make matters worse. So you get no menu in recovery even after holding power + volume up?
[Nexus 6P General] Badger50:
Not at first I didn't. However, I was finally able you access the menu. Did a dalvik and cache wipe, and factory reset. Darn thing still won't boot up. Time to call Google I think:o
[Nexus 6P General] mobileman88:
Do you have other copies of the efs partition backup? Is possible your efs backup that you restored is corrupted
[Nexus 6P General] shag_on_e:
I'm wondering if the 6p has a download mode similar to Samsungs that could save Badger here. In the bootloader down at the bottom it says "Download Mode enabled: false". If there was some way to get something like Odin to repartition it would be awesome.
[Nexus 6P General] mbutandola:
I ran into the same error. Tried everything. Took me 3 hours to make it work. It seems that even though you get a response when you type in "adb devices" when the phone is booted up, that doesn't mean that the right driver's been used. So when you get into recovery mode your phone's not recognised.

So in the end I uninstalled then re-installed the drivers using sdk manager, rebooted, plugged my 6p back in, went to device manager, found my 6p, and manually updated the drivers using the files on the computer. Don't let it search it on the internet...

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] Jammol:
Why are you guys continuing to restore 6.x.x backups right over 7.0? It's obviously causing problems guys.

Try putting your phone back to 6.x.x factory first then flash twrp and restore your backup. Maybe that will solve the boot loops?
[Nexus 6P General] Badger50:
I was on 7.0, and I was restoring a 7.0 backup. Still have no idea what happened. Oh well, replacement is on it's way :thumbup:
[Nexus 6P General] scoot0073:
I'm on 7 and I restored two 7 nandroids fine. One was stock without root and the other was Stock with root and my apps and app data restored..

But hopefully when Google posts the factory N image's that there will be something different in it to get people with all these boot loop bricks fixed and back up..
[Nexus 6P General] Badger50:
Out of curiosity, what partitions did you backup and restore? I usually just do boot, system, and data. Which until yesterday, worked just fine :eek:
[Nexus 6P General] scoot0073:
System/Data/Vender/Efs or whatever it's called.
[Nexus 6P General] CyberZeus1977:
Do someone know why Google didn't yet release 7 factory image for our 6P?

Nexus 6P with Chroma rocks!
[Nexus 6P General] scoot0073:
Not sure could be BC of the so many issues that people are having here boot looping /brick..
[Nexus 6P General] yeroc1982:
Can someone post a link to the up to date drivers for the phone, im having issues
[Nexus 6P General] Heisenberg:
The drivers are contained in the Android SDK that I link to.
[Nexus 6P General] yeroc1982:
Iv tried re downloading the google usb drivers in android sdk extras but i cant get it to work properly. When i run adb devices, nothing comes up anymore. Thanks for the help!
[Nexus 6P General] Heisenberg:
What are you using adb for? And are you booted into Android when issuing the command?
[Nexus 6P General] yeroc1982:
Im trying to sideload the nougat.zip, everything went smooth in step 14 until that part. Not sure what you mean by booted into android
[Nexus 6P General] Heisenberg:
That's ok, was just making sure you weren't in fastboot mode when trying the command. It probably has nothing to do with your drivers.
[Nexus 6P General] yeroc1982:
Yeah so i keep getting error no device or emulator found after i run the adb sideload filename. When i plug my phone in after i select apply update from adb, my pc makes a weird beep like its not recognising the phone right
[Nexus 6P General] Heisenberg:
I honestly don't know, sorry. I don't use Windows and Linux just works with this kinda stuff so I'm not the best at troubleshooting this kind of issue. Hopefully someone else can pop in and give you a hand.
[Nexus 6P General] mbutandola:
[MENTION=4153349]Heisenberg[/MENTION] got a question and sorry if it's been answered before. How do you go back to stock when you're already running Android N? I mean there are no factory images we can flash and flashing back MM seems to lead to issues. Cheers.

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] Heisenberg:
At the moment I'd strongly advise not to try to downgrade until the factory images are released.
[Nexus 6P General] mbutandola:
Thank you. That I understand. Then how do you get back to stock. I.e unroot and get stock recovery. Suppose you manage to flash a stock nougat image (which I'm still to find), then wipe data, can you then sideload the ota zip or are we stuck until google release the factory images?

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] Heisenberg:
You should be able to extract the stock recovery from the OTA zip. To unroot you could try the full unroot option in SuperSU.
[Nexus 6P General] mbutandola:
Thank you. I've seen that google have posted the factory image for the 5x. Hopefully the 6p's is coming shortly

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] mswal2846:
Upgraded .... finally

Hi All,

I had reported issues getting adb to recognize my phone. Most people had suggested unplugging the phone and plugging it back in. They were sort of right. Turns out that my adb must have been down level. So even though it would recognize the phone when booted up (and only in PTP mode), it wouldn't recognize the phone in recovery mode. Finally decided to start from scratch. Used this guide (thank you!!) to get the latest Android tools. Now PC (I'm running Fedora linux) recognizes the phone (adb devices) in any option. However, when I go into recovery on the phone, I have to unplug and replug to get adb to work recognize the phone, but it does and I'm able to sideload.

Next challenge was that I've booted up 7.0 successfully, have not lost anything, go back to bootloader and fastboot TWRP "twrp-3.0.2-1-angler.img", and reboot into the bootloader (as directed in OP #2). I'm able to then immediately select to reboot into recovery and TWRP 3.0.2-1 comes up. I then reboot system, get booted up just fine, but if I attempt to reboot into recovery, no recovery .... TWRP is gone. I get back into bootloaded, fastboot TWRP again, can reboot into TWRP fine, reboot system, reboot back to recovery and recovery is gone.

How do I get TWRP to stick?
[Nexus 6P General] doumer:
Thanks, unplug and replug seems essentials .. tried forever but can't get ADB to work in stock recovery ... performing update now :good:
[Nexus 6P General] scoot0073:
To get TWRP to stick u will need to flash SuperSU Update 2.76

Once you flash SuperSU for root then you will keep TWRP recovery.

If not then the factory recovery rewrites it self.
[Nexus 6P General] mswal2846:
My corporate applications won't run if my phone is rooted. So I've been running unrooted for some time.

Is it just I need to be rooted the first time through TWRP boot cycle to get TWRP to stick with 7.0 then I can go back to being unrooted? Or does TWRP now need rooting?
[Nexus 6P General] vacaloca:
EFS backup was good, this particular issue I had was not isolated, and was solved by the following (from the thread dedicated to this issue):

http://xdaforums.com/showpost.php?p=68415653&postcount=274

Thanks for your help as well -- I refused to believe I had bricked the phone in such a way I could not revive it with a backup... something's definitely off when going from 7.0.0 back to 6.0.1
[Nexus 6P General] scoot0073:
ATM far as I know u have to be rooted to keep TWRP recovery.

So most likely if u unroot then the Factory recovery will rewrite it's self back.

But you can try it and see if TWRP recovery sticks after you unroot..
[Nexus 6P General] sreeq23:
Help me too..!

IM stuck Too..!
[Nexus 6P General] mbutandola01:
You might have found the solution already but do you have the latest version of android sdk?

Envoyé de mon Nexus 6P en utilisant Tapatalk

---------- Post added at 10:29 PM ---------- Previous post was at 10:24 PM ----------

@Heisenberg I saw in the twrp or flashfire thread that some people have sideloaded the ota via twrp. Can you confirm that it could work even though you wouldn't recommend that we did?

Envoyé de mon Nexus 6P en utilisant Tapatalk
[Nexus 6P General] sreeq23:
Please help me

I was running Android Nougat Without any Problems .. Then i decided flash the PURE NEXUS ROM 6.0.1 . i unlocked Bootloader Installed TWRP ..Made a Full Backup.. Did a Full Wipe {FactoryReset}From TWRP Flashed THE ROM and GAPPS ..

And I was stuck in a boot loop .

So i decided To install The Latest Factory Image From Google (6.0.1 (MTC20F)) And Flashed it(using Flashall.bat) went without any errors (but i lost my backup and Twrp)

Still the Bootloop Was there..!!!!

So I decided To Install the OTA Image of Nougat WHICH [MENTION=4153349]Heisenberg[/MENTION] Posted .

I did What THe post said..

And Got some Errors

Now send the package you want to apply

to the device with "adb sideload <filename."...

Finding update package...

Opening update package...

verifying update package...

Installing update...

Target: google/angler:7.0/NRD90M/3085278:user/release-keys

Patching system image unconditionally...

E1001: failed to update system image.

E:unknown command [log]

E:unknown command [log]

E: Error in /sideloadpackage.zip

(Status 7)

installation aborted.

im FUC*ED Up guys Please Help Me..?!!

THere is no Huawei Service Center In My State..
[Nexus 6P General] troymz1:
Nexus 6P only
[Nexus 6P General] Cares:
I don't think so. The modified boot is for MDN08K. I'm also wondering how to get onto the latest build now that I'm rooted. Do I need to wait for a modified boot.img?
[Nexus 6P General] aznriceballman:
I YOLO'ed and tried it on the latest build and it worked... So yeah... Not complaining here...
[Nexus 6P General] case-sensitive:
TWRP + remove connectivity requirement

Thanks for the writeup! Here are a few initial setup questions while I wait for my 6p to arrive:

1) I plan to unlock my bootloader, root and then follow the instruction in

http://www.xda-developers.com/setting-up-android-marshmallow-without-google/

to

a) remove the connectivity requirement from the setup wizard

b) prevent the system from overwriting my custom recovery

Has anyone done this on the 6p?

2) I would like to uninstall some of the google apps before the first boot up. Does

adb unstall (name of package)

still work or is there a new command?

3) Should I boot into the device, take OTA update and then try again, or should I just flash over the latest version?

THANKS!
[Nexus 6P General] Heisenberg:
[MENTION=3140515]case-sensitive[/MENTION]

This doesn't really belong in this thread, please ask your question in the Nexus 6P help thread here:

http://xdaforums.com/nexus-6p/help/qa-noob-friendly-qa-help-thread-t3206934
[Nexus 6P General] pittnuma:
Ahh thanks for that
[Nexus 6P General] BGroars:
very useful

It is very useful!!:):)
[Nexus 6P General] Nexus_Fan:
Hi, thank you for your article.

1. Is there any difference between 'fastboot oem unlock' and 'fastboot flashing unlock' ?

2. Can we just run the 'flash-all.bat' instead of flashing everything manually?
[Nexus 6P General] Cares:
I'm rooted on MDN08K. How can I update to the newest version? Do I flash everything but boot.img?
[Nexus 6P General] xT-g-K:
I am having some issues here, I have managed to install TWRP and unlock my bootloader but my phone would then always crash in the settings app when I tried to enter the security tab, it also would show that process.gapps has stopped working immediately after booting the phone, I tried again and had a popup appear every boot saying there is something wrong with my phone, contact the manufacturer and the phone would not detect a SIM card. I have had to reflash the stock image to fix this. I believe it comes from using the modified boot image as I am on a MD89D build, but I am probably wrong. I am now on stock and all is working fine again but I really need TWRP and root, is there anything which may be causing this?

If it makes any difference I have a UK 32GB model. Thanks
[Nexus 6P General] Badger50:
Depends on what you want to achieve. If you just want a stock update, then just fastboot the new build. If you want root and recovery, then flash everything else. One dude already updated with the new build, and flashed the modified boot.img, and said it worked fine.
[Nexus 6P General] troymz1:
Anyone know why there are two updates that went live at the same time? Can anyone else confirm that the modified boot image works with these new updates?
[Nexus 6P General] combat goofwing:
so im going to have a go at unlocking the the boot loader, go the SDK and all tools download, checked version in command promt works ok but cant see devices or check fast boot, when i plugged phone into PC for the first time today , installed device drivers and phone shows up on PC and i can transfer things to it, but during driver install said it could not install adb interface ?

keeps asking for files for ADB interface when i ask it too locate them it cant and ask if i have disc.see picture attached
[Nexus 6P General] Cares:
So I can flash the latest stock factory images and then flash the modified boot.img? This will retain my data or will it wipe my apps?
[Nexus 6P General] pahardie:
I updated to mdb08m from unrooted firmware ending in d. I used the mdb08k modified boot image and rooted and all works fine. No problems.

Cleverer people than me will likely point out I've done some damage to the world doing this but meh.. Seems to work.
[Nexus 6P General] Badger50:
Apparently so. Go back and read post #421. But I'm pretty sure you'll lose all data. However, that's what TiBu is for. On apps that is :)
[Nexus 6P General] combat goofwing:
Anyone any idea how to get the adb interface