Friday, December 04, 2015

Flash CyanogenMod 11 (4.4) to HTC One X (endeavoru)

Short summary from various sources. Flashing is done on LinuxMint 17.1 machine.
Tools:
sudo apt-get install android-tools-adb android-tools-fastboot

1) Phone initial state is bootrom unlocked and has TWRP 2.6.3.0 installed. Last TWRP for endeavoru was 2.6.3.0. Doesn't work for 4.4 (Need at least 2.7)

2) So switch recovery to CWM-touch
2.1) Download
2.2) adb reboot bootloader
2.3) When in bootloader, choose fastboot
2.4) sudo fastboot devices
       Should list the phone
2.4) sudo fastboot flash recovery recovery-clockwork-touch-6.0.4.8-endeavoru.img
2.5) sudo fastboot reboot
       Boot back to android to prepare the rom file
       or shutdown and boot into recovery if already has rom file on phone. (GoTo 7)

3) Download ROM http://download.cyanogenmod.com/?device=endeavoru
    as of writing, version is cm-11-20151122-NIGHTLY-endeavoru.zip

4) Download GApp (for Google Play Store access)
     https://wiki.cyanogenmod.org/w/Google_Apps
     For this case, I used http://opengapps.org/?api=4.4&variant=nano

5) Place both files into phone storage

6) "adb reboot bootloader" to go into bootloader menu again.

7) Select "Recovery"

8) (Optional) Backup and Restore -> Create backup in sdcard0

9) Clean up
9.1) Wipe data/factory reset
9.2) Wipe cache
9.3) Advanced -> Wipe Delvik cache

10) Install zip from sdcard0
      First choose the ROM
      Next choose Gapps

11) Reboot to bootloader and choose fastboot again

12) flash boot
      On the PC, extract boot.img from the ROM's zip into a folder
      Then, do "sudo fastboot flash boot boot.img"

Step 11 & 12 are very important, otherwise, CM stucks in the spinning booting animation forever.


No comments: