Thanks to HTC’s amazing policy on unlocking bootloaders (essentially that they promise to always allow you to do so), rooting an HTC device isn’t too hard and the HTC One M8 is no different. It may seem like a lot of steps, but they are all relatively easy and fool proof (since we don’t have to hack the device, again, thanks to HTC allowing us to do this).
In this procedure we’ll be using Hasoon’s All-in-One toolkit to help automate the process of unlocking the bootloader of the HTC One M8, then flashing a custom recovery, and then installing SuperSU to manage what applications get root permissions, etc.
Why should you do this you ask? Well, a lot of reasons including:
- Remove apps that were preinstalled by your carrier/manufacturer from your device.
- Free up storage space (because of the above benefit).
- Increase battery life (apps that might have been running constantly can be removed).
- Increase performance (after removing apps that are always running, the device will be less bogged down and run smoother).
- Update to a new version of Android (by flashing a custom recovery/ROM, see the end of this procedure for more info on that).
- Tons of other customizations when you use your new found administrative rights to flash a custom ROM (again, see the end of this procedure for more info on that).
Interested? Good! Then here’s a video on how to root the HTC One M8. Good luck!
I. Before You Begin
1. This will work on all models of the HTC One M8 (AT&T, T-Mobile, Sprint, and International Models). Apparently, Verizon has blocked their devices from being able to use HTC’s bootloader unlocking tool, so they are stuck for now unfortunately.
2. Make sure your battery is over 75% charged to ensure it doesn’t die unexpectedly during this process.
3. This process may void all or parts of your warranty according to HTC.
4. This will erase all the information on your device, so be sure to save anything you want to keep to your computer before continuing.
5. This only works for PCs.
6. On the HTC One M8, go to Settings > Battery Manager > Turn OFF Fastboot.
II. Download and Install the Toolkit
1. Head to my Google Drive here and download the latest version of the toolkit you see on that page and save it to your desktop.
2. Download WinRar and install that so you can extract his toolkit if you don’t have a way to extract .rar files already.
3. After installing WinRar, right-click the toolkit .rar file you downloaded earlier and select extract all.
III. Unlock Your HTC One M8’s Bootloader
1. Open the toolkit.
2. Select Download HTC Drivers and click Go.
3. Install the drivers.
4. Back in the toolkit, select Register at HTCDev and hit go (follow the steps on the HTCDev site to register or login if you already have an account).
5. On the HTC One M8, go to Settings > About > Software Information > Tap build number over and over until it tells you you are now a developer.
6. Go to Settings > Developer Options and turn ON USB Debugging.
7. Plug the HTC One M8 in via USB.
8. Highlight Get Token ID and click Go.
9. Close the command prompt when the device enters Fastboot mode.
10. Right-click in the second command prompt and select Mark and copy everything from <<<< Identifier Token Start >>>> to <<<<< Identifier Token End >>>>> and paste it into a text editor for later use.
11. Highlight Submit Token ID and hit Go.
12. Login to HTCDev and then go to HTCDev.com and click on Unlock Bootloader.
13. Select the HTC One M8 from the drop down on the right and click Begin Unlock Bootloader.
14. Skip the steps and hit next until you get to a text box to input the Token ID.
15. Paste your entire Token ID into the text box and click Submit.
16. Save the Unlock_code.bin file that is emailed to you to your desktop.
17. Highlight Unlock Bootloader and click Go.
18. Select the Unlock_code.bin file and click OK.
19. On the device, use the volume button to highlight Yes and push power to select it.
20. Go through your setup process when it reboots.
III. Flash a Custom Recovery on the HTC One M8
1. Reenable USB Debugging by going to Settings > About > Software Information > Tap build number over and over until it tells you you are now a developer.
2. Go to Settings > Developer Options and turn ON USB Debugging.
3. Highlight the custom recovery you want to flash (the ones labelled for specific carriers i.e. Sprint must be used if using that version of the device) and click Flash Recovery.
4. When the device boots back into Fastboot mode, close the first command prompt.
5. When it says finished in the second command prompt, close it.
6. Using the volume buttons to navigate and power to select choose Reboot on the device.
IV. Root the HTC One M8
1. Highlight Perm Room under Extras and click Run.
2. After you see that a file transferred, close the first command prompt.
3. Once the device reboots into recovery mode, tap on Install.
4. Select the SuperSU.zip file and swipe to flash it.
5. Tap Reboot > System.
6. All done!
V. Gain S-Off on the HTC One M8 (Optional)
1. Now that you have root and a recovery image, the next thing to do is to gain S-Off so you have total access for flashing fancy ROMs and tweaks (like the Harman/Kardon audio enhancements). Head to my How To Gain S-Off on the HTC One M8 video to do that.