0

For those of you who want to root your HTC One, here’s a step-by-step tutorial for all Windows, Mac, and Linux computers, that will allow you to unlock the bootloader, install TWRP recovery, and root your HTC One without losing your apps/settings by using ADB backup.
This root method will work on all of the following HTC One smartphones:
HTC One M7 – AT&T/T-Mobile/International/Unlocked/Developer
HTC One M7WLS – Sprint
Also will work on Android 4.2.2 and Android 4.3.


Before we begin, MAKE A BACKUP of EVERYTHING on your HTC One internal storage by copying the everything to your hard drive! (For Mac, please install Android File Transfer, which will allow you to connect your HTC One as a disk drive.)

Step 1. First, go to Settings->Developer options and make sure USB debugging is checked ON.
howto-root-htc-one-1

Step 2. Connect a micro-USB cable from your HTC One to your computer.
howto-root-htc-one-2

Step 3. Download HTCOneRoot.zip and unzip to HTCOneRoot directory.  This zip file contains everything you need to root your HTC One!
Download HTCOneRoot.zip (For Windows, Mac, and Linux)
If you have Mac or Linux, no driver is needed.  For Windows users, if you don’t have HTC drivers installed, run the HTCDriver_4.1.0.001.exe file to install drivers.
howto-root-htc-one-3
If drivers are installed correctly, you should see “My HTC” or something similar like “ADB Interface” in Device Manager for Windows.
howto-root-htc-one-4

Step 4. Open a command prompt/terminal on your computer and type:
For Windows:
cd Downloads
cd HTCOneRoot
adb backup -apk -all -f backup.ab

For Mac:
cd Downloads
cd HTCOneRoot
chmod 755 *
./adb-mac backup -apk -all -f backup.ab

For Linux:
cd Downloads
chmod 755 *
cd HTCOneRoot
./adb-linux backup -apk -all -f backup.ab

howto-root-htc-one-5

Step 5. Go to your phone and choose “Backup up my data”.  This will back up all of your app and app data.
howto-root-htc-one-6

Step 6. Once app backup is done, go to Settings->Power and make sure Fast boot is checked OFF.
howto-root-htc-one-7

Step 7. Turn off your HTC One.  Then hold down Volume Down and Power buttons together for about 3-5 seconds until you see bootloader menu.
howto-root-htc-one-8
Hit the Power button to enter Fastboot mode.
howto-root-htc-one-9
Connect micro-USB cable from your HTC One to your computer.
howto-root-htc-one-10

Step 8. Type the following in your command prompt/terminal:
For Windows:
fastboot oem get_identifier_token
For Mac:
./fastboot-mac oem get_identifier_token
For Linux:
sudo ./fastboot-linux oem get_identifier_token
howto-root-htc-one-11

Step 9. Copy the identifier token you get exactly as shown below (or see video tutorial).
howto-root-htc-one-12

Step 10. Go to HTCDev.com and log-in.  If you don’t have an account, register then log-in.
Click on “Unlock Bootloader” then “Get Started”.
howto-root-htc-one-13

Step 11. Choose “All Other Supported Models” then click on “Begin Unlock Bootloader”.
howto-root-htc-one-14

Step 12. Choose “Yes”.
howto-root-htc-one-15

Step 13. Make sure check boxes are checked ON and click on “Proceed to Unlock Instructions”.
howto-root-htc-one-16

Step 14. Scroll all the way to the bottom and click on “Proceed to Step 5″.
howto-root-htc-one-17

Step 15. Scroll all the way to the bottom and click on “Proceed to Step 8″.
howto-root-htc-one-18

Step 16. Scroll all the way to the bottom and paste your token you copied over earlier.  Make sure there’s no white spaces or INFO (if using MAC/Linux).
howto-root-htc-one-19

Step 17. Hit “Submit” and if you copied and pasted the token correctly, you should get a success message.
howto-root-htc-one-20

Step 18. Check your e-mail and you should have received Unlock_code.bin file from HTC.com.
howto-root-htc-one-21

Step 19. Download and copy the Unlock_code.bin file to the HTCOneRoot folder.
howto-root-htc-one-22

Step 20. Next type in command prompt/terminal:
For Windows, type:
fastboot flash unlocktoken Unlock_code.bin
For Mac, type:
./fastboot-mac flash unlocktoken Unlock_code.bin
For Linux, type:
sudo ./fastboot-linux flash unlocktoken Unlock_code.bin
howto-root-htc-one-23

Step 21. Go to your phone and choose “Yes” using Volume Up button then hit the Power button.  Your HTC One will reboot in about 5 seconds.
howto-root-htc-one-24

Step 22. Once rebooted, your HTC One should be completely wiped and you should get Welcome message just like the day you got your phone.  Sign in through the setup process then copy the CWM-SuperSU-v1.30.zip file in HTCOneRoot folder to anywhere on your HTC One’s internal storage.
*Note – For Android 4.3 or 4.4, please use the file “UPDATE-SuperSU-v1.65.zip” instead of v1.30.
howto-root-htc-one-25

Step 23. Power off your phone then re-boot into bootloader menu to fastboot mode like you did in Step 7.
howto-root-htc-one-26

Step 24. Type the following to install recovery:
For HTC One M7 (AT&T/T-Mobile/International/Unlocked/Developer)
fastboot flash recovery openrecovery-twrp-2.6.3.0-m7.img
For HTC One M7WLS (Sprint):
fastboot flash recovery openrecovery-twrp-2.6.3.0-m7wls.img
Then Type:
fastboot erase cache
For Mac, replace “fastboot” with “./fastboot-mac”.
For Linux, replace “fastboot” with “sudo ./fastboot-linux”.
howto-root-htc-one-27

Step 25. Choose “Bootloader” and hit the Power button.
howto-root-htc-one-28

Step 26. Choose “Recovery” and hit the Power button.
howto-root-htc-one-29
howto-root-htc-one-30

Step 27. Once in TWRP recovery, choose “Install”.
howto-root-htc-one-31

Step 28. Choose the file CWM-SuperSU-v1.30.zip.
*Note – For Android 4.3 or 4.4, please use the file “UPDATE-SuperSU-v1.65.zip” instead.
howto-root-htc-one-32

Step 29. Swipe to flash this file.  This will root your HTC One by installing SuperSU superuser app and SU binaries.
howto-root-htc-one-33

Step 30. Choose “Reboot System” to reboot.
howto-root-htc-one-34

Step 31. Once rebooted, you will find “SuperSU” app in your app drawer.  Congratulations!  You’ve successfully rooted your HTC One!  You can verify full root by installing a rooted app like Titanium Backup app.
howto-root-htc-one-35

Step 32. Next, let’s restore your data.  Go ahead and copy all of your data (you backed up earlier) back into your HTC One’s internal storage.
Then, go to Settings->Developer options and make sure “USB debugging” is checked ON.  (You will have to do this again since your phone reseted itself when you unlocked the bootloader) Connect micro-USB cable from your phone to your computer.
howto-root-htc-one-36

Step 33. Next type the following to restore your app and app data:
For Windows:
adb restore backup.ab
For Mac:
./adb-mac restore backup.ab
For Linux:
./adb-linux restore backup.ab
howto-root-htc-one-37

Step 34. Go to your phone and hit “Restore my data”.
howto-root-htc-one-38

Step 35. Your HTC One should now be fully rooted along with your apps!
howto-root-htc-one-39

Step 36. HTC One stock firmwares are HARD TO FIND.  So, my suggestion is to make a backup ROM at this point.  That will allow you to easily unroot and restore stock firmware if something goes wrong or you want to take your phone back for warranty.
You can do this easily by re-booting into TWRP recovery and selecting “Backup”.
howto-root-htc-one-40
howto-root-htc-one-41
howto-root-htc-one-42
FAQ:
Q: Does this root method erase my data and personal files?
A: No, if you follow everything in this tutorial, you will be able to root your HTC One, keep your data and personal files.  So make sure you follow every step!
Q: I cannot flash the TWRP recovery using fastboot!
A: Please see revised Step 24 on this page, the TWRP file has been updated to the latest version!

Post a Comment

အေပၚမွာ ေရးထားတာ နဲ႕ ပါတ္သက္လို႕ သင္ဘယ္လို ျမင္ပါသလဲ ေမးခ်င္တာ ေျပာခ်င္တာ တစ္ခုခုမ်ား ရွိခဲ့ရင္ ဒီေနရာမွာ ေျပာထားခဲ့ နိုင္ပါတယ္..။

 
Top