If Root, then Unroot, will i get OTA Updates ? - One (M7) Q&A, Help & Troubleshooting

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

Related

[Q] Problem installing update

Hi today i got the 4.4.2 update and i tried to install it and it failed
My current situation is:
Tempered
Relocked
S-ON
Completely stock (I was rooted, xposed, sense 5 toolkit, htc hand font) by flashing firmware.zip and relocking the bootloader and i created (data/preload/apps) and put every app that comes with the same directory in the OTA and flashing htc stock font back and i've done a factory rest to make sure everything is stock :good:
every time i try to install the update i got ("/system/bin/app_process' has unexpected contents Installation aborted)
by the way my CID is HTC_044 and i'm on 707 region
Anybody have any idea to help please don't hesitate to share it
afmot said:
Hi today i got the 4.4.2 update and i tried to install it and it failed
My current situation is:
Tempered
Relocked
S-ON
Completely stock (I was rooted, xposed, sense 5 toolkit, htc hand font) by flashing firmware.zip and relocking the bootloader and i created (data/preload/apps) and put every app that comes with the same directory in the OTA and flashing htc stock font back and i've done a factory rest to make sure everything is stock :good:
every time i try to install the update i got ("/system/bin/app_process' has unexpected contents Installation aborted)
by the way my CID is HTC_044 and i'm on 707 region
Anybody have any idea to help please don't hesitate to share it
Click to expand...
Click to collapse
Looks like you're not stock after all.
You say you were using Xposed. Xposed replaces /system/bin/app_process with a patched version. By flashing firmware.zip you did not revert your system to stock, only your firmware, that is recovery, kernel, radio, hboot and other firmware partitions, but *not* /system. Which means you still have the Xposed version of app_process on your phone, as well as any other additional mods you installed.
To get to stock, you'll need to restore a backup of the stock system without any mods installed. Neither relocking the bootloader nor S-ON/S-OFF have any effect, you can apply official OTAs with both S-OFF and unlocked bootloader just fine. You don't need factory reset either, the contents of /data don't matter to the OTA at all. What you do need is a stock /system and stock recovery. Of those two requirements, you only fulfilled the second.
If you do not have a clean backup of the stock system, you can either hope that someone else has one and is willing to share it, or you can change your CID to either HTC_622 or a super CID and use the stock ROM I posted over here
All done
koniiiik said:
Looks like you're not stock after all.
You say you were using Xposed. Xposed replaces /system/bin/app_process with a patched version. By flashing firmware.zip you did not revert your system to stock, only your firmware, that is recovery, kernel, radio, hboot and other firmware partitions, but *not* /system. Which means you still have the Xposed version of app_process on your phone, as well as any other additional mods you installed.
To get to stock, you'll need to restore a backup of the stock system without any mods installed. Neither relocking the bootloader nor S-ON/S-OFF have any effect, you can apply official OTAs with both S-OFF and unlocked bootloader just fine. You don't need factory reset either, the contents of /data don't matter to the OTA at all. What you do need is a stock /system and stock recovery. Of those two requirements, you only fulfilled the second.
If you do not have a clean backup of the stock system, you can either hope that someone else has one and is willing to share it, or you can change your CID to either HTC_622 or a super CID and use the stock ROM I posted over here
Click to expand...
Click to collapse
Thank you it went well :victory::victory::victory::victory:
I replaced the app_process with the one from your nandroid backup and the update process was successful :laugh::laugh:

[Q] Updating rooted One to 4.4.2.

I rooted my HTC One a while ago.
Recently, I got the request from my phone to preform a system update. I wasn't used to my phone being rooted and forgot it was rooted and preformed the update. When the update tried to install, it opened up my recovery (ClockworkMod Recovery) and rebooted my phone (I guess this is the normal reaction).
I really like my phone to be up-to-date. How can I get the official 4.4.2. update on my phone?
(If necessary, I wouldn't mind losing my root access in the process as long as I can root back after the update. However, I would prefer my Bootloader to remain unlocked so I won't have to format again.)
I am very interested in Android, but i know very little about things like this so please, if you know how, explain it to me step by step without leaving out little details.
Thanks in advance.
JellyFox said:
I rooted my HTC One a while ago.
Recently, I got the request from my phone to preform a system update. I wasn't used to my phone being rooted and forgot it was rooted and preformed the update. When the update tried to install, it opened up my recovery (ClockworkMod Recovery) and rebooted my phone (I guess this is the normal reaction).
I really like my phone to be up-to-date. How can I get the official 4.4.2. update on my phone?
(If necessary, I wouldn't mind losing my root access in the process as long as I can root back after the update. However, I would prefer my Bootloader to remain unlocked so I won't have to format again.)
I am very interested in Android, but i know very little about things like this so please, if you know how, explain it to me step by step without leaving out little details.
Thanks in advance.
Click to expand...
Click to collapse
Many things are required to flash ota updates. First one is the stock recovery, you can't install an ota update with a custom recovery like cwm or twrp. So flash back the stock recovery that match the version you have on your phone. If you have modified or deleted files in /system, you'll have to revert those changes. The updater script of the ota update MD5 cheksum these files. If only 1 file doesn't match the expected value, the installation will fail. Same thing apply to preloaded app that get wiped when you unlock bootloader (calculator, flashlight etc...)
So first, flash your stock recovery and try to install the ota. If it doesn't work, post the output of ''fastboot getvar all'' (except imei/sn) and we will check what you can do to updates your phone
alray said:
Many things are required to flash ota updates. First one is the stock recovery, you can't install an ota update with a custom recovery like cwm or twrp. So flash back the stock recovery that match the version you have on your phone. If you have modified or deleted files in /system, you'll have to revert those changes. The updater script of the ota update MD5 cheksum these files. If only 1 file doesn't match the expected value, the installation will fail. Same thing apply to preloaded app that get wiped when you unlock bootloader (calculator, flashlight etc...)
So first, flash your stock recovery and try to install the ota. If it doesn't work, post the output of ''fastboot getvar all'' (except imei/sn) and we will check what you can do to updates your phone
Click to expand...
Click to collapse
Thank you for the reply.
I wasn't able to try this since my phone broke down and i had to return it to the store.
(The person working there knew what he was talking about and was familiar with Bootloader.)
I will use your info if i ever need it again.

[Q] Applying OTA Update on rooted phone with S-ON

HI there,
I have a rooted HTC One M7 Stock ROM hboot 1.57 S-ON and now I got the following update:
Software update: 6.14.111.2 (659.71 MB)
System improvements
-Android 4.4.3
-OpenSSL security improvement
Application updates
-Camera
-Gallery
-HTC Sync Manager
My question is, how can I apply the update? I already tried but since I have twrp as recovery it didn't go through. Is there a way of applying the update without losing root and my current configuration (contacts, apps, SMSs, etc)? Should I try to get S-OFF first? (I already tried to no avail like two months ago)
What is the best option to get it working with the latest software version? Sorry if my questions seem a bit too noob. I already tried looking for a similar thread.
braistorms said:
HI there,
I have a rooted HTC One M7 Stock ROM hboot 1.57 S-ON and now I got the following update:
Software update: 6.14.111.2 (659.71 MB)
System improvements
-Android 4.4.3
-OpenSSL security improvement
Application updates
-Camera
-Gallery
-HTC Sync Manager
My question is, how can I apply the update? I already tried but since I have twrp as recovery it didn't go through. Is there a way of applying the update without losing root and my current configuration (contacts, apps, SMSs, etc)? Should I try to get S-OFF first? (I already tried to no avail like two months ago)
What is the best option to get it working with the latest software version? Sorry if my questions seem a bit too noob. I already tried looking for a similar thread.
Click to expand...
Click to collapse
You must be 100% stock for ota updates, stock recovery and stock rom (untouched /system and /data/preload files). /data/preload is wiped when unlocking bootloader.
alray said:
You must be 100% stock for ota updates, stock recovery and stock rom (untouched /system and /data/preload files). /data/preload is wiped when unlocking bootloader.
Click to expand...
Click to collapse
Thanks alray for your answer. Does it mean no way I'm going to get the update working (Since I unlocked the bootloader, using htcdev method)? Or did I misunderstood you? If so, is there any other way I can get the same software?
braistorms said:
Thanks alray for your answer. Does it mean no way I'm going to get the update working (Since I unlocked the bootloader, using htcdev method)? Or did I misunderstood you? If so, is there any other way I can get the same software?
Click to expand...
Click to collapse
you first need to flash your stock recovery back and then the content of /data/preload if you can find it for your version. Otherwise you will need to restore your phone back to stock or to use custom roms.
alray said:
you first need to flash your stock recovery back and then the content of /data/preload if you can find it for your version. Otherwise you will need to restore your phone back to stock or to use custom roms.
Click to expand...
Click to collapse
Thanks again alray, very much. So you mean, if I manage to get the /data/preload and stock recovery working and run the OTA,
Will I lose root access?
Will I lose my actual configuration?
Will I be able to get everything as it is now if I have a nandroid backup?
Thanks again!
braistorms said:
Thanks again alray, very much. So you mean, if I manage to get the /data/preload and stock recovery working and run the OTA,
Click to expand...
Click to collapse
Yes you should be able to run the OTA updates if you have stock recovery for your version and the content of /data/preload for your version. Best way to know is to flash you stock recovery back and try the ota. If the ota fails, enter the stock recovery menu and you'll see why the ota installation aborted (which file is missing)
Will I lose root access?
Click to expand...
Click to collapse
Probably like for every ota updates, re-root after installation.
Will I lose my actual configuration?
Click to expand...
Click to collapse
You should not, but better to backup everything before proceeding.
Will I be able to get everything as it is now if I have a nandroid backup?
Click to expand...
Click to collapse
If you have a backup and restore it, it will restore your phone to the same state it was when you did that backup. (data, system and kernel)

If I root my htc , will i get OTA updates ?

Hi guys , so if I root my HTC One will i still get OTA Update ?
Xhemal1325 said:
Hi guys , so if I root my HTC One will i still get OTA Update ?
Click to expand...
Click to collapse
It depends.
rooting itself doesn't prevent ota updates to install. As long as all your /system files and /data/preload files are 100% stock, ota updates will install fine.
But unlocking the bootloader will wipe everything in /data/preload so you won't be able to install ota updates (even if your phone will notify you and download the update) unless you have restored this folder and its files after having unlocked the bootloader (either by using a ruu, restoring a nandroid backup, using a reset rom). You can also manually restore that folder if you can find the files you need but they most be from the same exact software version (e.g: you can't use /data/preload files of 5.09.401.10 on 5.09.401.11 in order to update to 5.09.401.12).
http://android-revolution-hd.blogspot.ca/2013/03/negative-effects-of-unlocked-bootloader.html
Just check if you still have HTC calculator and flashlight app installed on your phone. If not, then its because you don't have /data/preload on your phone and ota update can't be installed.
alray said:
It depends.
rooting itself doesn't prevent ota updates to install. As long as all your /system files and /data/preload files are 100% stock, ota updates will install fine.
But unlocking the bootloader will wipe everything in /data/preload so you won't be able to install ota updates (even if your phone will notify you and download the update) unless you have restored this folder and its files after having unlocked the bootloader (either by using a ruu, restoring a nandroid backup, using a reset rom). You can also manually restore that folder if you can find the files you need but they most be from the same exact software version (e.g: you can't use /data/preload files of 5.09.401.10 on 5.09.401.11 in order to update to 5.09.401.12).
http://android-revolution-hd.blogspot.ca/2013/03/negative-effects-of-unlocked-bootloader.html
Just check if you still have HTC calculator and flashlight app installed on your phone. If not, then its because you don't have /data/preload on your phone and ota update can't be installed.
Click to expand...
Click to collapse
ok thanks sir, ill keep for sometime unrooted, , its working great

Firmware update problems after rooting

Hey , im new to rooting and the forums so sorry if somethings are not properly explained.
I recently managed to root my uk variant m7 unlocked to any service with the latest twrp recovery.
I have recently found the venom rom which i would like to install to futher customize my rooted device, but i need to upgrade my android to 5.0.2 and i am currently on 4.2.2.
in the toolbar it says 'system update avaliable' and after installing it says 'system update ready' and im guessing this will bring me to 5.0.2 firmware. after clicking on it it reboots my phone and for some reason enters the recovery. from this point i do not know what to do.
so to summarise, i need to upgrade my m7 from 4.2.2 to 5.0.2 nut when i do it enters my twrp recovery and i do not know what to do
system details:
HTC One M7 UK variant unlocked to any service
rooted with SuperSU
Stock rom (4.2.2)
Stock kernel
Thanks
Julian1738 said:
im guessing this will bring me to 5.0.2 firmware.
Click to expand...
Click to collapse
no, there are a lot of updates between 4.2.2 and 5.0.2
after clicking on it it reboots my phone and for some reason enters the recovery.
Click to expand...
Click to collapse
Because the ota update is supposed to be flashed from stock recovery.
so to summarise, i need to upgrade my m7 from 4.2.2 to 5.0.2 nut when i do it enters my twrp recovery and i do not know what to do
Click to expand...
Click to collapse
You can't update your phone in its current status. You need stock recovery installed, unmodified /system files and /data/preload which is deleted during the htcdev bootloader unlock process. You'll probably need to use a RUU or something else.
system details:
HTC One M7 UK variant unlocked to any service
rooted with SuperSU
Stock rom (4.2.2)
Stock kernel
Click to expand...
Click to collapse
Unfortunately, this is not really relevant info, post the output of "fastboot getvar all" command, remove your IMEI # before posting.
so i have to unroot my phone
great this is going to take a while :/
if i factory reset my phone will it remove the bootloader and root?
Julian1738 said:
if i factory reset my phone will it remove the bootloader
Click to expand...
Click to collapse
What? You might want to read about what a bootloader is
A device without a booloader is called a paperweight
and root?
Click to expand...
Click to collapse
A factory reset only wipes user data. Root files are stored in /system partition which is not affected by a factory reset so short answer no, like I said you'll probably need a RUU or something else (stock odex rom/nandroid backup/guru reset rom) to reset your phone back to stock. Post the output of "fastboot getvar all"
alray said:
You can't update your phone in its current status. You need stock recovery installed, unmodified /system files and /data/preload which is deleted during the htcdev bootloader unlock process. You'll probably need to use a RUU or something else.
Click to expand...
Click to collapse
Its possible to download the update elsewhere and install it through twrp recovery?
If yes, where i can find these updates in zip form?
If not, what's the simple option to install the update?
thanks
tkdfilipe said:
Its possible to download the update elsewhere and install it through twrp recovery?
If yes, where i can find these updates in zip form?
If not, what's the simple option to install the update?
thanks
Click to expand...
Click to collapse
If your phone is S-off, you can download the Ota zip files and install them incrementally (can't skip a version) using stock recovery. That doesn't change the fact that all files in /system and /data/preload must be unmodified.
Imo, the simplest way to update if your phone isn't stock is with a RUU. If your phone is stock, reflash stock recovery and update with Ota, if it's stock and soff you can update with Ota zip files if you can find all the ones you need.
Sent from my HTC One using XDA Labs

Categories

Resources