One of the reasons why everyone loves HTC is that they realize the potential behind a fully unrestricted Android device and better yet, they fully support it and allow you to take part in it without the need to hack your way through anything. So in spirit of this generous gesture, we present to you a step by step tutorial that will help you root your HTC One M8. This method works for both Android 4.4.4 KitKat and Android 5.0/5.0.1/5.0.2 Lollipop and is compatible with all models of the device.


To get started right away, you need to get the needed tools here: Rooting Tools

It is also mandatory that you first deal with unlocking the company’s Bootloader software. While this may sound confusing at first, it really isn’t and definitely beats having to hack through the devices’ system. As easy of a step it is, it’s not one we will be talking about. If you want to unlock your device’s bootloader, then please have a look at How to unlock Bootloader before proceeding any further.

As always, make sure to back up all of your data, make sure your smartphone has at least a 70% battery charge and please, MAKE SURE that you have READ THE INSTRUCTIONS thoroughly a few DOZEN times. We are not at all liable for any kind of damage that may happen to your during or because of this process.


  1. First and foremost, download the SuperSU zip file on to your computer. With this you can’t start rooting HTC One M8!
  2. Make sure that the “Fast Boot” option is not checked. This can be done by going into the Settings menu and then to Power.
  3. Turn off your device and restart it, holding down Volume Down and Power buttons for about 3 seconds to bring up the bootloader menu.
  4. Press the button on the device and you are now in FASTBOOT
  5. Connect the device to your computer, via a USB cable.
  6. Transfer the SuperSU file onto your device’s SD card.
  7. From the menu that appears, make sure you select Flash zip from SD Card, using the volume keys to navigate and find the location where you stored the file from step 6.
  8. Initiate the installation.
  9. Once the installation finishes, go to the main menu and select Reboot System Now to reboot your smartphone.

So again, make sure that you get the needed tools first before starting. Get them here: Rooting Tools

And with that, you have rooted your HTC One M8 and are now free to make the most of your device. Have fun!


This tutorial explains how to root your HTC One M8, the t-mobile version.

Before starting make sure that you have taken backup of all data and make sure that your phone’s battery is well charged.

Step 1 : Go to Settings -> Manage Applications -> Development -> USB Debugging. Make sure

USB Debugging is checked on.

Step 2 :  Connect the HTC m8 T-mobile to your computer through a data cable.

Step 3 :  You should now got to  and download the file. Once the file is downloaded uncompress it.

If you are using a Windows computer you have to install a driver(HTCDriver_4.1.0.001.exe). You can download this file from this link .

If your computer runs on Linux or Macintosh operating system, then there is no need to install any driver.

Step 4 : Open the terminal or command prompt on your computer and type in the following commands.


cd Downloads

chmod 755 *

cd HTCOneRoot

./adb-linux backup -apk -all -f backup.ab

For Macintosh:

cd Downloads

cd HTCOneRoot

chmod 755 *

./adb-mac backup -apk -all -f backup.ab

For Windows:

cd Downloads

cd HTCOneRoot

adb backup -apk -all -f backup.ab

Step 5: On the phone choose Backup my Data, to back up all the app and app related data. After the entire process of backup is done go to the power option in Settings and uncheck the Fast boot option.

Step 6:  Press the power button and hold down the Volume button simultaneously till you get the bootloader menu on your phone. When you are on the bootloader menu press the power button again to enter Fastboot mode.

Step 7: After connecting the phone to the computer via data cable. Type the following commands in the terminal/command prompt.

For Linux :

sudo ./fastboot-linux oem get_identifier_token

For Macintosh :

./fastboot-mac oem get_identifier_token

For Windows :

fastboot oem get_identifier_token

You  will get an identifier token. Copy it.

Step 8 : Now go to . Create you login id if it does not exit. Login and the follow the instructions given there to get your unlock code. It would be mailed to your email as an attachment file named Unlock_code.bin.

Step 9 : Download the unlock code. After that copy it to the HTCOneRoot folder. Having done this you need to flash this code, type the following command.

For Linux :-

sudo ./fastboot-linux flash unlocktoken Unlock_code.bin

For Macintosh :-

./fastboot-mac flash unlocktoken Unlock_code.bin

For Windows :-

fastboot flash unlocktoken Unlock_code.bin

Step 10 : Now on your phone you will see the Unlock Bootloader option. Select Yes and then press the power button. The phone will reboot in a few seconds.

Step 11 : After the t-Mobile HTC one M8 reboots you will get the Welcome screen. Go through the setup process and sign in. After that copy the file in HTCOneRoot folder to HTC One’s internal storage. For Android 4.3 or higher use in place of

Step 12 : Switch off the phone and reboot to the bootloader menu to fastboot.

Step 13 : Now open the terminal/command prompt and type in the following command.

For Linux :-

sudo ./fastboot-linux  flash recovery openrecovery-twrp-

For Macintosh :-

./fastboot-mac  flash  recovery  openrecovery-twrp-

For Windows :-

fastboot  flash  recovery  openrecovery-twrp-

Then erase cache by typing :-

sudo ./fastboot-linux erase cache  (Linux)

./fastboot-mac erase cache            (Macintosh)

fastboot erase cache                      (Windows)

Step 14 : Now chose the Bootloader option in the phone and press the power button. After that choose the Recovery option and press the power button.

Step 15 : After recovery you will see the TWRP screen, select the install.

Step 16 : In the new screen select however for Android 4.3 and higher select

Step 17 : Now Swipe to flash this file. This in turn will show you how to root HTC one M8 and install SuperSu superuser app and SU binaries.

Step 18 : On the new screen you will find the option “Reboot System”, select it and the system will reboot. After reboot you will be able to see the “SuperSu app” in the app driver. The rooting is done successfully.

Restore Data

  • To restore the data type the following command in the terminal/command prompt.


./adb-linux restore backup.ab


adb restore backup.ab


./adb-mac restore backup.ab

  • On you phone you will be able to see an option Restore my data select that option.

All your apps are now restored.

Rooting your HTC one M8 T-mobile is pretty safe and easy if you follow the above mentioned steps. You can go ahead and root your phone.


To get started with the HTC One M8 Sprint root, you will have to first install CWM/TWRP. So I will have to show you the procedure to install CMW/TWRP first and then I will proceed to the second and final part where we learn how to change the privileges to our android device. You will need a computer, your device and the standard USB cable.

Your phone should be in the USB Debugging mode. So you should connect your device and go to “Settings -> Applications -> Development -> USB debugging”. Your phone must be at least 70% charged before you proceed. You data should also be backed up. This device uses Google Android 4.1.2.

Step I- Flash CWM/TWRP or Philz Recovery (In case you don’t have it installed already):

  1. Android SDK must be already installed on you system, if you don’t have it you can install it from here.
  2. Make sure that you turn off the android device before you root HTC One M8!
  3. Restart it in to the bootloader mode (you can do this by pressing Volume Down and power button together while restarting, for some seconds). Then select “fastboot” by using Up and Down Volume keys.
  4. You can download the required DV_Sprint files from here.
  5. These files should be extracted on your Computer’s Desktop.
  6. Connect your device using a USB cord to the computer.
  7. Select “DV_Sprint-HTC-One” folder. Open ‘cmd prompt’ (you can do this by holding and pressing the ‘shift’ key on the keyboard and while you do that click anywhere on the blank space within the folder and then select “open command prompt window here”).
  8. Now start typing in your cmd prompt window “fastboot flash recovery recovery-clockwork-” this will flash CWM recovery touch. The commands to be typed in the command prompt vary for the flashing of TWRP and Philz as “fastboot flash recovery openrecovery-twrp-” and “fastboot flash recovery philz_touch_5.08.5-m8spr.img” respectively.
  9. This will successfully install a custom recovery on our device.

Step II: Rooting HTC One M8 Sprint:

  1. First of all we need to get/download the root package on our computer from here.
  2. Now connect your device to the computer in Debugging mode and put the downloaded file in your device’s SD Card.
  3. Disconnect your phone by removing the cable.
  4. Switch off your phone.
  5. Now we need to enter the bootloader mode by pressing the power and Volume Down key at the same time for some seconds. Using the volume up and down keys select “Recovery”.
  6. We then select “install zip from SD card” and then “Choose zip from SD Card” from the recovery menu.
  7. From the SD card select your root package.
  8. The flashing operation is started.
  9. The M8 is now being rooted.
  10. Now we return to the main menu and select “reboot system now”.

You have now rooted Sprint’s HTC One M8. This also resulted in the installation of the recovery image (CWM/ Philz Recovery or TWRP).


HTC One M8 AT&T can be rooted but the process can be time consuming because it not only need the flash root exploit but it also need installation of CWM and to unlock bootloader. We need to follow a specific procedure. We follow the steps given below whenever we need to change the privileges of a user for our device. So far we haven’t come up with a one-click solution so we have to do a little struggle for this procedure. We need to follow all the steps very carefully because if any step goes wrong we may end up getting our device damaged or bricked. There are some pre-requisites for this procedure. The android version used by HTC One M8 AT&T is. We can root AT&T’s HTC One M8 by following the steps given below one by one:

  1. The first step would be unlocking our device’s bootloader, we can visit com to learn how we can unlock our device, and this webpage is officially supported by HTC. We can check this article.
  2. Copy flashable SuperSU in your device memory.
  3. Unlock the bootloader and now we install a custom recovery, We will get the TRWP or CWM recovery. By choosing the appropriate choice.
  1. We can get the fastboot fileshere. We have to first move recovery.img which was already downloaded in the same folder.
  2. Now we press shift and right mouse click to open the command prompt. We have to click in the same window.
  3. We will now enter the bootloader mode. We will restart our phone and press power button and volume down key simultaneously. This would enter the bootloader menu. Now with the help of up and down keys we select FASTBOOT.
  4. Connect your device now via a USB cable.
  5. Now start typing the command “fastboot flash recovery recovery.img” the name of the image may vary but we named it as “recovery.img”
  6. Now after the flash recovery, we will turn off the phone and repeat step 4. When you’ve entered the bootloader menu select RECOVERY menu. Now we will proceed to CWM recovery menu. We select install zip from SD card, look for the HTC One M8 AT&T root exploit file which was downloaded before step 3. Flash your device and then reboot your device.
  7. Now we did the M8 root, changed the privileges to the device we can now install Titanium Backup to create a full backup.


In this session, we will describe on how to root the HTC One M8 4.4.2 in some easy steps so that you can grasp process for onward application.  This will work on Mini, X+, M7 and M8 devices.


Sequential Procedure.

  • So before you can start rooting HTC One M8 running 4.4.2, go to Settings > Developer Options and get your USB Debugging
  • Now connect your device to your computer.
  • Go to Settings > Power and ensure that the fastboot is turned off.
  • Turn off your device and hold both Volume Down and Power button for the boot into the bootloade Choose fastboot and click the Power button to enter. During this make sure that your phone is connected to the computer.
  • Now open the Command Prompt and type “fastboot oem get_identifier_token” and then hit Enter.
  • On right click, select mark. Now select from the start of the first arrow in the token and continue to the last in the token end line. Now, copy this to your clipboard.
  • Go to com and register your account there if don’t have one earlier.
  • Now go to the home page and choose unlock bootloader and click get started.
  • Now from supported devices, scroll down to select your device and click begin unlock bootloader. When it ask if you still want to continue, hit yes. Check both the boxes agreeing with Legal Terms. Then, proceed to unlock instructions.
  • When appear the box asking token, paste the token that was kept copied earlier in your clipboard. Now click submit.
  • Go to the email inbox by which you registered your account with HTC and you will find an email in the inbox with the unlock code file. Download that to a safe directory.  Then, copy it to device’s Root File Folder.
  • Now, close the command prompts if that has not already done and open the Root File Folder. Click Shift and right click in the folder and then open a command prompt there.
  • In the command prompt type in fastboot flash unlocktoken Unlock_code.bin,   press enter and your device you show message asking if you still wish to unlock the bootloader.
  • Using the volume key navigate to yes and then use the Power key for selecting it.
  • Your device will now boot and fully wiped. Now, go through the setup process so you can start the HTC One M8 4.4.2 root.
  • Now, enable USB Debugging and disable the fastboot from the
  • Copy the SuperSu file from the Root File Folder to your device.
  • Switch off your phone and go into the bootloader.
  • Now, enter into fastboot. Then, from the root file folder go to TWRP Recovery.
  • Open the command prompt inside the folder and type fastboot flash recovery (exact the name of recovery that you want).
  • Then, type fastboot erase cache.
  • Now choose the bootloader and press the Power button to select. Navigate to recovery and choose it by using the Power
  • Now, TWRP Recovery will boot. Then, click on Find out the SuperSu file and flash it. Then, click reboot system.
  • Done! You just rooted HTC One M8 running 4.4.2.

Verification of the process.