How to update Nexus 6P without losing root? - Nexus 6P Q&A, Help & Troubleshooting

I haven't downloaded any security patches since I followed the main guide and rooted my phone.
I now have seen the news regarding the security update and how many critical flaws there are so I would like to update.
How can I do so without losing root?

Losing root shouldn't really be a concern. All you need to do is flash SuperSU again afterwards, which takes about a minute.

https://play.google.com/apps/testing/eu.chainfire.flash
This is an app by Chainfire called Flashfire. It works perfectly for what you want. I have used it myself on a few occasions. Let me know how it worked for you.
Sent from my Nexus 6P using XDA-Developers mobile app

+1 FlashFire

If you are impatient and don't want to wait for the OTA zip, just download the factory image and flash the following files using flashfire.
boot.img
system.img
vendor.img
Remember to disable security before you flash or you will have an issue with the vendor.img.

Heisenberg said:
Losing root shouldn't really be a concern. All you need to do is flash SuperSU again afterwards, which takes about a minute.
Click to expand...
Click to collapse
Hey, so I'm rooted with stock ROM and EX kernel but received the April update, any info why I got it?
I thought if you're rooted you weren't supposed to get an OTA update.
Sent from my Nexus 6P using Tapatalk

Doodsz said:
Hey, so I'm rooted with stock ROM and EX kernel but received the April update, any info why I got it?
I thought if you're rooted you weren't supposed to get an OTA update.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
You'll still receive the OTA, you just can't flash it via the traditional method.

I remember using the FlashFire method a month ago. The update worked and I didn't lose root, but I lost TWRP in the process.

ZabiGarma said:
I remember using the FlashFire method a month ago. The update worked and I didn't lose root, but I lost TWRP in the process.
Click to expand...
Click to collapse
Yes the update replaces TWRP with standard recovery. But I believe you can flash TWRP with Flash Fire.
Sent from my Nexus 6P using XDA-Developers mobile app

dratsablive said:
Yes the update replaces TWRP with standard recovery. But I believe you can flash TWRP with Flash Fire.
Click to expand...
Click to collapse
I couldn't flash it with FlashFire. I had to reinstall it from PC, which ended up with TWRP asking for a password, meaning I had to end up wiping the phone, which was worse than doing the regular OTA update.

ZabiGarma said:
I couldn't flash it with FlashFire. I had to reinstall it from PC, which ended up with TWRP asking for a password, meaning I had to end up wiping the phone, which was worse than doing the regular OTA update.
Click to expand...
Click to collapse
The new version of twrp 3.0.2.0 has been fixed. At least for me it worked.

Nice, I haven't installed the latest TWRP. I'll give it a try.
What I don't recall, though, is if last time I lost the applications I installed by flashing them with TWRP (like viper4android) or which rely on root.

I always remove security before flashing updates. Only issue is setting up the Imprint and adding cards back to Android Pay.

dave2metz said:
https://play.google.com/apps/testing/eu.chainfire.flash
This is an app by Chainfire called Flashfire. It works perfectly for what you want. I have used it myself on a few occasions. Let me know how it worked for you.
Sent from my Nexus 6P using XDA-Developers mobile app
Click to expand...
Click to collapse
Is FlashFire no longer available?

dratsablive said:
Yes the update replaces TWRP with standard recovery. But I believe you can flash TWRP with Flash Fire.
Sent from my Nexus 6P using XDA-Developers mobile app
Click to expand...
Click to collapse
If you use FlashFire just deselect recovery from the list when you load the latest update.
Sent from my Nexus 6P using XDA-Developers mobile app

Flash stock recovery and then ADB sideload the update. Links can be found in general. Then when it's done reflash twrp and SuperSU. Pretty easy. I've done it.

Related

Update problem

I am trying to update my tablet to lollipop. But every time I do the OTA update it makes it halfway through and says Error. I would like to update to lollipop and then root it again. What should I do. I was rooted at one time. I even did a factory reset and can't get it to update.
Sent from my SM-N900P using XDA Free mobile app
gatoremt said:
I am trying to update my tablet to lollipop. But every time I do the OTA update it makes it halfway through and says Error. I would like to update to lollipop and then root it again. What should I do. I was rooted at one time. I even did a factory reset and can't get it to update.
Sent from my SM-N900P using XDA Free mobile app
Click to expand...
Click to collapse
Is your bootloader unlocked? Have you tried flashing the official factory image through fastboot? The most friendly utility in this situation is Nexus Root Toolkit. You can get root easily with it as well as unlock bootloader, flash kernel, rom, basically everything. I'd really suggest downloading that.
It was and it updated to 4.4.4 and I lost root. So I can use the root tool kit to update to lollipop?
Sent from under my bed.
I'm not sure, but I think you can. Search the web for that one. Your bootloader NEEDS to be unlocked in order to update to lollipop. If I were you, I'd flash the image using flash-all script provided in the factory image package. It is fully automated and I haven't experienced a problem with it.
I got it fixed thanks
Sent from my SM-N900P using XDA Free mobile app
No problem, glad to hear that!
Fobos531 said:
Is your bootloader unlocked? Have you tried flashing the official factory image through fastboot? The most friendly utility in this situation is Nexus Root Toolkit. You can get root easily with it as well as unlock bootloader, flash kernel, rom, basically everything. I'd really suggest downloading that.
Click to expand...
Click to collapse
Found this post through Google after having the same problem trying to apply the 5.1 OTA to a formerly rooted Nexus 7 Grouper. Using the Skipsoft Toolkit to unroot didn't work right, kept producing a aituation where it wouldn't boot Android and attempting to flask the stock image would fail too.
Used Nexus Root Toolkit "Flash Stock + Unroot" option to return to stock, and then applied the 5.1 factory image using the no wipe option and regain root and everything worked PERFECTLY. All my user data is even still intact.
Thanks very much for this!
That is what I did too.
Sent from under my bed.

So how does OTA work?

As a long time Android power user, I rooted my Nexus as soon as I got the phone. However, I completely forgot about the best thing Nexus devices have to offer, OTA updates.
I completely ditched OTA before since I was on custom ROMs most of the time on other devices.
So here are the questions.
1) How will modifying the system partition affect OTAs? Will they still show up and I won't be able to install them?
2) How can I get OTA back and working? Does a simple "fastboot flash system/boot system.img/boot.img" with the stock system and boot partition fix the issue? If not, what do I do? And will it involve data wiping?
3) If I don't do those, I can still do a manual update for the system partition using fastboot, correct?
Note: I rooted the device using the Nexus Toolkit method over at the dev sub.
Sent from my Nexus 6P using XDA Forums
341464 said:
As a long time Android power user, I rooted my Nexus as soon as I got the phone. However, I completely forgot about the best thing Nexus devices have to offer, OTA updates.
I completely ditched OTA before since I was on custom ROMs most of the time on other devices.
So here are the questions.
1) How will modifying the system partition affect OTAs? Will they still show up and I won't be able to install them?
2) How can I get OTA back and working? Does a simple "fastboot flash system/boot system.img/boot.img" with the stock system and boot partition fix the issue? If not, what do I do? And will it involve data wiping?
3) If I don't do those, I can still do a manual update for the system partition using fastboot, correct?
Note: I rooted the device using the Nexus Toolkit method over at the dev sub.
Sent from my Nexus 6P using XDA Forums
Click to expand...
Click to collapse
1. They'll still show up, but any attempt to install them will fail.
2. See my guide.
3. Yes.
Heisenberg said:
1. They'll still show up, but any attempt to install them will fail.
2. See my guide.
3. Yes.
Click to expand...
Click to collapse
So wait, what's the status now on the latest SuperSU package? I've heard that its system-less installation now?
Sent from my Nexus 6P using XDA Forums
341464 said:
So wait, what's the status now on the latest SuperSU package? I've heard that its system-less installation now?
Sent from my Nexus 6P using XDA Forums
Click to expand...
Click to collapse
There are two versions, the traditional version, and the systemless version.
Heisenberg said:
There are two versions, the traditional version, and the systemless version.
Click to expand...
Click to collapse
Speaking of OTA and systemless. I have opted for the systemless root method. If I want to install an OTA, all I have to do is flash the stock boot image, install update, then re root correct? Assuming there are no changes to system?
Sent from my Nexus 6P using Tapatalk

April 2016 Security Update and Factory images MHC19Q

Google has just released the April Security bulletin and the nexus factory images.
Factory Images Download
Nexus Security Bulletin April.2016
Anyone know/tested if the current SU works on the new Linux kernel?
Sent from my Nexus 5X using XDA-Developers mobile app
mymusicathome said:
Anyone know/tested if the current SU works on the new Linux kernel?
Sent from my Nexus 5X using XDA-Developers mobile app
Click to expand...
Click to collapse
I'm using 2.71 and it works just fine. Android Pay also still works on the latest everything.
Flashed the factory image and no more optimizing apps???
Need to know if there are a bug fixes like wifi etc...
mymusicathome said:
Anyone know/tested if the current SU works on the new Linux kernel?
Sent from my Nexus 5X using XDA-Developers mobile app
Click to expand...
Click to collapse
What kernel was prior to this?
jlmcr87 said:
Flashed the factory image and no more optimizing apps???
Click to expand...
Click to collapse
Did you double check and did it right? I just updated my 5X and N7 LTE, both did the optimizing app piece that took forever. Erased the cache?
The optimizing apps comes from clearing Art/dalvik cache.
Sent from my Nexus 5X using Tapatalk
I have issues with the april build, i am not able to see any notifications in my pull down and also quick settings are missing. i downgraded to the march build and it is still broken :/
I also double-wiped everything before flashing the new images..no optimizing apps :-s
PS: For me, xPosed v81 doesn't work with latest build
Just try without xposed installed...
Scutariu said:
I also double-wiped everything before flashing the new images..no optimizing apps :-s
PS: For me, xPosed v81 doesn't work with latest build
Click to expand...
Click to collapse
There are no apps to optimize! What are you possibly talking about? And to the person whose flash took a long time due to optimizing apps, you might want to start over and do it the right way.
Sent from my Nexus 5X using XDA-Developers mobile app
enzippo said:
Just try without xposed installed...
Click to expand...
Click to collapse
Tried with v79..worked
bobby janow said:
There are no apps to optimize! What are you possibly talking about? And to the person whose flash took a long time due to optimizing apps, you might want to start over and do it the right way.
Sent from my Nexus 5X using XDA-Developers mobile app
Click to expand...
Click to collapse
I just confirmed that guy's statemend, I DID NOT did 2 full wipes to get "Optimizing apps", I did it to try something else
Scutariu said:
Tried with v79..worked
I just confirmed that guy's statemend, I DID NOT did 2 full wipes to get "Optimizing apps", I did it to try something else
Click to expand...
Click to collapse
Oh I see. There are only 2 things I see that happen on an image flash. 4 or is it 8 apps get updated immediately, then all the others start downloading updates from the PS. I think there are about 2 dozen of them in all and it takes forever. I presume that was your experience too. I feel for the guy that optimized because he probably didn't do a factory reset before flashing the new system.img.
Did you restore via Titanium by any chance? I'm having some issues on paid versions of apps I restored. PS says it might be a bootlegged app and denied access to them. I had to uninstall and reinstall from the PS which naturally wiped all my data from the backup. I wonder if I could restore just data? Oh well, all fixed now but this is something new.
It took a long time to optimize my apps because there are quite a number of apps and they were mostly games that are quite large. The process basically recaches the apps since I erased the cache as part of the flash. It's part of the process -
Flash bootloader
reboot bootloader
flash radio
reboot bootloader
flash boot.img
erase cache
flash cache
flash recovery
flash system
flash vendor
reboot
I don't flash userdata since I don't want to wipe user data. After all that, flash twrp and do your usual root, etc...
Try using flashfire by Chainfire (requires root). Simply download the factory image and flash it using the app (make sure to untick flashing of data and select inject root). That way you don't need to use your PC and flashing just take around 2-3 min. If you would like to install twrp afterwards you can do so by using flashify since you're already rooted.
Skickat från min Nexus 5X via Tapatalk
just installed elementalx kernel. do i have to flash that again, also can i skip flashing recovery since i got twrp? assuming i have to flash supersu again
OTA: https://android.googleapis.com/pack...01e537.signed-bullhead-MHC19Q-from-MHC19J.zip
sethyx said:
OTA: https://android.googleapis.com/pack...01e537.signed-bullhead-MHC19Q-from-MHC19J.zip
Click to expand...
Click to collapse
Noob here.. Can you guide? I have 5x stock rooted , twrp and elemental x installed.
How can i update to april patch without erasing media/data and still have root, twrp and elemental x?
Thanks in advance
sravanz said:
Noob here.. Can you guide? I have 5x stock rooted , twrp and elemental x installed.
How can i update to april patch without erasing media/data and still have root, twrp and elemental x?
Thanks in advance
Click to expand...
Click to collapse
Go to the dirty unicorns thread and download the vendor.img file and flash with the newest twrp

Flashing factory image OTA using flash fire

What's up? I flashed the latest May OTA by following this video https://youtu.be/cvs0JQswTWw
I did all the steps minus the 'inject SuperSU setting' as I was gonna flash thru twrp myself when I reinstalled xposed, However when I try and boot into recovery I see a android with a triangle and exclamation mark.
My device is fully functioning with all my data intact but I am stuck without a recovery.
Previously I was on the April ota unlocked bootloader, stock rom, stock kernel, with Xposed installed. Hopefully someone can help me
Systemless root?
Sent from my Nexus 5 using Tapatalk
i2andog said:
Systemless root?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yes, rooted by using this guide.
http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928
Flash twrp with flashify.
https://play.google.com/store/apps/details?id=com.cgollner.flashify&hl=sv
tarroyo said:
What's up? I flashed the latest May OTA by following this video https://youtu.be/cvs0JQswTWw
I did all the steps minus the 'inject SuperSU setting' as I was gonna flash thru twrp myself when I reinstalled xposed, However when I try and boot into recovery I see a android with a triangle and exclamation mark.
My device is fully functioning with all my data intact but I am stuck without a recovery.
Previously I was on the April ota unlocked bootloader, stock rom, stock kernel, with Xposed installed. Hopefully someone can help me
Click to expand...
Click to collapse
The OTA over wrote TWRP with stock recovery once it rebooted.
Sent from my Nexus 6P using XDA-Developers mobile app
Is the Stock flash image the same as the OTA image that google pushes out?
rsalas187 said:
Is the Stock flash image the same as the OTA image that google pushes out?
Click to expand...
Click to collapse
Yes
dratsablive said:
The OTA over wrote TWRP with stock recovery once it rebooted.
Sent from my Nexus 6P using XDA-Developers mobile app
Click to expand...
Click to collapse
To get TWRP back, I would have to reinstall thru adb correct?
Correct. Next time when flashing, before reboot to system, immediately go to recovery and flash SU Beta. This will prevent stock recovery from over writing TWRP.
Sent from my Nexus 6P using XDA-Developers mobile app

Installing OTA 7.1.2 whilst having TWRP installed caused soft brick.

I have just installed went to install the new OTA onto my angler, which was done through TWRP, except it seems to have either corrupted or erased my system partition, because now I just get the "No Command" on boot. TWRP still works and my files are intact, should I just flash a stock 7.1.1 image from Google? (7.1.2 is not yet provided outside OTA for angler it seems)
fuj1n said:
I have just installed went to install the new OTA onto my angler, which was done through TWRP, except it seems to have either corrupted or erased my system partition, because now I just get the "No Command" on boot. TWRP still works and my files are intact, should I just flash a stock 7.1.1 image from Google? (7.1.2 is not yet provided outside OTA for angler it seems)
Click to expand...
Click to collapse
I would download the 7.1.1 stock like you said and then flash boot, system, vendor, and Recovery. You have to be completely stuck before you install any OTAs. This should leave your data intact but I would make sure you have a backup somewhere before you begin
Sent from my Nexus 6P using Tapatalk
funnel71 said:
I would download the 7.1.1 stock like you said and then flash boot, system, vendor, and Recovery. You have to be completely stuck before you install any OTAs. This should leave your data intact but I would make sure you have a backup somewhere before you begin
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Thank you, I downloaded the stock image, deleted userdata.img from the zip and used fastboot update <image>, that worked like a charm and all my data was left intact. Will update when Google decides they want to let me install the OTA again.
fuj1n said:
Thank you, I downloaded the stock image, deleted userdata.img from the zip and used fastboot update <image>, that worked like a charm and all my data was left intact. Will update when Google decides they want to let me install the OTA again.
Click to expand...
Click to collapse
If you still have a copy of the OTA you could install that using ADB sideload from stock recovery not TWRP. But as you say a safer route might be to just wait for the OTA to appear within your stock installation. Completely up to you
Sent from my Nexus 6P using Tapatalk
Related to this issue: I have TWRP, root and the Pixel package flashed to my 7.1.1 installation. I got the beta notification update this morning.
How would I proceed with flashing the update?
Flash stock recovery and system and download the OTA then or something else?
Puck24 said:
Related to this issue: I have TWRP, root and the Pixel package flashed to my 7.1.1 installation. I got the beta notification update this morning.
How would I proceed with flashing the update?
Flash stock recovery and system and download the OTA then or something else?
Click to expand...
Click to collapse
My recommendation is to flash boot, system, recovery, and xender. That should leave your data intact and put your to complete stock. I cannot advise on beta programs because I have never done it and I don't wish to just for the simple fact that it is beta. But if you are brave it sounds like you have the right idea.
Sent from my Nexus 6P using Tapatalk
I was able to flash on rooted 6P by flashing stock recovery. Took a long time at boot animation, and also security is back to January level.
Did you have the Pixel modifications?
Puck24 said:
Did you have the Pixel modifications?
Click to expand...
Click to collapse
I did before I applied the update, I had to modify build.prop afterwards to get the Assistant back. Haven't applied the pixel mod since it hasn't been updated for the 7.1.2 release.
How can I remove the OTA notification? I don't want to update but notification is annoying.
thegios said:
How can I remove the OTA notification? I don't want to update but notification is annoying.
Click to expand...
Click to collapse
If you are rooted you can freeze the update notification process.
Sent from my Pixel XL using XDA-Developers Legacy app
thegios said:
How can I remove the OTA notification? I don't want to update but notification is annoying.
Click to expand...
Click to collapse
Just slide the notification just a little too the side and hit block all notifications for it it go into developer settings and turn off auto updates
Sent from my Nexus 6P using Tapatalk
dratsablive said:
I did before I applied the update, I had to modify build.prop afterwards to get the Assistant back. Haven't applied the pixel mod since it hasn't been updated for the 7.1.2 release.
Click to expand...
Click to collapse
Thx for the info. I'll hold off for now, since i like the Pixel nav keys, tinted navbar and boot animation
Well you can also apply the boot animation. Works for me.
Sent from my Pixel XL using XDA-Developers Legacy app
just flash the stock recovery that matches your build number and you all be fine like me .
Is there a way to do that without a PC? I would like to flash stock recovery for 7.1.1.
RockZors said:
Is there a way to do that without a PC? I would like to flash stock recovery for 7.1.1.
Click to expand...
Click to collapse
The only way you can do that is if your phone is rooted and you flash it with something like Flashify.
Sent from my Nexus 6P using Tapatalk

Resources