Monday, May 27, 2013

Unlocking the bootloader of my HTC One X

My setup
Be warned, this will void your warranty, and could render your phone useless / bricked. Continue at your own peril.

After you have downloaded the Android SDK, open a shell and navigate to the "platform-tools" directory. It contains an executable called "fastboot" that we will use later on.

First we have to boot the phone into the bootloader. This is done by holding down the power button and the volume up button when the phone is starting.

When you are presented with an old school menu, scroll to "Fastboot" using the volume up/down keys, and select it with the power button.

Your phone is now in fastboot mode.

From your shell, type in "sudo ./fastboot oem get_identifier_token." You should get a long string of text. This is your unique token. Save it for later.

Now go to "http://www.htcdev.com/" and select "Unlock Bootloader." In the dropdown, select "All Other Supported Devices." You can skip all of this until you reach the input box where you should paste in the token you saved in the last step. If you get a failure, read the instructions on the HTC webpage that explains very detailed what the token should look like.

You should receive an email from HTC with an attachment, "Unlock_code.bin" in my case. Download the attachment and put it in the /tmp directory.

In your shell, type in "sudo ./fastboot flash unlocktoken /tmp/Unlock_code.bin" which should prompt you on the phone if you want to unlock the bootloader.

Select "Yes" and press the power button. Your phone will now reboot, and your bootloader is now unlocked.

9 comments:

  1. does this work for locked htc one x at&t? im stock

    ReplyDelete
    Replies
    1. Sorry for the late reply. I do not think so, this is for a HTC that is not tied to any carrier.

      Delete
  2. My terminal just hangs at "Waiting for device" (or whatever it says) when I try to get the token... Oh well. I guess I'll try on Windows.

    ReplyDelete
    Replies
    1. i have the same issue. if you're on JB AND mac you're screwed. i tried everything, i also tried to contact the guys who made the tutorials but nobody answers. i now decided to go on with the stupid sense UI because i dont have time to work on that all day.

      Delete
    2. Dafydd, is the phone in fastboot mode when you try to do this?

      Delete
  3. sudo fastboot oem get_identifier_token
    sudo fastboot flash unlocktoken Unlock_code.bin

    I run this from terminal where i placed the token I had without even trying to navigate to the "platform-tools" directory

    ReplyDelete
  4. If you are looking forward to buy HTC One X Plus in Dubai, you can log onto Aido.com. This highly reputed online shopping store is offering 34% off on this smartphone.

    ReplyDelete
  5. when i start cmd prompt it closes within a sec.

    ReplyDelete
  6. <<<< Identifier Token Start >>>>
    2129F15388F237AC682B1AD17324063F
    42402DB32D580A9D9536877E394E5CCE
    737A39EB6054D4F652D586C61BCCDBAF
    89D120B8E12E4724BCADE3658F2188F4
    2D88DD5FAC25200490A687C5174FE228
    B1FFE1ED5D41C81F86E6340B21A8265E
    DF2AEF2049604264A3C413A51339FE7E
    547628088925B8C089C9D3B23AFAFC6E
    66AAAFDCD435AB5FBE36D4DDA3854EC7
    F7F39BD73F92314D4AB063B765649BE3
    060B7605EB65B15A88777FE7135F7061
    2CBA64C5D456EBB41FAAA5EF94234C03
    FFFE05E287B3D5A942C7837857D9B441
    A5ADC2E261A52B668C4278C4635421D4
    5EE184186F1E89629CFCB034D536B564
    AE18C44BA60B5F74B6CB86BB5B2504B0
    <<<<< Identifier Token End >>>>>

    ReplyDelete