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.

If this procedure helped you, please consider donating to the original developer or at least sending them a thank you.

Now that you are rooted, head here to learn some of the fun things you can do!

For all the devices we have rooting procedures for, head here.


Something Wrong? If you notice an issue with the procedure (broken link, steps out of date, etc.), use this form to let us know! Otherwise, if you just are having trouble with the procedure, reach out to us on Twitter, Facebook, or Google+.

  • edwreybax

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

  • dean

    THANK YOU!!!

  • CoreO

    Thanks sooo much for the help. Was able to relock my phone. GOD Bless ;-)

  • jason

    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

  • Ruben

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

  • http://www.webpluscode.com Joy

    It worked like charm!

  • http://www.filefactory.com/premium/index.php?e=PGI%2BQWxsIGZyZWUgZG93bmxvYWQgc2xvdHMgYXJlIGluIHVzZS48L2I%2BIFlvdSBjYW4gZG93bmxvYWQgdGhpcyBmaWxlIGltbWVkaWF0ZWx5IGJ5IHVwZ3JhZGluZyB0byA8c3Ryb25nPkZpbGVGY JON

    how can i get the freaking file hurry pliz

  • Darren

    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?

  • Komzi Tomato

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

  • RPaterson

    Thanks a ton, worked like a charm!

  • avonb3ar

    AFTER FOLLOWING THESE STEPS MY PHONE REMAINS STUCK IN BOOTLOADER. PLEASE HELP. I DON’T KNOW WHAT TO DO :””””””””(

  • Tara

    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?

  • robert martin

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

  • http://www.marksmancomputers.com Mark Jacobs

    Awesome! Worked perfectly thank you very much.

  • cassie

    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?

  • z

    Effective!

  • anmol

    PHONE INFO:

    MODEL (HTC SENSATION 4G T-MOBILE)
    ANDRIOD VERSION (2.3.4)
    HTC SENSE (3.0)
    ROM (ANDROID REVOLUTION HD 3.6.8)

    PYRAMID PVT SHIP S-OFF RL
    HBOOT-1.17.1011
    Radio-10.14.9035.01_M
    eMMC-boot

    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.

  • Aaron

    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?

  • Docbean

    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

      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.

      • http://theunlockr.com David Cogen

        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

          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.

  • ramzy

    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