FORUMS
Remove All Ads from XDA

Step by step guide for Unlocking and Rooting the HTC One (M8) AT&T Variant

75 posts
Thanks Meter: 75
 
By liquidaluminum, Member on 30th June 2014, 03:52 AM
Post Reply Email Thread
I created a detailed set of step by step instructions for unlocking and rooting the HTC One (M8). This process will work for other HTC models as well, however, obviously I have not tested every phone, and as I have just upgraded to the M8, this process will apply directly to it. I apologize in advance if this steps on anyone's toes, as I will be including download links for specific tools needed. These steps can be found in different threads and guides, but I had not seen one that detailed the entire process from start to finish. Basically, I wrote it in layman's terms so that I was easily able to understand the process. Hopefully this will help anyone having any sort of issues. If anyone feels that this guide is inappropriate, please feel free to delete it, as this is my first "how to"

- Unlocking your AT&T HTC One (M8)


The first thing you will need to do is create a folder labeled "Android". Different guides recommend that you place it on your desktop for easy reference, however, it can actually be placed wherever you wish, as long as you feel confident in navigating to the folder via a command prompt or terminal. For my purposes, I host the folder on my D:\ drive. If you are unable to navigate folders using a command prompt or terminal, Windows 7 and Windows 8 will allow you to right click on a folder and open a command prompt that way.

Downloading the necessary drivers - Drivers can be found by following the link found here:

http://forum.xda-developers.com/show....php?t=2019615

CNexus was nice enough to point out that HTC Sync is a lot of bloatware and not required, but can be downloaded if you wish. I opted to download the drivers only. This is a matter of personal preference for me. If you wish to install HTC Sync, then by all means do so.

You will also need to download the ADB/Fastboot files for Windows which can be found here:

ADB/Fastboot files for Windows: https://dl.dropboxusercontent.com/u/...db-windows.zip

01. Determine if your system is 32-bit or 64-bit and follow the installation instructions for the appropriate software/drivers.
(If drivers have already been installed, then skip this installation step and start with the next).

02. Extract the contents of adb-windows.zip to your "Android" folder.

03. Open a command prompt in, or use a command prompt to browse to the "Android" folder you previously created.

04. On your HTC One (M8) go to Settings > Power, and then uncheck the "Fast Boot" option.

05. Once step 4 is completed, switch your device OFF.

06. Now that the device is powered down, Press the Volume Down and the Power buttons simultaneously to boot the HTC One (M8) into "HBOOT" mode.

07. Using the Volume buttons, navigate to the "Fastboot" option and select it using the Power button.

08. Connect your HTC One (M8) to your PC.

09. On the command prompt you previously opened in step 2, type in the following command "fastboot devices" (do not include the quotation marks).

**At this point, if all steps have been followed properly, you should receive a message in the command window similar to the following:

C:\Users\XXX\Desktop\Android>fastboot devices 011aa0a1a01aaaa1 fastboot


10. Now we will need to go to the HTC Developer website to get an "Identifier Token" before the bootloader can be unlocked. The URL to the HTC Developer website is www.htcdev.com. If you do not already have an account, you will need to register and sign in before you're able to proceed.

11. Once your account has been created and you are logged in, click on the "Development Center" link at the top of the screen.

12. Under the "Unlock Bootloader" option in the center of the page, click on "Get Started".

13. Next, under "Supported Devices" click on "Select your Device" and find the HTC One (M8) and then select "Begin Unlock Bootloader". (This process works for several other HTC devices as well).

14. Accept all warnings and agreements and keep proceeding forward by clicking the "Next" button. When you reach step 8 on the site, enter the following command in the command prompt:

"fastboot oem get_identifier_token" (without the quotation marks).

15. Copy the message seen in the command prompt to notepad or your clipboard.

16. ONLY KEEP THE RANDOM SERIES OF ALPHANUMERICS FROM THE OUTPUT YOU JUST COPIED. Remove everything else such as <<<, (bootloader), Info, or any other piece of text. DO NOT EDIT THE IDENTIFIER TOKEN START OR END LINE!!!

Example:

<<<< Identifier Token Start >>>>
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A
<<<<< Identifier Token End >>>>>

17. Paste the edited output inside the "My Device Identifier Token" box on the HTC Developer website and press "Submit". Once you have submitted the identifier token, you will receive your unlock code binary file via email.

18. Upon receiving the "unlock_code.bin" file from HTC (this file is specific to your phone), transfer the file to your "Android" folder that was previously created at the start of this document.

19. With your command prompt still open, enter the following command:

"fastboot flash unlocktoken Unlock_code.bin" (without the quotation marks).

20. After entering this command, a message should appear on your HTC One (M8) screen asking if you really want to unlock the bootloader. Use the Volume key to highlight the YES option and press the Power button to select it.

21. At this point your phone's bootloader will be unlocked and it will restart automatically. The first boot could potentially take some time. If this happens, it is normal. Be patient and wait for the reboot.

22. After your device reboots, any previous settings that you may have saved will be lost with the unlocking of the bootloader. Be prepared for this, as you will need to redo them all. If it is your intention to unlock your bootloader, I highly suggest doing it on a fresh ROM install, so you only have to deal with it once. This means that "fastboot" will be re-enabled in the power settings. If you wish to continue to rooting your device, you will need to go to Settings > Power and un-check the "fastboot" option before proceeding.


- ROOTING YOUR DEVICE


The first thing you will need to do to root your device is to download the following files

TWRP Recovery for the AT&T (M8): http://androidfiles.org/getdownload....4-m8_ul_ca.img

SuperSU: download.chainfire.eu/396/SuperSU/UPDATE-SuperSU-v1.94.zip?retrieve_file=1

1. Once downloaded it is advised to rename the TWRP Recovery file to either "twrp.img" or "m8recovery.img". (I renamed mine to m8recovery).

2. Once renamed, copy TWRP image file into your previously created "Android" folder.

3. Open a command prompt and browse to the same "Android" folder where you placed the adb/fastboot and TWRP Recovery files.

4. Make sure your HTC One (M8) is powered off. Boot the phone into fastboot mode by pressing the Volume down and Power buttons at the same time. Once booted, select "fastboot" by pressing the Power button.

5. Connect the HTC One (M8) to your PC.

6. Enter "fastboot devices" (without the quotation marks) in the command prompt to verify that the device has been detected by your PC. If the device is connected you should receive a message similar to the following:

C:\Users\XXX\Desktop\Android>fastbootdevices
010AA1A0A10AAAA1 fastboot

7. Once verified, type "fastboot flash recovery m8recovery.img" (or whatever you renamed your .img file to and without the quotation marks) in the command prompt and wait for fastboot to flash the TWRP Recovery on your HTC One (M8).

8. After TWRP Recovery has been successfully flashed, the device needs to be restarted manually. To do so, enter the command "fastboot reboot" (without the quotation marks).

9. Upon reboot, transfer the SuperSU zip file to the root directory of your HTC One (M8) via your PC.

10. Turn off your HTC One (M8) and reboot into Bootloader mode by holding the Volume Down and the Power button at the same time.

11. Navigate to the "Recovery" option and select it by pressing the power button. (After following this step, TWRP will load on the device rather than the stock HTC Recovery).

12. Now that TWRP Recovery has loaded, tap the "Install" button and select the UPDATE-SuperSU-v1.94.zip file you previously downloaded.

13. One the SuperSU zip file has been flashed, select the "Reboot System" option to reboot your device.

14. After the device restarts, you have successfully rooted your HTC One (M8). From here, you are now free to install custom Kernels, ROMs, and other mods as you see fit.

I hope this helps everyone out. I am not a developer, nor do I pretend to be. Please give thanks to the people that made all rooting and modding our phones possible

Special thanks to gdnewsevry1 for recognizing a missed step and command.
The Following 46 Users Say Thank You to liquidaluminum For This Useful Post: [ View ] Gift liquidaluminum Ad-Free
 
 
30th June 2014, 09:27 AM |#2  
Senior Member
Flag Cape Cod, MA
Thanks Meter: 28
 
More
Very nicely written and well put together. Thank you for taking the time to share this.

Scott


Sent from my HTC One_M8 using XDA Free mobile app
30th June 2014, 12:01 PM |#3  
Longcat14's Avatar
Senior Member
Flag Dallas
Thanks Meter: 144
 
More
This guide is very well made!

I did figure out that you can root the phone without unlocking the boot loader (with Towelroot modstrings), SOff that way, then just follow your instructions to get TWRP on. You might want to add that in to, for people who don't want to use HTCDev.
30th June 2014, 06:17 PM |#4  
Junior Member
Thanks Meter: 3
 
More
suggestion
Thanks for your guide. I just used it and it helped a ton. I would suggest the change and addition below based on my experience.

Quote:
Originally Posted by liquidaluminum


TWRP Recovery for the AT&T (M8)

[...]

7. Once verified, type "fastboot flash m8recovery.img" (or whatever you renamed your .img file to and without the quotation marks) in the command prompt and wait for fastboot to flash the TWRP Recovery on your HTC One (M8).


7. Once verified, type "fastboot flash recovery m8recovery.img" (or whatever you renamed your .img file to and without the quotation marks) in the command prompt and wait for fastboot to flash the TWRP Recovery on your HTC One (M8).

Quote:
Originally Posted by liquidaluminum


9. Upon reboot, transfer the SuperSU zip file to the root directory of your HTC One (M8) via your PC.

10. Turn off your HTC One (M8) and reboot into Bootloader mode by holding the Volume Down and the Power button at the same time.

Insert: 9a. Turn off fastboot in settings.
The Following 3 Users Say Thank You to gdnewsevry1 For This Useful Post: [ View ] Gift gdnewsevry1 Ad-Free
30th June 2014, 07:39 PM |#5  
liquidaluminum's Avatar
OP Member
Thanks Meter: 75
 
Donate to Me
More
Quote:
Originally Posted by gdnewsevry1

Thanks for your guide. I just used it and it helped a ton. I would suggest the change and addition below based on my experience.




7. Once verified, type "fastboot flash recovery m8recovery.img" (or whatever you renamed your .img file to and without the quotation marks) in the command prompt and wait for fastboot to flash the TWRP Recovery on your HTC One (M8).



Insert: 9a. Turn off fastboot in settings.

Good observation. Thank you. I added a line item numbered 22 under the unlocking portion in substitution of 9a. I did it this way, because all settings are reset unlocking the bootloader. For those that are going to proceed to the rooting instructions, I thought it might be smart to go on and take care of disabling the fastboot options right off the bat, so it's no longer a concern.

You were 100% correct about adding the recovery line. I must have missed it while typing this up. Good looking out!
The Following 2 Users Say Thank You to liquidaluminum For This Useful Post: [ View ] Gift liquidaluminum Ad-Free
14th July 2014, 03:35 PM |#6  
redpoint73's Avatar
Recognized Contributor
Thanks Meter: 6,812
 
More
This is almost certainly the best guide I have seen on XDA to unlock/root a device.

I've added it to my Index thread under "Unlock Bootloader, ROOT, S-Off": http://forum.xda-developers.com/show...php?p=52653939

Also, one suggestion is to add an alternate section/branch to flash straight to a custom ROM (rather than stay stock and root).
The Following User Says Thank You to redpoint73 For This Useful Post: [ View ] Gift redpoint73 Ad-Free
16th July 2014, 12:54 AM |#7  
liquidaluminum's Avatar
OP Member
Thanks Meter: 75
 
Donate to Me
More
Quote:
Originally Posted by redpoint73

This is almost certainly the best guide I have seen on XDA to unlock/root a device.

I've added it to my Index thread under "Unlock Bootloader, ROOT, S-Off": http://forum.xda-developers.com/show...php?p=52653939

Also, one suggestion is to add an alternate section/branch to flash straight to a custom ROM (rather than stay stock and root).

I'm definitely thinking about doing that very thing. The only thing that prevented me originally is because of the way I have to use my phone. I've never owned an HTC device before, so I'm not sure if the same issue would exist, but in regards to ROM swapping, when I was running Samsung devices, I found a proprietary problem with the devices themselves that prevented me from running custom ROMs.

I have an Appradio 2 in my car that relies on the MHL output to mirror my device to my dash. When using custom ROMs of any kind (that I tried), I MHL never worked. I addressed the issue with a couple of developers, I was told that because MHL isn't used by many people, support for it isn't focused on. Since that has seemed to hold true for any of the ROMs that I've tried, I've always been limited to rooted stock ROMs. Hence my not including the suggested addition.
The Following User Says Thank You to liquidaluminum For This Useful Post: [ View ] Gift liquidaluminum Ad-Free
16th July 2014, 03:39 PM |#8  
redpoint73's Avatar
Recognized Contributor
Thanks Meter: 6,812
 
More
I see, it makes sense to write a guide for only what you know about.

I wouldn't necessarily avoid custom ROMs just for the MHL issue. There are a good number of great custom ROMs that are built on the "stock" Sense base, but with varying degrees of optimizations and cool customization options. Its just a gut feel, but with many of these ROMs I would think the MHL function would work fine. In any case, just make a nandroid backup of your current setup (which I highly recommend when flashing just about anything) and if you don't like the current ROM, its easy to revert.
17th July 2014, 09:43 PM |#9  
Junior Member
Thanks Meter: 1
 
More
Missing file
Nice writeup, thanks.
The Following User Says Thank You to rapnel For This Useful Post: [ View ] Gift rapnel Ad-Free
22nd July 2014, 06:27 PM |#10  
Archon810's Avatar
Senior Member
Flag Oakland
Thanks Meter: 137
 
More
FYI, the M8 TWRP link is dead.
The Following User Says Thank You to Archon810 For This Useful Post: [ View ] Gift Archon810 Ad-Free
22nd July 2014, 09:52 PM |#11  
liquidaluminum's Avatar
OP Member
Thanks Meter: 75
 
Donate to Me
More
I'll see if I can find another. If not, I'll host it somewhere.
The Following User Says Thank You to liquidaluminum For This Useful Post: [ View ] Gift liquidaluminum Ad-Free
Post Reply Subscribe to Thread

Tags
at&t, htc, rooting, unlocking

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes