[HTC One X] Biffa:
Please Note:

This guide is for people with existing nandroid backups of their original ROM.

It is just what it says on the tin and if you follow the steps exactly and have backups you should be able to get back from anything.

[Disclaimer] I offer no guarantees that, through unforseen circumstances or user error, you won't lose all your data, brick your device or cause world peace.

Currently this guide is NOT going to go through all the steps to get full recovery if you FUBARed your OneX while performing an unlock, root or if your device ran out of juice.

That is much more complicated process and there are already great emergency recovery guides that comprehensively cover those sorts of issues:

[TUT] Disaster Recovery - How to recover from nearly everything [Updated 21/04/2012]

[TUT]How to get our of HBOOT loop.(NO ROM/NO RECOVERY)

Theoretically you could use this process to do the same with other stock carrier ROMS such as Orange or T-Mobile or AT&T etc.

Restoring to stock with nandoid backup of original ROM

So I was on 1.26 stock on Vodafone UK (Locked)

I went through the process to unlock, root and flash custom recovery so I could use custom Roms.. as you do :)

Note: I DID take a nandroid backup of the stock ROM during the process above.

Fast forward: 1.28 Update rolled out on Vodafone but you can't get it on a custom ROM so decided to roll it all back to stock 1.26

At the time I was on the latest 1.28 based LeeDroid 4.0

I spent days combing over threads to get a good clear guide and although the info is there somewhere and its probably just me being thick but I couldn't find one that suited me.

So heres what I did, I wrote it down step by step and it was successful for me.

What you need:

Battery charged to 100% - VERY IMPORTANT

Latest CWM must be already installed from here - Credits broncogr & Koush

Nandroid backup of your original ROM when you first unlocked your device

Nandroid backup of your current ROM if you want to go back to it later.

Download the excelent Fastboot pack from here - Credits to Try4Ce and Mike1986

Reverting to stock:

Unzip and download everything you need into a folder on your computer (e.g. c:\OneX)

Open a dos box and change directory to your folder

Reboot your device to Clockword Mod recovery

If you have not done so, make a nandroid backup of your current rom

Restore your original nandroid backup

Reboot your device and hold down the power and down volume key to get into HBOOT

Hit the power button to go into FASTBOOT

Now go back to your dos box and run the following commands one after the other:

Type: 02-restore-126-boot.bat

Type: 05-erase-cache.bat

Type: 01-restore-126-recovery.bat

Type: 09-reboot.bat

Once phone has rebooted into the OS go to Settings->About->Software Updates

Press "Check Now" and follow the instructions to download and install the updates.

Once you reboot after the updates you can check the software version has changed.

Reflashing your ROM back to rooted custom rom with CWM recovery.

You should know how to do this, but if you forgot, I used this guide just remember you're device is still unlocked so you can skip that bit: [Tut] Preparing Your One X for Custom Roms (For Dummies)

Optional: If you want to relock your device and send it back to carrier for repair (or some other reason) or you I don't want to go back to the freedom of custom roms. :eek:

To relock your bootloader:

Reboot your device and hold down the power and down volume key to get into HBOOT

Hit the power button to go into FASTBOOT

Open a DOS box and go to your folder with your tools in it from above.

Type: fastboot oem lock

Done