How to Unlock HTC One Bootloader using a Mac [Step-by-step Guide]

Like many other smartphones, HTC One also ships with an unlocked bootloader which interested users can unlock easily as HTC allows their bootloader to be unlocked. However, the process to unlock bootloader on HTC One requires one to go through various steps, and unfortunately it isn’t a single command task unlike on Nexus devices. But overall the entire unlocking process is quite easy as you proceed step by step. We’re covering this tutorial for Mac users as such guides aren’t widely available and most people believe that doing such task is very difficult on MAC. Surprisingly, the unlocking task is rather easier on Mac OS X than Windows system, because on Mac you don’t need to install and configure ADB or Fastboot drivers which itself is a crucial step on Windows. Also, you don’t need to install Android SDK or anything else on Mac.


Why Unlock Bootloader? Unlocking the bootloader offers the ability to customize the software on your device. It removes the restriction to modify device software, and opens the possibility to install a custom ROM, Root device, use custom kernel, etc.

NOTE: Unlocking the bootloader will Wipe/ factory reset your device, and will delete all personal data from your device such as apps, photos, messages, and settings.

Disclaimer: Unlocking may also void your device warranty. Be sure before proceeding!

Tutorial – Unlocking HTC One (M7) Bootloader on Mac OS X

1. Make sure you’ve taken a backup of your entire device data.

2. Download the file ‘’ and extract it to a folder.

3. Copy the ‘htcone-fastboot’ folder to your Home directory in Finder.

Screen Shot 2013-07-03 at 12.42.40 AM

4. ‘Enable USB Debugging’ on your phone. (Settings > Developer options)

5. Proceed with below steps in stated order –

  • Register on if you haven’t and login.
  • Visit, select your device (choose ‘All Other Supported Models’ if HTC One is not listed. Then click on Begin Unlock Bootloader.
  • A confirmation message will appear, click Yes to continue.
  • Accept the legal terms and click on Proceed to Unlock Instructions.
  • Ignore all the stated information on the page, scroll down and click on ‘Proceed to Step 5’. Again skip all the information on the page and click on ‘Proceed to Step 8’.

6. Now “Power off” the device. Then press the Volume Down + Power button simultaneously to start the device into Bootloader mode (HBOOT).


7. Use the Volume buttons to navigate up or down. Highlight Fastboot and press the Power button to enter into Fastboot mode.

8. Connect the device to the computer via a USB cable.

9. Open Terminal on Mac (Applications > Utilities). In terminal, type the following lines of code after the $, hit return (enter) after each line. In second line, type your user name as seen in Finder, and without the brackets. Refer below image:

cd /Users/
cd [your username]
cd htcone-fastboot
./fastboot-mac oem get_identifier_token


10. You will now see a long block of text in terminal. Copy the Identifier Token by highlighting the text exactly as shown above. (Right-click and copy)

11. Now move back to HTC webpage and scroll down to Step 10. Then paste the copied string of text into the token field (Delete the INFO text if it also gets paste).

Screen Shot 2013-07-01 at 10.40.54 PM

12. Hit ‘Submit’ and if the device token is correctly entered, you should see a ‘Token submitted successfully’ message. Now check your email and you should have received an unlock code binary file (Unlock_code.bin) as an attachment from HTC.

Screen Shot 2013-07-01 at 10.41.17 PM

13. Download the Unlock_code.bin file and paste it into the htcone-fastboot folder.

14. Now in the terminal, type:

./fastboot-mac flash unlocktoken Unlock_code.bin


15. A screen titled ‘Unlock Bootloader’ will appear on your phone. Select ‘Yes’ to unlock (use volume keys to navigate and power key to make your selection).


After a few seconds, your device will reboot automatically with an unlocked bootloader. You can confirm that by rebooting into bootloader and check the lock status at top.

To re-lock HTC One bootloader, in the terminal, type: ./fastboot-mac oem lock

Note: This will not restore the factory default lock, but will simply re-lock the bootloader so no further changes can be made. Perhaps, if you wish to unlock your bootloader again, simply follow the above steps and use your original unlock key file to unlock your phone again.

Hope you found this guide useful. 🙂


Mayur Agarwal is the founder and editor-in-chief of WebTrickz. As a Technology enthusiast and an Internet addict, he loves sharing useful How To’s and Tips & Tricks. Follow him @mayurjango on Twitter.

12 Responses

  1. Joshua Gonzalez says:

    Thank you so much!

  2. joe joe jeo says:

    thanks … got unloket my one !!! 😉 yeah

  3. Fritz says:

    good job. Easy to follow and it works quickly.

    Couple adds here. If your phone doesn’t show Developer options under Settings, they may be hidden.

    Repeatedly tap on “Build number” Until “you are now a Developer” appears.
    About 10 fast taps.

    To Copy only the Token, put your cursor in between INFO and <. Hold down the option/alt key and pull down the cursor to select just the Token without the unwanted bits (INFO …. etc). Cmd C as usual and Cmd V into Terminal.

  4. JuanCa_Hdz says:

    Thanks, you saved me. Btw, have you made any tutorial like this one for changing the ROM? I want to put the international ROM, I got a branded one with lots of bloatware and stuck on 4.1.2, so I can update to 4.3 and with OTA’s enabled.

  5. Pascal says:

    After the command
    pbo-mbp:htc pbo$ ./fastboot-mac oem get_identifier_token
    -bash: ./fastboot-mac: Permission denied

    What I’m doing wrong?

  6. Salvatore Esposito says:

    Grazie mille

  7. Thankyou . Very simple and easy step. worked for my htc one X . Thanks again.

  8. Hannah says:

    Super, I am not tech savvy but I figured this all out from the clear instructions. WELL DONE

  9. Christopher Wang says:

    Desire 728 ??

    Just search this it\’s posted everywhere but the instructions are in Chinese. Anyways I Still cannot even get the bootlogger to unlock, because after going into download mode my phone doesn\’t want to connect to my computer or be detected so none of the commands in terminal work.

  10. Katrin says:


    I am stuck at step 14:
    If I give the terminal these instructions ./fastboot-mac flash unlocktoken Unlock_code.bin
    I get this \”reply\”
    -bash: ./fastboot-mac: No such file or directory

    What am I doing wrong?


  11. SS says:

    Thank yuo alot!

  1. July 4, 2013

    […] 1 – Unlock HTC One Bootloader (using a Mac). Note: This will WIPE entire data on your device. So, take a backup of all your […]

Leave a Reply

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