How to root HTC one m7 T-mobile


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.

Article Name
How to root HTC one m7 T-mobile
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.
Publisher Name
Publisher Logo

Leave a Comment

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