Friday, May 18, 2012

HTC One X (GSM - Tegra 3) : detailed instructions to flash "[18-05] [ROM] CyanogenMod 9 - Endeavor Unleashed | 008" step by step

Time to give my HTC One X (HOX) a "true" AOSP-based Android experience, so I decided to install the TripNDroid custom stock ROM [18-05] [ROM] CyanogenMod 9 - Endeavor Unleashed | 008 (look for the most up to date version on HTC One X with Tegra 3 - OneX.MoDaCo.com).

As usual, use it at your own risks as you may brick your device.



IMPORTANT : if something goes wrong ...
Head to the When something goes wrong section at the end of the F - Finalize the CyanogenMod flashing section



Prerequisites

This ROM is suitable only for the international HTC One X model (GSM - Tegra 3).

The [18-05] [ROM] CyanogenMod 9 - Endeavor Unleashed | 008 is still in alpha, not even in beta, so be sure you accept that some functions don't work properly !!!

You also have to unlock the bootloader and install a custom recovery. (small lexicon)

Head to HTC One X (GSM) : detailed instructions to unlock bootloader, install custom recovery and root for detailed, step by step, instructions and follow the instructions for A - Unlock the bootloader and B - Install a custom recovery.


A - Preparation

1) Download the file cm_endeavoru-ota-eng.noeri_008.zip on your computer from [18-05] [ROM] CyanogenMod 9 - Endeavor Unleashed | 008 (the link is near the end of the post #1, between "Download" and "Donations"). Put the downloaded file in the folder droid/ along with the fastboot command.

2) Unzip the file cm_endeavoru-ota-eng.noeri_008.zip in the folder cm_endeavoru-ota-eng.noeri_008/ and move the file boot.img in the same folder as the cm_endeavoru-ota-eng.noeri_008.zip. (Why should I manually flash the boot image ?)

3) Download the latest Google apps's file (gapps-ics-20120429-signed.zip) on your computer from gapps-ics-20120429-signed.zip. Put it in the folder droid/ along with the fastboot command.

4) Check the MD5 checksum for the Google Apps file gapps-ics-20120429-signed.zip by opening a command shell and entering the command

droid $ md5 gapps-ics-20120429-signed.zip
MD5 (gapps-ics-20120429-signed.zip) =
7c524e1e078164f681e0aa6753180b2c
droid $
Check the red part with the one provided in gapps-ics-20120429-signed.zip download page (MD5sum: 7c524e1e078164f681e0aa6753180b2c).

5) Plug the HTC One X on the USB cable.

6) Push the CM9 ROM cm_endeavoru-ota-eng.noeri_008.zip file at the root of the SDcard (/mnt/sdcard/).
You can do it by mounting the HTC One X as a USB device, and use your computer's file manager (Windows Manager or Finder) to copy the .zip file to the HTC One X
OR
you can use the adb push command from the command shell :

droid $ adb push cm_endeavoru-ota-eng.noeri_008.zip /mnt/sdcard/
730 KB/s (150106390 bytes in 200.604s)
droid $

7) Push the Google apps gapps-ics-20120429-signed.zip file at the root of the SDcard (/mnt/sdcard/) like you did it in 6).

8) Wait for 30 seconds then power off the HTC One X


B - Make a backup of your existing ROM using the custom recovery

9) Unplug the HTC One X from the USB cable.

10) Power on the HTC One X in bootloader mode by holding Volume-Down button while pressing the Power button.
FASTBOOT should be highlighted in blue.
Before doing this, you should ensure your phone has at least 50% battery !!

11) Choose the RECOVERY item (the 2nd one) using Volume-Down button. Then press the Power button.
The "quietly brilliant" white HTC screen appears briefly.
Then the "ClockworkMod Recovery v5.8.3.1" black screen appears.
The "Reboot system now" item is highlighted in blue.

12) Touch the "backup and restore" item.
The "Nandroid" screen appears.
The "backup" item is highlighted in blue.

13) Touch the "backup" item
The screen changes and the backup begins : boot image, recovery image, system, data, .android-secure, cache, sd-ext.
A md5 sum is automatically generated.
A "backup complete" message appears and the menu reappears.

14) Touch the "reboot system now" item to reboot your HTC One X.


C - Flash the boot.img

15) Power off the HTC One X. Ensure the HTC One X is not plug on the USB cable.

16) Power on the HTC One X in bootloader mode by holding Volume-Down button while pressing the Power button.
FASTBOOT should be highlighted in blue.

17) Select the FASTBOOT item (highlight using Volume-Up / Volume-Down button) then press the Power button.
FASTBOOT should now be highlighted in red.

18) Plug the HTC One X on the USB cable.
FASTBOOT should become FASTBOOT USB still highlighted in red.

19) Flash the boot.img (Why should I manually flash the boot image ?) from the command prompt used in step 4), by entering the command

droid $ fastboot flash boot boot.img
sending 'boot' (4286 KB)...
OKAY [ 0.666s]
writing 'boot'...
(bootloader) Format partition LNX done
OKAY [ 0.495s]
finished. total time: 1.161s
droid $

20) Power off the HTC One X using the Volume-Down button 3 times to select POWER DOWN. Then press the Power button.


D - Flash the CyanogenMod ROM

21) Unplug the USB cable from the HTC One X

22) Power on the HTC One X in bootloader mode by holding Volume-Down button while pressing the Power button.
FASTBOOT should be highlighted in blue.
Before doing this, you should ensure the battery is fully charged !!

23) Select RECOVERY using the Volume-Down button, then press the Power button.
The "quietly brilliant" white HTC screen appears briefly.
Then the "ClockworkMod Recovery v5.8.3.1" black screen appears.
The "Reboot system now" item is highlighted in blue.

24) Do some cleanup by touching the "wipe data/factory reset" item — which formats /data, /cache, /sd-ext, /sdcard/.android_secure .

OPTIONALLY : The "wipe data/factory reset" should be enough but if you want to be absolutely sure there's nothing left, you can continue the clean-up by touching the "wipe cache partition" item — which formats /cache — then touching the "mounts and storage". A new menu "Mounts and Storage Menu" appears. Touch the "format /data" item — which formats /data then go back to the "ClockworkMod Recovery v5.8.3.1" screen.

Many thanks to Nightranger73 for his help on the "wipe data/factory reset" issue.

25) Touch the 2nd item "install zip from sdcard"
The screen "Apply update from .zip on SD card" appears with the item "choose zip from sdcard" highlighted in blue.

26) Touch the highlighted item "choose zip from sdcard" (1st item, already highlighted)
The screen "Choose a zip to apply" appears with a list of files and directories.

27) Scroll through the files and directories (with your finger) until you see the file cm_endeavoru-ota-eng.noeri_008.zip (at the end of the list). Then touch it.
A new list appears

28) A new list appears with a lot of "No" and the item "Yes - Install cm_endeavoru-ota-eng.noeri_008.zip" in the middle. Touch the "Yes - Install cm_endeavoru-ota-eng.noeri_008.zip" item.
The installation begins and a log is displayed at the bottom the screen.
When the installation ends, you're back on the screen "Apply update from .zip on SD card".


E - Flash the Google Apps (optional)

29) Touch the highlighted item "choose zip from sdcard" (1st item, already highlighted) like you already did at step 26)
The screen "Choose a zip to apply" appears with a list of files and directories.

30) Scroll through the files and directories (with your finger) until you see the file gapps-ics-20120429-signed.zip (at the end of the list). Then touch it.
A new list appears

31) A new list appears with a lot of "No" and the item "Yes - Install gapps-ics-20120429-signed.zip" in the middle. Touch the "Yes - Install gapps-ics-20120429-signed.zip" item.
The installation begins and a log is displayed at the bottom the screen.
When the installation ends, you're back on the screen "Apply update from .zip on SD card".


F - Finalize CyanogenMod flashing

32) Touch the last item "++++Go Back++++"
You're now back on the screen "ClockworkMod Recovery v5.8.3.1"
The "Reboot system now" item is highlighted in blue.

33) Touch the "Reboot system now" item.
The HTC One X reboots.
The "HTC quietly brilliant" screen appears briefly.
Then the CyanogenMod 9 screen appears.
The update is rather quick, and you'll soon see the ICS screen.
A message box "Android is upgrading ..." may appear with the message "Optimizing application nn of nn"

If you're stuck for more than 5 minutes on the CyanogenMod startup screen, then something is going wrong !!...


When something goes wrong ...
Here are some places to find help :

Parameter Android

As all your data — accounts, parameters, applications, ... — have been wiped during the [18-05] [ROM] CyanogenMod 9 - Endeavor Unleashed | 008 installation process, you'll have to parameter again all the applications, accounts, ...


BUT YOU'VE NOT FINISHED !!



G - Reactivate the custom recovery [IMPORTANT]

34) Unplug the USB cable from the HTC One X

35) Power on the HTC One X in bootloader mode by holding Volume-Down button while pressing the Power button.
FASTBOOT should be highlighted in blue.
Before doing this, you should ensure your phone has at least 50% battery !!

36) Select the FASTBOOT item (highlight using Volume-Up / Volume-Down button) then press the Power button.
FASTBOOT should now be highlighted in red.

37) Plug the HTC One X on the USB cable.
FASTBOOT should become FASTBOOT USB still highlighted in red.

38) Erase the cache from the command prompt used in step 5), by entering the command

droid $ fastboot erase cache
erasing 'cache'...
OKAY [ 0.086s]
finished. total time: 0.086s
droid $

39) Power off the HTC One X using the Volume-Down button 3 times to select POWER DOWN. Then press the Power button.


H - Ensure the custom recovery is reactivated

40) Unplug the USB cable from the HTC One X

41) Power on the HTC One X in bootloader mode by holding Volume-Down button while pressing the Power button.
FASTBOOT should be highlighted in blue.
Before doing this, you should ensure your phone has at least 50% battery !!

42) Select RECOVERY using the Volume-Down button, then press the Power button.
The "quietly brilliant" white HTC screen appears briefly.
Then the "ClockworkMod Recovery v5.8.3.1" black screen appears.
The "Reboot system now" item is highlighted in blue.

If the HTC One X does not enter the recovery mode, but briefly displays a black screen then started Android the normal way, you'll have to start again the recovery reactivation process from step 34)

If you want to make a backup recovery of your HOX right now, follow the instructions from steps 12) and 13)

43) Touch the "Reboot system now" item.
The HTC One X reboots.


Enjoy :-)

4 comments:

ToshibaFreek said...

Excite bootloader unlock?
I have been working with several others trying to unlock the bootloader in the Toshiba excite. I know the hardware is completely different but I am wondering if the processor (being the same) could make all the difference. At least with languages. Do you have any thoughts? help us out if you can thanks.
ToshibaFreek

a2b said...

It looks like AT200 Excite is already dead in Toshiba's mind as it doesn't even appear on the support site (http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/home.jsp?project=tabletsupport&ct=UG).

As such Toshiba shouldn't mind to release at least device driver specific code and maybe some other part of their device's source code.

This should ease your effort a lot.

In my mind Toshiba completely failed as an Android tablet maker and I won't recommend buying their tablets.

Danny Maters said...

Nice blog, i have a blog too about htc one x kopen

john biber said...

can i install TripNDroid custom stock ROM in my HTC One S?

HTC One S