Lastly, this guide is for Macs. That's what I use (burn me at the stake later). However, you can easily adapt it for Windows/PC as well. Make sure you have the correct drivers installed and that you have ADB/fastboot on your machine (try the Android SDK). Once you have that, just amend the fastboot commands accordingly (e.g. just use "fastboot" as a prefix instead of "./fastboot").
Before you prepare to unlock your One, you need an HTCdev account. Why? Because unlike the militant tyrants that run Samsung, HTC loves you and your tinkering…so long as you sort of pretend you’re doing it for serious business (i.e. app development). So go to HTCdev.com and register.
You also need ADB/fastboot on your machine. I’m using an old “superboot” folder from the ancient days of the Galaxy Nexus. It’s in my main/home directory and has yet to fail me. Alternatively, you can use the package Cory uses in his Nexus 7 unlocking guide. Just make sure to unzip the package somewhere easy to find on your Mac, because you’ll be “cd’ing” (changing directory) to it and putting everything you need to flash in that folder.
Quick note on fastboot. For my ye ole superboot folder, the fastboot “prefix” (for lack of a better term) is “./fastboot-mac.” Therefore, every time I type a fastboot command in Terminal, I need to use that prefix to “begin” the prompt. For example, to flash a recovery, I type $ ./fastboot-mac flash recovery recoverythatisnotCWM.img and boom, it works. If you use another fastboot folder/package, be familiar with the prefix. It could be “./fastboot-mac” or it could be “./fastboot”; knowing that saves a lot of headaches and frustrations.*
Also, be familiar with how it generally works. You need to be plugged in to your computer with your phone in HBOOT (the bootloader in normal speak) to use fastboot. Once in HBOOT, select “FASTBOOT” with the volume keys and press power. This puts you in “FASTBOOT USB” mode (this should be highlighted in a menacing red) and it enables flashing/communications between your Mac's Terminal and your One. From here, you can type in fastboot commands from your Terminal and those commands will cause an effect on your phone, may it be flashing a baseband/radio, flashing a recovery, or erasing certain partitions. It is a very powerful device, so read up or ask questions if you're nervous. Once you learn it--and get used to it--it'll be like riding a bike. Sort of.
Lastly, here's a protip for my kindred lazy souls: if you don't feel like typing something out, particularly a name of a recovery, drag and drop the file/image into Terminal after typing out the requisite fastboot command, substituting the name of the thing you're flashing with the dropped item. Additionally, if you want to "cd" to a certain directoy, such as the fastboot directory, drag and drop the folder after you type "cd" (plus a space after those letters). The drag and drop shortcut is amazing and I use it relentlessly. Why? I can't tell you how many times I misspelled a recovery name or a stock image when I was up at 3 am flashing away like a G. Countless, countless times.
*For purposes of this guide, I'll be using "./fastboot-mac"
Lastly, make sure your One actually communicates with your Mac. Download Android File Transfer (if you don't have it already) and plug the One into your Mac. Does AFT pop up? Does HTC SYNC pop up? If the answer to both questions is a "yes," then have no fear, we're good to go. I also recommend setting up HTC SYNC, but I don't think you need it (disclaimer: I did it months ago, have never used it, and have no idea what difference it makes).
Now, the easy part:
- Using your shiny new HTCdev account, go to this convenient location that deals with this exact exercise.
- See the "Supported Devices" menu on the right? Open the menu and scroll allll the way down. Select "All Other Supported Models" and click "Begin Unlock Bootloader."
- Now, after agreeing to HTC's mandatory legal language (<3 lawyers), you'll be walked through a billion step process to unlock the bootloader. Like Neo, you have two choices. You can go through this list...or you can just wing it and come back to this at Step 9. Let's wing it.
- Go to the settings menu on your One and find the power menu. You'll see something called "fast boot." Unfortunately, you don't want this. Unclick it.
- Power down the phone and plug it into your Mac via a USB cable.
- With the phone powered down, simultaneously hold down the POWER button and the VOLUME DOWN button. This will send you to a white screen full of crazy colors--a/k/a HBOOT. (Alternatively, if you're lazy like me, you can restart the phone instead of powering down. During the restart, hold down volume down. That'll get you to HBOOT as well.)
- Do you see the word FASTBOOT in a list/menu of options? Find it with your volume keys and use the power button to select it. This will put you into FASTBOOT USB mode.
- Now, just for shits and giggles, make sure have Terminal open on your Mac, make sure you've cd'ed to the proper fastboot folder, and make sure your device shows up in the list of fastboot devices. Type this command $ ./fastboot-mac devices and hit enter. Numbers showing up? Good.
- Now that fastboot is confirmed working, enter this command into Terminal: $ ./fastboot-mac oem get_identifier_token
- If done correctly, the above results in a long and insane stream of numbers. When you see this stream--a/k/a an Identifier Token, go to Step 9 of the HTCdev walkthrough.
- Copy and paste everything from (and including) <<<< Identifier Token Start >>>> to <<<<< Identifier Token End >>>>> into Step 10 of the HTCdev walkthrough.
- If you highlighted the word "INFO" 18 times when copying your Identifier Token, delete that word. It's superfluous and it will just result in HTC submitting your serial number to the NSA. Hit submit once the Identifier Token is properly pasted into Step 10.
- Upon submission, the kind souls of HTCdev will email you a little binary file that will be used to unlock the device. Wait for the email and save the binary into your fastboot folder. The binary is Unlock_code.bin
- Now that the binary is in your fastboot folder, flash it onto your device: $ ./fastboot-mac unlocktoken Unlock_code.bin
- This will open up a very Nexus-like menu on your phone; with the volume keys, choose "Yes" to unlock it and press power to accept your choice.
- You should see a "Tampered" and "Unlocked" at the top of the HBOOT main menu. This will confirm your sin of unlocking the bootloader. Congrats .