Hi,
I know this has been discussed in several ocassions, and I have read several threads but none of them answer my question.
I am wondering if I root my HTC One and keep the device with the stock rom (I only want to root for some apps that needs su) will I be able to get OTA updates?
If not, if I also do S-OFF will I be able to? Please keep in mind that I do not want to flash a custom rom, where then the answer I believe would be to unroot and apply the OTA.
Thank you
buzmay said:
Hi,
I know this has been discussed in several ocassions, and I have read several threads but none of them answer my question.
I am wondering if I root my HTC One and keep the device with the stock rom (I only want to root for some apps that needs su) will I be able to get OTA updates?
If not, if I also do S-OFF will I be able to? Please keep in mind that I do not want to flash a custom rom, where then the answer I believe would be to unroot and apply the OTA.
Thank you
Click to expand...
Click to collapse
No, and youll need a custom kernel with disabled write protection for the root to stick, which will not allow OTA's to work. if you really want root, download a custom stock rom
IINexusII said:
No, and youll need a custom kernel with disabled write protection for the root to stick, which will not allow OTA's to work. if you really want root, download a custom stock rom
Click to expand...
Click to collapse
But what about S-OFF not even with it it would work? I am confuse because I saw a guide here in XDA saying the following:
Rooting stock ROM
What you need to know before rooting stock ROM:
You can "un-root" it easily.
As long as you won't change any files on system partition, you still will be able to download and install official OTA updates.
Download Rooting Tools
Boot your device in recovery mode (power off the device and turn it on using power + vol down buttons and select "RECOVERY")
In main menu, select "install zip from sdcard" and "choose zip from sdcard".
Navigate to the location of Rooting Tools (zip) package and confirm flashing procedure.
After flashing process is complete, reboot the device. Your device has now SuperUser.apk, su binary and busybox installed.
So is this not true?
Link to this guide:
http://forum.xda-developers.com/showthread.php?t=2265618
buzmay said:
But what about S-OFF not even with it it would work? I am confuse because I saw a guide here in XDA saying the following:
Rooting stock ROM
What you need to know before rooting stock ROM:
You can "un-root" it easily.
As long as you won't change any files on system partition, you still will be able to download and install official OTA updates.
Download Rooting Tools
Boot your device in recovery mode (power off the device and turn it on using power + vol down buttons and select "RECOVERY")
In main menu, select "install zip from sdcard" and "choose zip from sdcard".
Navigate to the location of Rooting Tools (zip) package and confirm flashing procedure.
After flashing process is complete, reboot the device. Your device has now SuperUser.apk, su binary and busybox installed.
So is this not true?
Link to this guide:
http://forum.xda-developers.com/showthread.php?t=2265618
Click to expand...
Click to collapse
Having S-off won't effect OTAs but having a custom recovery will. Best to go all stock, rom and recovery to receive the OTA updates. You can root after.
Note: Do the S-off procedure before you update. If your hboot gets updated, you're outta luck.
farang4u said:
Having S-off won't effect OTAs but having a custom recovery will. Best to go all stock, rom and recovery to receive the OTA updates. You can root after.
Note: Do the S-off procedure before you update. If your hboot gets updated, you're outta luck.
Click to expand...
Click to collapse
Ok, but now for instance I do have 4.2.2 so if I root and then there is an update 4.3 then what? I am interested in being only root and being able to get the updates. So every time an OTA comes I shall unroot and then root? This option is not as optimal as I would have though it would be.
Thanks
buzmay said:
Ok, but now for instance I do have 4.2.2 so if I root and then there is an update 4.3 then what? I am interested in being only root and being able to get the updates. So every time an OTA comes I shall unroot and then root? This option is not as optimal as I would have though it would be.
Thanks
Click to expand...
Click to collapse
As long as you have a stock recovery and rom, you should be able to receive OTAs on a rooted phone. Not %100 certain though.
Note: An OTA update could break the root and other mods you made to the rom and cause some other issues.
farang4u said:
As long as you have a stock recovery and rom, you should be able to receive OTAs on a rooted phone. Not %100 certain though.
Note: An OTA update could break the root and other mods you made to the rom and cause some other issues.
Click to expand...
Click to collapse
But how can I have a stock recovery and be root? Dont I need a custome recovery to root?
buzmay said:
But how can I have a stock recovery and be root? Dont I need a custome recovery to root?
Click to expand...
Click to collapse
You need custom recovery to run the rooting process. After your system is rooted you can then flash back to the stock recovery. You should still have root access but I could be wrong. Download "Root Checker" from the play store, run it to see if your device is still rooted. You still need a stock recovery to receive OTA updates though.
The reason you need stock recovery is that you can't install an official update with custom recovery. The type of recovery you have doesn't affect root access.
The reason you have to keep your system files perfectly stock is that an OTA is a patch, meaning it doesn't necessarily replace entire files but mainly snippets of code. If the system files are not stock, it can't do this properly. So it checks /system before running and stops if things are not perfectly stock.
You can get OTAs being rooted, you just can't install them unless you have stock recovery and a fully stock rom.
If you're stock on 4.2.2 right now, you can't s-off, so don't worry about that.
You don't have to flash a custom rom, but you can flash a stock rooted rom. With OTAs, you play the cat-and-mouse game. Can I root it? Did the HBOOT update and kill current S-OFF procedures?
If 4.3 does come out, all you would have to do is wait for a few days for a dev to cook a stock rooted 4.3 rom. AT&T always lags with updates, yet I have a fully functioning 4.2.2 M7 with LTE and no AT&T bloat all thanks to the devs who cook stock rooted roms.
so the title says it all. is there anyway I can root my HTC One without installing a custom recovery first? I want to be able to do OTA updates and with a custom recovery it is not possible. if there is a way to root without installing a custom recovery, can you please provide me a step by step tutorial on how to? thanks in advance.
samanbabah said:
so the title says it all. is there anyway I can root my HTC One without installing a custom recovery first? I want to be able to do OTA updates and with a custom recovery it is not possible. if there is a way to root without installing a custom recovery, can you please provide me a step by step tutorial on how to? thanks in advance.
Click to expand...
Click to collapse
Can you get OTA updates if you are rooted? I thought you had to be stock
deeevan said:
Can you get OTA updates if you are rooted? I thought you had to be stock
Click to expand...
Click to collapse
I do get OTA updates, and it downloads just fine, but as soon as I try to install it, it reboots into the custom recovery and nothing happens. when I had Sense 5 ROM I would simply install the stock recovery.img and installed the OTA update, but right now I'm on stock Android 4.3 google edition and I can't find a stock google edition 4.3 recovery.img
samanbabah said:
I do get OTA updates, and it downloads just fine, but as soon as I try to install it, it reboots into the custom recovery and nothing happens. when I had Sense 5 ROM I would simply install the stock recovery.img and installed the OTA update, but right now I'm on stock Android 4.3 google edition and I can't find a stock google edition 4.3 recovery.img
Click to expand...
Click to collapse
Go to the GPe convention thread. Its in the development section. Download the ruu. Pull the recovery.img, and flash it.
Or ignore the ota, its a minor update anyway. No noticeable changes.
Sent from my HTC One using XDA Premium 4 mobile app
Hi. I am rooted, have installed a few root apps (Lightflow, AdAway) but made no other changes (no custom recovery, have not disabled encryption...)
I wish to take an OTA update. I understand that OTA won't succeed if I have made modifications. Is it sufficient to do a full unroute in SuperSu? Or will the OTA still fail? Anyone have experience? Thanks!
kjnangre said:
Hi. I am rooted, have installed a few root apps (Lightflow, AdAway) but made no other changes (no custom recovery, have not disabled encryption...)
I wish to take an OTA update. I understand that OTA won't succeed if I have made modifications. Is is sufficient to do a full unroute in SuperSu? Or is will the OTA still fail? Anyone have experience? Thanks!
Click to expand...
Click to collapse
You will need to be "out of the box" stock for OTA to flash.
You don't have to wait for an OTA. You can manually flash the stock image and skip the wipe user data part.
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
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.