Note: Make sure your battery is at least 70 percent and you have the HTC USB drivers installed (mostly automatically installed via internet). The steps may look daunting but the process is simple and won’t take much time. However, try this at your own risk though the chances of damaging your phone are minimum.
A) Unlock bootloader via htcdev:
- Kudos to HTC developers’ team for making this step easy. Simply login to htcdev.com and then register or sign up your account. From there on, select the option to unlock bootloader and then follow detailed steps from HTC to unlock the bootloader:
- Open www.htcdev.com/bootloader and then sign in with your password and username.
- Select HTC One X or ‘all other supported models’ if not listed from the dropdown menu of supported devices.
- Click ‘Begin Unlock Bootloader’
- Remove battery (if applicable) and reinsert it, then hold Vol Down while powering on the device to enter HBOOT.
- Highlight ‘FASTBOOT’ and hit the Power button.
- Connect device to PC over USB.
- On command prompt run
fastboot oem get_identifier_token
- Copy all the text between <<<<< Identifier Token Start >>>>> and <<<<< Identifier Token End >>>>> and paste into website.
- HTC will send you an email contain unlock_code.bin file. Copy this to your machine.
- Run
fastboot flash unlocktoken Unlock_code.bin
- Press OK using the Power button
B) Flash CWR: Clockworkmod Recovery will make installing custom ROMS a breeze. Follow these steps to install CWR:
- Download the ‘.img’ file of clockworkmod touch recovery here
- Download fastboot package here and then extract
- Place the img file in the same dir where you have fastboot binary.
- Connect your phone via usb to your computer
- Open a terminal or command prompt in your computer and also enter fastboot mode in your phone
i. Reboot the phone into HBOOT by powering on the device while holding Vol Down
ii. Select ‘FASTBOOT’ from the menu and accept it by pressing Power
- Verify your computer detects your phone by opening the terminal or command prompt of your computer and then typing
fastboot devices
which should return device serial number and no error.
- Run fastboot flash recovery name_of_recovery.img
- Reboot device into recovery by holding Vol Up during boot process
C) Download and flash Cyanogenmod 10.1 and Google Apps file
Note: you cannot use touchscreen in this mode. Use volume keys to scroll and power key to select.
- Download Cyanogenmod 10.1 RC4 and Google Apps.
- Copy the downloaded zip file to root of your internal SDcard
- Wipe data or factory reset
- Wipe cache partition and wipe dalvik cache
- Select install zip from sdcard
- Choose your cm 10.1 zip file and flash
- Choose Google apps or gapps zip file and flash
- Reboot system
Note: One of the most important steps in flashing any custom ROM on any android device is unlocking the bootloader. Do not skip this step.