How to flash stock recovery over TWRP without flashing RUU - HTC One X+

I looked for this all over XDA and google and couldn't find an answer,
I have an unlocked and rooted HOX+ international that had CM 10.2, I flashed a backup of my stock sense 4 using TWRP to try the official sense 5 update.
Now I need to re-lock bootloader and reinstall stock recovery for the HTC update to install, I can't find a stock recovery image anywhere and I'm not sure if it is even possible to do it this way without flashing an RUU?
Any help? any one can point me to a stock recovery image?
RECAP:
What I have: HOX+ International, stock sense 4, unlocked, rooted, TWRP recovery, HTC software update downloaded and ready to install
What I need: Relock, Revert to stock recovery (stock recovery img)
Thanks in Advance!

Haerviu said:
I looked for this all over XDA and google and couldn't find an answer,
I have an unlocked and rooted HOX+ international that had CM 10.2, I flashed a backup of my stock sense 4 using TWRP to try the official sense 5 update.
Now I need to re-lock bootloader and reinstall stock recovery for the HTC update to install, I can't find a stock recovery image anywhere and I'm not sure if it is even possible to do it this way without flashing an RUU?
Any help? any one can point me to a stock recovery image?
RECAP:
What I have: HOX+ International, stock sense 4, unlocked, rooted, TWRP recovery, HTC software update downloaded and ready to install
What I need: Relock, Revert to stock recovery (stock recovery img)
Thanks in Advance!
Click to expand...
Click to collapse
The stock recovery is here

[email protected] said:
The stock recovery is here
Click to expand...
Click to collapse
Thanks alot!
is it possible to do it the way I'm attempting? flash this stock recovery, relock bootloader and let the software update install?

Haerviu said:
Thanks alot!
is it possible to do it the way I'm attempting? flash this stock recovery, relock bootloader and let the software update install?
Click to expand...
Click to collapse
U have to unroot first........must be ok if u still get the notification for the Update installation...
Use SuperSu from Playstore.....and in the setting do full unroot......
then flash the Stock recovery and relock the bootloader.....
The main thing is u have to still get that notification to install the update.......

[email protected] said:
U have to unroot first........must be ok if u still get the notification for the Update installation...
Use SuperSu from Playstore.....and in the setting do full unroot......
then flash the Stock recovery and relock the bootloader.....
The main thing is u have to still get that notification to install the update.......
Click to expand...
Click to collapse
Life savior! Updated successfully.
Full unroot with SuperSu
Flash stock recovery
Relock bootloader
Update wasn't in notification but worked from settings menu.
Now I'm on sense 5!

Related

fimware question

yes im curently s-off and I flash new firware but now I dont have custom recovery. I tried to flash twrp-2.2.0-jewel but no luck. my Bootloader says tampered Locked but Im s-off. any suggestions? I also tried to run s-off again but it say im already s-off. my phone boots up just fine. Says Im still on 1.13.651.1 stock rom Help?
To update TWRP to v2.2.0 I used goomanager from the Android Ap Store simple update
you need to reflash the just the HBOOT zip from Lazy Panda's website. Then you can flash the TWRP update zip from their website, and then finally flash SuperUser
thanks
greyopaque said:
you need to reflash the just the HBOOT zip from Lazy Panda's website. Then you can flash the TWRP update zip from their website, and then finally flash SuperUser
Click to expand...
Click to collapse
I appreciate man It works Im back on panda hboot running MeanRom

URGERN! OTA Updater goes strait to Bootloader

After failing to find the latest RUU i found an old Nandroid that i had and so i proceeded and flashed it on and flashed the boot image as well and the phone booted up and everything is perfect.
however, as i said, this is an old nandroid so it had the old build 1.14 i think and i received a notification with the OTA update for 1.17... and so i downloaded it and when it restarted trying to flash it on, it went to CMW and failed to install it.
so i relocked the bootloader, hoping this would help, but now when i try to install the OTA update, it just boots to the bootloader and doesnt do anything.
what should i do, please help
for official OTAs you need an unrooted phone with locked/relocked bootloader and stock recovery
skdubg said:
for official OTAs you need an unrooted phone with locked/relocked bootloader and stock recovery
Click to expand...
Click to collapse
where can i get stock recovery?
mjenabi2 said:
where can i get stock recovery?
Click to expand...
Click to collapse
If you flash the RUU, you will get the stock recovery and also you should be able to receive the OTAs
Steve0007 said:
If you flash the RUU, you will get the stock recovery and also you should be able to receive the OTAs
Click to expand...
Click to collapse
i tried that before but my HBOOT version is newer than of any of the available RUUs so i get the 140 error.
i found the stock recovery from somewhere and it's fine

I am a beginner and I need help.

My HTC one m8 has root access. I was using twrp recovery and stock rom. I wanted to flash a custom rom (tried cyanogen and pan) but twrp never helped me in finding my zip file. Then I tried swapping my recovery from twrp to cwm but that never happened and it got stuck in bootloader mode and then I did factory reset :/. And now everytime I try going into recovery it takes me to the bootloader mode. now I am trying flashing a custom recovery but first turning s_off and I tried firewater but it doesn't work.
What should I do?
It still has root access but s_on and don't know about bootloader on/off and no recovery.
Sent from my HTC one m8 using XDA Free mobile app
Fahad khan lodhi said:
My HTC one m8 has root access. I was using twrp recovery and stock rom. I wanted to flash a custom rom (tried cyanogen and pan) but twrp never helped me in finding my zip file. Then I tried swapping my recovery from twrp to cwm but that never happened and it got stuck in bootloader mode and then I did factory reset :/. And now everytime I try going into recovery it takes me to the bootloader mode. now I am trying flashing a custom recovery but first turning s_off and I tried firewater but it doesn't work.
What should I do?
It still has root access but s_on and don't know about bootloader on/off and no recovery.
Sent from my HTC one m8 using XDA Free mobile app
Click to expand...
Click to collapse
and does your device say unlocked at the top of your bootloader? if not follow this guild http://forum.xda-developers.com/showthread.php?t=2799796 , but use the twrp for you device carrier only
if you did it via recovery you should still be ok
go to your bootloader download this twrp img here http://techerrata.com/file/twrp2/m8/openrecovery-twrp-2.7.1.0-m8.img on your computer (for gsm) int. att (i'm guessing this is the device carrier you have)
ensure you have fastboot tools(adb tools installed)
put the .img in your folder that contains fastboot
open a cmd in that folder on your computer and make sure you put your phone in fastboot mode via your bootloader.
then type on your computer in cmd fastboot flash recovery (name of twrp you downloaded).img
then type fastboot erase cache
you now have twrp installed to get to it now select recovery from bootloader on your phone.
when installing custom roms in twrp you need to go to advanced wipe(select data,cache,delvik cache, and system then swipe the arrow bar beneath)
then press home and press install the go to the location on the sdcard where you put the rom.zip of the custom rom and select it. instalation will begin after completion reboot(done)
It says unlocked at the top but S On.
Shouldn't I turn s off before flashing recovery?
Sent from my unknown using XDA Free mobile app
@Fahad khan lodhi
it won't matter either way.
but just so you know what s-off is
s-off turns security mode off so you can swap out boot splashes and such, if you s-off and super cid you can flash any carrier's firmware,
also allows you to flash a kernel in recovery on older devices(m8 doesn't need s-off to flash kernel)
Can't S-Off unless you can boot. Firewater only works if you can get into the OS and then only for some devices. You should reinstall TWRP and see if you can boot to it then put a rom on an external SD card or use adb to push a rom zip to the internal if you don't have an SD card. Make sure that you fastboot flash the boot.img of whatever rom you are trying due to being S-On. If all that fails, then you will need to find the same or newer RUU from HTC for your carrier to restore the phone to stock and start over.
es0tericcha0s said:
Can't S-Off unless you can boot. Firewater only works if you can get into the OS and then only for some devices. You should reinstall TWRP and see if you can boot to it then put a rom on an external SD card or use adb to push a rom zip to the internal if you don't have an SD card. Make sure that you fastboot flash the boot.img of whatever rom you are trying due to being S-On. If all that fails, then you will need to find the same or newer RUU from HTC for your carrier to restore the phone to stock and start over.
Click to expand...
Click to collapse
Hey thank you very much.
It helped and i flashed latest twrp recovery and then flashed viper one m8 1.8.0 rom but the latest version is 2.4.0 and it says to have that your firmware should be 4.4.3 and i have 4.4.2.
Question is can i flash paranoid android coz that gives me 4.4.4 firmware and then flash latest viper one m8 version or i have to go to stock rom and update it and then flash latest version of viper?
Reply please.
Sent from my HTC One_M8 using XDA Free mobile app
Fahad khan lodhi said:
Hey thank you very much.
It helped and i flashed latest twrp recovery and then flashed viper one m8 1.8.0 rom but the latest version is 2.4.0 and it says to have that your firmware should be 4.4.3 and i have 4.4.2.
Question is can i flash paranoid android coz that gives me 4.4.4 firmware and then flash latest viper one m8 version or i have to go to stock rom and update it and then flash latest version of viper?
Reply please.
Sent from my HTC One_M8 using XDA Free mobile app
Click to expand...
Click to collapse
It should still work with the firmware you have. It's recommended but not necessary. And flashing PA would certainly not update your firmware. Firmware in this instance is mostly focused on the radio/baseband version and the touch drivers. These are not included in any kind of custom rom for your phone (nor 99% of android custom roms for anything). Much more important if you were originally on 4.2.2 or 4.3 and trying to run the new Viper. The only way to update firmware while S-On is via RUU or OTA. If you were S-Off then you could flash just the firmware package that has the hboot and stock recovery files removed.

[Q] How to root HTC One M8 without losing OTA update ability?

Hello,
I am not new to the process of rooting, unlock bootloader or flashing ROM. But, this is the first time that I need to root a HTC phone, the HTC One M8. I don't usually care much for stock ROM, but this is my girlfriend's phone and I think stock ROM works best for her. It is more stable, even though it will be a bit slow and has a lot of bloatware. I plan to root it then manually go in and disable most of the bloated apps. Then, I will install Xposed Module and add some useful modules. However, the release of Lollipop is around the corner. I want to know if rooting it will affect the ability of doing OTA upgrade.
Base on what I have read, in order to root, you have to unlock the bootloader, then replace the stock recovery with custom recovery like CWM/TWRP, then you flash the supersu.zip file to grant root permission. I am familiar with the process, but I am a bit confused at this part. Since we use a custom recovery to flash the supersu.zip file, it is more likely that OTA upgrade will fail since most OTA upgrade rely on stock recovery.
1/ Then, how do I upgrade to Lollipop 5.0 once I have rooted the phone?
The current ROM is Kitkat I think.
2/ I mean, is there a stock recovery file that I can flash back to replace the custom recovery once the phone has been rooted? or the OTA process will work with the custom recovery, which is very unlikely in my opinion.
3/ Also, once I have upgraded to Lollipop, I can do the same process to gain root again, (flash custom recovery, then flash supersu.zip to gain root). Is that correct?
4/ Is there any other method of gaining root without losing OTA update? As long as I don't have to wipe everything and restore it for every OTA update. I am fine with it.
Please let me know. Thank you all for your help.
After you root, flash back your stock recovery. As long as you are running stock the ota will attempt to download. Even when running non-stock recovery - what will happen is the ota will download and when you accept the update the phone will reboot into your custom recovery and the update won't be applied because the ota relies on the stock recovery being there.
So anyway, you can root, replace custom recovery back with stock and allow the update. You will most likely loose root once the update is applied, but then as long as there are custom recoveries available for the new android version you can flash back to custom recovery, reroot and you should be set.
I did this for a while, but the downside is that if SuperSU updates (or whichever root method you use) and requires a bin update, you won't be able to apply the root bin update unless you are running the custom recovery.
Hope that makes sense, typing from my phone while on a train.
What I do is this
Unlock Bootloader via HTC DEV website.
Dl a custom recovery I prefer TWRP Recovery flash that via Fastboot.
Then boot into custom recovery on your phone and create a New backup of the stock rom b4 you install SuperSU for root, name it something like (Stock untouched) .
Then flash superSU update zip in recovery.
Once superuser is working do what you want.
Note: I'd go ahead and find and Dl the stock recovery and keep it on hand for when you ready to go back Stock for the OTA update.
Go back to stock
Boot into custom recovery wipe system /data/cache. Then restore the Stock (untouched) backup you made.
Fastboot flash the stock recovery back.
Then relock Bootloader and now you back to Stock and ready to do the OTA update.
Note : this is what I do, everybody got their own way of doing things
Sent from my HTC One_M8 using Tapatalk
tommy_riley said:
After you root, flash back your stock recovery. As long as you are running stock the ota will attempt to download. Even when running non-stock recovery - what will happen is the ota will download and when you accept the update the phone will reboot into your custom recovery and the update won't be applied because the ota relies on the stock recovery being there.
So anyway, you can root, replace custom recovery back with stock and allow the update. You will most likely loose root once the update is applied, but then as long as there are custom recoveries available for the new android version you can flash back to custom recovery, reroot and you should be set.
I did this for a while, but the downside is that if SuperSU updates (or whichever root method you use) and requires a bin update, you won't be able to apply the root bin update unless you are running the custom recovery.
Hope that makes sense, typing from my phone while on a train.
Click to expand...
Click to collapse
Ok, thank you for the reply. That clears up a little. I can just flash stock recovery every time I want to update. I was able to find a thread that has all the stock recovery file. I have a quick question. Does any version of stock recovery will work? or you want the one that match your current stock recovery. Also, what is Non-WWE-Recoveries?
Here is the thread with all the stock recoveries:
http://forum.xda-developers.com/showthread.php?t=2701376
Let me know. Thank you
scoot0073 said:
What I do is this
Unlock Bootloader via HTC DEV website.
Dl a custom recovery I prefer TWRP Recovery flash that via Fastboot.
Then boot into custom recovery on your phone and create a New backup of the stock rom b4 you install SuperSU for root, name it something like (Stock untouched) .
Then flash superSU update zip in recovery.
Once superuser is working do what you want.
Note: I'd go ahead and find and Dl the stock recovery and keep it on hand for when you ready to go back Stock for the OTA update.
Go back to stock
Boot into custom recovery wipe system /data/cache. Then restore the Stock (untouched) backup you made.
Fastboot flash the stock recovery back.
Then relock Bootloader and now you back to Stock and ready to do the OTA update.
Note : this is what I do, everybody got their own way of doing things
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
Hello,
I understand your concept for going back to stock. But, I don't get why I have to relock the bootloader. What I mean is, is that necessary for the OTA to work? I thought you only need the stock recovery for the OTA to work. Also, once you have done OTA update, and you want to root the phone again. The downsize is you have to unlock the bootloader again, which will wipe the phone completely and you will have to restore everything, which wastes times.
I like the idea of just restoring the stock recovery, do the OTA upgrade, then flash custom recovery to gain root again. I don't mind repeating that process for each update. But to relock/unlock the bootloader, having to wipe everything is a hassle. Please clarify. Thank you for your help.
I don't believe you need to relock boot loader for OTA. You do need locked bootloader for RUU full install, but only if S-ON (s-off you can do RUU w/boot loader locked or unlocked) - but that's not what were talking about here - OTA w/ unlocked boot loader = All good.
I believe WWE recovery refers to Europe versions of the recovery, so if in US go for the non-WWE.
I'd stick with trying to lineup stick recovery versions with version of OS software you have installed - so if you are running stock 4.4.2 or 4.4.3 grab the latest stocl recovery available.
vi6s said:
Hello,
I understand your concept for going back to stock. But, I don't get why I have to relock the bootloader. What I mean is, is that necessary for the OTA to work? I thought you only need the stock recovery for the OTA to work. Also, once you have done OTA update, and you want to root the phone again. The downsize is you have to unlock the bootloader again, which will wipe the phone completely and you will have to restore everything, which wastes times.
I like the idea of just restoring the stock recovery, do the OTA upgrade, then flash custom recovery to gain root again. I don't mind repeating that process for each update. But to relock/unlock the bootloader, having to wipe everything is a hassle. Please clarify. Thank you for your help.
Click to expand...
Click to collapse
Lol.. Yea if S-On relock Bootloader for RUU.
But no you don't need to relock the Bootloader for OTA updates S-On or s-off Sorry for the confusion I was going back n forth with another user and got you mixed up.
Sent from my HTC One_M8 using Tapatalk
vi6s said:
Ok, thank you for the reply. That clears up a little. I can just flash stock recovery every time I want to update. I was able to find a thread that has all the stock recovery file. I have a quick question. Does any version of stock recovery will work? or you want the one that match your current stock recovery.
Click to expand...
Click to collapse
You need the stock recovery that correspond to your stock software. AT&T software is x.xx.502, and I don't see any corresponding recoveries in exocet's stock nandroid collection, but 1.12.502 and 1.58.502 stock recoveries are posted here: http://forum.xda-developers.com/att-htc-one-m8/development/att-stock-backups-recoveries-otas-t2855966
Also, while eluded to above, it should be clearly stated, no /system files may be modified, in order for OTA to install. So depending on what you intend to change with root, you will either need to put it back to stock (if you modded any system files), restore the stock ROM with a nandroid you made, or a stock ROM posted on XDA.
Alternately, you can quickly return to stock by RUU. Although you either need to relock the bootloader or have s-off to run the RUU. And RUU will also wipe the phone.
So to sum it up, in order to OTA you need:
/system to be returned to stock (stock ROM)
stock recovery
Unlocked bootloader is OK
Root is okay (you will lose root after the OTA)

Sign Update.zip

How Can i sign a modified Update.zip?
Where to get/ extract the Keys?
Thx
Are you trying to flash through the stock or custom recovery?
es0tericcha0s said:
Are you trying to flash through the stock or custom recovery?
Click to expand...
Click to collapse
The Stock.
Thx
It's not going to work through stock recovery. You won't be able to sign it the way you'd need.
If you're already rooted then you might look into Flashfire to install zips. I would make sure you have access to the original firmware and flashing tool to recover the phone if something goes wrong.
If you aren't rooted and the bootloader is unlocked then you might be able to build TWRP if it's not already available.

Categories

Resources