keep root after upgrade os - Nexus 7 (2013) Q&A

if i want to keep root after upgrade os,i have to flash factory images and root again?no better suggestion?
if i install ota updates on my rooted device What will happen?

nexuz2013 said:
if i want to keep root after upgrade os,i have to flash factory images and root again?no better suggestion?
if i install ota updates on my rooted device What will happen?
Click to expand...
Click to collapse
I'll assume you have a custom recovery. The OTA may or may not flash with it, but either way, you will need to reflash SuperSU.
If the OTA fails, download the stock image from Google, extract system.img out of the archive and flash it with fastboot flash system system.img.

Related

will this setup work?

I have a noob question:
I unlocked my bootloader and rooted my gsm nexus. However I would like to be able to receive and install any updates OTA- basically stay as stock as possible with root. My plan was to leave the stock recovery in place. If I need to do a backup or reflash su.zip (after an update to regain root) I was planning on running rom manager and using it to flash CWM. I realize that this CWM would not survive a reboot as the startup script will reflash the stock recovery.
Will this work and does it make sense?
thanks
quick bump- basically I want to know what will prevent an OTA update from installing
Edit I realized there was a flaw in my logic. After an OTA update I will lose root and then be unable to flash the recovery via rom manager. I guess will have to resort to fastboot after OTA

[Q] any difference between factory 4.0.4 or OTA to 4.0.4 from 4.0.2?

hi i just upgrading my phone from 4.0.2 to 4.0.4 imm76i (gsm/hspa+ without google wallet),
i am going to root the phone by cwm recovery, then i have some questions:
when i was on 4.0.2, i rooted the box by cwm, and when i want to do update by OTA, i have to refresh back to the original recovery in the factory 4.0.2 image to apply the package, and that's what i have done...
so here is the question: if i root it by cwm again, and then flash the new recovery.img from factory 4.0.4 image download from "https://developers.google.com/android/nexus/images#yakjuimm76i"
to the phone, will it keep the ability to OTA to next android version? in another way, is there any difference between OTA & factory image OR, is there a identification to know that whether this device flashed a factory image or ota from a previous version?
ok, then if do not mv/rm /system/recovery-from-boot.p after flash cwm(for root), will it restore the stock recovery and keep the ability to do OTA?
erics_lu said:
hi i just upgrading my phone from 4.0.2 to 4.0.4 imm76i (gsm/hspa+ without google wallet),
i am going to root the phone by cwm recovery, then i have some questions:
when i was on 4.0.2, i rooted the box by cwm, and when i want to do update by OTA, i have to refresh back to the original recovery in the factory 4.0.2 image to apply the package, and that's what i have done...
so here is the question: if i root it by cwm again, and then flash the new recovery.img from factory 4.0.4 image download from "https://developers.google.com/android/nexus/images#yakjuimm76i"
to the phone, will it keep the ability to OTA to next android version? in another way, is there any difference between OTA & factory image OR, is there a identification to know that whether this device flashed a factory image or ota from a previous version?
Click to expand...
Click to collapse
The ota is usually just the parts of the rom that have been updated, those image files are the whole rom, if u root u will be able to get the ota but it won't install even with factory recovery,I haven't done it since my N1 but if I remember right u can delete super user from system app folder and delete,--- com.noshufou.android.su and reboot and root should be gone then ota will work and after u update u just root agn .... but your way u did it is always an option ....
biggofer said:
The ota is usually just the parts of the rom that have been updated, those image files are the whole rom, if u root u will be able to get the ota but it won't install even with factory recovery,I haven't done it since my N1 but if I remember right u can delete super user from system app folder and delete,--- com.noshufou.android.su and reboot and root should be gone then ota will work and after u update u just root agn .... but your way u did it is always an option ....
Click to expand...
Click to collapse
thank u for response, i tried to update to 4.0.4 from rooted 4.0.2, and everything is ok.. according to your condition, i think there may be some difference between nexus S and galaxy nexus, so root is not the question(though i met some problem while rooting 4.0.4 caused by the version of su.zip is out of date ).
now i am on 4.0.4 and rooted by cwm, and i didn't delete /system/recovery-from-boot.p, i hope that i will not have to re-flash stock recovery when the next OTA come
When you say that is rooted through CWM, means what exactly? You only used the CWM to root the device? But how?
yep cause i wanna use stock rom on my GN so far, so i use cwm only for root(by flashing a su.zip), and after googled a lot, i think it has went back to stock recovery now, no longer worry about OTA, thank you
erics_lu said:
hi i just upgrading my phone from 4.0.2 to 4.0.4 imm76i (gsm/hspa+ without google wallet),
i am going to root the phone by cwm recovery, then i have some questions:
when i was on 4.0.2, i rooted the box by cwm, and when i want to do update by OTA, i have to refresh back to the original recovery in the factory 4.0.2 image to apply the package, and that's what i have done...
so here is the question: if i root it by cwm again, and then flash the new recovery.img from factory 4.0.4 image download from "https://developers.google.com/android/nexus/images#yakjuimm76i"
to the phone, will it keep the ability to OTA to next android version? in another way, is there any difference between OTA & factory image OR, is there a identification to know that whether this device flashed a factory image or ota from a previous version?
Click to expand...
Click to collapse
No difference. If you did not delete the two files (/system/etc/install-recovery.sh and /system/recovery-from-boot.p) then your device will automatically flash the correct stock recovery on every re-boot.
EDIT: Actually there is one difference: the OTA places those two files on your system, while a full stock ROM does not.
erics_lu said:
ok, then if do not mv/rm /system/recovery-from-boot.p after flash cwm(for root), will it restore the stock recovery and keep the ability to do OTA?
Click to expand...
Click to collapse
Yes.
biggofer said:
[snip]
if u root u will be able to get the ota but it won't install even with factory recovery
Click to expand...
Click to collapse
This is wrong. Rooting has no impact whatsoever on being able to install an OTA update.
efrant said:
No difference. If you did not delete the two files (/system/etc/install-recovery.sh and /system/recovery-from-boot.p) then your device will automatically flash the correct stock recovery on every re-boot.
Yes.
This is wrong. Rooting has no impact whatsoever on being able to install an OTA update.
Click to expand...
Click to collapse
thank you so much, explained so detailed

[Q]How to update from 2.22.401.4 to 2.22.401.5 with stock rooted M8?

I'm on stock rooted Sense --401.4 and I want to update to --401.5 version. I have s-off, and custom recovery, and am rooted.
Although I have a constant "system update" notification on my notification bar, I really cannot update because of the custom recovery. Is there any fully stock version of the latest ROM available which I can flash to update? Mike1986 hasn't provided it yet. Is there any other way to update easily? I really don't want to switch to custom ROMs for the update, and I really don't want to factory reset my phone right now.
Is there any way we can flash OTA update .zips? If yes, I really cannot find them on XDA, so can anyone guide me to them (and a guide on how to flash them?). Thank you.
You can flash stock recovery.img and then perform Update. İ tried and it is working. But you lose root. After Update Flash Custom recovery and supersu zip.
abdyasar said:
You can flash stock recovery.img and then perform Update. İ tried and it is working. But you lose root. After Update Flash Custom recovery and supersu zip.
Click to expand...
Click to collapse
Thanks, I'll try this

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 to restore stock recovery without reset?

The phone is on 7.0, with TWRP recovery and rooted with Magisk. Is there a way to flash just stock recovery in order to receive 7.1.1 OTA but without losing everything? Also, how do I unroot?
Thanks.
ViperX85 said:
The phone is on 7.0, with TWRP recovery and rooted with Magisk. Is there a way to flash just stock recovery in order to receive 7.1.1 OTA but without losing everything? Also, how do I unroot?
Thanks.
Click to expand...
Click to collapse
I always say before people do something to their phone they should have a strong idea on how un-do it first. With that said. The best way is to start from scratch. Download your Software version from the link below, unzip and install each command in ADB. Do your research before jumping ahead...
https://mirrors.lolinet.com/firmware/moto/addison/official/

Categories

Resources