How to Unlock Bootloader and Gain Root Access to Your HTC One Smartphone with ClockworkMod or TWRP Custom Recovery
HTC's 2013 flagship smartphone, One, recently received an official Android 4.2.2 Jelly Bean update featuring several new additions and system improvements. A powerful phone such as HTC One can do more with root access and custom recovery for flashing custom ROMs, admin privileges and full control over CPU.
Warning: Rooting your HTC One voids any warranty it may possess. We are not liable for any damages which may occur on your smartphone. Read and follow the instructions carefully to prevent damaging your handset. Do this at your own risk.
A. Unlocking Bootloader
1. Enable USB debugging on your device before proceeding with any of the procedures below.
2. Create an account on the HTCDev.com Web site.
3. Download the ADB/Fast boot files on your computer then create a folder named "fastboot" then place the files you have downloaded inside that folder.
4. Go to www.htcdev.com/bootloader/ then select "All other supported models > begin unlock bootloader."
5. Select "Yes" then tick both boxes and choose "proceed." Skip the step 8 at this point.
6. Turn off your HTC One by holding the power key for 10 seconds then power it up by press and holding both the power and volume down keys.
7. Select "fastboot" by using the volume keys and power button.
8. Connect the HTC One to the computer using a USB cable.
9. Open a command window in the fastboot folder. Shift + Right Click to do it or press Start + R and CMD then hit enter.
10. Inside the command window type: fastboot oem get_identifier_token
11. Copy the identifier token and paste it to the HTCDev Web site. There is a box provided for you and click submitted once you've entered the identifier token.
12. Go the email address of your HTCDev account and hit the link with instructions of your "unlock_code.bin"
13. Download the "unlock_code.bin" from your email and save it to the "fastboot" folder.
14. Go back to the command window then type: fastboot flash unlocktoken unlock_code.bin
15. See you phone's display and press volume up to accept then use the power key to confirm.
B. Installing Custom Recovery
Before rooting, it is recommended installing a custom recovery app first on your device.
1. Install the Android SDK on your computer. Click here to know how to do it.
2. Download ClockworkMod recovery or TWRP to your computer.
3. Copy the recovery file you have downloaded and paste it to the "fastboot" folder. If you are using Android SDK, paste the file to "platform-tools" folder.
4. Rename the downloaded custom recovery file into "recovery.img"
5. Connect your HTC One to the computer.
5. Open a new command prompt on the folder where the custom recovery file is. Then type fastboot flash recovery recovery.img
6. Your HTC One now has a custom recovery app installed.
C. Root Access for HTC One
You can choose either SuperSU by Chainfire or SuperUser by koush to get root access on your HTC One smartphone.
1. Download SuperSU or SuperUser on your computer.
2. Switch on your HTC One and connect it to the computer then copy the downloaded rooting kit zip file and paste it to the SD card of the smartphone.
3. Disconnect the handset and turn it off. Once the phone vibrates, press and hold volume down and power keys to reboot into bootloader.
4. Highlight "Recovery" using the volume keys and select it by the power button.
5. Select "install zip from SD card > choose zip from SD card" then choose the SuperSU or SuperUser file you have copied earlier.
6. After the installation, go back to the main menu then select "reboot system now." Your HTC One will reboot automatically.
Congratulations! Your HTC One has unlocked bootloader, custom recovery and root access. Have fun installing MODs or ROMs on one of the most powerful smartphone in 2013.
For any questions or issues, send your feedback to XDA Developers HTC One rooting guide.