Monday, March 18, 2013

Installing CM 10.1 on the HTC One X

This is not the hardest thing to do, however no one seems to have a complete tutorial. Everything seems half done and no one really explains what is needed and why you should do in case everything goes pear shaped.

Please be advised if this doesn't work, I cannot and will not be held responsible. Be a grown up and take responsibility for your own actions mkay. This will void your warranty and taking it to HTC or whoever may be futile. There is a chance of bricking your phone...I am not sure how, but thats like a standard thing to say.

Your phone will need to have a custom recovery installed in order to do this, you will also need to have a computer (Mac or PC) with adb installed on it. There are multiple ways to do this so please just  Google it, I will probably make a post on it one day, but today, today is not that day.

Moving along swiftly, you will also need to have an unlocked HTC One X. This means you went to http://www.htcdev.com/ , created an account and proceeded to unlock the bootloader of your phone. And please, I beg of you, charge your phone to at least 80%, just to be safe.

EDIT: I forgot to mention that you must be on the latest One X firmware - 4.1.1, you need to have your HBoot at later stage than 1.28.XXXX, which i can say for a fact is the case in 4.1.1, but I'm not sure about any other.

If at any stage you are confused as to what I mean, please stop, do not continue. I am using jargon for the specific reason that if you do not understand what I am saying you should probably not be trying this. It can mess up your phone and so you either need to know what you are doing, or be a really cocky person.

Moving along. Once your phone is ready and your computer is set. Go to the xda-developer link and download the build you desire. You can navigate to the 'official' get cm site or just download which ever build from those guys. Also there is a warning that you need to heed (and I do mean NEED).
There is a link to the 'vendor installer', download this too.
Also download the latest GApps version, otherwise no playstore for you!

All the links are on the first page of the above mentioned link, if you cant read then you should stop reading and stop trying this.

Finally we are at the fun/nerve-wracking part.

Simple Steps:

1. Make a nandroid backup

  • Reboot into recovery (power button and VOL down, then select recovery - supposedly you can get there by holding VOL up, but it doesn't always work for me)
  • Click 'backup/restore'
  • Select 'make backup now' or some such option
  • Wait for it to finish
  • Once it is finished reboot your phone (I know there is not a single tutorial with this line in it, but please just trust me)
  • Now copy the backup you just made off you phone, you only really need the boot.img, whichever is easiest. 
2. Install CM
  • While the phone is on, copy the CM build, the vendor installer and the GApps file onto the phones sdcard (use any means you feel like, i used 'adb push xxxx /storage/sdcard0"
  • Reboot into recovery again
  • Do a factory reset (if you don't, don't cry when you phone doesn't work)
  • Select 'Install Zip from Sdcard' 
  • Select 'Choose Zip from Sdcard'
  • Scroll down to the ROM and select it- should be named 'cm-10.1-[build date]-xxxx'
  • Select 'Yes' among the long list of 'No's'
  • Wait while it installs
  • Now select the vendor installer - it should be named 'cm-10.1-endeavoru-vendor-installer'
  • Wait for that to finish installing
  • Then install GApps in the same way
  • Once it is done, go back to the first screen and factory reset again. 
3. Flash New Kernel
  • This is not optional - if you don't do this your phone won't boot. 
  • Connect your phone to your computer and type 'adb reboot bootloader' in a terminal/command line
  • Then when you are in Fastboot mode (you will know this by the 'Fastboot' in red at the top) type 'fastboot flash boot /path/to/boot.img in a terminal/command line (please replace /path/to/ with where ever the boot.img is located on your computer)
  • That should take about 5s, then type 'fastboot erase cache' in a terminal/command line. 
  • Finally type 'fastboot reboot' and you should be done

So you should boot into CyanogenMod 10.1

If you have any issues then follow the next few steps - I promise you will love me for this.

To restore your backup:
  • Hold the power button and VOL down
  • Use the VOL buttons to navigate to 'Recovery' and select using power button
  • Once in recovery go to 'backup/restore' -select 'restore' and then select your backup
  • Once the backup is finished you need to type into a terminal or command line 'adb reboot bootloader'
  • This will take you to fastboot again.
  • Remember that boot.img i said you should take from your backup earlier in 1. - you need that now, type fastboot flash boot /path/to/backup/boot.img.
  • Now you can reboot and everything should be hunky dory. 


Hope this helps someone who is having issue with installation/recovery.

Also at the time of writing this, i have an annoying issue such that my notification bar doesn't work, the home button doesn't work and my lock screen will not display...so again, this is at your own risk. 

Enjoy!

EDIT:
Due to the issue's i was experiencing on CM, a took the advice of a friend of mine and decided to try out SlimBean - it seems to be based on CM but is tiny compared - the ROM i installed was about 100MB, and the Gapps was about 25MB as opposed to 190MB and 95MB respectively for the CM installation. It works better, haven't had any issues, has all the same mods, and fewer of the bugs...not sure how but hey. Even bluetooth pairing is working. Installation is pretty much the same as with CM, however if you are already on CM, just go to recovery, do a factory reset, install the ROM and 'adb reboot bootloader' then 'fastboot flash boot.img' (same as with CM - the boot.img from the SlimBean package), 'fastboot erase cache', and finally 'fastboot reboot' and you are done!  

No comments:

Post a Comment