HTC One S Forum

Root [GUIDE] How to Run an RUU for your HTC One S

You will need a working adb/fastboot environment and device drivers. If you do not have those already please follow the steps from the first post in this guide: http://androidforums.com/one-s-all-things-root/543328-how-unlock-bootloader-install-recovery-root-your-htc-one-s.html#post4331626 first, otherwise continue on.

Getting the RUU

First of all boot into bootloader and enter the following fastboot commands:

Code (Text):
  1. fastboot devices
in the command prompt (if you get serial number,then proceed). This is just to make sure your computer is recognizing that the phone is connected.
Code (Text):
  1. fastboot getvar all
This is just to make sure we can find the right RUU to match your current hboot/firmware.

You should see something like (some numbers replaced with *):
Code (Text):
  1. C:\sdk-tools>fastboot devices
  2. ************    fastboot
  3.  
  4. C:\sdk-tools>fastboot getvar all
  5. INFOversion: 0.5
  6. INFOversion-bootloader: 1.14.0004
  7. INFOversion-baseband: 1.08ts.50.02.16
  8. INFOversion-cpld: None
  9. INFOversion-microp: None
  10. INFOversion-main:
  11. INFOversion-misc: PVT SHIP S-OFF
  12. INFOserialno: ************
  13. INFOimei: ***************
  14. INFOproduct: vle
  15. INFOplatform: HBOOT-8960
  16. INFOmodelid: PJ4011000
  17. INFOcidnum: T-MOB010
  18. INFObattery-status: good
  19. INFObattery-voltage: 4138mV
  20. INFOpartition-layout: Generic
  21. INFOsecurity: off
  22. INFObuild-mode: SHIP
  23. INFOboot-mode: FASTBOOT
  24. INFOcommitno-bootloader: 8b9e2080
  25. INFOhbootpreupdate: 11
  26. INFOgencheckpt: 0
  27. all: Done!
  28. finished. total time: 0.075s
  29.  
Download the RUU that matches your carrier, hboot version, and baseband. If you are S-Off/SuperCID, you can run any RUU. Otherwise it must match those or it will not run. You can find that info in the output of fastboot getvar all from above.

You can find some RUU's for the HTC One S here and here.

Preparing to run the RUU
To run the RUU, here's what you will need to do:
  • Make sure phone is charged to 100%
  • Place phone in fastboot mode(select fastboot from hboot menu), plug in via usb.
  • Open a command prompt window, change to android directory (wherever you set this up for adb/fastboot) and enter the following commands (one at a time):
    Code (Text):
    1. fastboot devices
    2. fastboot oem lock
  • This will lock your bootloader and allow you to run the RUU. The phone will try and reboot, or it will give you a security warning, and lock you into bootloader. Don't worry, this is normal.
Running the RUU
  1. Make sure the HTC drivers you downloaded earlier are installed and working. Do this by connecting your phone to your computer. If your computer detects it, your drivers are working. I recommend staying in fastboot usb mode after entering the commands above, the RUU.exe will detect that and be able to work from fastboot.
  2. Run the RUU.exe (that you downloaded earlier) on the PC as administrator. It takes a few minutes to boot up, so don't be alarmed if it doesn't appear immediately.
  3. Follow the prompts. It should ask you to ensure your phone is plugged into the computer and that ADB debugging is on. As long as you left it plugged in from earlier you are fine.
  4. The RUU should recognize the phone and start running. Be patient, do not unplug the phone under any circumstances!!

When it finishes, it will reboot, you will be stock again.
 

Related:

#1 agentc13, Feb 22, 2013
I wrote this up kind of quick, if you see that I left something out or putin something incorrect let me know and I will get it fixed asap. ;)
 
#2 agentc13, Feb 22, 2013
I would suggest you add a WIPE : system, data, cache + factory reset - for those who are currently on CM10 or other to be on the safe side - i had a error w/ the HOX before doing a RUU restore and i was on CM10.


EDIT : Also you should now be able to download the S4 JB RUU for international (WWE - X.X.401.X) version from here : http://androidfiles.org/ruu/ [i uploaded it, but forgot about this post]
 
#3 razvan06, Feb 22, 2013
I haven't had any issues running a RUU with CM10 or the like on my phone. I don't think those steps are necessary. It's possible that there was an issue specific to the One X with that stuff, but I haven't heard of anything or experienced it with the One S.
 
#4 agentc13, Mar 15, 2013
I have TWRP recovery installed, do I have to change back to stock recovery prior to running the commands on fastboot or will the RUU install even with a custom recovery??? Or is relocking the bootloader like you suggested enough?? I'm gonna try this so I just want to be sure!!! Thanks!!
 
#5 Cyber Droid, Mar 21, 2013
Recovery doesn't matter. The RUU will restore the stock recovery, you just need to relock the bootloader.
 
#6 agentc13, Mar 21, 2013
Awesome! Thanks for the quick reply! I'm gonna try it right now... Approx. how long should this process take??
 
#7 Cyber Droid, Mar 21, 2013
I'm a bit confused. So can I run any HTC One S RUU, whether or not it matches the HBOOT and Radio and so on?
 
#8 alexpja, Apr 6, 2013
no. with s on,the ruu you use must meet these requirements:
-same build number on or higher
-same hboot or higher(this will always be true if the first one is)
-same CID. some ruus will flash across multiple CIDs.
-same model id
-be an official,signed-by-htc file

things are further complicated by the fact that ruus starting with JB are encrypted so we cant get in to them. in order to run these ruus,you must allready have a newer hboot in place. i.e.,you need to have OTAed to a JB firmware,or possibly flashed the firmware.zip file from an OTAPkg.zip

s-on is a pain ;)
 
#9 scotty85, Apr 7, 2013
Hello.
If I'am S-off, is it possibile to flash a RUU with lower HBOOT then mine.
 
#10 cicciocant, Apr 19, 2013
If you have the corresponding radio already flashed, I do believe so.

That's how it is with several htc devices at least.
 
#11 DragonSlayer95, Apr 19, 2013
Yes, but there isn't much point in doing so since you have s-off.
 
#12 agentc13, Apr 19, 2013
s-off literally means security off. the phone does no security checks,so you can run any ruu,regardless if what firmware your phone currently has,with exception of the new encrypted RUUs(anything JB or newer). with thos,you will need to install the new hboot first,then install the ruu,as the old hboot is not cabable of decryting,unpacking,and flashing the newer ones.

as ac13 said,going backwards doesnt do you much good,newer firmware is typically more efficient/better. you no longer need the old hboot,with s off permant recvoery is able to install the boot image,regardless of hboot version :)
 
#13 scotty85, Apr 19, 2013
Running the RUU
  1. Make sure the HTC drivers you downloaded earlier are installed and working. Do this by connecting your phone to your computer. If your computer detects it, your drivers are working. I recommend staying in fastboot usb mode after entering the commands above, the RUU.exe will detect that and be able to work from fastboot.
  2. Run the RUU.exe (that you downloaded earlier) on the PC as administrator. It takes a few minutes to boot up, so don't be alarmed if it doesn't appear immediately.
  3. Follow the prompts. It should ask you to ensure your phone is plugged into the computer and that ADB debugging is on. As long as you left it plugged in from earlier you are fine.
  4. The RUU should recognize the phone and start running. Be patient, do not unplug the phone under any circumstances!!
When it finishes, it will reboot, you will be stock again.[/QUOTE]

I have everything but I'm not able to found RUU.exe. it is not within the file i have download to restore the rom, only .img
please help
 
#14 logisex, Jun 11, 2013
what file have you downloaded?
 
#15 scotty85, Jun 11, 2013
The RUU I found (which I could not find during previous attempts) is titled:
RUU_Ville_U_TELUS_WWE_1.84.661.9_Radio_0.17.31501S.10_2_10.27.31501S.10L_release_265367_signed

My Radio is the correct match, however I'm not sure how to tell if I have the correct HBOOT. My HBOOT is 1.13.0000.

Any help would be appreciated!
 
#16 mrpalin, Jun 14, 2013
I have an HTC One S on 3

I unlocked, rooted and flashed CyanogenMod 10.1 - which involved flashing the kernel.
I also failed to take a backup before I flashed

So I now have a phone with the following versions:
[HIGH](bootloader) version: 0.5
(bootloader) version-bootloader: 2.13.0000
(bootloader) version-baseband: 1.11.50.05.28
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno:...
(bootloader) imei:...
(bootloader) product: vle
(bootloader) platform: HBOOT-8960
(bootloader) modelid: PJ4010000
(bootloader) cidnum: H3G__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 3835mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-26dff973
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done![/HIGH]I now want to unlock the phone from 3 so I can use an 02 sim. I have the unlock code - but I need to go back to factory ROM and unroot.

I can only find two RUUs for H3G
RUU_Ville_U_H3G_UK_1.53.771.4_Radio_0.15.31501S.19_2_10.13.31501S.06L_release_251870_signed.exe
&
RUU_Ville_U_H3G_UK_1.78.771.5_Radio_0.16.31501S.19_2_10.23.31501S.10L_release_258982_signed.exe

As you can see, I'm on a higher radio version!

What should I do? Please.
 
#17 darkMavis, Jun 30, 2013
you should not need to unroot or run an RUU to simunlock. if it wont prompt you for the unlock code on CM,then just flash a stock rom from recovery,or restore a stock nandroid(i think there is a thread on xda with nandroids you can download and restore)

at this point,you are prolly screwed at being able to run an ruu,unless one of the ones linked contains your hboot,a newer ruu is released,or you set the phone to s off via the moonshine or facepalm tools.
 
#18 scotty85, Jun 30, 2013
Thank you for quick reply.

I'm getting the prompt for the unlock code, but the code doesn't work. It's a legit code, because I've got the same code from two different sources (one from a vendor, one from the algorithm run against the seed number stored on the phone)

I'll give those options a go. Thank you again.
 
#19 darkMavis, Jul 1, 2013
welcome. let us know how it goes. :)
 
#20 scotty85, Jul 1, 2013
are RUUs that are downloaded as .zip files run differently than a .exe RUU? because I downloaded this OTA_Ville_U_JB_45_S_TELUS_WWE_3.16.661.4_1.13.50.05.31_10.30.50.08L_release_307532nohrvy5j6i2o2i8i.zip RUU and I can't find any executable inside.
 
#21 JengaJames, Jul 25, 2013
A month ago or so I flashed my One S with the Avatar rom, using the cyanogen guide.

Now I miss my original rom and want the excelent batery time back, not to mention that I want to turn off Beats (it's driving me nuts...)

So I tried running thrugh your guide and I ran the RUU named HTC Europe and something...

In any case I recived a failure and restored it to its previous state. Then I saw something about baseband matching up with the RUU name and found

RUU_Ville_U_HTC_Europe_1.47.401.1_Radio_0.15.31501S.13_3_10.08.31501S.04L_release_250115_signed.exe

would this work when I get the following in CMD:
------------------------
G:\Android\Android>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 2.15.0000
(bootloader) version-baseband: 1.11.50.05.28
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: HT23PW406633
(bootloader) imei: [redacted by Mod]
(bootloader) product: vle
(bootloader) platform: HBOOT-8960
(bootloader) modelid: PJ4010000
(bootloader) cidnum: HTC__Y13
(bootloader) battery-status: good
(bootloader) battery-voltage: 3803mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-64bedd38
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.064s
--------------------

Thank you all in advance for any help you might have :)
 
#22 Rainmaker91, Jul 26, 2013
i would venture to guess it will not work. while your phone does not show a main version,the ruu in question prolly has an older hboot than 2.15.

there are unfortunately,many checks being done.

the above is assuming an s on phone. if your s off,all you need to do is change CID to supercid(11111111) or to one that matches the ruu,and then it will flash just fine.with super cid and s off,you can run literally any one s ruu that you want.
 
#23 scotty85, Jul 26, 2013
Seeing as I was already locked out of the main rom on my phone I decided top give it a try. Installing part went on without a hitch, the only thing that concerns me somewhat is that I get a fail message when I try to update the "personalize" app from HTC.

Also it seems like I posted the wrong RUU here (the one posted was the one I originally tried)

This is the one I used:
RUU_Ville_U_JB_45_S_HTC_Europe_3.16.401.8_Radio_1.11.50.05.28_10.27.50.08L_release_301814_signed_2_4.exe

Not sure whether or not this is a specific rom for a phone company or if it's a generic HTC rom (the one I originally had was a generic Scandinavian rom for phones without sim lock).

In any case thank you for your help.
 
#24 Rainmaker91, Jul 27, 2013
If my bootloader reads out identical to yours Agentc13 (minus the red changes) then which of the two TMOUS RUUs should I use?

Thanks for this guide btw :)
 
#25 VSD, Aug 8, 2013