[Guide] Re-flash stock ROM (RUU) after bricking a rooted device

Last Updated:

  1. CafeKampuchia

    CafeKampuchia Well-Known Member

    Before you start, you will need to set up your computer to properly recognize the phone. You probably did this when rooting originally, but just in case... Install SDK tools for Android, Java runtime, and HTC Sync.

    About HTC Sync: The only reason you need HTC Sync installed is for the USB drivers that come with it. But the program itself has been known to cause conflicts. Make sure that HTC Sync is not running in the background by opening Task Manager in Windows and killing it if you find it lurking in there.

    Here we go:

    1. Download the correct RUU (ROM Update Utility) for your device from androidfiles.org. Make sure you download a Marvel_C RUU for a CDMA device (no sim card) or a Marvel RUU for a GSM device (uses a sim card)!! Also make sure you get the correct RUU for your carrier.

    2. Charge the battery above 50% or for at least one hour. If the battery dies during the flashing process, you could hard brick the phone!

    3. Run the RUU until the wizard comes up. While the RUU wizard is open, find the temporary folder it created. (Open Explorer in Windows and type %temp% in the navigation bar.) There will be two folders with long encrypted names. In one of them you will find ROM.zip. Open it with 7zip and extract recovery.img. Put it in the location were you've installed Android SDK tools. This is the stock HTC Recovery and it is needed to run the RUU.

    4. Boot the phone into bootloader (power off, hold down volume and press power) and highlight FASTBOOT using the volume rocker and pressing power. Then connect the USB cable. You should see FASTBOOT USB.

    5. Open a command prompt in Windows and navigate to the folder where you installed Android SDK tools. Flash the stock recovery extracted in step 3 above using the following command:
    Code (Text):
    1. fastboot flash recovery recovery.img
    6. Relock the bootloader using the following command:
    Code (Text):
    1. fastboot oem lock
    7. Re-run the RUU. It will restore the device to it's original condition, locked (though *** RELOCKED ***) and unrooted.

    Once the install is done you'll have unlock the bootloader again using the token you already have from the first time, reflash CWM Recovery and re-root. All this will be 10x easier than the first time.

    If you do re-root your phone, be 100% you backup the stock ROM in ClockworkMod Recovery before making changes!

    wardy0, Gerry, rjmendus and 11 others like this.
  2. why isnt this working... has anyone else tried this.....

    im using


    to try and redo my virgin mobile, usa, marvelc...... it starts but says its the wrong RUU....

    edit: it sits on updating signature for a while..... updating rom image on your android phone... then the bootloader version error comes up. get the correct RUU and try again. error 140*

    edit: tried a different one.... and it gave me error 132, its a signature error.
  3. CafeKampuchia

    CafeKampuchia Well-Known Member

    The reason this isn't working is because you have a Virgin Mobile phone and you're trying to flash a Sprint RUU. Try going back to Football's page and getting the Sprint RUU.
  4. Gracege36

    Gracege36 Member

    Hi I accidentally relocked my phone, can you plz let me know to unlock it again?
  5. m3ritum

    m3ritum New Member

    simply repeat step 12 in htcdev tutorial :)

  6. senthamil

    senthamil Well-Known Member

    On step 7, I don't have the copy of OEM Token when rooted first. Is there any way to get back the token again so that i can unlock and root again.....?

  7. Caro332

    Caro332 Well-Known Member

    If your phone is relocked I think the only way is to unlock it by going through the same procedure (minus the RUU update) beceause if you are relocked, as far as I know, you are unrooted
  8. senthamil

    senthamil Well-Known Member

    Oh! Sorry. I've the 'Unlock_code.bin' file Htcdev.com sent thru mail. So no problem to unlock and re-root again.

    I didn't take the Nandroid backup of my Original HTC ROM.

    I wanted to go for original HTC Stock ROM and proceeded all the steps correctly but couldn't pass thru RUU. I tried many times but the wizard says different error on every time.

    I tried with all those RUU's:

    1. RUU_Marvel_S_hTC_Asia_India_2.13.720.1_Radio_47.23a.35.3035H_7.53.39.03M_release_225848_signed
    2. RUU_Marvel_S_HTC_Europe_2.13.401.3_Radio_47.23c.35.3037_7.54.39.28M_release_236989_signed
    3. RUU_Marvel_HTC_Asia_WWE_1.35.707.3_Radio_47.10 .35.3029H_7.46.35.08_release_188906_signed

    I don't know where i made the mistake.
    or shall i need to downgrade the bootloader..??

  9. Caro332

    Caro332 Well-Known Member

    No there is no need to update the RUU. That part you can skip. just go straight to step 3c from Cafe's guide
    Or if you already have the code, skip the site's steps until you get to the next step after you get the code
  10. senthamil

    senthamil Well-Known Member

    Hi Guys,

    First I Thank CafeKampuchia for allowing & sharing me this here...

    I just Love My HTC. Few months back I rooted my device due to internal memory problem, then flashed many ROMS (Disciplex1, WC2, CM7.2 and CM9 alpha7...a ROM Junkie).

    I didn't try the speed, memory and MANY features of the original HTC STOCK ROM after ROOTED with Superuser and Link2sd etc.., I thought to do a try. I didn't take the Nandroid Backup (of Original HTC ROM) so was a NOOB.

    However I followed this guide, couldn't get back to STOCK and confused of my mistake or what went wrong. Finally referred so many guides (thanks also to Crossfire on XDA) and got thru it.

    [WARNING: PLEASE DON'T TRY THIS WITHOUT HAVING GOOD ENOUGH KNOWLEDGE !!! I TRIED WITH EXTREME CAUTION & HOPELESS... BE SURE TO CHOOSE THE RIGHT RUU OR THIS MAY HARM/BRICK YOUR DEVICE . I tried with running the RUU but can't get it. So decided to flash Recovery, boot and system img's by fastboot commands.]

    So, I Choose this RUU and got 'ROM.zip' from %temp% folder while run on PC, and opened it with 7zip, copied System, boot and recovery img's to SDK dir.


    As you see, Successfully flashed. Powered off device and switched ON. displayed 'HTC quitely brilliant' logo with alarm but INITIALLY GOT BOOT LOOPED. Tried 1 hr but no result.

    Finally gone to Hboot menu and did a FACTORY RESET!!. That's all.

    Now the phone booted normally on STOCK ROM!!! [Now BOOTLOADER IS UNLOCKED but not Rooted]

    I Tried for a FOTA UPDATE and IT WORKED!! Downloaded about 25mb and got updated succesfully. Can't believe???!!

    So, Now I try to ROOT then Install CWM to make a Backup.

    Hope this method useful for someone.
    Gerry, strutter67, strahey and 5 others like this.
  11. Caro332

    Caro332 Well-Known Member

    Glad it helped and thanks for the steps! Will use it if I ever want to go back to stock and have no backup
  12. senthamil

    senthamil Well-Known Member


    Here is my experience after flashed STOCK ROM....(sorry for so loooong...)

    Since the Bootloader is ***UNLOCKED*** I thought to root with HTC SuperTool(as I already done first) then to flash ClockworkMod When I Run HTCSuperTool it showed 'ROOTED' but originally not done. Tried again and again but same happend. (Not reliable!)

    So I flashed CWM and put the 'Root.zip' on SD Card and got NOW "ROOTED" with CWM.

    Installed Link2sd but couldn't mount the 2nd partition Since it was ext4. [GB2.3.5 couldn't accept ext4 Partition which had for CM9Alpha7 previously]. Then modified it with MiniTool Partition Wizard to ext2 and GOT MOUNTED NOW!!.

    I removed unwanted apps (Like Facebook, Email, Stocks, Plurk, etc..) and now having around 105MB free because of LINK2SD.

    Got My GPS, YouTube, HD Video, Internet Tethering & Pass thru, WiFi, etc... all back.

    Installed extra apps: (example few)

    'LockScreen' to lock the screen but save the <Power> button.
    'aScreenshot' to take screenshot simply by pressing long on 'search' key.(Navigator).

    Anyway, Stock rom is always STOCK ROM!

    Quietely Brilliant !!.....

    I Changed My User Name from 'Selvan1975' to 'senthamil' as on XDA from Today. (pls no confuse!)
    gow tham and rajesh2490 like this.
  13. rajesh2490

    rajesh2490 New Member

    :smokingsomb: hi i have htc wildfire s with unlock bootloader S-On
    radio: 47.23e.35.3038

    I have lost my stock rom backup

    please help me to get stock rom
  14. rajesh2490

    rajesh2490 New Member

    brother can u provide me ruu for bmy htc wildfire s
    radio: 47.23e.35.3038
  15. senthamil

    senthamil Well-Known Member

    Hi Rajesh,

    If you are (or your device is purchased) in India, then this wouldn't be the HBoot Version. Check it one more.... Press <power> + Vol Down, say what's displayed on Hboot Menu.

    Hboot you typed would suffix the radio version. It's not HBOOT VERSION.

    On that case this same RUU might well suit for you. You can download it on HTCdev.com

    I'll see & put it here, if any other links available.
  16. senthamil

    senthamil Well-Known Member

    Hi Rajesh,
    Here it was in my bookmark bank.


    Shipped ROMs

    They say as 'Worlds Largest Collection of Shipped ROMs'.

    I downloaded it from here and thought it might be useful for others.
    (on Football's collection "RUU_Marvel_S_hTC_Asia_India" is not available !)

    Hope this may be useful to you or others (If really press 'Thanks'). :)
  17. gow tham

    gow tham Member

    mine is 2.26.720.3 where can i find the ruu i hav tried many roms but stock roms is stable and fast pls help me
  18. senthamil

    senthamil Well-Known Member

    My WFS has also the same version[2.26.720.3] since i updated thru FOTA option. So you can proceed with the same RUU : (and then update.) RUU_Marvel_S_hTC_Asia_India_2.13.720.1_Radio_47.23a.35.3035H_7.53.39.03M_release_225848_signed which is available on the above post of this.
  19. gow tham

    gow tham Member

    ya but i tried but ruu shows image version is wrong..???
    how can done tat...any way advance in thanks:confused::confused::confused::confused::confused::confused:
  20. senthamil

    senthamil Well-Known Member

    Where does RUU shows image version is wrong...???

    Did you try while running RUU, copy the ROM.zip from your %temp% folder...?

    Then extract the ROM.zip with 7zip, you will get system.img, boot.img and recovery.img

    Please go thru again...
    gow tham likes this.
  21. gow tham

    gow tham Member

    really no but mine is 2.26.720.3 but the ruu shows image version is wrong because the ruu is 2.13.720.1
    i getting unknown errors..on the ruu

    i m new step by step procedures pequired help pls...thanks in advance:):):):):):):):):)
  22. Caro332

    Caro332 Well-Known Member

    When you first rooted, which RUU did you use? Asia, Europe, VM.....Try and use the same version you used when you first updated the RUU to root
  23. senthamil

    senthamil Well-Known Member

    I Think you are confused too much. If you are not sure don't try.

    1. Download RUU and run it on PC. Proceed it first 2 steps.
    2. Open Explorer on PC and type '%temp%' without quotes on navigator.
    3. Find a folder with long name within { }. There in a sub folder you can find ROM.zip
    4. Copy ROM.zip to somewhere on PC.(now you can cancel the RUU wizard).
    5. Extract the ROM.zip in a folder and copy only boot.img, recovery.img and system.img to you SDK folder. (c:\Android). That' all. Now you can flash as in the pic above.
    6. Now your Software ver will be 2.13.720.1 goto 'Settings', 'About phone' and select 'Software update'. Probably you can download about 25mb and install it. No your software version will be 2.26.720.3

    Hope you get a clear IDEA.
    jay1028 and gow tham like this.
  24. gow tham

    gow tham Member

    in my first root i use my stock rom india asia..
  25. gow tham

    gow tham Member

    but mine is already 2.26.720.3 ....??????
    i got clear idea but confused on the ruu ,..:rolleyes::confused:

Share This Page