Regarding OTA Update, Root and OTA ZIP... - X 2014 Q&A, Help & Troubleshooting

So, i know that you cant update Android OS through OTA if you are rooted because it checks the device for files that were modificated...
But, can you install an update (with recovery, obviously) with an OTA ZIP file while being rooted ? Does it work this way ? Does it bypass the systrm check ?

No, it won't work. You have to restore to stock.
Sent from my XT1095

Thank you very much

Faruko said:
So, i know that you cant update Android OS through OTA if you are rooted because it checks the device for files that were modificated...
But, can you install an update (with recovery, obviously) with an OTA ZIP file while being rooted ? Does it work this way ? Does it bypass the systrm check ?
Click to expand...
Click to collapse
When you install the zip through recovery the exact same thing happens - an updater script is run. The updater script is what performs the checks.

Related

[Closed] Root and OTAs

Noob question: Will root and custom recovery break stock ROM?
NoobER question: How about play store updates?
xtalks said:
Noob question: Will root and custom recovery break stock ROM?
NoobER question: How about play store updates?
Click to expand...
Click to collapse
you need stock recovery to install ota updates
unlocking the bootloader will wipe /data/preload content and you'll be unable to install ota (except if you restore the content of that folder)
any modification to /system files will also prevent ota to install.
root and custom recovery will not prevent playstore updates.
Thanks @alray
Follow up question though, will it say that I have an OTA update in settings/about but won't be able to install it or totally no notifications?
xtalks said:
Thanks @alray
Follow up question though, will it say that I have an OTA update in settings/about but won't be able to install it or totally no notifications?
Click to expand...
Click to collapse
you'll still have notification and you'll also be able to download the ota but it will fail if you are using a custom recovery. It can also fail with stock recovery if some files were modified or deleted in /system or in /data/preload. you'll see a red triangle with an exclamation mark inside : ota install failed

If Root, then Unroot, will i get OTA Updates ?

So guys, If i root right now phone, and then Full Unroot, will i get OTA updates ?
Xhemal1325 said:
So guys, If i root right now phone, and then Full Unroot, will i get OTA updates ?
Click to expand...
Click to collapse
Root (su) by it's self does not stop you from getting OTA updates
changed system files / missing (data/preload) files and custom recovery are what stop you from getting OTA updates
a rooted phone will update fine / you just loose root
clsA said:
Root (su) by it's self does not stop you from getting OTA updates
changed system files / missing (data/preload) files and custom recovery are what stop you from getting OTA updates
a rooted phone will update fine / you just loose root
Click to expand...
Click to collapse
ok, but does the root change the system files,or something, im trying to install TWRP recovery, root, and then flash again stock recovery ? or meaby try to root with towelroot ?, but i dont thing towelroot, will work with 5.0 :/
Xhemal1325 said:
ok, but does the root change the system files,or something, im trying to install TWRP recovery, root, and then flash again stock recovery ? or meaby try to root with towelroot ?
Click to expand...
Click to collapse
when you unlocked the bootloader you already lost some system files (data/preload)
depending on your phone model, their are already stock rom backups you can install along with stock recovery to take OTA updates
you get these stock backups by flashing a RUU, with s-off you don't need to lock / unlock the bootloader so all the system files are intact
clsA said:
when you unlocked the bootloader you already lost some system files (data/preload)
depending on your phone model, their are already stock rom backups you can install along with stock recovery to take OTA updates
you get these stock backups by flashing a RUU, with s-off you don't need to lock / unlock the bootloader so all the system files are intact
Click to expand...
Click to collapse
but as i know unlcoking bootloader, do not stop OTAs, Its a bit diffiult to find RU, for my phone model, but however ,i just wanted to know, if i install TWRP, then root, then flash again stock recovery, will i be able to get OTA again ?
or instaling TWRP, i just break OTA Updates ?
Xhemal1325 said:
but as i know unlcoking bootloader, do not stop OTAs, Its a bit diffiult to find RU, for my phone model, but however ,i just wanted to know, if i install TWRP, then root, then flash again stock recovery, will i be able to get OTA again ?
or instaling TWRP, i just break OTA Updates ?
Click to expand...
Click to collapse
yes if you still have the files from unlocking the bootloader it will work
clsA said:
yes if you still have the files from unlocking the bootloader it will work
Click to expand...
Click to collapse
nah i dont have any file, but does unlcoking bootloader stops OTA ?
what about if i relock bootloader, will that work ?
Xhemal1325 said:
nah i dont have any file, but does unlcoking bootloader stops OTA ?
what about if i relock bootloader, will that work ?
Click to expand...
Click to collapse
(...)
The second problem of unlocked bootlader is even more serious, but so far it affects only 2 devices: HTC One X+ and HTC One. Those who used htcdev.com before probably noticed, that unlocking bootloader wipes user data, including content of virtual SD card (because virtual SD card = /data/media).
This is no surprise, because every user is warned about it and have a chance to step back. As long as all applications coming with stock ROM are stored on /system partition, there are no side effects. But for some very strange reason in HTC One X+ and HTC One, some of the stock applications like Flashlight, Calculator, Ringtone-trimmer, PDF Viewer, Teeter, Sound Recorder and more, are stored on /data partition instead. Result? After unlocking bootloader with official HTC tool you end up without having some of the basic HTC applications like Calculator or Flashlight, because /data partition (as mentioned above) has been wiped. System partition on HTC One is almost 2 GB big. Not enough to include few more .apk files?
What is more, missing stock applications on /data partition makes your device not capable to receive any OTA updates from HTC. Why? Because every OTA update checks MD5 checksum of every file that originally came with your device. So even if you didn't flash any custom ROM and your /system partition is unmodified, you won't be able to install OTA update.
This is an example of updater-script part from OTA:
assert(apply_patch_check("/data/preload/Calculator.apk","85aa7b00ec97ffe7179739c8815bf102c4f8666e","7055f0376e6b56be6414fdf8495b82db7fd38564")||apply_patch_check("/data/preload/Calculator.apk.uninstall","85aa7b00ec97ffe7179739c8815bf102c4f8666e","7055f0376e6b56be6414fdf8495b82db7fd38564"));
Once assert will fail, OTA update will cancel the installation process. I think every user should be warned, that unlocking bootloader results in no longer OTA updates support.
Click to expand...
Click to collapse
http://android-revolution-hd.blogspot.ca/2013/03/negative-effects-of-unlocked-bootloader.html
The bootloader status doesn't matter, you can be locked/unlocked/relocked and the ota will work fine but you must restore all the content of /data/preload for ota update to install
B) the OTA updater-script
you need to be on stock recovery, custom recoveries will not work!
what will it check:
1- the ROM fingerprint, CID, and MID
2- if you pass those, the OTA will check the actual system files (thousands of them) using SHA-1 hash to confirm they are as expected. Why? because OTA is just a patch (diff) between two versions, so in order to patch a file (as opposed to replacing it), it has to be an exact match.... if even 1 out of those thousands of files is not as expected, the OTA will not work. ---> stock recovery will change to red triangle.
Note: this also usually includes the /data/preload folder which gets deleted when using HTCdev unlock.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=52894276&postcount=9
alray said:
http://android-revolution-hd.blogspot.ca/2013/03/negative-effects-of-unlocked-bootloader.html
The bootloader status doesn't matter, you can be locked/unlocked/relocked and the ota will work fine but you must restore all the content of /data/preload for ota update to install
http://forum.xda-developers.com/showpost.php?p=52894276&postcount=9
Click to expand...
Click to collapse
ok sir thank you for your time, but when i unlocked bootloader, yes evrything wiped, but i havant lose any those apk, flashlight, calculator, are there, nothing is missing !
as far as i understood, by unlocking bootloader im not able to get OTA anymore ? is that right ?
Xhemal1325 said:
ok sir thank you for your time, but when i unlocked bootloader, yes evrything wiped, but i havant lose any those apk, flashlight, calculator, are there, nothing is missing !
as far as i understood, by unlocking bootloader im not able to get OTA anymore ? is that right ?
Click to expand...
Click to collapse
If you have 100% stock /system, /data/preload and stock recovery you will able to install ota update, Bootloader status doesn't matters, only the files that are deleted when unlocking it the first using htcdev.com:
I'm being lazy here, sorry ,but I did promise to post something
A) when do you receive and OTA notification:
1- the ROM fingerprint, CID, and MID must match (if) available OTA
2- does anything else matter (root, kernel, modifications, S-On/S-Off, etc., even recovery) -> NO, but they may below
B) the OTA updater-script
you need to be on stock recovery, custom recoveries will not work!
what will it check:
1- the ROM fingerprint, CID, and MID
2- if you pass those, the OTA will check the actual system files (thousands of them) using SHA-1 hash to confirm they are as expected. Why? because OTA is just a patch (diff) between two versions, so in order to patch a file (as opposed to replacing it), it has to be an exact match.... if even 1 out of those thousands of files is not as expected, the OTA will not work. ---> stock recovery will change to red triangle.
Note: this also usually includes the /data/preload folder which gets deleted when using HTCdev unlock.
what will it do if the above are OK:
* the OTA will patch the existing files
* delete any files no longer part of the update
* install any new files that come with the update
* and finally update the firmware (hboot, recovery, kernel, thouchscreen drivers, bootsplash, etc.) <- note, since the OTA is an update the firmware.zip will only contain the files that need to be updated, so for example, touchscreen drivers are not included in every OTA, only when necessary.
and to the big question, what will interfere with successful OTA:
any modification to the files the OTA checks (in step 2 above), so:
- does a custom kernel matter (boot.img) -> technically no, but custom kernels may also overwrite certain system files, so in practice yes they may interfere if some stock system file was changed.... not because boot.img is custom, but because the files in /system which got replaced. (so flashing back a stock boot.img will not solve this!!)
- does root matter -> same as above, if the root package modifies any original files then yes, otherwise no
- unlocked bootloader -> No, doesn't matter
- S-On/S-Off -> No, doesn't matter
Click to expand...
Click to collapse
So if you still have all files in /data/preload its okay even if your bootloader is unlocked.
How to get stock Rom back up for my htc desire 816 dual SIM (a5_DUG)
Bcz I want ota updates from htc
arun2255 said:
How to get stock Rom back up for my htc desire 816 dual SIM (a5_DUG)
Bcz I want ota updates from htc
Click to expand...
Click to collapse
Wrong forum. Ask on your device forum. This is for M7 only

Install ota update

Hello guys
i want to ask how to install ota updates using twrp ,
please tell me the steps.
Thank You
There are two types of OTAs for this phone. One is incremental which checks for the apps and system partition to be unmodified before it applies the update. For this the script has to be modified to skip the checkimg part. Other is full which doesn't check and can be flashed directly from TWRP.
AonSyed said:
There are two types of OTAs for this phone. One is incremental which checks for the apps and system partition to be unmodified before it applies the update. For this the script has to be modified to skip the checkimg part. Other is full which doesn't check and can be flashed directly from TWRP.
Click to expand...
Click to collapse
i installed this Rom X510-D5110-L-20150805 and received 34mb ota update so i need to install it without formating the phone.
owais16 said:
i installed this Rom X510-D5110-L-20150805 and received 34mb ota update so i need to install it without formating the phone.
Click to expand...
Click to collapse
Get the latest OTA of 20160315 and flash it. Its the latest version and TWRP flashable. And it will update the system to Marshmallow too
AonSyed said:
Get the latest OTA of 20160315 and flash it. Its the latest version and TWRP flashable. And it will update the system to Marshmallow too
Click to expand...
Click to collapse
i installed this Rom becuz its supported usb otg

Root + Ota update

Hey I have p20 pro EU version 6/128
Today I got a new update about Google security.
I want every update run on my phone
But I rooted my device.
I wanted first to ask guys , I tried to update but was unsuccessful. I do not have twrp because of the method I used to root p20 pro didn't allow me having magisk and twrp recovery.
So now if I want to update have to do it manually ?
2 questions
1) which program do I use ?
2) where I can find the firmware Official WITHOUT BEEING CHANGED ANYTHING inside from someone third.
Thanks John
You need to flash the stock bootloader. If you are running Pie and Magisk, you have a modified bootloader. I don't know where to download the stock one. Could probably rip it from a stock Pie firmware.
Me to have twrp on my p20 pro and i cannot update my phone.. Have new update but when I try system update after download, its entering to recovery mode for install the firmware but it cannot coz working twrp and unsuccessful installation.
Me to look for stock recovery for clt-l29 pie
purple patch said:
You need to flash the stock bootloader. If you are running Pie and Magisk, you have a modified bootloader. I don't know where to download the stock one. Could probably rip it from a stock Pie firmware.
Click to expand...
Click to collapse
stock bootloader? where i find this?
StonebridgeGr said:
stock bootloader? where i find this?
Click to expand...
Click to collapse
I mean stock recovery ramdisk, or whatever they call it on Huawei. Will need the 9 version asfaik.
https://forum.xda-developers.com/hu...awei-p20-pro-charlotte-l29c432b131-8-t3809964
danifilth4king said:
https://forum.xda-developers.com/hu...awei-p20-pro-charlotte-l29c432b131-8-t3809964
Click to expand...
Click to collapse
i am not trying to find guide to upgrade from 8.0 to 9.0.
I am already on 9,0 but i got a new update for google security and i want to update
which is the guide for this or is the same?
StonebridgeGr said:
i am not trying to find guide to upgrade from 8.0 to 9.0.
I am already on 9,0 but i got a new update for google security and i want to update
which is the guide for this or is the same?
Click to expand...
Click to collapse
https://forum.xda-developers.com/hu...charlotte-l29c432b131-8-t3809964/post79034970
The apk from this post will allow you to download the latest firmware for your model from firmware finder and flash it without needing TWRP or having to flash stock recovery. You will have to re-root afterwards though
danifilth4king said:
https://forum.xda-developers.com/hu...charlotte-l29c432b131-8-t3809964/post79034970
The apk from this post will allow you to download the latest firmware for your model from firmware finder and flash it without needing TWRP or having to flash stock recovery. You will have to re-root afterwards though
Click to expand...
Click to collapse
thanks but the link of the app is dead
is the same app as is one the google play?
danifilth4king said:
https://forum.xda-developers.com/hu...charlotte-l29c432b131-8-t3809964/post79034970
The apk from this post will allow you to download the latest firmware for your model from firmware finder and flash it without needing TWRP or having to flash stock recovery. You will have to re-root afterwards though
Click to expand...
Click to collapse
I got the app on pc and android, tried to find the last firmware 9.0.0.203 on clt-l29 c432e5r1p9 but there is no.
StonebridgeGr said:
I got the app on pc and android, tried to find the last firmware 9.0.0.203 on clt-l29 c432e5r1p9 but there is no.
Click to expand...
Click to collapse
Download the current version you are using. Extract recovery_ramdisk.img and flash. Reboot and take OTA update. You will lose root, as I said you have a modified recovery and need stock to take OTA.
Edit - Once your done, patch the bootloader from Magisk and flash to get root again.
purple patch said:
Download the current version you are using. Extract recovery_ramdisk.img and flash. Reboot and take OTA update. You will lose root, as I said you have a modified recovery and need stock to take OTA.
Edit - Once your done, patch the bootloader from Magisk and flash to get root again.
Click to expand...
Click to collapse
i just flash recovery ramdisk hmm i think it will brick my device.
how do i flash it?

Unable to install OTA

I've just installed Magisk on my device. I tried to update my phone via OTA with this tutorial https://topjohnwu.github.io/Magisk/tutorials.html#ota-installation but the update fails.
I didn't flash the recovery image
I solved my problem.
I did few modifications on the system partition with Adaway, so that's why the OTA didn't work. So I reflash the firmware, and I followed the steps for OTA updates, and that works now!
I have that problem again : I tried to update from 7 to 13 and failed all the time. Before that, I installed the November 1st patch and lost the root. So I downgraded to 7 to get root again.
At Step 3, the update stops at 56% before the update fails.
FoxyLove33 said:
I've just installed Magisk on my device. I tried to update my phone via OTA with this tutorial https://topjohnwu.github.io/Magisk/tutorials.html#ota-installation but the update fails.
I didn't flash the recovery image
Click to expand...
Click to collapse
Hey man, can you link a tutorial to update the z3 play with security patches? Mine has bootloader unlocked and no other modifications. All stock. Updated upto july patch. Can you link a tutorial? and link for the patches (RETUS)? Thx.
e4noob said:
Hey man, can you link a tutorial to update the z3 play with security patches? Mine has bootloader unlocked and no other modifications. All stock. Updated upto july patch. Can you link a tutorial? and link for the patches (RETUS)? Thx.
Click to expand...
Click to collapse
First of all, I'm not a man. The first link is how to install magisk, and the second one is how to update via OTA
https://topjohnwu.github.io/Magisk/install.html#boot-image-patching
https://topjohnwu.github.io/Magisk/tutorials.html#ota-installation
FoxyLove33 said:
First of all, I'm not a man. The first link is how to install magisk, and the second one is how to update via OTA
https://topjohnwu.github.io/Magisk/install.html#boot-image-patching
https://topjohnwu.github.io/Magisk/tutorials.html#ota-installation
Click to expand...
Click to collapse
Thanks. I tried the instructions on the ota link, but am still getting Software Update unsuccessful?
FoxyLove33 said:
First of all, I'm not a man. The first link is how to install magisk, and the second one is how to update via OTA
https://topjohnwu.github.io/Magisk/install.html#boot-image-patching
https://topjohnwu.github.io/Magisk/tutorials.html#ota-installation
Click to expand...
Click to collapse
Hi,
I'm having a similar issue with the OTA installation after getting magisk root using the Boot Image Patching method. The tutorial shows several different methods, but so far I haven't had luck with any of them. I tried the one for "Devices with A/B Partitions" and got as far as flashing the original boot image back but the OTA still wouldn't install. The flashfire method wouldn't work because flashfire says it isn't compatible with "20.1:MAGISKSU". I didn't touch the recovery partition and I am using the same file I used to create the patched magisk boot image (without the alteration) to try to get back to stock boot image. I'm not sure what else to do aside from using LMSA to reflash stock. My concern with that (aside from having to reconfigure everything) is that I don't have the latest boot.img from the 1-9 firmware to patch it in Magisk and I don't yet know if I can use the 1-6 firmware modified boot.img file.

Categories

Resources