yashsingh1/xdaforums huggingface dataset:
[HTC One V] ckpv5:
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.
[HTC One V] 1ceb0x:
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?
[HTC One V] paarthdesai:
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 :)
[HTC One V] jparasite:
Are you able to get the RUU for your phone/region?
[HTC One V] the Doctor:
Reflash system.img is the no-fail way.
[HTC One V] 1ceb0x:
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)...
[HTC One V] Lloir:
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.....
[HTC One V] jparasite:
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.
[HTC One V] ckpv5:
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
[HTC One V] 1ceb0x:
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?
[HTC One V] ckpv5:
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.
[HTC One V] 1ceb0x:
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.
[HTC One V] ckpv5:
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.
[HTC One V] 1ceb0x:
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!
[HTC One V] RaskloP:
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.
[HTC One V] ckpv5:
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.
[HTC One V] ryanlow134:
so that your new nandroid backup doesn't have SuperSU and you can still keep your datas :)
[HTC One V] jparasite:
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.
[HTC One V] 1ceb0x:
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:
[HTC One V] Lloir:
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 :(
[HTC One V] caba11:
hi,

my device is like this...

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

do i need nandroid backup first or i dont have to be worry about brick?

thanks
[HTC One V] paarthdesai:
no need to worry about brick

dont just say thanks hit thanks if i helped :)

a true lfc supporter

and a former symbian lover

SUPPORT THE SOFTWARE DEVELOPER'S IF YOU LIKE THE GAME / APP BUY IT
[HTC One V] senia3:
Where Can I Find a "recovery_signed.img" ????????????

I mean this stage:

- boot to bootloader and fastboot flash the stock recovery

What stock recovery?
[HTC One V] Ken-Shi_Kun:
Download the RUU for your phone (.exe) and run it, but don't do a thing.

Go to temp directory (in cmd %temp%) and search for the temporary the ruu has made (mainly a folder named { something something something...} ), and search for it.

For european 2.08.401.2 attached below.
[HTC One V] Kewyang:
Hi, i'm using ur myonev rc v2 rom, if i wish to revert back to orignal rom, i just follow the F step right? Seems like so complicated:(
[HTC One V] Ken-Shi_Kun:
Revert to stock, option F

If you haven't got nandroid from stock yes, but it isn't that complicated as it seems.

Firstly and mainly you need the RUU for your phone (search button for it), run it, but don't do a thing.

Search for the files mentioned (place is mentioned in my post from before (2 posts maybe))

You will need the following files:

- recovery_signed.img (or recovery.img)

- boot.img (or boot_signed.img)

If you have them, you have everything that is needed, given the fact, that you've unlocked your phone yourself (not to mention the all-in-one tool of course, you will need to command line a tad for revert to stock).

If you don't know what is bootloader, fastboot and thing (so you've unlocked your phone useing the all-in-one tool) you need the following as extra and in one directory (these files are available from the all-in-one tool's directory):

-adb.exe

-fastboot.exe

-AdbWinApi.dll

-AdbWinUsbApi.dll (not sure of that, but better not to play :) )

If you have all of them in one directory, you are in the finish line.

Assume that you've put all this thing to "c:\htc\"

-So start->run cmd (in win7 run as administrator)

-when in command line go to the directory where you have put the things needed (assumed c:\htc)

-boot your phone into fastboot (click reboot and hold down the volume down button as long as it reboots to recovery, than after you can do a thing select the fastboot mode (power up/down) and push power button. (you have the drivers installed prevoriusly)

- when fastboot mode is active plug in your device, you will see the phone say you fastboot USB in red highlight.

Now comes the interresting part.

- type in command line window:

fastboot flash recovery recovery_signed.img

(stock recovery install, will be over in 30s or less, if you have recovery.img do acordingly)

fastboot reboot-bootloader

fastboot erase cache

fastboot flash boot boot.img

(this will be a tad longer, because this is the phone's kernel, if boot_signed.img, do accordingly)

fastboot reboot-bootloader

fastboot erase cache

fastboot oem relock

(this will RELOCK your bootloader (bootloader will be RELOCKED not LOCKED)

fastboot reboot-bootloader

fastboot erase cache

when over and without errors, you're happy. Go to the hboot menu, and run the RUU as it says to you.

All is good.
[HTC One V] Paresh Kalinani:
Will RELCOKED Bootloader get the warranty back?

Won't HTC come to that we've unlocked our bootloader and voided our warranty when they see that the bootloader sayw RELOCKED instead of LOCKED? If there's no way to Factory Lock the Bootloader, then how would we get the warranty? :confused:
[HTC One V] paarthdesai:
u cannot get

dont just say thanks hit thanks if i helped :)

a true lfc supporter

and a former symbian lover

SUPPORT THE SOFTWARE DEVELOPER'S IF YOU LIKE THE GAME / APP BUY IT
[HTC One V] Ken-Shi_Kun:
It is quite a godd question, because when BL unlock, the token will tell you about the lost of your warranty, and even HTC-dev accepts you the term, when login to unlock BL.

BUT the warranty is a question about the seller/company that selled you the phone, or wants to service it. At our country the shop said, if the unlock is done with htc-dev AND you run the "standard" software (means the latest stock) you will have your warranty.

How it is done in other countries is a question tough, but unlocking means that you have accepted that you will probably be without warranty.
[HTC One V] shubhamchamaria:
So basically run the RUU before going there...if the phone is functional...

Also just generating an unlock code doesn't mean you used it....

Sent from my HTC One V Running SuPrimo v4.1(28/6/12)
[HTC One V] Kewyang:
Hmmm Can i know what is Ruu? Where can i get it? And when we revert back to original rom, we dun need a originial rom??

---------- Post added at 01:23 PM ---------- Previous post was at 01:12 PM ----------

Actually Im going to sell my phone soon, thats y i want to revert back to original rom. Yet, what i really mention is the disclaimer when booting, ' this legal xxxxxxxxx ' , IF i revert back to original stock, will these words still appear when booting? Or this is a result of unlocking bootloader?
[HTC One V] maxwen:
Hi

http://xdaforums.com/showthread.php?t=1591059

This has nothing to do with the bootloader

This message comes from the (unsigned) kernel image and will dissapear

if you flash a stock kernel (one with name _signed) or just apply the RUU

Regards

max
[HTC One V] Paresh Kalinani:
But the bootloader will be RELOCKED, not factory LOCKED.

Even if you revert back to the stock ROM, as you've unlocked your bootloader, it'll show relocked. Anyone would come to know that this phone was rooted.
[HTC One V] saket_oo:
hey peple i have a CWM Backup, i.e after BL unlock i flashed CWM and made backup and also on sdcard..........

so where do i get stock recovery from??????
[HTC One V] Ken-Shi_Kun:
from the ruu of your phone. When runing it, it will create a temp directory, and it will be there. Before you progress, you can copy it elswhere and flash it manualy via fastboot.

---------- Post added at 05:38 PM ---------- Previous post was at 05:34 PM ----------

The words have nothing to do with workabulity, it only tells, that you don't have the stock recovery.

If you flash the stock the words will not be visible, but you cannot do anything with the rom accept ota updates or ruu of course.

But there will still be at bootloader that the phone is relocked, so anyone who is knowledgable about htc phones will know the fact.
[HTC One V] saket_oo:
bro how to tell which rom for my v???
[HTC One V] Ken-Shi_Kun:
You mean wich ruu you need for the phone to return to stock?

Download CID getter from play market, and it will tell you the phones CID, so you can determine what ruu you will need. Google and search button in forum can help you with that.
[HTC One V] saket_oo:
Even after I downloads the ruu for my onev , ( 1.56.720.2 India ), I have not been able to find the recovery_signed.IMG .......... (I did as mentioned, runnin the .exe and searchin ,but nothin....:'( ) If anybody has been able to get the recovery from similar ruu pls share link ( I am postin from mobile otherwise I would have posted forum link from where I downloaded .... Sorry ....... :'(
[HTC One V] Ken-Shi_Kun:
For anyone searching for the stock recovery image, i've made a thread about that, and started to collect those available.

[RECOVERY] Stock recoveries for the One V
[HTC One V] the Doctor:
No dice. Definitely requires relocked bootloader. Re-unlocking and rooting after the ota will require a factory reset and loss of all data. :crying:
[HTC One V] donhashem.dh:
I've got a nandroid backup of my stock rom after rooting .and cmw recovery ,so should I do the steps u gave to 1cebOx ??
[HTC One V] Lloir:
im not being funny or mean....but it's really easy to follow the instructions! you have a nandroid backup FLASH IT then relock etc!! stop asking people what to do, when the instructions are obvious

thank you
[HTC One V] donhashem.dh:
Ok thnx but I wanna ask u what is ruu and ota update??
[HTC One V] paarthdesai:
ruu- rom update utility

ota- over air

nw dnt ask any of the questions whose answer has already been given

a true lfc supporter

and a former symbian lover

SUPPORT THE SOFTWARE DEVELOPER'S IF YOU LIKE THE GAME / APP BUY IT
[HTC One V] Ken-Shi_Kun:
The RUU is a complete ROM that the phone can flash via a PC (Rom Update Utility)

OTA (or FOTA) (Firmware) Over The Air is a zip package wick includes the updates or just pached files that needs to be overwritten by YOUR PHONE (and with stock recovery)
[HTC One V] GTI WR6:
My phone falls under category D and I am still unable to install the 2.09 update after following the instructions. It downloads it, reboots itself, I see a green bar filling up half way and then disappears in the screen with a phone and red triangle. Then it reboots. When I check under software, its still the same old software version. Any suggestions on how to fix this? thanks.
[HTC One V] ezureh:
How do i fix it so error 140 doesn't happen?
[HTC One V] ckpv5:
Did you flash the stock recovery before the OTA update ? If yes, then maybe you need to relock the bootloader, but all data will be wiped once you re-unlock the bootloader.

I was on categary D for One X, and it was a successful OTA update without a need to relock bootloader, never try on One V yet.
[HTC One V] GTI WR6:
Yup. I did flash stock recovery. Then I read in another thread that I have to re-lock bootloader for OTA update to take place, which means all data will be wiped as you mentioned.

This needs to be changed in the first post where it says no need to relock bootloader.
[HTC One V] shubhamhellboy:
what shall I search for stock kernel in rom.zip while extracting from RUU?
[HTC One V] :
- Start the RUU

- Run cmd.exe (command shell on windows)

cmd> cd %USERPROFILE%\AppData\Temp

cmd> FOR /F %a in ("rom.*") DO @echo %a

The above will give you path to rom.zip.
[HTC One V] shubhamsizzles:
Can you please upload stock recovery for Indian version 1.56.720.2 ????

---------- Post added at 12:48 PM ---------- Previous post was at 12:42 PM ----------

Hey were u finally able to update??

Did you have to relock the bootloader.. and can someone confirm the fact that i'll lose all my data if i RELOCK ??
[HTC One V] ckpv5:
1.56 to 2.09 is a major update. You need to relock the bootloader before OTA update.

You're not going to lose all data when RELOCKED but you will lose all data when UNLOCK again.
[HTC One V] shubhamsizzles:
Thanks for the suggestion! but... didnt help :(

i relocked the bootloader and but the same problem ! update throws up error halfway through..
[HTC One V] shubhamchamaria:
Try flashing some Rom with latest ruu...easy as that...
[HTC One V] shubhamsizzles:
is there an RUU for indian version 2.09?????

also when i try to boot into recovery.. i get this error

"E: Can't mount /cache/recovery" smthing like that..

Did i fry up my hardware???
[HTC One V] shubhamchamaria:
Go to fastboot and do

fastboot clear cache

But if you are using cwm touch recovery just ignore those errors...

And no your hardware is fine...just flash SuPrimo Rom or myOneV Rom instead of relocking and stuff as they are based on latest ruu...
[HTC One V] shubhamsizzles:
Okay just making sure i'm doing this right..

I boot into bootloader mode, select fastboot, connect the phone to my pc, and then just execute " fastboot clear cache" from command prompt?? what is the command exactly? "fastboot clear cache" or "fastboot -w" ??

P.S. I have fastboot files installed on my PC.

Sorry for taking your precious time !
[HTC One V] paarthdesai:
it's fastboot clear cache

Sent from my HTC One V
[HTC One V] shubhamsizzles:
Hey, now i get the error "E: Can't open /cache/recovery/command" what does this mean??

I feel like i've completely screwed up my phone :(
[HTC One V] paarthdesai:
redirect the cmd to the directory where fastboot is

Sent from my HTC One V
[HTC One V] shubhamsizzles:
i can't do that !! i start the cmd from the fastboot directory itself..

anyway,

i noticed this error pops up when i try updating via FOTA..

assert failed: apply-patch-check("/system/app/TuneIn.apk ", " then a few loooooong error codes then

E:Error in /sdcard/download/OTA_PRIMO_U_ICS_40A............zip

(Status 7)

Installation aborted.

I had unistalled the app tune in pro, which came preinstalled.. is that the reason??
[HTC One V] hlavicka82:
Yes that would be the reason.
[HTC One V] anirudhnyg:
hboot Help

trying to go completely stock after installing a custom rom (SuPrimo v4.1)

i am under category F now and need to replace my phone .... .

i have downloaded the indian Ruu (RUU_PRIMO_U_ICS_40A_hTC_Asia_India_1.56.720.1)

but while the ruu is running .. it gives me an unknown error 155 and on the phone it says :Hboot Version is older ! Update fail !

i saw that the hboot version in the rom.zip of the RUU is 1.16.0000 but the phone has 1.17.0000 how do i downgrade the hboot or how do i use this RUU :RUU_PRIMO_U_ICS_40A_hTC_Asia_India_1.56.720.1" to go back to stock ?
[HTC One V] :
[edit:] after milion retries it finally worked. thanks anyway!

so I have decided to send one v for repair (orange spot on screen), but I cannot relock bootloader. I have resored nandroid 2.08, flashed stock signed recovery and boot, but when I enter fastboot oem lock, it says lock succesfully, failed something.. reboots and when I go back to bootloader it still stated UNLOCKED..

tried flashing RUU 2.08 and gives me error 155 - security fail! (and I flashed correct signed recovery and boot from this RUU), any idea?

thanks!
[HTC One V] cherryfloat:
i also facing the same problem with him, but iam using RUU_PRIMO_U_ICS_40a_hTC_Asia_WWE_1.58.707.3_Radio_20.66.30.0831U_3831.15.00.23_M_release_252880_signed ..

i've tried the page one method, from flashing boot and recovery and lock bootloader. but it still give me an error 155 :(
[HTC One V] Ken-Shi_Kun:
Go to hboot menu, and then flash the ruu.

Also fastboot oem lock gives an error message as output (at least for me) but relocks the bl.
[HTC One V] MisterMooth:
I'm having troubles reverting to stock. I have a Taiwanese model and it seems that the latest RUU I can find uses an older HBOOT version than my current one, so I can't get it to install. Is there a workaround?
[HTC One V] cherryfloat:
i already go to hboot menu, and select fastboot with power button, it shown fastboot usb, then i run the RUU, but it keep failed..

can you give me a video tutorial maybe?

it says my hboot is older version, when i tried to flash the hboot, it faild ..
[HTC One V] ckpv5:
Once your hboot is updated to 1.17, only RUU 2.09 can be flashed, none other.
[HTC One V] paarthdesai:
older nandroid can be restored right? :confused:

Sent from my ONE V
[HTC One V] ckpv5:
older nandroid can be restored but it won't pass as a pure stock ROM when the version no. is not tally with the hboot no. So it is the same like a custom rom.

That is why it is always advisable to make and keep a nandroid after an OTA update.
[HTC One V] paarthdesai:
i never ever changed my rom from myONEv to any other.. ever since2mnths i bought this phone

Sent from my ONE V
[HTC One V] ckpv5:
:confused::confused: why... be adventurous, try all ROMs for the experience that each ROM does offer.
[HTC One V] paarthdesai:
coz i love sense ;) i bought htc for sense to have the flip clock.. and to my horror i didn't find it.. hopefully nikhil will release it soon :)

and i don't care about the battery or low memory.. all i want is fantastic looking rom and fast.. and for me myONEv is the best that fits my choice soo never left it from the day i rooted :):cool::thumbup:

Sent from my ONE V
[HTC One V] cherryfloat:
thanks :laugh:

no i know why it always shown error 155 message when i tried to revert to stock

thanks ckpv5 , now it clear :laugh:
[HTC One V] donhashem.dh:
Hey man if I have a nandroid backup for the stock rom but after the update can it work??
[HTC One V] MisterMooth:
Does an RUU for the Taiwanese model exist for that yet?