Hey guys just wanna ask, is it possible to be Rooted but running fully stock with OTA updates? I just want to have root on my One without customizing it.. Simply Rooted and full Stock with OTA updates.. Thanks in Advance!
mctodd said:
Hey guys just wanna ask, is it possible to be Rooted but running fully stock with OTA updates? I just want to have root on my One without customizing it.. Simply Rooted and full Stock with OTA updates.. Thanks in Advance!
Click to expand...
Click to collapse
if im not mistaken once your bootloader is unlocked you cant receive OTAs anymore. At that point what you can do is manually flash the new OTA.
I'm not sure if its that simple though, I've never done it like that, just custom roms.
mctodd said:
Hey guys just wanna ask, is it possible to be Rooted but running fully stock with OTA updates? I just want to have root on my One without customizing it.. Simply Rooted and full Stock with OTA updates.. Thanks in Advance!
Click to expand...
Click to collapse
As long as you have stock everything, besides the root of course, you can sideload ota updates through adb. i sideloaded kitkat when it came out.
By stock I assume you are running a Sense One and not a legit GPE?
When you unlock the bootloader on Sense it wipes a few apk files (no clue why, seems idiotic) and thus OTA will be broken as the expected APK will not be present.
So you have to unlock bootloader. install recovery, flash super SU. then restore missing apk files and then flash back stock recovery. A bit of work but it can be done. here's a thread about it.
http://forum.xda-developers.com/showthread.php?p=42122514
Thanks for the reply guys.. Yeah, it's a bit annoying why can't have ota after rooting. I just needed root and nothing else... Hmmm.. :banghead:
Sent from my HTC One using xda app-developers app
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
So, i have a motox (xt1058) with stock rom and twrp recovery. If i receive the lolipop via OTA, can i install it? or do i have to flash the original firmware?
Thanks in advance
You will have to flash stock recovery. Uninstall any xposed modules and unfreeze/restore any system apps.
PedroAlba said:
So, i have a motox (xt1058) with stock rom and twrp recovery. If i receive the lolipop via OTA, can i install it? or do i have to flash the original firmware?
Thanks in advance
Click to expand...
Click to collapse
This is asked every time an new OTA comes out, and we get many threads started covering it.
To date...
For the Motorola X 2013, the OTA's are incremental updates. You must be on a specific previous ROM, and "step up." To put it another way... to take the 4.4.2 OTA, your phone needs to be on 4.4. To take the 4.4 OTA, your phone needs to be on the 4.2.2 w/camera fix version. To take the 4.2.2 w/camera fix OTA, your phone needs to be on the initial shipping ROM version.
None of the OTA's will install if you have TWRP recovery on your phone. Instead you get stuck in a bootloop. (mfastboot erase cache will get you out of the bootloop). You need to have stock recovery on your phone. NOTE: I don't recall what happens when using Philz or CWM as recovery.
Each OTA so far has included a "Pre-Install Verification Check", a manifest of files and their checksum/hashes which the update compares against your phone. If expected files are missing, or the wrong hash, the OTA will fail to install. - So any removed or modified "bloat", system files, etc. need to be in place. Any apps like Xposed which change /system need to be disabled/removed. In some cases Freezing apps using Titanium Backup cause the OTA to fail, and the apps need to be unfrozen. However, some have not had to unfreeze. Using the phone's app manager to disable an app (Settings -> Apps -> open app listing -> DISABLE) does not have to be undone.
If you have version mismatch between GPT.BIN or Motoboot.img and the ROM on your phone, taking an OTA WILL brick the phone. - Grab the FULL SBF for the Stock Moto ROM which matches the bootloader version on your phone, or a newer SBF (i.e. if you have the bootloader version that corresponds to 4.4.2, grab the 4.4.2 SBF or 4.4.4 SBF), and flash it via mfastboot. You may need some extra steps to flash GPT.BIN and Motoboot.img.
If you've used hacks to root/disable write protection because you have a locked bootloader, you may lose root, and wont be able to re-root until a new exploit is found. Those hacks might also get in the way of the OTA's pre-install validation checks.
If you have unlocked your bootloader via mfastboot oem unlock UNIQUECODE or Sunshine, the bootloader will not re-lock.
There have been some posts (twitter and G+) about how Lollipop poses new security features which are a challenge to rooting, even with an unlocked bootloader. Since I don't know the technical ins and outs, all I can say is.. Even with an unlocked bootloader, I wont jump on Lollipop as soon as its available, until I know if I can still root my X.
(I have a little bit more detail posted here -> http://mark.cdmaforums.com/MotoX-OTA.html)
lowvolt1 said:
You will have to flash stock recovery. Uninstall any xposed modules and unfreeze/restore any system apps.
Click to expand...
Click to collapse
For what it's worth, you don't need to uninstall the modules. Just use the Xposed Disabler zip in your SD card, then install the framework again once you've flashed /system and taken the update.
When I did updated to 4.4.4 I disabled the modules in the Xposed UI (not sure if that was necessary or not), but did not actually uninstall any of the APKs for the modules. When I reinstalled Xposed after updating, all I just turned all my modules back on and rebooted.
Call me paranoid, but whenever there is an update, I always flash back to 100% stock and then do the OTA update. Then, I'll re-root using philz recovery and restore my desktop with a backup of Nova. I'm always worried that taking an OTA update with and previous tinkering will lead to a gummed up phone.
That is just me, though.
mtpease said:
Call me paranoid, but whenever there is an update, I always flash back to 100% stock and then do the OTA update. Then, I'll re-root using philz recovery and restore my desktop with a backup of Nova. I'm always worried that taking an OTA update with and previous tinkering will lead to a gummed up phone.
That is just me, though.
Click to expand...
Click to collapse
Not really a bad practice either way, if you clear stuff out now and again. If you try to take an OTA with a modified /system partition, it usually just fails during the hash checks and never installs/modifies anything.
You started your thread title with a [q].... Perhaps the Q&A section would be the section to ask your question? ?
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