yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] nathanchance:
Just flash the recovery image from the latest factory image like so:

fastboot flash recovery recovery.img
[Nexus 6P General] tu3218:
Okay that's what I thought. But I just realized I downloaded and extracted the latest factory image, and I'm still on Q because I haven't gotten the update. So I just extracted everything into platform-tools folder. What should I do now?
[Nexus 6P General] Heisenberg:
What do you mean? Just flash the recovery with the command previously mentioned.
[Nexus 6P General] Heisenberg:
And I've just realised you already have a dedicated thread for this topic here:

http://xdaforums.com/nexus-6p/help/boot-stock-recovery-restoring-to-stock-t3376529

Please don't double-post, it ain't allowed.
[Nexus 6P General] tu3218:
Yeah, I posted there and than figured this post would be more appropriate. Couldn't delete the other one.
[Nexus 6P General] Heisenberg:
You can't delete your own threads, you need to be careful and place them in the right spot in the first place.
[Nexus 6P General] Heisenberg:
Hi folks,

Google have released full OTA packages here. These OTA packages are a full system, as opposed to the traditional patching style that we're used to. What does this mean? It means you don't need to be on a particular build in order to flash them, you can be on

any build

, but you can only upgrade, you can't downgrade. I've added them to my index and I'll be adding a section to this guide to cover flashing these soon.
[Nexus 6P General] Heisenberg:
Aaaaaaaaaaand the new section has been added. We now have two sections covering how to adb sideload the incremental OTA packages, and the full OTA packages:

12. How To ADB Sideload an incremental OTA update package.

13. How To ADB Sideload a full OTA update package.
[Nexus 6P General] mackster248:
I'm having an odd issue with my 6P. Everything was working fine (used your instructions to unlock bootloader, install TWRP, and flash ROM's) until the past month or so. Lately I've noticed that when I try to connect my 6P to my computer, nothing really registers. I've tried PTP connection and the only thing I can see are my pics, but MTP doesn't register at all. I know I have the drivers installed because I've done this process before. When I try to run "adb devices" though bootloader, I get this:

C:\SDK\android-sdk-windows\platform-tools>adb devices

List of devices attached

adb server is out of date. killing...

error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)

could not read ok from ADB Server

* failed to start daemon *

error: cannot connect to daemon

C:\SDK\android-sdk-windows\platform-tools>

I have no idea what happened.
[Nexus 6P General] jesssiii:
The error message says your adb is out of date. Try updating to the latest.
[Nexus 6P General] mackster248:
For some reason, it's always said that. Even when things were working just fine. So I just ignored it. :/

I've tried reinstalling everything via the OP and everything should be up to date.
[Nexus 6P General] AreOh:
Will you still have to use adb to flash trwp and then boot into that to flash SuperSU after side loading the OTA zip file? With that process being much easier with less commands, that looks like the route to take from here on out.
[Nexus 6P General] Heisenberg:
Are you referring to the new full OTA packages? If so, then yes. You'll also need to use fastboot (not adb) to flash the stock recovery first too.
[Nexus 6P General] Linux23:
I flashed the stock recovery last night from the recovery found inside the zip file of the last Android build I had, booted recovery then held power and up to select apply via ADB. Once the screen changed and said run the side load command to apply the ota and after running the command you posted it states that device is not found.

Also on the Google web page they say to unzip the zip file? Why would they say that when your side loading the .zip file?

Sorry about the typing I'm going from off memory riding the bus to work typing from my 6P.
[Nexus 6P General] Heisenberg:
Has adb been working for you previously? I have no idea why they say to unzip it.
[Nexus 6P General] Linux23:
Yes everything worked fine the last time I flashed which was the mhc19I.

When I get home tonight I'm going to play with it more as it was late when I tried it last night.
[Nexus 6P General] Heisenberg:
So you used adb to sideload the MHC19I OTA?
[Nexus 6P General] Linux23:
no, i've used adb commands that you have listed on the first page of this thread like adb version, adb devices, adb reboot bootloader, adb reboot recovery, etc (in general). these commands all worked fine in the past. i used fastboot to install MHC19I and every other image including the N preview.

just the adb sideload command doesn't work as it states it cannot find my device. maybe it needs to be updated? i'll go over it step by step when i get in the house later on tonight.
[Nexus 6P General] Heisenberg:
I can't think of why it wouldn't be working now if you've had it working in the past. Let me know how you go.
[Nexus 6P General] Linux23:
Will do. And thanks again for the excellent write up.
[Nexus 6P General] NuttyGSIII:
root nexus 6p using linux mint

my laptop runs on linux mint and was hoping to find instructions on rooting 6p using linux but most of the posts/instructions seem to be windows centric. Can someone point me where I can find instructions that work on linux?

thanks much
[Nexus 6P General] Heisenberg:
I use Linux too, I only write the guide for Windoze because the majority of people use it. The guide is still valid for Linux though. Download the SDK, instead of the filename being SDK Manager.exe you open Android in the SDK folder to update your packages (platform-tools etc). All the commands are the same, but you need to open your terminal from within the platform-tools folder and prefix your commands with "./", for example the "fastboot devices" command would be this:

./fastboot devices

And so on.
[Nexus 6P General] CyberZeus1977:
Which distro are you using?

Nexus 6P with Chroma rocks!
[Nexus 6P General] Heisenberg:
I use Mint.
[Nexus 6P General] CyberZeus1977:
Cool... With Cinnamon UI?

Nexus 6P with Chroma rocks!
[Nexus 6P General] Heisenberg:
Yep, 17.3 with the Cinnamon DE. I've tried a whole bunch of distros but I liked Mint the most.
[Nexus 6P General] NuttyGSIII:
thanks much, will give this a shot
[Nexus 6P General] CyberZeus1977:
I'm planning to install Mint along with Windows 10 on my notebook.

Nexus 6P with Chroma rocks!
[Nexus 6P General] jaylam:
I bought the Nexus 6P the day it came out and have been using this guide every month to update my rooted Nexus, just wanted to say cheers Heisenberg. :good:
[Nexus 6P General] omametsnor:
headsup guys, the previous 3 updates the manual flash update method worked flawless. Today I've tried the same method with the new "6.0.1 (MTC19T)" build and it got my 6p in a bootloop, after that it forced encrypted my data and i had to completely format my phone, luckily I made a backup with titanium backup.
[Nexus 6P General] Heisenberg:
Something must have gone wrong in your case, it isn't the build or the method at fault. It could be any number of things. Did you try wiping data in TWRP?
[Nexus 6P General] Heisenberg:
No worries, glad to have helped.
[Nexus 6P General] omametsnor:
Oh, no clue what i've should 've messed up. the process never failed in the past. I am now restoring everything as it was. I just completed wiped my internal and system for a fresh start

---------- Post added at 11:18 AM ---------- Previous post was at 10:45 AM ----------

Baaack at it again with the boot loops, I finally restored every app and restarted my phone. and again im in a bootloop, so it is problably something I got installed. maybe xposed is not supported on this new build or a module within xposed?

gonna try to uninstall xposed see if the bootloop gets fixed

EDIT:

I uninstalled the xposed framework, didn't solve the bootloop. factory reset did get rid of it, i am affraid to restore my apps now

EDIT2: I restored my apps 1 by 1, what I skipped : Xmodgames, Youtube Adaway xposed module, AdAway xposed, snapprefs xposed module, Xposed installer 3.0 < 1 of these apps is causing a bootloop on the new build
[Nexus 6P General] mobileman88:
it's most likely one of your xposed modules. only install xposed without any xposed modules then install them one at a time. you will find it. once found, remove xposed if you bootloop, then when you reboot, remove the offending xposed module then reinstall xposed and other xposed modules.
[Nexus 6P General] omametsnor:
The issue occured due a mod from Xmodgames, I did sooo much trial and erroring but i finally found it, the bootloop were caused by a mod for Clash Royale. I never used that **** before. I am happy ive found the problem haha.
[Nexus 6P General] mobileman88:
Good to hear that.
[Nexus 6P General] masri1987:
trying to open the sdk manager in the first few steps on windows 10 64 bit and nothing happens, i see a window pop up for a split second and then disappear

edit: i got it :)

Edit 2 : so i am rooted and twrp'd but everytime i reboot or boot up the device i get a device corrupted msg with "press power to pause boot"

this normal?

thanks
[Nexus 6P General] CyberZeus1977:
Yes, it's normal. If you made some changes, like installing TWRP, it says that it can't check for corruption.

Nexus 6P with Chroma rocks!
[Nexus 6P General] Cardinal-Red:
Outstanding guide, thanks so much! I am relatively new to this scene and it can be a confusing place to be. After rooting my 6P I was struggling to understand how to undertake the OTA update to May security profile, amongst an internet filled with conflicting and possibly dangerous advice.

I used your guide to originally root, and returned almost by accident. Have now updated my phone to the new version, and with no issues. Thanks again so much!

2 quick points, if I may:

In step 2 (Install Custom Recovery) may be worth adding the line that you should boot into bootloader at the start. If you have followed step 1, you'd be back in the operating environment when moving onto step 2.

Also, for step 9 (update to new build of stock ROM) it may be worth adding which of the above steps need to be repeated once all the images have been flashed, i.e. reinstall TWRP and SU.

I know these may be obvious but to a complete novice they may be quite important.

But again, thanks for the brilliant explanation!
[Nexus 6P General] Heisenberg:
Good points, I'll edit the guide.

Edit: It does already say that in section 9.
[Nexus 6P General] winxuser:
Please note using Android SDK on Windows 10 insider previews does not work. My Nexus 6p wouldn't get detected in bootloader mode. But everything else works fine when not in bootloader
[Nexus 6P General] tarroyo:
Just to clarify, When making a nandroid backup I select system/data/boot/vendor correct? Does that include 'Vendor image?'
[Nexus 6P General] CyberZeus1977:
Yes, but before doing that you have to temporary disable screen security

Nexus 6P with Chroma rocks!
[Nexus 6P General] Heisenberg:
No, don't select vendor image. Only select the four options I mention: system, data, boot, vendor.

Actually, no, see above. But yes about disabling security.
[Nexus 6P General] praveenjohri:
Hello, is system less root gone? do we not need to modify boot file any more to load system less root? last I recollect there were two branches of SU getting developed with and without systemless root, can someoe be kind enough to bring me up to speed ...
[Nexus 6P General] bishamon:
Hi Heisenberg

I been using your step 9 to do my monthly update on my N6P. Now that the new OTA method is out, it does seems like it will be a easier and faster method to do our monthly patching. But you mention that it must only be stock, so I am trying to understand that the term "complete stock setup only". I have a couple of questions which the FAQ didnt have them.

1. So if i have root it, is it ok to use the new sideload method?

2. I notice that you mention need to restore the custom recovery back to original recovery before attempting sideload, right?

3. So if i have to restore the custom recovery, do i need to use the actual version recovery or the previous version is good? Meaning can I use the MHC19I recovery to sideload MTC19T OTA?

4. I would presume that if i do my update every month, then i can just do the incremental OTA rather than the full OTA. I notice that the full OTA is almost the same size as the firmware.

5. Would it have been easier to uninstall root from your phone, restore original recovery, then install the OTA directly from your phone and then repeat the steps for custom recovery and root. I didnt try it on the latest MTC19T OTA but not very successful. So i am thinking whether if its a feasible method.

thanks

bish
[Nexus 6P General] Heisenberg:
1. No.

2. That's right.

3. That should be fine.

4. You can choose incremental if you wish to.

5. Honestly, it's still going to be easier just to flash the factory images. You don't need to worry about removing root first, or restoring the stock recovery, and it only takes a few minutes.
[Nexus 6P General] Heisenberg:
Systemless root has become the standard. You haven't had to use a modified boot.img for quite some time, that's only necessary when using the old and outdated traditional root (SuperSU 2.52 if I remember correctly). All you need to do now is grab the latest SuperSU and flash it, it automatically patches the boot.img during installation.
[Nexus 6P General] murphytalk:
Does this mean even I am on a 3rd party rooted ROM I can just flash the new OTA to go back to stock?
[Nexus 6P General] bishamon:
thanks for your quick reply. seems like its easier to continue step 9 if you are rooted.

uninstall root doesnt seems to work very well based on my experiment.
[Nexus 6P General] BombasMirko:
Hi,

i have a problem with fastboot devices command. I did everything like said in tutorial. If I type adb devices my device is there. I then adb reboot bootloader and the phone (Nexus 6P) boots in bootloader and then when I type fastboot devices nothing happens. Only new line appears in CMD. Thanks for help.
[Nexus 6P General] DJBhardwaj:
Probably the drivers. While your device is connected in bootloader mode, go to Control Panel > Device Manager, and see if you can spot something unusual, like a warning sign.
[Nexus 6P General] BombasMirko:
Thanks. Went under Device Manager and saw warning sign. So I installed drivers from SDK folder. Thanks again :D
[Nexus 6P General] DJBhardwaj:
You're welcome :)

This is probably one of the most common issue, easily overlooked, yet with the simplest fix.
[Nexus 6P General] Heisenberg:
No, you must be stock.
[Nexus 6P General] illmac:
uhhhh...was messing around with the phone trying to modify a file in the /system folder. Couldn't do it. I booted to TWRP and didn't change anything. Except before booting to android, I accidentally allowed TWRP to install/flash supersu. I was able to boot up and use my phone like normal. What breaks or has broken that I haven't noticed yet?

edit: forgot i was on systemless root =( hence why i was puzzled why i couldn't mount system as rw
[Nexus 6P General] plsoft:
I was able to install the May OTA update through the usual channel (no sideload) even though i have unlocked bootloader with no root. Has it always been possible like this or is this something new?
[Nexus 6P General] SlimSnoopOS:
I think usually you would bootloop if you allow TWRP 2.8.x to install SuperSU. Which version of TWRP are you using? Also, which version of SuperSU is installed?

Yes. Unlocked bootloader has no effect on installing an OTA.
[Nexus 6P General] mojorisin7178:
i followed the instructions and installed sdk. When i did the checks the first 2 were of but when i check the bootloader it doesnt return device or anything it just shows another command line. I am not too experienced with this stuff. All I have to do is power off the phone and use the power+vol down to get tothe bootloader right? I dont have to select any of the options do I? I hope i did it right.
[Nexus 6P General] hesomist:
I ran into this as well. While in the bootloader I plugged the USB cable into a different port on my PC. It updated the drivers in Windows and then the devices command worked.
[Nexus 6P General] mojorisin7178:
Thanks I'll try that when I get home.
[Nexus 6P General] donchichio:
Hi guys, I've been stuck in a boot loops this morning, so I decided to follow step 11, including formatting userdata, but unfortunately it's still happening.

It actually started randomly this morning after the phone rebooted itself. Is there anything else I can try, or is it time to contact Google?

Thanks.

Edit: I've returned fully to stock now, even locking the bootloader. I'm still stuck in a loop though.
[Nexus 6P General] puchodog1977:
Macbook

Im on a macbook is the installation the same.. im new to mac but love rooting my phones. i just got back into android. please advise. please no ApPlE HaTiNg
[Nexus 6P General] DJBhardwaj:
Did you format/erase the system partition in the factory image flashing process?
[Nexus 6P General] winxuser:
I'm running windows 10 pro x64 with sdk installed and setup, but running fastboot devices which the device is in bootloader does not show anything up at all.. any suggestions?
[Nexus 6P General] mojorisin7178:
I too have this problem and my setup is identical to yours well os wise anyway. Someone suggested to me to try a different USB port. I haven't had time to try that yet but you should try that. It makes sense because I have always had problems with different USB ports recognizing certain things over the years. They seem to be picky about what they recognize. Let me know how you make out.
[Nexus 6P General] winxuser:
I have tried different USB ports, both 2.0 and 3.0 neither would recognize the phone
[Nexus 6P General] mojorisin7178:
Are the drivers installed correctly. Also does it recognize your phone when booted in android? If yes then you might want to uninstall everything and reinstall it. Also my PC would not let me install from chrome I had to us internet explorer ( which I hate). I haven't checked to see if switching ports solves my problem so if you find a fix please share and I will do the same.
[Nexus 6P General] mojorisin7178:
I tried different ports with no success as well. I went to device manager with my phone connected asnd in bootloader mode. It says there is no driver installed. I tried reinstalling the drivers from sdk manager with no success. I tried installing drivers from device manager but windows cant find any. Also i noticed that on my phone when in bootloader mode and connected to the pc it says connect usb at the bottom and also download mode: no so I dont know if we can go to google and find the right usb driver or what. Does anyone else have any ideas?

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

ok i got it. Go to device manager with your phone connected and in bootloader mode. Find in the list android device. There should be a msg that says there are issues with the device. right click on android device and choose update driver. Then choose let me choose from drivers on my pc. Then go to the directory where the drivers are. If you followed this guide it should be: this pc> OS (C:)> SDK> Android-SDK-windows> extras> google Then hit next and it should install the driver. It worked for me. Let me know if it works or not. It seems like the driver was installed with the rest of the drivers but for some reason it didnt get erxtracted out of the folder.
[Nexus 6P General] winxuser:
Lol tried all that didn't work
[Nexus 6P General] mojorisin7178:
Ok well maybe someone else has an idea sorry I couldn't help.
[Nexus 6P General] DJBhardwaj:
Connect your 6P in bootloader mode, then go to Device Manager. Uninstall the drivers, disconnect the phone, reboot the PC, and connect again.

See if this helps at all.
[Nexus 6P General] donchichio:
Yes I did. Wiped everything including the system partition. I've spoken with google now and they're sending out a replacement.
[Nexus 6P General] DJBhardwaj:
Cool! :cool:
[Nexus 6P General] dbroer91884:
Deleted!
[Nexus 6P General] Big Cam:
So I was following the steps to install an incremental OTA update but then I got to the part where it said you need to have a stock recovery.

I have TWRP but I am on stock 6.0.1, just rooted. Can I just take the zip file and flash it in TWRP?

I downloaded this MHC19Q --> MTC19T from Heisenbergs index thread referenced in step #12 as I am on MHC19Q.

---------- Post added at 06:31 PM ---------- Previous post was at 06:19 PM ----------

I think I am in roughly the same situation, I rooted back around day 1 so I have a modified bootloader and TWRP recovery, I'm fairly confident I don't have the systemless root method.

I have contemplated ditching root because I really don't do anything that requires root anymore, and installing OTA's has become a pain, I've just always rooted my android phones. Is there a way for me to get to systemless root so these updates are easier? Or is there a way to ditch root all together?

My main thing is I really don't want to lose my user data, if that makes a difference in my options.

I'm currently on MHC19Q.
[Nexus 6P General] Heisenberg:
You can't use TWRP to flash the OTA, you can't even have TWRP installed. If you don't need root, the better option would be to just ditch it, flashing the factory images for the latest build will remove root, and making sure that you flash the recovery.img too will give you stock recovery back. From them on you can just take the OTA's as they come.
[Nexus 6P General] Big Cam:
Awesome, thank you, will I lose my data if I do this?

EDIT: I saw in step 11 I would not, but I just realized I love ad away so maybe I will keep root, in that case how can I get the incremental OTA applied? Do I have to apply the full? aka step 9?
[Nexus 6P General] Heisenberg:
You can use an app called Flashfire to apply OTA updates, it will allow you to keep root and your custom recovery too. There's a thread for it here on XDA.
[Nexus 6P General] pamplona!:
Help using TWRP manager to dirty flash.

I'm sure I'm missing something very obvious here but I'm trying to dirty flash newest version of purenexus. Can anyone describe exactly how to do this using the TWRP recovery manager app?

I've searched and I've tried but keep coming up short so I'm hoping someone can help and shed some light on my stupidity!

Thanks.
[Nexus 6P General] SlimSnoopOS:
Maybe I don't understand, what do you need help with? A dirty flash just means reboot into TWRP and install the rom. Just do not wipe cache, Art, system or factory reset.
[Nexus 6P General] pamplona!:
I'm not very bright. I didnt realize I had to boot into recovery since I was using the app - not sure why i made this assumption - and was spinning my wheels but believe I did it correctly now.

So everything was working fine and then i went to install layers and now many of my apps wont run, including native google apps like chrome, etc. I disabled the layers and rebooted but am still experiencing the same.

I feel confident this had something to do with layers since it *seemed* to be working fine.

Thoughts on what to do next to fix this?

***Problem resolved. Just dirty flashed it all over again after (unsuccessfully!) looking for the overlays folder for an hour:eek:
[Nexus 6P General] mukesh22584:
Help Please

Hello [MENTION=4153349]Heisenberg[/MENTION]

Sir I've flashed N DP3 successfully and after that I've flashed Resurrection Remix, Now I'm in trouble, My storage became READ ONLY, I'm unable to download anything to my storage also unable to move any file/folder.

(I've followed your guide, But what wrong I've done)

Please Help me