How to Unroot Rooted HTC One X!

For those of you on stock rooted ROM on the HTC One X (not a custom ROM), it’s very easy to unroot your rooted HTC One X.

What we will need to basically do is remove the su binaries from /system/bin and /system/xbin folder, also remove Superuser.apk from /system/app folder.

Then we will re-install the stock recovery, which will completely unroot your rooted HTC One X just in case you need to return the phone for warranty or other miscellaneous reasons.

Step 1. Download ES File Explorer app from the Play Store and run the app.

Step 2. Choose Menu->Settings.

Step 3. Make sure “Root Explorer” and “Mount File System” are checked ON.

Step 4. Choose “Favorites” then hit “/”.

 

Step 5. Browse to /system/bin/ and /system/xbin/ directories and erase any files named “su” if they exist. (they should exist in both or just in one of the directories.)

 

Step 6. Next, go into /system/app/ directory and erase Superuser.apk.

Doing Step 5 and Step 6 completely removes root and Superuser from your phone.  We are almost done but you have to re-install stock recovery so go to Step 7.

Step 7. Hold down Volume Down and Power button together for about 10 seconds until you are in bootloader mode.  Choose “FASTBOOT” and hit Power button and connect your HTC One X to your computer via micro-USB cable.

 

Step 8. Download OneXUnroot.zip and unzip to your Downloads folder.

Sponsored Links


Download OneXUnroot.zip

Sponsored Links


Open up a command prompt for Windows or terminal for Mac/Linux and type:

cd Downloads

cd OneXUnroot

For Windows:

fastboot flash recovery recovery.img

For Mac:

chmod 755 *

./fastboot-mac flash recovery recovery.img

For Linux:

chmod 755 *

./fastboot-linux flash recovery recovery.img

Step 9. Next, you will probably want to do a factory reset in stock recovery to clear all your personal settings and apps.  You can stop here though if you are not returning your phone to store.

Hold down Volume Down and Power button together for about 20 seconds.

 

Step 10. Choose “RECOVERY” and hit the Power button.  You should also noticed that your HTC One X has been “RELOCKED”.

Step 11. Once you get a screen like below, hit the Volume Up and Power button together until you see blue menus, which is the stock recovery.

Step 12. Choose “Wipe data/factory reset”.

Step 13. Choose “Yes”.  When it’s done, simply reboot.

Step 14. Your HTC One X should now be completely back to factory status.

 

Make sure you backup/erase all of your personal photos/videos on the internal storage of your HTC One X before you return it for warranty.

 

VN:F [1.9.20_1166]
Rating: 6.4/10 (9 votes cast)
How to Unroot Rooted HTC One X!, 6.4 out of 10 based on 9 ratings

Want to stay updated on latest HTC One X Root news?
Sign up for our One X Root Newsletter here so you don't miss a single tip!
Categories: One X Unroot.
Check out other custom ROMs!
Recent Android News from HighOnAndroid.com

160 Responses to How to Unroot Rooted HTC One X!

  1. Ash says:

    I can’t extract the zip file.It says it’s corrupt or empty. What do I do?

  2. Ryo says:

    I can’t download OneXUnroot.zip

  3. Arul says:

    Aah “Relocked” and you don’t think that would be a giveaway, when you take it back for warranty?

  4. raymond yap says:

    thanks dude…it’s really works…

  5. faizan says:

    hey bro it really worked from root to unroot , the only problem is i followed everything n its working great just that i can’t update the phone as soon as i update its like the screen u get when u r clicking recovery and it just froze there and nothing shows up and phone restart
    plz bro can u help me with that

  6. zerocool says:

    iv done it but under “RELOCKED” it says “Security Warning” and will not boot the loaded ROM … it will only always boot into bootloader 🙁

  7. Hammad says:

    same with me ….
    i relocked and when reboot it goes to bootloader

  8. Mauro says:

    Hi all !, I would like to root my HTC one X also . But I dont want to lose my data (games , savegames , etc) , and the backup apps I ve found work only to save photos or contacts , others backup apps “work” with data also (they say so ) , but only if u have an SD card and this phone doesnt come with SD expantion slot 🙁

    Any help?

    Thx

  9. russ causier says:

    can someone explain how to get out off bootloader please im completly stuck now

  10. shern says:

    HEY! can u do a vid on how to unroot on custom rom? i lost my recovery :/

  11. John says:

    Connectivity not working after unroot. No signal, no wifi no nothing.

  12. Aron says:

    You forgot to write out “fastboot oem lock” in the instruction list, it’s only in the video and the screenshot.

  13. Andrew says:

    hi, im on the at&t htc one x. i rooted the phone and deleted some stock att apps. i now decided that i wanna bring the phone back to at&t and wanna unroot the phone. is there a way to get it back to the exact original factory default.

  14. Eugene says:

    Hi there, thanks for the great post. But now I’m stuck with getting into recovery mode even after reflashing recovery image. whenever I try to get recovery mode from bootloader, it gives me a little phone picture and a red warning sign… Please help me out here 🙁

  15. Eugene says:

    and also having the same symptom like other guys..
    stuck in bootloader mode and can’t boot it normally…….

  16. tarick says:

    Step 5, I’m unable to delete su file. it written, file unable to delete… how can I fix it?

  17. Sharona Witlox says:

    I cant find bin anywhere.
    Im stuck at step 5.
    Please help me!

    • Peter says:

      when using ES file explorer, do the following:
      go to menu (tap 3 dots at the bottom of the screen)
      tap settilngs
      tap Home Directory
      on the line you type “/” without quatas and tap ok
      then, when you return to main screen of ES explorer enter any folder.
      when you have entered the folder, you will see that the first icon which is on top left side has changed into little house.
      when you tap this little house, you will enter the root folder.
      you’re in

  18. Steve Geller says:

    Any ideas here? I too get the phone image with the red warning sign. Of course, I was trying to fix the HTC antenna issue with rooting the phone, as a possibly. I also get *** TAMPERED *** when I go into the factory reset screen. I can send a pic of it if needed. Since rooting didn’t seem to help, I want to unroot and send back for a warranty exchange.

    Steves-iMac:OneXUnroot steveboysroom$ ./fastboot-mac flash recovery recovery.imgsending ‘recovery’ (5790 KB)… OKAY
    writing ‘recovery’… INFOsignature checking…
    FAILED (remote: signature verify fail)
    Steves-iMac:OneXUnroot steveboysroom$

  19. Alexander Osae says:

    HI…PLS I DIDNT BACKUP MY STOCK ROM, HOW CAN I GET ONE TO DOWNLOAD???

  20. Alexander Osae says:

    AV TRIED D PROCESS USING A STOCK ROM BUT WHEN I GET INTO BOOTLOADER, I STILL DO NOT GET THE RELOCKED TAG AT THE TOP…. WHAT AV I DONE WRONG???

  21. Ant says:

    Hi, will not let me complete step 3 on my handset.

    • Ant says:

      Hi I would like a full guide on how to revert my phone back to fac settings with original rom. This has totally messed my phone up, i can no longer do simple tasks like download messages or send images and a lot more, i have tried this instruction but phone will not allow me to do instruction (3). Please help! Thanks

  22. Rami says:

    Plus on the HTC boot up logo screen it says in red text “This build is for development purposes only Do not distribute outside of HTC without HTC’s written permission. Failure to comply may lead to legal action”

  23. Jake says:

    Does anyone know the command to lock the bootloader for mac??

    thanks

  24. Anthony says:

    Max, can you please solve a few issues since rotting. I cannot send pic messages, text messages over 30 or so letters, have no network other than wifi (ive input correct APN from 02). Im happy with the root just need these peoblems dealing with as it has been in this state now for a couple of weeks. Thanks

  25. Anthony says:

    Can I install custom stock rom (bloatware removed) in unroot mode? If so, how?

  26. haqst says:

    If I unroot my OneX, will the HTC’s original “stock” Rom also restore to the phone or does the custom rom still be in the phone?

  27. David says:

    Max,

    Once I unroot it, it says **RELOCKED** in the bootloader mode.
    Anyway to unroot it and become **LOCKED** in bootloader mode?

    • Max says:

      You have to use RUU, but you don’t need to do that unless you are returning your phone for warranty, r u returning your phone for warranty?

      • Nicholas says:

        I am returning my phone for warranty and I am stuck in “This build is for development purposes only Do not distribute outside of HTC without HTC’s written permission. Failure to comply may lead to legal action”