How to Install CyanogenMod on the HTC One X ("endeavoru")

From CyanogenMod
Jump to: navigation, search

This guide will walk you through the process of taking the One X from stock to having a custom recovery image and the ability to flash the latest version of CyanogenMod.

Note: DISCLAIMER

Modifying or replacing your device's software may void your device's warranty, lead to data loss, hair loss, financial loss, privacy loss, security breaches, or other damage, and therefore must be done entirely at your own risk. No one affiliated with the CyanogenMod project is responsible for your actions. Good luck.


Important Notes

CyanogenMod builds for endeavoru currently do NOT support any bootloader version number below: HBOOT 1.28. As the device is S-ON (security-on bootloader), for a working installation you must extract the boot.img from the installer zip and run fastboot flash boot boot.img from fastboot mode. If you see kernel related changes in the changelog of endeavoru builds, you will need to do this every time you update CM on your phone. Read the Additional Info and Installation sections below for more details.

Unlocking the device

Note:

The One X can be unlocked officially via the HTC Dev unlock program. This unlock method may have certain restrictions, such as not being able to flash a kernel via recovery (no longer applicable to 2013+ released devices) or no USB access to sdcard in recovery. Some devices, however, have no other method to install custom firmware.

  1. Configure your computer for fastboot.
  2. Enable USB debugging on the device.
  3. Connect the device to the computer through USB.
  4. From a terminal on a computer, type the following to boot the device into fastboot mode:
    $ adb reboot bootloader
  5. Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
    • If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
    • If you see "no permissions fastboot", try running fastboot as root.
  6. From the same terminal, type the following command to obtain your bootloader unlock token:
    $ fastboot oem get_identifier_token
  7. Visit the HTCDev Bootloader Unlock website and follow the instructions there to obtain your unlock key. If your device does not appear in the drop-down list, select All Other Supported Models.
  8. If the device doesn't automatically reboot, reboot it from the menu. It should now be unlocked.
  9. Since the device resets completely, you will need to re-enable USB debugging on the device to continue.

Installing recovery using fastboot

You can use fastboot to install your recovery image to the device.

Installing recovery on the One X

  1. Download koush's recovery -- you can directly download the recovery image using the link below, or visit clockworkmod.com/rommanager to check for the latest version of ClockworkMod (if your device can be found there). Be careful to select the right image!
  2. Connect the One X to the computer via USB.
  3. Make sure the fastboot binary is in your PATH or that you place the recovery image in the same directory as fastboot.
  4. Open a terminal on your PC and reboot the device into fastboot mode by typing
    adb reboot bootloader
    or by using the hardware key combination for your device while it is powered off.
  5. Once the device is in fastboot mode, verify your PC sees the device by typing
    fastboot devices
    • If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
    • If you see "no permissions fastboot", make sure your UDEV rules are setup correctly.
  6. Flash recovery onto your device by entering the following command:
    fastboot flash recovery your_recovery_image.img
    where the latter part is the filename of the recovery image.
  7. Once the flash completes successfully, reboot the device into recovery to verify the installation. Boot to recovery instructions: Vol Up & Power
    • Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.

Installing CyanogenMod from recovery

  1. Download the CyanogenMod package for your device that you'd like to install to your computer.
    Optional: Download 3rd party applications packages, like Google Apps which are necessary to download apps from Google Play.
  2. Boot to recovery mode, and connect the phone to your computer through USB.
    • Vol Up & Power
  3. In ClockworkMod Recovery, use the physical volume buttons to move up and down. On most devices, the power button is used to confirm a menu selection, but for some devices a physical home key acts as a selector. Some devices have touch enabled ClockworkMod Recovery, in which case you may be able to swipe to, or touch, menu selections.
  4. Optional (Recommended): Select backup and restore to create a backup of your current ROM.
  5. Select wipe data/factory reset.
  6. You have two options for transferring and installing the installation packages. Both cases require adb to be working in recovery. The sideload method is more universal across devices, whereas the push and install method is more commonly used:
    • Sideload method: select install zip > install zip from sideload. Follow the on-screen notices to install the package. The installer does not necessarily display an "Install complete." message. You can tell the install is complete if there were no fatal error messages and you have regained control over the menu.
    • Push and install method: Open a command prompt (or Terminal on Mac and Linux) and navigate to the directory holding the package(s) you would like to install. On the device, navigate to the mounts and storage menu. If you see /storage/sdcard0 as a mountable volume, go ahead and mount it. If you do not see this directory, then instead mount the /data directory. Take note of which volume you mounted. Now, push the package(s) to your device:
    - If you mounted /storage/sdcard0, then: adb push update.zip /storage/sdcard0/
    - If you mounted /data, then: adb push update.zip /sdcard/0/
    where update.zip should be replaced with the package filename. Go back to the main menu and select install zip. Choose to install from the same directory where you pushed the package(s). If you are installing multiple packages, install CyanogenMod first and then install any subsequent packages on top of it.
  7. Once installation has finished, return to the main menu and select reboot system now. The device will now boot into CyanogenMod.

Note:

This device, if unlocked with HTCDev Unlock, must have its kernel flashed via fastboot. Extract boot.img from the CyanogenMod .zip package and flash it from the bootloader with: fastboot flash boot boot.img

Helpful Tip

See something wrong on this page? Report it here.