How to Root the HTC One M8

HTC One M8

By rooting (aka gaining admin rights to) your HTC One M8, you can install a custom ROM, run rooted apps, undervolt or overclock the processor and even remove all the bloatware your carrier put on the phone. A developer over on the XDA developer forums called Hasoon2000 has created a great toolkit for automating the process. Just change a few settings on the phone, install the drivers, click a few times in the toolkit and  you’ll open the door to an entirely new world of custom modifications, tweaks, and ROMs becomes.

Here’s how to root the HTC One M8:

Note: This method only works on Windows so you need a Windows computer to complete this procedure. 

1. Go to Settings > Battery Manager > Turn OFF Fastboot on your phone.


2. Download the latest version of the developer’s toolkit and save it to your Windows desktop.


3. Download and install WinRar so you can extract the .rar file from the developer.




MORE: 5 Ways to Speed Up Your Android Phone in Under 5 Minutes

4. Right-click the toolkit .rar file you downloaded earlier and select extract.


5. Double-click the One M8 .exe file inside the newly created folder (and give it permission to open if it’s blocked by Windows).


6. Highlight Download HTC Drivers and click Go.


7. Install the drivers once they download.


8. Highlight Register at HTCDev and click Go.



9. Register on HTCDev (make sure to use a real email as we’ll need something sent to it later) and confirm your account.


10. Go to Settings > About > Software Information > More > Keep tapping on Build Number until it says you are a developer.


11. Go to Settings > Developer Options > Turn USB Debugging On.



12. Plug your device in via USB.



13. Check “Always allow” and tap OK.


14. Highlight Get Token ID and click Go.


15. Close the first command prompt when your device shows Fastboot mode.


16. Copy everything from and including <<<< Identifier Token Start >>>> to <<<<< Identifier Token End >>>>> and save it somewhere on your computer.


17. Highlight Submit Token ID and click Go.


18. Log in to the HTC Dev site when it appears and then go to and click on Unlock Bootloader.


19. Choose your device from the drop down and click Begin Unlock Bootloader.


20. Skip all of the steps and just click Next until you get to the part where it asks you to input the Token ID.


21. Paste the Token ID we copied earlier into the text box and click Continue.


22. Save the Unlock_Code.bin file you receive by email to your desktop.


23. Highlight Unlock Bootloader and click Go.


24. Choose the Unlock_Code.bin file when prompted and click OK.


25. Use the volume buttons to highlight yes and the power button to select it when prompted by your device.


26. Reenable USB Debugging by going to Settings > About > Software Information > More > Keep tapping on Build Number until it says you are a developer.


27. Go to Settings > Developer Options > Turn USB Debugging On.


28. Highlight the recovery for your device and click Go.


29. Close the first command prompt when your device shows Fastboot mode.


30. Close the second command prompt when it says finished.


31. Use the volume buttons to highlight Reboot and push the power button to select it.


32. Highlight Perm Root under Extras and click Go.


33. Close the first command prompt after it shows something was transferred.


34. Tap on Install in recovery mode and tap the file.


35. Swipe to install it.


36. Tap Reboot > System.


37. You should see SuperSU in your app drawer if everything worked out. Enjoy!




David Cogen’s site,, is a popular site for rooting, jailbreaking, hacking, modding, and other how to’s to show you how to unlock your device’s true potential. If you want to see what you can do with your HTC One M8 now that it’s rooted, head to the ROM repository to flash a custom ROM and open up a new world of possibilities.

Email* (will not be published)
*Indicates required field
Submit Comments

  1. yuppicide Says:

    I’ve had a few phones over the years, but have never actually rooted one. I did read up on it and I wonder why is it that most root tutorials I read are missing steps or incomplete? This one is no different. A few of the steps were different or not mentioned, but I did manage to figure things out on my own, so still a big thanks from me. My phone is rooted and those pesky Sprint apps are gone!! Bye bye Facebook app I do not use!

    There’s a few things I needed to figure out on my own, but an example one one of the steps says “31. Use the volume buttons to highlight Reboot and push the power button to select it.” and then the next step says “32. Highlight Perm Root under Extras and click Go.”.. this does not work.. reboot reboots your phone into Android and then you cannot transfer the file over. I figured out that I needed to use the Power / Vol – button and go back to Fastboot USB I believe.. or maybe at that step it was Recovery. Eitherway I figured it out.

  2. Mickyarams Says:

    Nice straight forward walkthrough, Evrything worked. Thanks!

  3. GrahamG Says:

    Really straightforward step-thru of the M8 rooting process. Followed instructions to the letter and within 20 mins (which included a coffee break!) I’d rooted my brand new HTC One M8. Job done. A big thank you for putting this together.

  4. Erick Says:

    I got to step 30 and the command prompt says failed data transfer unknown error cant go any further

  5. marco Says:

    where i can find htc drivers for win7?

  6. tagvor Says:

    Really straight forward and worked great. Thank you

  7. Akira Says:

    1.I had follow this website step let HTC M8 Root
    2.But HTC Offical have new release upgrade for G4 patch program
    3.Can not upgrade part 2.
    It always show the Team Win Recovery Projoct Program …
    4.How to upgrade and keep Root ?

  8. Alex Says:

    i got too step 34 “Install in recovery mode” but i don’t see that coming up on my phone.
    what do I do?

All Product Types Accessories Cars Digital Camcorders Digital Cameras eReaders GPS Laptops MP3 & Video Players Projectors Smartphones Software Storage Tablets / MIDs VoIP Wi-Fi
All Subcategories
All Subcategories All-Purpose Budget Business Desktop Replacement Gaming Multimedia Netbook Nettop Rugged Student Tablet PCs Ultraportable
Acer Alienware Apple Archos ASUS Averatec BenQ CTL Corp. Dell Digital Storm eMachines Emtec Everex Fujitsu GammaTech Gateway General Dynamics Getac Gigabyte Hercules HP HTC iBuyPower Intel Lenovo MSI Nokia Nvidia OCZ OLPC OQO Origin Panasonic Sager Samsung Sony Sylvania Systemax TabletKiosk Toshiba Verizon Viewsonic Viliv VooDoo Workhorse PC ZT Systems
Minimum Rating
Any Rating 4.5 Stars 4.0 Stars 3.5 Stars 3.0 Stars
Screen Size
10 11 12 13 14 15 16 17 18 20 4 5 6 7 8 9
1024x576 1024x600 1024x768 1200X800 1280 x 720 1280x1024 1280x768 1280x800 1366x678 1366x768 1440x1050 1440x900 1600x768 1600x900 1680x1050 1680x945 1920x1080 1920x1200 800x400 800x480
Weight Range
10.1 - 12.0 pounds 12.1 - 14.0 pounds 14.1 - 16.0 pounds 2 lbs 2 pounds and under 2+ lbs 2.1 - 4.0 pounds 4.1 - 6.0 pounds 6.1 - 8.0 pounds 8.1 - 10.0 pounds Over 16 pounds Under 2 pounds
more options