[HTC One X] The-Last-Hylian:
Hi there and Welcome to my Ultimate Stock to Custom ROM Awesomeness Thread!

-----

There are still many of people out there who are thinking about Unlocking their Bootloaders, Rooting and installing a custom ROM onto their HTC One X.

I recently did so myself and although I've been a member on XDA for a while now and I rooted my old HTC Sensation I found the process to vary with my HOX.

Now there are many amazing Guides and "How-To's" already out there on XDA but I thought that I'd compile a lot of what's already in those threads and turn all of the yummyness that's already out there on XDA and write this from a first timers perspective.

Disclaimer:-

Please note that I'm no expert when it comes to this stuff and I'm not amazing at trouble shooting, if you follow this guide it should turn out fine but if not then this is no fault of my own, you do all of this at your own risk! As I say, it should be fine and you should get through this guide fine. There may be better ways of doing what I'm showing you in this guide but this is how I did it and it worked out okay for me. If you know of a better way the please feel free to state so in the following thread.

-NOTE-

THIS GUIDE IS FOR ICS ROMS ONLY, NOT JB ROMS.

So after that disclaimer relax, read, re-read and take your time and hopefully by the end of this guide you'll have a Custom Rom running on your HOX and without too much panicking and worrying. It's a bit wordy and a bit lengthy but it's an in depth guide.

BEFORE WE START! Go to your HTC One X, Settings, Developer Options and make sure that you've got USB debugging checked! I also always have Fast boot checked in the Power options as well, it's not really important for this guide but I like to know that when I turn my HTC One X off that it is truly off!

Also if you wish you can pop into security and check on 'Allow installation of non-Market apps in Unknown Sources. Again, not really important for this guide but always good to have checked!

---NOTE---

In this guide I talk about using ARHD 9.2, this is because it's the latest version that's been released at the time of writing. Naturally ARHD will be updated but the guide will still be okay to follow.

Lets Get Started!

---

Installing HTC Sync and the Android SDK onto your PC:-

Before we start anything I personally think that it's a good idea to get these two steps out of the way as we're going to need to use these tools a bit later on.

HTC Sync

To install HTC Sync the best way to do this is to follow this LINK and click on the Download link on the right hand side. Follow the Set-Up wizard and get HTC Sync installed onto your PC. Now I'm sure that I don't have to talk you through this step so we'll leave this part now and move onto getting the Android SDK.

Thanks to EddyOS for this recommendation:

So feel free to download either HTC Sync (It's the only version I've personally used), or download HTC Sync Manager as it's designed specifically for the One Series.

Android SDK

Now that you've gotten HTC Sync set-up onto your machine we'll start with the Android SDK, you can find the installation files here: Android SDK For Windows, Click on the "Download the SDK For Windows link.". Let it download the Run the file.

Now to make life a bit easier for us later, when you get to the menu for choosing the Destination of the program we'll alter this for ease of use later. When I'm in set-up it automatically sets the location to

We'll change this to:

Continue with the install.

Once installed the SDK 'should' open itself, if not then open it from the start menu.

You'll be shown a screen that has a load of options on it and a button at the bottom that says 'Install [X] Packages', Make sure that you have Android SDK and Android SDK Platform Tools checked (See Image).

The program will automatically select numerous other options, it's fine to leave these checked. the installation may take some time depending on your PC etc...

Now that's all finished we can move onto something a little more productive!

Backing Up Your Data:-

When I went to Unlock My Bootloader I read that I'd loose my data and I wasn't too happy about this, I came across this thread '[GUIDE] Full Phone Backup without Unlock or Root', which was a life saver, I'll talk you through some of it just so that we can get a backup made but if you want more concise instructions then make the jump to the thread and have a look!

Now, to backup!

Open your Command Prompt, for those of you who don't know how to do this it's Start > Run... > CMD > Okay. Now that you've got your Command Prompt open we'll need to find adb.exe, which should be at this location

as this is where we chose the Android SDK to be located when we installed it earlier!

So to find this in the command prompt type in

This will take you to that location. (See Image)

Now that we're in the platform-tools part of your PC in command prompt, it's the perfect time to plug in your HOX via USB to your PC, just choose 'Charge Only' for now.

Now back in CMD (command prompt) enter these values:

Please note that this will create a folder in your C:\ called 'backup', this is where your backup will exist, also please not that you can call your backup whatever you like, it doesn't have to be 'backup20111230.ab' but I prefer to choose the days date, so mine today would be 'backup20082012.ab', 20th August 2012. Once you've typed this into CMD you'll be prompted to unlock your phones screen and continue backup (See Image)

So unlock your phone screen, choose a password (write this down somewhere as you'll need to to replace the backup onto your phone after we've put a custom ROM onto it) let it start to backup!

Now there is a common issue with the backup's freezing at

If this is the case for you, just unplug the phone, exit out of CMD, plug the phone back in, get back into cd \Android\android-sdk\platform-tools in the CMD and this time alter the backup command so that it reads:

All you've done now is change -shared to -noshared, let the backup continue, hopefully it'll complete!

Now that you've got your backup all safely stowed away on your PC it's time to get down to business! Unlocking your Bootloader!

---

Unlock the Bootloader:-

Did you install HTC Sync at the start? As now you're going to need it!

Navigate your web browser to www.htcdev.com/bootloader and click register at the top, complete the registration process, making sure that you use an email address that you have access to.

Once registered make your way back to www.htcdev.com/bootloader and sign-in.

Once signed-in at the supported devices drop down select 'All Other Supported Models' and click on Begin Unlock Bootloader.

Now before we move onto anything else we're going to want the Fastboot Files, which Cursed4Eva is kindly hosting here: Fastboot Files

Once downloaded, on your PC go to the folder C:\Android and inside that folder create a new folder called fastboot, so you'll have

Now the fastboot files that I linked to earlier come in a Zip file, unzip it to C:\Android\fastboot, this makes it easier to find it in CMD.

Now back @ htcdev, you've registered and signed in? Good, you've chosen All Other Supported Models and clicked Begin Unlock Bootloader, it'll ask you if you wish to continue, click yes, then the Legal Terms will pop up, just click that you acknowledge both terms and continue with 'Proceed to Unlock Instructions'.

Now click through the instructions until Step 8, ignore everything else.

Now turn off your HOX, now we'll turn on the HOX into the Bootloader, so press and hold down the

Volume Down Button and whilst pressing the Power Button

, continue to hold this down, the phone may vibrate and bleep a bit but continue to hold it down until you are greeted with a screen that has some options on it, Fastboot, Recovery etc... Now the touch screen wont work so we navigate using the volume buttons & Power Button, press down on the Power Button wile you have Fastboot selected, you'll enter Fastboot Mode with the options HBoot, Reboot, Reboot Bootloader & Power Down. You'll see above these options it'll have Fastboot written and highlighted in Red, leave the phone as it is, just plug it into the PC via USB and that highlighted 'Fastboot' will become 'Fastboot USB'.

Now open CMD, enter

This will access the fastboot folder in your C:

Now in CMD once you're in the fastboot folder enter this command:

Now it'll bring up the Identifier Token. (see Image)

Now using your mouse, right click in CMD where it says

Highlight it to where it says

Now on your keyboard, once you've highlighted the Identifier Token press 'Ctrl + C' to copy the Identifier Token.

Now back at the HTC Dev website, scroll down to after Step 10, where it says My Device Identifier Token:, Click in that field and either press Ctrl + V or right click and paste your Identifier Token into that field.

Now Click Submit.

You'll now be taken to a page where you'll be informed to check your emails.

Open up your emails and you'll have an email from HTC and in that email will be an attachment, this will be called Unlock_code.bin.

Download it and place it in your fastboot folder at C:\Android\fastboot.

There will also be a link in the email which will say like "Continue with Bootloader Unlock Procedure" or something like that, Click it.

Back in CMD, you should still be at C:\Android\fastboot, now type in

Please note the Capital 'U' in Unlock_token.bin, press Enter.

Now look back to your HTC One X screen, it'll have two options on it.

1. YES Unlock Bootloader

2. NO Do not Unlock Bootloader

Select Yes with the volume keys and press the power button, the phone will turn itself off and reboot,

CONGRATULATIONS YOU'VE UNLOCKED YOUR BOOTLOADER!

---

Installing a Custom Recovery (Clockwork Mod) and Superuser Access, ROOTING YOUR HTC ONE X:-

Now that we've unlocked the bootloader we're really close to finishing the whole procedure and getting a custom ROM onto our HTC One seX!

Please note that there will be no images or screenshots from here on as a majority of this is all done on the phone handset bar the flashing of the recovery.img onto the handset.

Follow these links:

SuperSU for Super User Access, download the CWM installable ZIP: http://download.chainfire.eu/204/SuperSU/CWM-SuperSU-v0.94.zip courtesy of ChainFire, Please donate to this guy so he can buy some beers ;)

Clockworkmod Touch Recovery Thread: Download the latest Official Recovery

Again, please donate to broncogr and buy this guy a beer or at least hit Thanks.

So now that you've downloaded both files;

The CWM-SuperSU-v0.94.Zip file and the recovery-clockwork-touch-5.8.4.0-endeavoru.img

Right click on the recovery-clockwork-touch-5.8.4.0-endeavoru.img file and rename it to recovery.img, this makes it easier to work with later.

Connect your HTC One X to your USB cable and then to the PC, choose Disk Drive, next, copy and paste the CWM-SuperSU-v0.94.Zip file onto the root of the SD card for your HOX. Once that's on there, change the phones USB connection to charge only.

Open CMD, now get back into the fastboot folder in CMD, do you remember how to do this? It's C:\Android\fastboot then press Enter.

Now start the phone back up into the Bootloader, press and hold Vol Down and press Power Button, once in the Bootloader, once again, select Fastboot and then leave the phone as it is, running in Fastboot USB.

Back to CMD, type in this command:

Press Enter. You've just flashed a custom recovery onto your HOX, Once that's finished, type 'exit' into CMD to close the CMD panel.

Back on your HTC One X, using the Volume buttons navigate down to Power Down, once the phone is off, with it still connected to the PC via USB, start it up again into the Bootloader (Vol Down + Power). Once in the Bootloader select Recovery, hit Power. You'll then load up into Clockwork Mod Recovery.

Now you can use either the touch screen or the volume buttons. Navigate to 'Install ZIP from SD Card', hit the Power Button, next select 'Choose ZIP from SD Card'. Now you'll need to scroll right to the bottom of the list to the CWM-SuperSU-v0.94.Zip you placed on the phone earlier.

Click it and it'll ask you if you want to install, select yes install, and let it do it's thing, Then select 'Go Back', Reboot System Now.

Once the phone has shut itself down and restarted, go to the Play Store / Google Market and Install Titanium Backup: Titanium Backup Root. Let it install, once that's finished, start the App on your HTC One X and it'll ask you for Super User Access, grant/accept it.

With the older versions of TiBu (Titanium Backup) You had to go to the problems section and install BusyBox but i believe that it does it automatically now (At least it did for me) So when you start up TiBu You'll see this on screen:

CONGRATULATIONS YOU'VE ROOTED YOUR HTC ONE X!

---

Making a Nandroid Backup:-

Now that you're rooted and have a custom recovery we'll make a Nandroid Backup, this is EXTREMELY IMPORTANT as it'll act as your fail safe if flashing the custom ROM goes 'Tits-Up'.

When you make a Nandroid backup you are essentially making a carbon copy of how the phone is at that point in time. It doesn't matter if it's a stock rom or a custom rom.

If you are flashing a custom rom onto a phone and it goes wrong or has bugs in it or you don't like it you can restore the Nandroid backup and turn back the clock so that the phone will be as it was when you made the Nandroid backup, as you can see, it's important to do this.

To make a Nandroid backup

, turn off your handset, power up into the bootloader, go to recovery, once in recovery there will be the option Backup/Restore, choose backup, let the phone perform the backup - this may take a little time. Once it's finished, just choose restart/reboot phone.

There you have it your very first Nandroid backup!

If it makes you feel a little easier, before flashing a custom rom onto your phone you can transfer the Nandroid backup onto a PC.

Just connect your handset to a PC via USB cable, Disk Drive, then once you can get into the phone on the PC, enter the Clockworkmod folder and make a copy onto the PC of the 'backup' folder.

To restore a Nandroid backup

, providing you have the Clockworkmod\backup folder on your phones SD card, enter recovery, and in the option Backup/Restore, just choose 'restore' and off it goes, you've restored the Nandroid backup.

Many people make Nandroid backups before the flash a custom rom onto their phone, even seasoned veterans do this as it's your one fail safe against a disastrous occurrence... messing your HOX up! Some people make them Monthly, Weekly and even a few make them daily!

-NB-

BEFORE PERFORMING A NANDROID RESTORE, PLEASE PLEASE PLEASE READ THIS POST!!!

http://xdaforums.com/showpost.php?p=32084184&postcount=138

Now onto flashing ARHD!!!

---

Installing Android Revolution HD 9.2:-

We're so close to having a Custom ROM on our HTC One X, not far to go now!

Make sure you have at least 35% Battery when you do this! Preferably more, I cannot stress this enough!!!

Pop on over to Mike1986's ARHD Thread here: ARHD Thread Donate to Mike1986 if you like or Thank him as his work is brilliant!

Scroll down to the DOWNLOADS section and download Android Revolution 9.2, boot.img for 9.0.x and Super Wipe.

Next connect your phone to your PC and select Disk Drive, now copy the SuperWipe file and the ARHD 9.2 ROM onto your phones SD card at Root, no need to go any deeper.

Next take the boot.img for 9.0.x file (it's named Flash_boot_9.0.x.rar) and copy it to C:\Android, once the file is there, right click and Extract Here.

Now boot your HOX up into the Bootloader (Vol Down + Power) and then go into fastboot, connect your HOX to the PC to get Fastboot USB.

Now that you're connected, go back to C:\Android and click on the file called

In the CMD panel it'll ask you to hit any key, so just press Spacebar or whatever, it'll do it's thing, it might ask you to press any key again or it'll just finish.

Back over to your handset, Press the power button to get back into HBoot and then select Recovery.

Once Clockworkmod Touch Recovery has started once again choose the option 'Install ZIP from SD Card', then 'Choose ZIP from SD Card', now scroll down to the Superwipe ZIP, make sure you choose this and not the ARHD ROM, Anyway, choose the Superwipe script and select Yes when it asks you if you want to Wipe.

Once it's performed the wipe, select Go Back and now repeat 'Install ZIP from SD Card', then 'Choose ZIP from SD Card', this time select the ARHD ROM file.

The setup for ARHD will begin, on your handset select next, then select Agree, then next again.

You'll come across a screen that has two check boxes on it, one will say

Select this.

Tweeks: You'll be presented with a screen of Tweeks that can be included into the flashing of the ROM, I personally choose

Click Install, It'll finish, then Reboot.

Now don't panic, the first reboot can take up to 5 Minutes to complete, this is why it's imperative to have over 35% battery life as a shut down now can be disastrous!

Once it's rebooted you just have to setup your phone like you would do if it was fresh from the box.

Restore data backup:-

Now all that's left is to restore your data that you backed up at the beginning!

Open CMD, enter

Now do you remember where you saved your backup? Good!

Now in CMD enter the location and file name of your backup

Remember mine was todays date! On your HOX screen you'll be asked to enter your password that you chose when making the backup, it'll do it's thing Et Voila!

You've restored all your lovely data, remember, the stuff you had on the phone when it was stock? Nice!

CONGRATULATIONS!!!

YOU'VE MADE A DATA BACKUP, UNLOCKED YOUR BOOTLOADER, ROOTED & INSTALLED A CUSTOM ROM AND REINSTALLED YOUR DATA ONTO YOUR HTC ONE X!!!

I hope that you find this guide useful and that you've managed to fumble your way through it without too much trouble or many hiccups.

If you have any questions or hit any problems please feel free to ask, I'll try to help you if I can.

If this guide has helped you at all then please hit Thanks

GLHF!!!

The-Last-Hylian

---DISCLAIMER---

If I've said anything wrong or given out the wrong info, then please PM me and I'll make amendments.

Also, instead of donating to me or whatever, instead I'd just like to place a link to my site here: Tuffphones - The home of tough, rugged and waterproof mobile phones. (If I'm not allowed this link here please PM me and I'll remove it)