How to Unroot the HTC Sensation 4G

So you need to sell your HTC Sensation 4G or send it in for warranty? Here’s how to unroot it, get a stock recovery, and put S back on so that it is exactly as it was when you took it out of the box.

I. Before You Begin

1. This will give you a stock ROM, stock recovery and bootloader.

2. Only real reason to unroot, is if you want to turn the phone in for warranty purposes, or if you want to sell it (and the person buying doesn’t want it rooted).

II. Setup ADB

1. Head to our how to setup ADB procedure and setup ADB so you can see your phone’s serial number. Once you can see the serial number in command prompt, then you can return here to continue.

How To Setup ADB

III. Use the RUU to Unroot and Put Your Device Back to Stock

1. Download the official RUU from the thread linked below. MAKE SURE YOU CHOOSE THE CORRECT ONE FOR YOUR DEVICE!

Sensation 4G RUU (For T-Mobile US choose the TMOUS version with the highest number, indicating it is the latest version for T-Mobile USA).

2. Make sure USB debugging is still on from when you did the Setup ADB procedure by going to Settings > Applications > Development > Should have a check next to USB Debugging.

3. Plug your device in via USB to your computer.

4. Right click the RUU .exe file and select run as administrator (if you dont have that open just select Open).

5. Follow the RUU’s instructions to flash the stock firmware.

6. After the device reboots and is still plugged in via USB cable to the computer, open the command prompt by clicking on the Start menu and then typing in cmd and hitting enter in the search field.

7. In the command prompt, type the following with hitting enter at the end of each line:

cd c:\androidsdk\platform-tools     (if you followed our adb procedure then that is the exact name, if not then you need to put in the folder where adb is located for you on your computer. i.e. c:\[nameofsdkfolder\platform-tools\)

adb reboot-bootloader

fastboot oem writesecureflag 3

fastboot reboot-bootloader

8. After you type the last line, you should see S-On at the top of the bootloader screen. If so, you are all set.

Thanks to Alphadog32 for the RUU and original procedure.

Nerd Out with Us!

Join over 30,000 others and subscribe to my occasional, not annoying, newsletter!

* indicates required

50 responses to “How to Unroot the HTC Sensation 4G”

  1. edwreybax says:

    Everything works well with my HTC Sensation 4g T-Mobile… thanks a lot!

  2. dean says:

    THANK YOU!!!

  3. CoreO says:

    Thanks sooo much for the help. Was able to relock my phone. GOD Bless 😉

  4. jason says:

    right now my phone is like in a bootloop in the fastbook. i restart it and about a second later it goes right back to fastboop. please help

  5. Ruben says:

    Works like a charm!! thank you so much!!

  6. Joy says:

    It worked like charm!

  7. JON says:

    how can i get the freaking file hurry pliz

  8. Darren says:

    I did it and my Sensation 4G will not turn back on either after the last ”fastboot reboot-bootloader” command. Has anyone else had this problem and found a solution?

  9. Komzi Tomato says:

    Hey, sorry, my Computer wont recognize the RUU exe file I’v downloaded D: Any help will be nice :)

  10. RPaterson says:

    Thanks a ton, worked like a charm!

  11. avonb3ar says:


  12. Tara says:

    I am trying to reroot my htc sensation 4g and it isnt going well. I followed all these instructions and both RUU that I tired wont open. Can someone please help me?

  13. robert martin says:

    hmmmm. My device isn’t listed, does that mean it can’t be done?

  14. Mark Jacobs says:

    Awesome! Worked perfectly thank you very much.

  15. cassie says:

    I upgraded from stock to 4.0 IceCreamSandwich through the phones actual software update (i didnt root it). Can I still follow this process to revert it back to factory default? Or do I need to root it first and then follow this guide?

  16. z says:


  17. anmol says:


    HTC SENSE (3.0)


    I need help to unroot my DEVICE to original RUU. I bought this second hand device
    unlocked and rooted. Please help me selecting correct RUU. I live in INDIA and my device is T-MOBILE version.

  18. Aaron says:

    sorry i tried doing this everything was going great but when i type in fastboot writesecure 3 it just says waiting for device what does this mean?

  19. Docbean says:

    I tried it with the most current version in fastboot and it gave me an security failed and update fail. I have also tried an older version of the RUU for Tmobile US and it still doesn’t work. Please help!

    • Docbean says:

      Error 155 [UNKNOWN ERROR] it also says please use the correct ROM update utility and try again.
      The security fail and update fail is listed on the phone. When I reboot the phone it goes right back into rooted rom i installed.

      • David Cogen says:

        Make sure you are using the RUU for your specific device. If it stil isn’t working, what version of Android is your device on? It might be newer than the RUU version and that’s why it won’t flash.

        • Docbean says:

          I used the most recent TMOUS, file and when i went to install it, it had the same build number as the as my current phone, that i unlocked using elegancia ICS _tmous. I tried different RUU, and the same error happened. Not sure if there is any other way around it.

  20. ramzy says:

    how about the words where it says locked and when you gain s-off it writes a different word instead of locked so would this process make my device say locked and by the the way im htcdev unlocked

Leave a Reply