How to Root HTC Desire X Running Jelly Bean 4.1.1

HTC Desire X Root

HTC Desire X Root

In this tutorial you will learn how to root your HTC Desire X running Jelly Bean 4.1.1. You will also be unlocking the Bootloader and installing a Custom Recovery on HTC Desire X. The process is fairly simple but does involve the risk of bricking your device, Hence I suggest you proceed with caution and at your own risk.

Backup!

Before you do anything else, First Backup your important files like Contacts, SMS, Applications, Notes etc. This will come in handy once you wipe clean your device. You can find my guide explaining how to backup your android.

Once you have finished Backing up your essential files, Lets get started with rooting your HTC Desire X. I will be dividing the article into parts based on different tasks such as Unlocking bootloader, installing custom recovery etc. I suggest you create a New Folder on your Desktop or on any Drive where you can download all your HTC files and work on rooting.

Install HTC Desire X Drivers.

Before you start the rooting process, You need to have all the drivers setup on your computer so that the process finishes smoothly else you might need to pause in between and keep installing new drivers that it finds. So why not have it all setup in the beginning itself?

Step 1. Download the latest HTC Driver Installer.

Step 2. Install the package you just downloaded.

Step 3. Enable USB Debugging in your Android, To do that visit Settings > Scroll down to Developer Options (turn it ON) > Tick the USB Debugging option.

Step 4. Turn OFF your HTC, Connect your Phone to PC via USB > Turn ON the phone. Let Windows install any other drivers it might find.

Setup Android SDK.

This part is essential and will prove highly useful in future. So atleast have the SDK downloaded.

Step 1. Download Android SDK.

Step 2. Extract the ZIP to a folder.

Now the most useful part in this SDK for you at the moment will be the \sdk\platform-tools folder because it contains the ADB and Fastboot files.

Unlock HTC Desire X Bootloader.

Unlocking bootloader gives you access to certain partitions of the system that are inaccessible to normal users. These include the Boot partition, System partition and recovery. After you unlock bootloader, You can make changes to these partitions which in short lets you flash custom recovery, ROM and other custom mods. Hence this forms the base of Rooting your HTC Desire X.

Unlocking Bootloader Factory Resets your Device, So once I again I urge you to take backups.

Step 1. Register an Account on HTC Developer Site and verify your Email.

Step 2. Download this WinDroid HTC Desire X Toolkit. UPDATE : WinDroid Toolkit

Step 3. Extract the Zip and Run WinDroid HTC Desire X Toolkit.exe as Administrator.

WinDroid Unlock Bootloader

WinDroid Unlock Bootloader

Step 4. Click on Get Token ID, Your device will boot into Bootloader and a Command Prompt will appear which you need to close.

Close this window

Close this window

Step 5. After you close that window, Another Command Prompt will appear with a long series of strings. From that command prompt, Copy everything from <<<<Identifier Token Start>>>> to <<<<Identifier Token End>>>>.

  • To copy, Right click on the black window > Select All. Then press Ctrl+C > Open a new Notepad and paste it there.
  • Erase everything above the <<<< Identifier Token Start >>>> and below the <<<<< Identifier Token End >>>>> lines. Also use Search and Replace to remove the INFO word from every line.
Copy Token

Copy Token

Step 6. Re-login to your HTC Dev account in case the session expired, Then Click on Submit Token ID button > Scroll to the bottom of the page that opened and paste in your Identifier Token and click Submit as shown in the image below.

Enter Identifier Token

Enter Identifier Token

Step 7. Login to your Email Account with which you registered on HTC Dev, Look for an Email from HTC Dev which contains your Bootloader Unlock Binary File, Download it.

Step 8. In case you are still in the Bootloader mode, Use the Volume Buttons to choose REBOOT option and press Power Button to reboot your device, Now Click the Unlock Bootloader button on WinDroid and follow the onscreen instructions to unlock your Bootloader successfully.

Step 9. To check if you have successfully unlocked your bootloader or not, Go to the sdk/platform-tools/ folder and open a Command Prompt in this folder (Tip : Press Shift and Right click anywhere in the folder > Open command window here).

Connect your Phone via USB.

Type this command into command prompt.

adb reboot-bootloader

Step 10. Once you are in the Bootloader, Check if you see a *** UNLOCKED *** text on the top of the screen. If so you have unlocked your HTC Desire X Bootloader else redo the steps.

Install TWRP Custom Recovery on HTC Desire X.

Custom Recovery is essential to flash ROMs and other Mods, Also you can take Nandroid backup of your HTC Desire X with a Custom Recovery installed. You can either use the One Click option in WinDroid to install the Custom Recovery or follow this manual method.

Step 1. Download TWRP Custom Recovery for Jelly Bean HBOOT.

Step 2. Copy the recovery.img file to your sdk/platform-tools/ folder.

Step 3. Open command prompt there and enter the following commands.

To reboot your phone to bootloader.

adb reboot bootloader

To Flash the custom recovery.

fastboot flash recovery recovery.img

followed by

fastboot reboot-bootloader

and

fastboot erase cache

To Reboot your phone.

fastboot reboot

Step 4. Now you have installed a custom recovery on your HTC Desire X. To boot into Custom Recovery, Either turn OFF your phone then press and hold the Volume Down button and Power button or else enter the following command in platform-tools folder.

adb reboot recovery

Root HTC Desire X

Now you have completed 90% of the tasks, Now you just need to install the Super User binary in order to gain root privileges on your HTC Desire X.

Step 1. Download the latest SuperSU Flashable Zip.

Step 2. Copy it to your SD Card.

Step 3. Boot to Custom Recovery (method shown above).

Step 4. Select Install > Browse to your SD Card and Select the SuperSU Zip and Swipe to Confirm Flash.

Step 5. Go Back and Reboot > System.

Now you have successfully Rooted your HTC Desire X.

To check if you are rooted or not, Install Terminal Emulator app from Play Store and Open it. Type in ‘su’ without quotes and press enter, If a popup appears asking you to Grant or Deny root access then your device is rooted.

Sources.

WinDroid HTC Desire X Toolkit Thanks to WindyCityRockr.

TWRP Custom Recovery Thanks to neXus PRIME.

SuperSU Thanks to Chainfire.

Now that you are rooted, Endless possibilities to increase your device’s performance and appearance has been unlocked. I will be writing a tutorial to install custom kernel on HTC Desire X and many more related guides.

If this article helped you, Share it with your friends on Facebook, Twitter and Google Plus.

Comments

  1. Ashik Sujath says

    Thanks. It worked.. I got my phone rooted. can you suggest a good custom rom for htc desire x? Thanks again.. :-)

  2. Jason says

    trying to use the WinDroid HTC Desire X Toolkit but it does not seem to open up the command window on win 8…is this due to win 8 or something else as the phone goes into bootloader mode but the command window does not open

  3. Rajat Narang says

    I rooted my desire x by this method…and got successful bt after that when i powered it off and tried to power it on…it didn’t powered on.Only the orange light is appearing when i am connecting it to charger or pc.I think it has been bricked.I am new to this thread…So please help me!!!

  4. Vinay says

    I am not seeing WinDroid HTC Desire X Toolkit.exe in downloaded zip file. I have downloaded cm-11-20140623-UNOFFICIAL-d2lte.zip. Is this right one. Could you please help me?

  5. Aditya says

    You did not show how to turn the S-OFF. I have read that it is safer to S-OFF while rooting otherwise there is a high chance of bricking.

    • says

      Unless you need to write into the System partition while running Android, you don’t need S-OFF. It’s easier to mess up the phone if you have S-OFF and don’t know what you are doing.
      Having Root with S-ON will still allow you to perform majority of root operations.

  6. raj saini says

    me rooted my phone sucesfully but insta root checker n chek my rooted or not the show msg ur phone not rooted properly whats is the meaning of this msg

    • says

      Turn off your phone. Connect it to Windows and then turn on the phone. Let it install all the drivers.
      Are you on Windows 8.1? Then you have to turn on the Test Mode in Windows to install new drivers (for most phones).

  7. Branko says

    Step 10. Once you are in the Bootloader, Check if you see a *** UNLOCKED *** text on the top of the screen. If so you have unlocked your HTC Desire X Bootloader else redo the steps.
    to me writes locked

    • says

      Then you cannot unlock your Bootloader officially with the unlock code from HTC. I am not sure if there is any unofficial methods out there. You can query it in the XDA forum.

  8. Ramkishan says

    Hi,

    I successfully rooted HTC Desire X. I deleted the system apps using Root App Delete. After that I restarted my phone after that, all those deleted apps appeared again.
    I tried rebooting after clearing the cache and dalvik cache instead. That time it showed progress bar android is upgrading optimizing apps 1 out of 15..

    Can you please suggest?

    • says

      That is because your device has S-ON. You have either of these options to remove system apps permanently.
      1. S-OFF and remove them again using Root App Delete.
      2. Boot into Recovery > Mount all partitions > Delete the .APK and .ODEX file using the file manager. Reboot.

      Hope it helps. :)

  9. jgraaf3 says

    followed all steps(on Desire X with android 4.1.1) – thanks for the steps. Unfortunately it fails on the last step. I unzipped ‘SuperSU’ as instructed using recovery. That says it is successful (though I do see a message it cannot mount /cache). The complete feedback is:
    ******************************
    SuperSU installer ZIP
    ******************************
    – Mounting /system. /data and rootfs
    – Extracting files
    – Disabling OTA survival
    – Removing old files
    – Creating space
    – Placing files
    – Restoring files
    – Post-installation script
    – Unmounting /system and /data
    – Done!
    Updating partition details…
    E:Unable to mount ‘/cache’
    … done

    When I then tap ‘Reboot’ it says the device does not appear to be rooted and asks if I want to install SuperSU now. So I swipe to do that. Then it reboots automatically.

    Once rebooted I get a notification from SuperSU installer saying that “SuperSU’s su binary is not present, this is a fatal error!”

    When I check with the terminal emulator, it cannot find ‘su’. Checking with “ls /system/bin/* ” it shows no su binary there…

    I have tried this with the SuperSU that windroid can flash automatically, and also with the UPDATE-SuperSU-v2.40.zip as instructed in your post. Both have the same result.

    how to install su properly? is it a problem that /cache cannot be mounted (if so – how to fix that)?

  10. michal says

    please i need help when it goes in that booting mode on mobile (that white screen when u are controling it with volume) it says on my win 8.1 that USB device not recognized i dont know what to do help me pls

      • shymchack says

        Hi, i’ve got the same problem on my Win 8.1 Pro. WinDroid toolkit causes (as expected, I think) smartphone reboot, then comes something like boot menu… When I select “Reboot” it is starting properly, but token id is still “being got” in WinDroid. What to do?

        • shymchack says

          I’ve tried on windows 7 – same steps, same device, same tools – everything was ok and root process finished successfuly.

  11. TubbyStubby says

    Hey thanks for this tut. it helped in rooting my phone succesfully, and pls can you reccomend a good custom rom for htc dx.

  12. pablo.boni says

    I completed all the steps, but when i finally rebootrd my phone there is a notification that says i must install su for a full root. I taped it and a message says “Ghere is no SU binary installed, and SuperSU cannot install it. This is a problem!” Have I done something wrong? Please help I don’t know what to do.

  13. shridhish says

    i get this error when i submit the token ” Error Code: Invalid Bootloader Token Length.
    Error Reason: The submitted Token appears to be the wrong length and won’t work.” ive tried copying properly, but still i get the same

  14. Hrishikesh says

    hii
    have htc desire x.i have unlocked the bootloader, also flashed the super su.. but it shows ‘no su binary installed and super su cant install it. this is a problem.’ from where to get binaries ?
    pls tell some solution..

Leave a Reply

Your email address will not be published. Required fields are marked *


1 + three =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>