OTA Update - Nexus 7 (2013) Q&A

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?

Related

[Q] Flash OTA update using Recovery

As this post: http://forum.xda-developers.com/showthread.php?t=1043541
I would like to go back Stock and get OTA updates. My problem is I can't use the unrooting tutorial on the G2/Z wiki as it require to flash a stock Rom and the only available stock ROM for my carrier is too old to get the OTA update (1.34.666.1 and OTA is looking for 1.34.666.5)
TheSPam gave me is nandroid backup so now I have the 1.34.666.5 Version but I'm still rooted. I'm trying to get back 100% stock.
When I'm trying to do the OTA update, after rebooting to flash the update clockworkmod recovery interfere and the OTA update Fail.
I've tried renaming the Update to update.zip, put this on the root of my sdcard and get clockworkmod to install the update from sdcard but I get an error like getprop CID and the update fail.
how can I get back to 100% Stock, unrooted and be able to get the OTA update?
Tonkadan said:
As this post: http://forum.xda-developers.com/showthread.php?t=1043541 I would like to go back Stock and get OTA updates. My problem is I can't use the unrooting tutorial on the G2/Z wiki as it require to flash a stock Rom and the only available stock ROM for my carrier is too old to get the OTA update (1.34.666.1 and OTA is looking for 1.34.666.5) TheSPam gave me is nandroid backup so now I have the 1.34.666.5 Version but I'm still rooted. I'm trying to get back 100% stock. When I'm trying to do the OTA update, after rebooting to flash the update lockworkmod recovery interfere and the OTA update Fail. I've tried renaming the Update to update.zip, put this on the root of my sdcard and get clockworkmod to install the update from sdcard but I get an error like getprop CID and the update fail. how can I get back to 100% Stock, unrooted and be able to get the OTA update?
Click to expand...
Click to collapse
What makes you think opening a new tread is going to solve your issue http://forum.xda-developers.com/showthread.php?t=1043541 quicker?
Absolutely nothing. I started a new thread because the issue in the original post is resolved and i'm facing a complete new problem. Because the initial issue was very specific to my carrier I tough starting a new thread for the new issue may get more answers cause its more generic.
It is that bad?
OK Short Update,
I've been able to install the OTA Update using Recovery. I got the update notification then downloaded the update. I opened the zip file and modified the updater-script to bypass CID check adding || 1 == 1 (So the CID check will always return true then I click ok on the System Update notification.
Phone rebooted and in recovery I selected install ZIP from sdcard. Pointed to the OTA update and everything went fine.
So I'm unrooted now but i'm still S-Off and because I installed the OTA update over a rooted nandroid backup, SuperUser is still in the rom and I can't delete it.
I'm still not able to return the phone for repair and still don't know what to do.
And the last problem, Wifi doesn't work anyore on my phone. It says wifi error and I can't get the mac Adress on Info about your phone, nor the bluetooth address.
Any solution?
Any news about that? I'm still stuck with stock rom but no wifi and bluetooth and can not delete superuser from apps drawer. Thanks
You cannot delete superuser as its embedded in your ROM. Superuser doesn't magically appear when you get root, its put on ROMs for your use or put on during the root process for certain devices.
Now anyways, onto your predicament. You should search your vendors website for an update RUU (eg. vodafone website) or in the android development section. Once you find one to your liking you just follow the Vision Wiki guide to unrooting. There really is no easier way to remove all the aspects of a root without following those steps. Ultimately following that guide will help you restore your Desire Z/G2 to a normal one with no superuser, superCID or secu-flag unlock.
Just a side note, it will be rather difficult for you to obtain a stock ROM from any other user because since they don't have root access or clockworkmod they can't make you a backup of their 1.72 based ROMs.

[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

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

Need some help applying OTA update

Hello, first of all, I'm sorry for the noob question. I tried to search for the answer but I got more confused than when I started. I have rooted my SGS3 just to be able to use the Wifi hotspot, I'm not into other modifications or anything, I just wanted the hotspot. Now the phone wants me to update through OTA, but of course it's not working. My questions are:
-Should I go back to stock (following the videos from qbking77) and then apply the OTA? Is it safe?
-Should I go back to stock and MANUALLY update the phone?
-Is LF9 the latest OFFICIAL update?
-Is there anything else I should consider?
I don't care about custom roms or any other modifications, I like the phone vanilla BUT with the hotspot enabled. I was looking through a lot of videos and threads but I could't find a good answer.
Thanks in advance!
The latest official release is LJ7. You have a couple of options to get the update.
- You could go back to stock to accept the update. The key is that you need the stock recovery installed for the update to work normally. You could then reflash the custom recovery if you like.
- You could manually apply the update from the recovery. If you phone is bugging you to apply the update it then you probably already have the update ZIP in your \cache\ folder. You could also download it. The normal OTA update will only work in the CWM recovery (not TWRP) but there are modified versions posted here that remove the check to allow it to work from TWRP.
Other considerations: If you are using the WiFi Tether for Root users it will no longer work one you update to Jelly Bean (LJ7). You will need to unisntall that and get version that was modified by TrevE.
m20120 said:
The latest official release is LJ7. You have a couple of options to get the update.
- You could go back to stock to accept the update. The key is that you need the stock recovery installed for the update to work normally. You could then reflash the custom recovery if you like.
- You could manually apply the update from the recovery. If you phone is bugging you to apply the update it then you probably already have the update ZIP in your \cache\ folder. You could also download it. The normal OTA update will only work in the CWM recovery (not TWRP) but there are modified versions posted here that remove the check to allow it to work from TWRP.
Other considerations: If you are using the WiFi Tether for Root users it will no longer work one you update to Jelly Bean (LJ7). You will need to unisntall that and get version that was modified by TrevE.
Click to expand...
Click to collapse
Thanks for the help! Yes I think I have CWM on. I followed a video from qbking77 (I think) and installed it. Or at least it was something like custom recovery or something the like. Do you think I can apply the update directly from CWM? Or it would be easier (and cleaner) to go back to stock recovery and do it "officially". Also, are all stock recovery the same? I ask because there are some different files in qbking77's website. I don't know if the version of stock recovery matters at all. Also, thanks for the tip on the modified app.
You probably have CWM recovery. You only need the stock recovery if you want to let the phone apply the OTA (i.e. it prompts you to accept the update). You also have to have the phone in a completely stock state (root is ok). You can not have any modified system files.
If you want to apply the update manually you can also do that with CWM. You can copy the file (something like eec955eb4a5b.update_SPH-L710_LI3_to_LJ7.zip) from the \cache folder to the internal sdcard of your phone. You can then boot into CWM recovery and apply flash the ZIP update. You must have stock system files in order for this update to work also.
If you have modified any system files (I removed the system version of Swype) you have to get back to stock in either case.
m20120 said:
You probably have CWM recovery. You only need the stock recovery if you want to let the phone apply the OTA (i.e. it prompts you to accept the update). You also have to have the phone in a completely stock state (root is ok). You can not have any modified system files.
If you want to apply the update manually you can also do that with CWM. You can copy the file (something like eec955eb4a5b.update_SPH-L710_LI3_to_LJ7.zip) from the \cache folder to the internal sdcard of your phone. You can then boot into CWM recovery and apply flash the ZIP update. You must have stock system files in order for this update to work also.
If you have modified any system files (I removed the system version of Swype) you have to get back to stock in either case.
Click to expand...
Click to collapse
Ok, so the only thing I did is install the wfi hotspot app after rooting, I didn't touch anything else. So I shouldn't worry about system files, right?
You mentioned that since my phone is bothering me with updates notifications, it is because it already downloaded the update into the "cache," right? So I should just find that file, put it in the sdcard and flash from CWM? It's really that easy?
nahuelarg86 said:
Ok, so the only thing I did is install the wfi hotspot app after rooting, I didn't touch anything else. So I shouldn't worry about system files, right?
You mentioned that since my phone is bothering me with updates notifications, it is because it already downloaded the update into the "cache," right? So I should just find that file, put it in the sdcard and flash from CWM? It's really that easy?
Click to expand...
Click to collapse
It is probably there if it is prompting you to update.
One step that I almost forgot about. When you do the update you will reinstall the script that detects a custom recovery and it will install the stock recovery.
There is a good procedure here that gives you the step by step process, including flashing the Team Epic file to prevent the updated ROM from restoring the stock recovery. If you do not flash the Team Epic file the update will still be successful and you will still have root, you will just end up with the stock recovery.
The process is really easy and it is the one that I used to update from LI3 to LJ7.

Categories

Resources