How to Root HTC U11, install TWRP recovery and unlock bootloader

Root and TWRP recovery status: Available 

It hasn’t been long since HTC released the HTC U11 and folks over at TeamWin already have an official build of TWRP recovery available for download for the device. What this means is we can now have root access on HTC U11.

As usual, you need to get the bootloader unlocked on your device to be able to install TWRP recovery. Thankfully, HTC has an official setup to let users unlock bootloader on their HTC devices, and it supports HTC U11 as well.

Like any other Android device, once bootloader is unlocked on the HTC U11, installing a custom recovery like TWRP is a piece of cake. And once you’ve TWRP recovery installed, root access can be achieved by simply flashing either the latest SuperSU zip, or even better, the Magisk installer zip which will let you hide your phone’s root status when the need be. For example, when you want to use the Android Pay app, Magisk will let you disable root access on-the-fly to let you use Android Pay, and then enable root again when needed.

So let’s get started..

How to unlock bootloader on HTC U11

Before you begin with the instructions below, make sure your android device is adequately charged — at least 50% battery of the device.

  1. Install HTC drivers. First step to hacking your device begins with installing drivers, doesn’t it?
  2. Now, install ADB and fastboot drivers. This makes sure that your device recognizes fastboot command and get you token in step below.
  3. Let’s begin now. First of all you need to register and create an account on the HTCdev site here. This is HTC’s own developer site to support unlocking of bootloader.
  4. After completing the registration, you will need to verify your e-mail address. Go to gmail, yahoo, hotmail or wherever your email ID is, log in, and then look for a mail from Open the mail, and verify by clicking on the verification link.
    → If you don’t see any mail from HTC Dev within 30 mins from registering, then be sure to check the Spam folder.
  5. Go to the following link and login with your account here. Now, click on Unlock bootloader and click Get started to finally begin with unlocking.
    Unlock bootloader
  6. Disconnect your HTC U11 from PC and boot it into Bootloader Mode:
    • Power off your device first and wait for 6-7 seconds after display is off.
    • Press and hold Power + Volume down button together for like 5-6 seconds and then let go of them. You will see either a black screen with Download Mode written.
  7. On PC, create new folder, name it as unlock-bl and then keep it open.
  8. Now, open command window in the unlock-bl folder. For this:
    1. Left click on empty white space in the unlock-bl folder.
    2. Now, while holding shift key, right click on empty white space to get a pop-up as shown below.
    3. Now choose Open command window here option from that.
      open command windows here
      └ You will see a command window open up, with location directed to unlock-bl folder.
  9. Connect your HTC device to PC now. It must be in bootloader mode already as given in step 6 above.
  10. Now, on PC, in command window, run the following command. (You can copy paste it too.) After entering text, use enter key to run it.
    fastboot oem get_identifier_token
  11. You will see a long text of token. You have to copy it now. For this:
    1. First, right click on an empty space inside command window, and select Mark.
    2. Now, highlight the block of text starting from <<<< Identifier Token Start >>>>  and ending with <<<<< Identifier Token End >>>>>.
    3. Right click on the highlighted text to copy it. 
      It may say <info> instead of <bootloader> but don’t worry, the procedure is the same.
  12. Now, provide this token to HTC, so that they hand you the unlock code via a file sent to you email. Do this.
    1. Go to the following link here.
    2. Scroll down to the bottom where it says My Device Identifier Token and paste the previously copied token here. And then click on Submit.
      Copy and paste the token directly from Command Prompt window to the web page. DO NOT try coping it somewhere else first (Example: Notepad) and then pasting from there to web page.
  13. If you did it alright, HTC will receive your token code, and will send you an e-mail with your Unlock_code.bin attached to the e-mail.
  14. Download the Unlock_code.bin and transfer it to unlock-bl folder, where you have the command window pointing location to.
  15. Close the command prompt window for once, and then open it again in the unlock-bl folder as above (step 6). And then run the following command.
    fastboot flash unlocktoken Unlock_code.bin
  16. Look at your HTC U11 now. A screen will appear on your device now asking you to confirm the bootloader unlock. Use Volume Up button to highlight Yes and select it using Power button.
  17. Your HTC U11 will now reboot and the bootloader will be unlocked to fulfill all your flashing and modding needs. You can disconnect your U11 from computer once it fully boots up.
  18. To confirm if your bootloader is unlocked boot into Bootloader Mode (Step 4), it should say *** UNLOCKED *** at the top of the screen.

How to Install TWRP recovery on HTC U11



  1. Get the latest build of TWRP recovery from either of the download links provided above and save the TWRP recovery .img file to a separate folder on your PC.
  2. Setup ADB and Fastboot on your PC, follow this link .
  3. Enable USB debugging on your HTC U11:
    1. Open Settings on your device.
    2. Go to About phone and tap seven times on Build number, this will enable Developer options.
    3. Now go back to Settings and you’ll see Developer options there, open it.
    4. Tick the USB Debugging checkbox.
  4. Open the folder where you saved TWRP Recovery .img file in Step 1 above.
  5. Now open a command window inside that folder. To do that, “Shift + Right click” on any empty white space inside the folder and then select “Open command window here” from the context menu.
  6. Connect your HTC U11 to the PC. And type the following into the command window we opened in Step 5 above to boot your device into bootloader/fastboot mode:
    adb reboot bootloader

    └ If you get a permission dialogue on your device to “Allow USB debugging”, tap OK.

  7. Once your device boots into bootloader mode, issue the following command into command window to flash the TWRP recovery .img file:
    fastboot flash recovery twrp.img

    └ Here modify twrp.img with the name of your TWRP recovery .img file, OR change your TWRP recovery filename to twrp.img and use the command above.

  8. Once TWRP is successfully flashed, issue the following command to reboot your HTC U11:
    fastboot reboot

That’s all. TWRP recovery should be installed on your HTC U11 now. To boot into the freshly installed recovery, simply issue the adb reboot recovery command from PC command line when your HTC U11 boots into system.

How to Root HTC U11

Finally, once you’ve TWRP recovery installed on your HTC U11. We can now root your device using the Magisk systemless interface.



  1. Download and transfer both the Magisk zip and Magisk Manager apk files from the download link above to your HTC U11’s storage.
  2. Boot your U11 into TWRP recovery.
  3. Tap on Install and select the Magisk zip file that you transferred to your device in Step 1.
  4. After selecting the .zip file, do Swipe to Confirm Flash on the bottom of screen to begin the flashing process.
  5. Once Magisk is flashed, you’ll get Reboot System option, select it.
  6. Once your device reboots, open a file manager app » go to the folder where transferred the Magisk Manager apk file in Step 1 above, and install it.
  7. Open the Magisk Manager app and check for your device’s root status.

That’s all. Happy Androiding!


Shivam is our resident designer and web developer who also enjoys writing. He loves to meditate, drive on the freeways and hunt for snipers during his Call Of Duty playtime. Email: