<--Google Page ads-->

How to unlock AT&T HTC One X bootloader

Unfortunately the AT&T HTC One X comes with an unlocked bootloader, so it’s impossible to root it and flash ClockworkMod Recovery on it. But an XDA Developer user has finally found a way to unlock the bootloader, though it’s not very easy for noobs.

We will guide you through the process of unlocking the bootloader, but please note it’s a risky process and you should be very careful. Also please note that you will lose all your data when doing it, so make backups before.

Backup your HTC One X

Like I already told you, you will have to backup your device before beginning the unlocking process, because your data may be lost. So you will have to sync your contacts with your Google account, copy all the files to the SD card and use apps to backup SMS messages and Call Logs. Here are the apps and guides you will need: AppBak for saving and restoring Android apps | SMS backup & restore | Call Logs backup & restore.

How to unlock the HTC One X bootloader

You will first need to download the Android SDK here and a hex editor. We recommend you to get HxD here.

Then open your command prompt ( for Windows press Start + R, type CMD and hit enter ). Now navigate to the directory where you installed the Android SDK ( use cd /directory to navigate to a directory or cd .. to go back one directory ).

After you get to the ADB directory, type “adb shell” and press enter. Now type “su” and hit enter. To dump the partition to the SD card you will have to type “dd if=/dev/block/mmcblk0p4 of=/sdcard/mmcblk0p4”.

Then you will have to type “exit” and hit enter, twice. Once you are back to the command prompt, type “db pull /sdcard/mmcblk0p4” and keep in mind the exact file size.

Now open “mmcblk0p4” with the hex editor you downloaded and look for offset “00000210” or “00000214”. You will find “CWS__001” along with your device’s IMEI. Change the “CWS__001” to 11111111 and then save the file as “mmcblk0p4MOD”.

Now you will have to make sure that the file you saved is exactly the same size as it was before you edited it.

Enter your command prompt again and type “adb push mmcblk0p4MOD /sdcard/mmcblk0p4MOD”. You are now back to Android’s shell with root access. Now type “dd if=/sdcard/mmcblk0p4MOD of=/dev/block/mmcblk0p4” and reboot the device in fastboot by typing “adb reboot bootloader”.

Once you see the bootloader screen type “fastboot oem readcid” and make sure it reads “11111111”. Now type “fastboot oem get_identifier_token” and go to HTCDev.com, choose “All other supported models” and press “Begin unlock bootloader, then follow the instructions.

After you finish your bootloader should be unlocked and you will be able to root your device and flash everything you want on it.

  • Premnath Kamalanathan

    After doing all .. mine still reads CWS__001