Using OTA's when rooted - One (M8) Q&A, Help & Troubleshooting

I have my M8 running the GPE ROM which I have rooted. On previous Android versions, I was able to apply the OTA albeit manually in the custom recovery.
The last few OTA's I have attempted on my M8 have been a complete failure and I have ended up having to wipe and apply a factory image. Recently therefore i have been ignoring the updates (L-MR1 has been bugging me to install for weeks!)
Is there a method of applying these updates with the phone rooted?
Thanks

An ota will install with root applied BUT you have to make sure the system partition is untouched. This means that ALL the "stock" apps need to be there and nothing can be removed. xposed is also a known bugger to refuse official ota updates. And a must have is the HTC stock recovery. An ota never installs through a custom recovery !

Related

[Q]If i root, will i be avalible to revieve OTA updates?

Maybe a noobish question, but im sorry
As the title says : if i root the phone, will i be able to recieve updates OTA ?
edit : and same question : if i get cwr (for nandroid backups) will i be able to recieve OTA updates?
Thanks guys
So long as you're running the stock rom, you should still get OTA updates. They may or may not break root, but you'll have to risk that. If you're running a custom ROM, then you probably will not get OTA updates, but you can of course update your ROM as per the developer builds.
You will remove root if you install an OTA, and I have heard of people actually bricking their phones installing an OTA with root.
installing CWM will break OTA even if you're on the stock ROM because it flashes in stock recovery, not CWM.
...and from the mixed responses you can tell that it wasn't really a noob question. (all answers were partially correct, btw).
The update will still get pushed to your phone, based on the build version of your phone. The custom recovery will fail to install, at which point you can simply install it yourself by performing a manual flash via recovery.
Depending on the extent of the update, you may or may not lose root, and possibly even your custom recovery. Your best option is to manually flash an update, then the su.zip, and I've also put together flashable a script to prevent your custom recovery from reverting to stock at your next boot (I'll post it when I get chance). Flash all the files while in CWM, and you're golden!
I have reached maximum thanks-per-day, otherwise i would give a thanks to all of you..
So, i still have few questions :
1) If i root, get custom CWM, but stock rom, will i still be able to SEE ota update, and to DL it over the OTA (not flash it)?
2) Can i brick my device with flashing ota , while rooted and with custom CWM ?
Thanks in advance
-yes it will still show up.
-it won't brick your device, but the update will fail, and you'll have to pull battery to gay back into the os.
Sent from my Galaxy Nexus using XDA App

[Q] OTA update Query

Hi, i got my nexus flo a week ago. This is my first nexus device.I have some queries. I have unlocked the bootloader, installed twrp and rooted the device.
Will that prevent me getting OTA?
Also, does having unlocked bootloader and custom recovery cause failure to update the software?
(Not just the JSS15R but future updates to kitkat as well)
Also what is the odex and deodex in this thread? which one should i flash?
http://forum.xda-developers.com/showthread.php?t=2383059
littleromeo said:
Hi, i got my nexus flo a week ago. This is my first nexus device.I have some queries. I have unlocked the bootloader, installed twrp and rooted the device.
Will that prevent me getting OTA?
Also, does having unlocked bootloader and custom recovery cause failure to update the software?
(Not just the JSS15R but future updates to kitkat as well)
Also what is the odex and deodex in this thread? which one should i flash?
http://forum.xda-developers.com/showthread.php?t=2383059
Click to expand...
Click to collapse
Odex vs deodex: http://forum.xda-developers.com/showthread.php?t=2200349
If I understand well, updates will 'fail' with custom recovery, whereas the update is flashed the firmware version number shows the old version. Explained in the guides somewhere.
Sent from my Nexus 7 (2013)
littleromeo said:
Hi, i got my nexus flo a week ago. This is my first nexus device.I have some queries. I have unlocked the bootloader, installed twrp and rooted the device.
Will that prevent me getting OTA?
Also, does having unlocked bootloader and custom recovery cause failure to update the software?
(Not just the JSS15R but future updates to kitkat as well)
Also what is the odex and deodex in this thread? which one should i flash?
http://forum.xda-developers.com/showthread.php?t=2383059
Click to expand...
Click to collapse
Unlocked bootloader has no direct negative effect on ota installs.
With an unlocked bootloader you might do further actions which can affect the ota like modify or delete /system files. You might install an enhancement like apm. Those, among others, would prevent the ota update from completing.
Now normally root by itself would not prevent an ota update, but there was an issue with SuperSU v 1.51 and earlier which did prevent the ota install from completing. This was fixed in SuperSU v1.55 and above.
Installing twrp will not block the ota.
The ota will disable root and overwrite custom recovery by default.
If you would like to prevent that behavior, the easiest way is to
copy the ota update.zip and supersu update.zip to your virtual sdcard
boot into twrp
install ota update.zip
immediately (prior to reboot) re-install supersu
sfhub said:
Unlocked bootloader has no direct negative effect on ota installs.
With an unlocked bootloader you might do further actions which can affect the ota like modify or delete /system files. You might install an enhancement like apm. Those, among others, would prevent the ota update from completing.
Now normally root by itself would not prevent an ota update, but there was an issue with SuperSU v 1.51 and earlier which did prevent the ota install from completing. This was fixed in SuperSU v1.55 and above.
Installing twrp will not block the ota.
The ota will disable root and overwrite custom recovery by default.
If you would like to prevent that behavior, the easiest way is to
copy the ota update.zip and supersu update.zip to your virtual sdcard
boot into twrp
install ota update.zip
immediately (prior to reboot) re-install supersu
Click to expand...
Click to collapse
Thank you for the guide, updated to JSS15R. There were no touchscreen problems for me before the update and everything is just like before even after update. Hope someone comes up with a changelog soon.

rooting and ota

Hi,
I might sound dumb but will I be ablle to get OTA updates if I install custom recovery and root.
thechamp007 said:
Hi,
I might sound dumb but will I be ablle to get OTA updates if I install custom recovery and root.
Click to expand...
Click to collapse
No. OTA updates require stock recovery. However, you can revert to stock recovery and unroot as you please. Also, you can flash OTA updates through TWRP once a flashable zip is made, except you have to download it and flash it manually, just like installing a custom ROM. Cheers.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 4
I received the last update through OTA on a rooted Stock ROM with TWRP installed.
After the install was finished TWRP asked if I wanted to restore the root. All went smoothly.
To clarify.. I did not flash the ROM. I used the normal OTA update.
tigerdim said:
I received the last update through OTA on a rooted Stock ROM with TWRP installed.
After the install was finished TWRP asked if I wanted to restore the root. All went smoothly.
To clarify.. I did not flash the ROM. I used the normal OTA update.
Click to expand...
Click to collapse
I believe you can on small point updates. The full update from 4.3 to 4.4 most likely won't work with a custom recovery.
nbehary said:
I believe you can on small point updates. The full update from 4.3 to 4.4 most likely won't work with a custom recovery.
Click to expand...
Click to collapse
you must have stock /system folder + stock recovery
you can be rooted, by if you delete some files in /system - you break your ota
new ota will be with new radio too
after ota super-su apk will be removed by the ota
---------------
i restored /system apps from sdcard before 4.3 ota and migrate very well from 4.2.2
The ota 4.3 update removed my root and Twrp. Hope 4.4 doesn't do the same. It's always a pain for me to restore root with my Windows 7 laptop. It keeps installing the wrong usb drivers which get in the way of the wugfresh toolkit access to the nexus 7. So it's no easy task for me.

OTA Update

I have rooted my Nexus 7 wifi 2012 tablet with TWRP
I don't want to keep un-rooting, applying ota updates then re-rooting my tablet. Is there an easy way. Maybe modified images i can use on a rooted tablet which i can install via the install option in twrp recovery loader.
I also notice that Nexus root tool kit has a ota sideload update option in the advanced menue.
So my question is where are the modifies ota update files if they exist as I don't want to keep un-rooting, rerooting each time to apply official ota updates. I have searched the net and can't find modifies ota updates?
My OTA failed due to root and modifications so I extracted system.img and boot.img from the 5.1 tarball and flashed them using Nexus Root Toolkit. Works well.
I'm going through the same issue - I want to keep running stock, but every time an OTA update comes in, it bugs me for an update until I go through the whole process of finding the files elsewhere, using the Toolkit to flash them etc etc.
Is there a better way to do this automatically? Can I find the downloaded OTA package on the Nexus and just flash it from there?
Since Lollipop, you can't take an OTA in any way (official or sideload) if you've modified your system. Rooting, custom recovery or kernel. Unrooting does not help since the system already has been modified.
Easiest way to upgrade and still keep your data is to flash the factory image but leave out userdata.img. This can be easily done through NRT (No wipe mode) if command prompt is scary. Yes you'll have to reroot... But hey, this is a Nexus, it's easy.
I assume that means waiting for someone to post the update?
If you want to wait for someone to make a prerooted image, then yes. Otherwise just download the official factory image (Google it) and go for it.
Google doesn't always release OTAs and factory images at the same time, so some waiting will probably always be involved...
Drives me crazy. TWRP used to be able to intercept a OTA flash, flash the needed images, detect you lost root and ask to restore root.
Somewhere that disappeared.
I just flashed a very old stock and took every OTA to 5.0.2, rooted, setup... now getting bombarded with 5.1.1 update notification. Ugh
Didgeridoohan said:
Since Lollipop, you can't take an OTA in any way (official or sideload) if you've modified your system. Rooting, custom recovery or kernel. Unrooting does not help since the system already has been modified.
Easiest way to upgrade and still keep your data is to flash the factory image but leave out userdata.img. This can be easily done through NRT (No wipe mode) if command prompt is scary. Yes you'll have to reroot... But hey, this is a Nexus, it's easy.
Click to expand...
Click to collapse
I need to flash the latest lollipop image to my rooted nexus with TWRP. I know where to find the images but don't remember how to flash it. What exactly are the steps and how do I leave out userdata.img ?
And what are the steps to reroot lollipop?
Thanks
i keep getting the offer to download the 5.1 update but when i do it dloads it then tries to reboot into recovery to flash it but it obviously boots into TWRP recovery which is no good.
So the question is when it dloads the update where does it dload to?
and could i flash it from TWRP if i find it?

How can I install OTA updates when I am rooted with Magisk?

I posted a while back in February about how I was unable to install the December Security OTA Update on my XT1710-01 RETUS, but I didn't get any responses. I believe that I have learned that this is due to the fact that I have unlocked my bootloader and rooted with Magisk (however I have not flashed TWRP or a custom recovery, if that makes a difference).
It looks like some other users had this issue too, and that some of you were able to get by with flashing a different Stock ROM in to get back to Stock and then flashing the OTA update.
Is that what I need to do in order to be able to flash my OTA updates in the future? Is there any other method aside from flashing the ROMs to get the updates too install on my phone?

Categories

Resources