Unlocking the HTC One M9 bootloader lets you install custom recoveries, ROMs, and root the phone. The official method is through HTCdev.com, which requires an HTC account and a Windows PC. Before you start, back up your data: unlocking wipes the phone completely, including internal storage. Also enable Developer Options and USB debugging, and install HTC Sync Manager or the Google USB driver on your PC so fastboot can see the phone.

What You'll Need

  • An HTC One M9 with a charged battery (at least 50%).
  • A Windows PC with a USB cable.
  • HTC Sync Manager installed (for drivers) or the Google USB driver.
  • ADB and Fastboot tools installed on the PC (platform-tools).
  • An HTCdev account (free).
  • Your phone's IMEI or serial number (found in Settings > About > Phone identity).

Step-by-Step

  1. Back up your data. Unlocking erases everything. Copy photos, contacts, and files to a PC or cloud. Note that some apps (banking, DRM) may stop working after unlocking.
  2. Enable Developer Options. Go to Settings > About > Software information > More, then tap Build number seven times until you see “You are now a developer.”
  3. Enable USB debugging. In Settings > Developer options, turn on USB debugging.
  4. Install drivers and tools. Install HTC Sync Manager (it includes drivers) and download the Android SDK platform-tools. Extract platform-tools to a folder like C:\adb.
  5. Connect the phone to the PC. Use the original USB cable. When prompted on the phone, allow USB debugging. On the PC, open a command prompt in the platform-tools folder and run adb devices. You should see your device serial number. If not, check drivers.
  6. Reboot to bootloader. Run adb reboot bootloader. The phone will restart into the bootloader (white screen with options).
  7. Get the identifier token. In the bootloader, select “Fastboot” using the volume keys and power button. Then on the PC run fastboot oem get_identifier_token. A long string of text appears. Copy it exactly, including the “<<<< Identifier Token Start >>>>” and “<<<< Identifier Token End >>>>” lines.
  8. Submit the token on HTCdev. Go to HTCdev.com, log in, and choose “Unlock Bootloader.” Select “HTC One M9” from the list, then paste your token into the form. Submit it. You will receive an email with a file named Unlock_code.bin. Download it and place it in your platform-tools folder.
  9. Flash the unlock code. With the phone still in fastboot mode, run fastboot flash unlocktoken Unlock_code.bin. The phone will show a prompt asking if you want to unlock the bootloader. Use the volume keys to select “Yes” and press the power button to confirm.
  10. Reboot. The phone will wipe and restart. Once it boots, the bootloader is unlocked. You can verify by rebooting to bootloader and checking that it says “UNLOCKED” at the top.

Common Mistakes

  • Not backing up. Unlocking erases all data, including internal storage. There is no way to recover it afterward.
  • Copying the token incorrectly. The token must be copied exactly, including the start and end lines. Missing characters cause the unlock code to fail.
  • Using a USB 3.0 port or hub. Fastboot can be unreliable on USB 3.0; use a USB 2.0 port directly on the PC.
  • Forgetting to enable USB debugging. Without it, adb commands won't work.
  • Not installing drivers. If fastboot devices shows nothing, drivers are missing or incorrect.

Tips

  • Use the original HTC USB cable; cheap cables can cause connection drops.
  • Keep the phone charged and do not disconnect during the unlock process.
  • After unlocking, you may see a warning message on boot. That is normal.
  • Some apps (like banking or Netflix) may refuse to work on an unlocked bootloader; you can often hide the unlock status with Magisk later, but that requires rooting.
  • Write down your HTCdev login details; you may need them again for future unlocks.

Troubleshooting

  • PC does not detect phone in fastboot: Reinstall HTC Sync Manager or the Google USB driver. Try a different USB port (preferably USB 2.0) and cable. Run fastboot devices to check.
  • Token submission fails on HTCdev: Ensure you copied the entire token, including the start and end lines. Do not add extra spaces. If it still fails, generate a new token and try again.
  • Unlock code flash fails: Make sure the file is named exactly Unlock_code.bin and is in the same folder as fastboot. Check that the phone is in fastboot mode (not bootloader menu). Re-run the command.
  • Phone stuck at HTC logo after unlock: This can happen if the wipe did not complete. Reboot to bootloader and select “Factory Reset” (this will wipe again). If it persists, you may need to reflash a stock ROM.
  • USB debugging authorization prompt does not appear: Revoke USB debugging authorizations in Developer options, then reconnect and try again.

Frequently Asked Questions

Does unlocking the bootloader void my warranty?

Yes, HTC considers bootloader unlocking as voiding the warranty, though laws in some regions may protect you. Check your local consumer rights.

Can I relock the bootloader?

Yes, you can relock it using fastboot oem lock, but this will not restore warranty status and may require a full wipe.

Will I still receive OTA updates after unlocking?

You may receive OTA updates, but they can fail if you have modified the system. Some updates may also relock the bootloader or cause issues.

Do I need to root after unlocking?

No, unlocking only opens the door. Rooting requires flashing a custom recovery and SuperSU or Magisk separately.

Can I unlock the bootloader without a PC?

No, the official HTCdev method requires a PC with fastboot. There is no official way to do it solely on the phone.

What is the identifier token and why is it needed?

The token is a unique string from your phone that HTC uses to generate the unlock code. It ensures the unlock is authorized for your specific device.