I am stock rooted with custom recovery. When there is an update available, how would I go about updating? Can I do an OTA or will I be able to flash the update?
ILowry282 said:
I am stock rooted with custom recovery. When there is an update available, how would I go about updating? Can I do an OTA or will I be able to flash the update?
Click to expand...
Click to collapse
You need stock recovery for OTA updates.
If you're S-OFF you can flash update of course.
BerndM14 said:
You need stock recovery for OTA updates.
If you're S-OFF you can flash update of course.
Click to expand...
Click to collapse
I'm not S-OFF, my phone was updated and patched from the factory. How do I update?
ILowry282 said:
I'm not S-OFF, my phone was updated and patched from the factory. How do I update?
Click to expand...
Click to collapse
You need to flash a stock recovery, stock recoveries can be found here - COLLECTION of Stock backup's once you have the recovery for your device, unzip it and place it in adb folder. Open command prompt and cd to adb location. Connect device to PC, adb reboot bootloader >>> fastboot flash recovery name_of_recovery.img
After you flashed stock recovery you'll need to relock your bootloader in order to install OTA. fastboot oem lock
Once you're done relocking bootloader, fastboot reboot in order to reboot device, go to software updates for device, download and install OTA.
Done.
Related
As there are many questions on how to do OTA update & to revert to stock after a device is rooted and bootloader unlocked; I made this simple guide which I hope will help the newbies especially.
NOTE : always do a backup and a nandroid backup before trying any of these.
OTA update:
A) ROM is stock, bootloader unlocked, stock recovery and not rooted.
- just run the OTA update, there is no need to relock the bootloader
B) ROM is stock, bootloader unlocked, CWM recovery and not rooted.
- flash the stock recovery that comes with your RUU, extract the RUU for the stock recovery.
* boot to bootloader
* fastboot flash recovery recovery_signed.img
* fastboot reboot-bootloader
* fastboot erase cache
* fastboot reboot
- run the OTA update
C) ROM is stock, bootloader unlocked, stock recovery and rooted
- download OTA Rootkeeper from Play Store
- run the OTA Rootkeeper and click protect root
- run the OTA update, there is no need to relock bootloader
- Once done, run OTA Rootkeeper and click restore root
D) ROM is stock, bootloader unlocked, CWM recovery and rooted
- download OTA Rootkeeper from Play Store
- run the OTA Rootkeeper and click protect root
- no need to relock bootloader
- boot to bootloader and fastboot flash the stock recovery
- run the OTA update
- Once done, run OTA Rootkeeper and click restore root
E) ROM is custom, bootloader unlocked, CWM recovery and rooted and you have a stock nandroid backup
- flash the stock boot.img if after nandroid restore, you have a bootloop
- flash the stock recovery.img
- relock the bootloader - fastboot oem lock
- boot your device and run the OTA update
F) ROM is custom, bootloader unlocked, CWM recovery and rooted and you don't have a stock nandroid backup
- if you dont have the stock nandroid backup, you need to run RUU
- before you can run the RUU you need to:
* flash the stock recovery.img
* flash the stock boot.img (maybe no need)
* relock the bootloader - fastboot oem lock
* run RUU
- run device setup
- run the OTA update
Flashing RUU to revert to stock or to update your One V after you have a custom ROM installed.
- you must have the correct RUU for your device.
- if you are not sure, download CID Getter from Play Store and run it, it will show your CID.
- with your CID, you may be able to find a correct RUU for your device
then
1- in fastboot mode - relock the bootloader : run command fastboot oem lock
2- in fastboot mode - flash/run/double click the RUU; follow the updater instruction - next,update,bla,bla,bla until it finish
Note :
Error 155 - usually wrong recovery.img /wrong boot.img or bootloader not relocked
Error 140 - wrong bootloader / bootloader unlocked
Error 131 - wrong RUU for your device
Credit to all XDA members that posted all the guides in various forum thread and some from own experience which I compiled here for easy reference.
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
i think u have an option in super su
to completely get rid of root
dnt knw if tht wrks
try it
dont just say thanks hit thanks if i helped
sent from my awesome HTC One V using xda premium
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
Are you able to get the RUU for your phone/region?
1ceb0x said:
but how do you get rid of root?
Click to expand...
Click to collapse
Reflash system.img is the no-fail way.
CafeKampuchia said:
Reflash system.img is the no-fail way.
Click to expand...
Click to collapse
System.img is the rom itself right? If yes, by reflashing it, the root will still be there because the nandroid was AFTER it was rooted. And I didn't found my RUU. I have found one which is the same as mine but the last number .x differs from mine (I have .4 and the RUU has .3)...
your going to need the ruu buddy, i have to do the same, the kernel shows up as root blah blah blah. kernel recovery and rom itself need flashing.....
Would you be okay with just removing the superuser.apk or did you also want the binary gone?
One of the possible options is to modify your nandroid backup so that both files are deleted (and not restored), but I'm not sure if CWM complains if the backup has been modified.
1ceb0x said:
If I have a nandroid backup from my stock (nandroid after it was rooted), how can I get rid of root? I need to lock bootloader also because I need to return my product. Also, I have the kernel img and recovery img (need to flash those also because I have flashed custom kernel and cwm).
So my guess is that:
nandroid restore
go to fastboot and flash boot.img
go to fastboot and flash recovery img
go to fastboot and relock bootloader.
but how do you get rid of root?
Click to expand...
Click to collapse
Restore your nandroid backup
Reboot your device.
Open the SuperSU, and click Full unroot (it will remove the app, apk & su library)
Reboot to recovery
Make a new nandroid backup (this time there is no root for safekeeping)
Reboot to bootloader
fastboot flash boot stockboot.img
fastboot erase cache
fastboot flash recovery stockrecovery.img
fastboot erase cache
fastboot oem lock
now you are back to stock rom without root and relocked
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
1ceb0x said:
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
Click to expand...
Click to collapse
Because your old nandroid has SuperSU.apk and SU library in it.
New backup will not have those because you already remove them before new nandroid is made.
So you'll have a new stock nandroid without root.
ckpv5 said:
Because your old nandroid has SuperSU.apk and SU library in it.
New backup will not have those because you already remove them before new nandroid is made.
So you'll have a stock nandroid without root.
Click to expand...
Click to collapse
But if I restore the nandroid that has root and then unroot it, I don't see why you need to make a new one and restore that.
1ceb0x said:
But if I restore the nandroid that has root and then unroot it, I don't see why you need to make a new one and restore that.
Click to expand...
Click to collapse
I see your point... I thought that you do want to keep a stock nandroid without root for safekeeping as there is no RUU for .4 yet
The post now updated.
ckpv5 said:
I see your point... I thought that you do want to keep a stock nandroid without root for safekeeping as there is no RUU for .4 yet
Click to expand...
Click to collapse
Well, the point is that I will replace this unit with another one since this one is not working with Orange carriers. My shop was in talks with HTC service to get an unlock code but they failed to do so, so they said it is ok to change the unit. No need to keep a nandroid backup since I don't know what software version I will have on the new phone. Thank you for your help!
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
boot to bootloader and fastboot flash the stock recovery
Click to expand...
Click to collapse
Do I boot into CWM?
Thanks for your help.
RaskloP said:
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
Do I boot into CWM?
Thanks for your help.
Click to expand...
Click to collapse
No, not boot into CWM.
Remember how you go to bootloader when you first want to unlock your bootloader ? You press power + volume down, that is boot to bootloader.
1ceb0x said:
Thank you so much, will try it tonight because tomorrow I need to get my unit to replacement. I didn't knew how the process worked since I never did it (I work with android for 3 years now).
But I have a question. If you open su and you click full unroot, why do you need to make a new nandroid and flash that?
Click to expand...
Click to collapse
so that your new nandroid backup doesn't have SuperSU and you can still keep your datas
RaskloP said:
I fall under category D (ROM is stock, bootloader unlocked, CWM recovery and rooted)
Can someone tell me in detail how to
Do I boot into CWM?
Thanks for your help.
Click to expand...
Click to collapse
Please make sure you're flashing to recovery, not boot.
Connect your phone to your computer via USB. I'll assume you have the necessary bootloader/adb drivers installed.
Open up a command prompt to wherever your recovery.img is and type (this assumes you can easily access adb/fastboot from anywhere):
adb reboot bootloader
Phone should reboot into fastboot. From there type:
fastboot flash recovery recovery.img
It should then flash the stock recovery.
I would recommend taking a look at the HTC All-in-One ToolKit in the Development forums. It might simplify it for you.
To get back to you guys, I have followed these instructions and I am back to stock. The only thing that should worry me now is that the bootloader says "RELOCKED" instead of "LOCKED" but I don't think this is a reason why I should loose my warranty since we've done it using HTCDEV method.
It was easy enough because I had my nandroid backup. Such a joy to have one of these at hand!
Thank you all for the infos. Tomorrow I'll get my replacement :yuhuu:
1ceb0x said:
To get back to you guys, I have followed these instructions and I am back to stock. The only thing that should worry me now is that the bootloader says "RELOCKED" instead of "LOCKED" but I don't think this is a reason why I should loose my warranty since we've done it using HTCDEV method.
It was easy enough because I had my nandroid backup. Such a joy to have one of these at hand!
Thank you all for the infos. Tomorrow I'll get my replacement :yuhuu:
Click to expand...
Click to collapse
yea it should be ok buddy, my new handset arrives tomorrow, wish i could had gone to a store to pick it up so i could check it before i left the store :/ i do hate 3 customer services
So after relocking bootloader, I tried to install the update, but it brings me to the bootloader screen instead. How do I get the update to install? Thanks
For OTA you need stock ROM and stock recovery:
fastboot flash recovery signed-recovery.img
For RUU you need to be locked:
fastboot oem-lock
(is that the right command?)
http://www.youtube.com/watch?v=SZuAjz4PIjU&feature=channel&list=UL here , try this and then update it again :good:
Hi,
I need help. I did an ota update from htc to improve battery performance on my rooted phone. Now the phone is not rooted anymore. I'm still on stock ics rom, how do I reroot the phone again? Do I just follow the same procedures when I rooted it the first time? Thanks in advance for any help.
Performing the OTA update will cause boot loops with most of the custom roms such as CM10 and AOKP. To successfully run a custom rom you should revert to an older RUU then reroot the phone and choose the custom rom of your choice. Here is a link to the older RUU you need to be able to run most of the custom roms http://forum.xda-developers.com/showthread.php?t=2094373
if you have relocked the bootloader,u have to unlock it again.for this,place the Unlock_code.bin file u received from htc for unlocking ur bootloader the first time in the fastboot folder.(or the platform-tools folder,whichever u have).then boot into bootloader and go to fastboot.then connect phone to pc.then just flash the token using-
fastboot flash unlocktoken Unlock_code.bin
select yes on ur screen,ur bootloader is now unlocked.
now flash a custom recovery by placing the recovery_name.img in the fastboot/platform-tools folder and flash it using-
fastboot flash recovery recovery_name.img
once recovery is flashed,flash this zip in recovery-
http://forum.xda-developers.com/showthread.php?t=1538053
now ur phone is rooted once again
Gryff302 said:
Performing the OTA update will cause boot loops with most of the custom roms such as CM10 and AOKP. To successfully run a custom rom you should revert to an older RUU then reroot the phone and choose the custom rom of your choice. Here is a link to the older RUU you need to be able to run most of the custom roms http://forum.xda-developers.com/showthread.php?t=2094373
Click to expand...
Click to collapse
I'm still on the ROM the phone came with. I did not install any custom ROM after I rooted it first time. Do I reroot by doing the same procedures like I did the first time? i.e. unlock bootloader through HTC dev and use primo superboot to root.
mihirengg19 said:
if you have relocked the bootloader,u have to unlock it again.for this,place the Unlock_code.bin file u received from htc for unlocking ur bootloader the first time in the fastboot folder.(or the platform-tools folder,whichever u have).then boot into bootloader and go to fastboot.then connect phone to pc.then just flash the token using-
fastboot flash unlocktoken Unlock_code.bin
select yes on ur screen,ur bootloader is now unlocked.
now flash a custom recovery by placing the recovery_name.img in the fastboot/platform-tools folder and flash it using-
fastboot flash recovery recovery_name.img
once recovery is flashed,flash this zip in recovery-
http://forum.xda-developers.com/showthread.php?t=1538053
now ur phone is rooted once again
Click to expand...
Click to collapse
I did not flash any custom ROM after it was rooted the first time. The phone is still on the original ROM it came with. Do I just need to unlock and use primo superboot to root again?
yes
edit:just flash the zip i linked you to in recovery after flashing the recovery.u can also do the superboot way but this is more simple...
mihirengg19 said:
yes
edit:just flash the zip i linked you to in recovery after flashing the recovery.u can also do the superboot way but this is more simple...
Click to expand...
Click to collapse
Great! Thanks for the help, I will give it a go.
Fellow Noob here. Please bare with me.
Purchase a used HTC one. Previous owner has S Off and Custom Recovery (Team Recovery).
The OTA comes over on my phone but when I try to install I am taken to the Team Recovery prompt at start up.
How do I get my phone to a state to take OTA updates like 4.4.2 (Verizon)?
Help is much appreciated.
mrartyen said:
Fellow Noob here. Please bare with me.
Purchase a used HTC one. Previous owner has S Off and Custom Recovery (Team Recovery).
The OTA comes over on my phone but when I try to install I am taken to the Team Recovery prompt at start up.
How do I get my phone to a state to take OTA updates like 4.4.2 (Verizon)?
Help is much appreciated.
Click to expand...
Click to collapse
You'll have to go back to stock rom and stock recovery. There should be a thread out there to tell you how if you don't already know. Search this forum for "return to Stock recovery" and I'm sure you'll find it.
Does this video an accurate description of what I need to do?
Youtube: How to Unroot HTC ONE and Relock Bootloader or back to STOCK (All Versions)
Sorry can't post links yet.
The exception being - using the correct RUU for verizon?
Ruu back to 2.10.605.1 - can be found in santods rom/radio/kernel thread at the bottom of the second post.
Take the ota
Fastboot flash recovery
Flash Superuser thru recovery.
No need to relock your bootloader to do an ruu, it is a myth.
cmlusco said:
Ruu back to 2.10.605.1 - can be found in santods rom/radio/kernel thread at the bottom of the second post.
Take the ota
Fastboot flash recovery
Flash Superuser thru recovery.
No need to relock your bootloader to do an ruu, it is a myth.
Click to expand...
Click to collapse
Thank you cmlusco. Very greatful.
So 1) Download Ru 2.10.605.1
2) Go through the prompts
3) take OTA 4.4.2 (KitKat)
At this point, what does the Fastboot Flash Recovery, and Flash Superused thru recovery do?
Thank you very much!
Yes, and those roots the phone again. It flashes a custom recovery like twrp, so that u can flash superuser, roms, mods, and do backups. And the second flashes superuser, which well gives you superuser rights to modify files on the phone, use root apps, etc..
rilishe ramsey
cmlusco said:
Yes, and those roots the phone again. It flashes a custom recovery like twrp, so that u can flash superuser, roms, mods, and do backups. And the second flashes superuser, which well gives you superuser rights to modify files on the phone, use root apps, etc..
Click to expand...
Click to collapse
Gotcha. I could just leave it after the OTA 4.2.2. - leaving the device unrooted (but with a unlocked bootloader & S off)?
my main objective is to really just go back to stock but still get OTA updates. i purchased this phone with the intention of just running stock features etc.
Yeah just do the ruu and you will be stock unlocked s-off JB. Then you can take the KK ota and all future ota's.
cmlusco said:
Yeah just do the ruu and you will be stock unlocked s-off JB. Then you can take the KK ota and all future ota's.
Click to expand...
Click to collapse
After downloading 2 different RUU's I can't find any Exe Executable files after unzipping.. What am I doing wrong?
You dont unzip them and there is no exe. You flash the zip as it is using fastboot. You need adb and fastboot + drivers installed on your pc. Place the zip in the same folder as adb.exe and fastboot.exe. Then open a cmd prompt on your pc so that the path is the same as where the files are. Then reboot the phone to the bootloader. In the cmd prompt type
Code:
fastboot oem rebootRUU
The phone will go to a black screen, then type
Code:
fastboot flash zip name_of_file.zip
It may fail the first time with a message about flushing, this is normal. Just run the second cmd again
Code:
fastboot flash zip name_of_file.zip
cmlusco said:
You dont unzip them and there is no exe. You flash the zip as it is using fastboot. You need adb and fastboot + drivers installed on your pc. Place the zip in the same folder as adb.exe and fastboot.exe. Then open a cmd prompt on your pc so that the path is the same as where the files are. Then reboot the phone to the bootloader. In the cmd prompt type
Code:
fastboot oem rebootRUU
The phone will go to a black screen, then type
Code:
fastboot flash zip name_of_file.zip
It may fail the first time with a message about flushing, this is normal. Just run the second cmd again
Code:
fastboot flash zip name_of_file.zip
Click to expand...
Click to collapse
cmlusco - Thank you very much.
Couldn't have done it without your patience and help.
I'm back to stock - OTA 4.4.2
Can't thank you enough.
Hi,
I have rooted my phone ,s-off etc, and I have TWRP.
I am unable to install the update, phone goes to recovery, stops there.
Is there anyway I can download the update and flash it manually , or do i have to go back to stock recovery?
thanks
leonzon said:
Hi,
I have rooted my phone ,s-off etc, and I have TWRP.
I am unable to install the update, phone goes to recovery, stops there.
Is there anyway I can download the update and flash it manually , or do i have to go back to stock recovery?
thanks
Click to expand...
Click to collapse
I'm not an expert . But I think you can't flash stock Rom from custom recovery. You must do it with Adb commands or what they like to call flash in fastboot mode. And for getting official firmware updates from HTC you need to setup stock recovery. I dunno but you may have to lock boot loader and S-ON too. But not sure. As I said, I'm not an expert
leonzon said:
Hi,
I have rooted my phone ,s-off etc, and I have TWRP.
I am unable to install the update, phone goes to recovery, stops there.
Is there anyway I can download the update and flash it manually , or do i have to go back to stock recovery?
thanks
Click to expand...
Click to collapse
You need a stock recovery to do OTA updates, won't work with custom recovery.
COLLECTION of Stock Backups See if you can find your stock recovery in that thread. Flash it and then you should be good to go.
---------- Post added at 06:57 PM ---------- Previous post was at 06:46 PM ----------
Saikat.mondol1 said:
I'm not an expert . But I think you can't flash stock Rom from custom recovery. You must do it with Adb commands or what they like to call flash in fastboot mode. And for getting official firmware updates from HTC you need to setup stock recovery. I dunno but you may have to lock boot loader and S-ON too. But not sure. As I said, I'm not an expert
Click to expand...
Click to collapse
No, if he's S-OFF there is no need to lock bootloader or to go S-ON.
He can just download the recovery stock .img file and flash it through command prompt. When he's done and the phone restarted he should get the OTA update.
Only issue he might run into, if he's rooted he'll lose root access and will have to reroot, it happened to me, but it's not a major issue though.
BerndM14 said:
You need a stock recovery to do OTA updates, won't work with custom recovery.
COLLECTION of Stock Backups See if you can find your stock recovery in that thread. Flash it and then you should be good to go.
---------- Post added at 06:57 PM ---------- Previous post was at 06:46 PM ----------
No, if he's S-OFF there is no need to lock bootloader or to go S-ON.
He can just download the recovery stock .img file and flash it through command prompt. When he's done and the phone restarted he should get the OTA update.
Only issue he might run into, if he's rooted he'll lose root access and will have to reroot, it happened to me, but it's not a major issue though.
Click to expand...
Click to collapse
Thanks for the basic outline. Would you be willing to give step by step instructions? I always get nervous when I have to do multiple flashing, rerooting, etc. . .
Michael833 said:
Thanks for the basic outline. Would you be willing to give step by step instructions? I always get nervous when I have to do multiple flashing, rerooting, etc. . .
Click to expand...
Click to collapse
Instructions for? To flash back stock recovery?
1. Download the recovery from the link provided (Make sure it's the correct recovery, correct base number etc)
2. Place the downloaded recovery .img file in the adb folder where fastboot.exe is (by default it'll be in the platform-tools folder) - Though if you did a custom recovery you're probably already familiar with this.
3. Hold shift and right click anywhere in the white area of the folder > go to "open command prompt/window here"
4. Plug usb cable into device and connect up to computer (All familiar surely if you did custom recovery)
5. Commands:
a) adb devices ... to check if device is connected, should see serial number of device.
b) adb reboot bootloader
c) fastboot flash recovery name_of_recovery.img
d) fastboot reboot
Done.
Once the device restarted you should get the prompt for the OTA update(Depending on settings of course), you can then do OTA update.
To get mainversion number for the recovery you need. Just go to software information(in settings menu > about > software information) and check for OS version number or connect device to computer, reboot into bootloader adb reboot bootloader then type fastboot getvar version-main to see main version for device.
BerndM14 said:
No, if he's S-OFF there is no need to lock bootloader or to go S-ON.
He can just download the recovery stock .img file and flash it through command prompt. When he's done and the phone restarted he should get the OTA update.
Only issue he might run into, if he's rooted he'll lose root access and will have to reroot, it happened to me, but it's not a major issue though.
Click to expand...
Click to collapse
Actually, I forgot that. I need to lock boot loader if I'm S-ON but don't need if S-Off