May 2, 2011 19:01 GMT  ·  By

If you are one of the lucky owners of a rooted T-Mobile G2X smartphone and wish to have a go at the custom recovery or you simply want to try out a new official Android stock that has just been released, you will need to use a special tool called ClockWorkMod Recovery.

Developed by the guys over at XDA Developers, this tool successfully replaces the ROM Manager application that sometimes puts the device into an endless bootloop from which it cannot be restored.

The procedure consists of two steps, the installation of a Windows driver, while the second step requires the flash of the recovery using the OneClick App.

Make sure you have .Net Framework 2.0 or above installed. Extract the One-Click App on your PC, but make sure you remember the location.

Because smartphones equipped with Nvidia Tegra2 chispests, such as the G2X require additional drivers in Windows to support low level flashing, you will need to install the APX driver for Windows from APX folder.

Unfortunately, this method is only compatible with Windows, so you won't be able to use ClockWorkMod Recovery for T-Mobile G2X with other operating systems because it requires the installation of Nvidia drivers for Windows.

Do not try to run the installation of the APX driver under VMWare, as it will not work.

Remove the battery from your phone and plug in an USB cable to the PC. Press and hold the Volume Up and Down buttons and plug in the USB cable to the G2X phone, while still holding the buttons pressed until Windows detects a new APX device.

As soon as you see your PC detecting the device open Device Manager in Windows and look for a new 'APX Device' listed with an error icon.

Make sure you right click on it and select ''Update driver software,' then choose 'Browse my computer.'

Select 'Let me pick' and then 'Have disk', so you can browse to the directory you extracted the *driver* software to: One-Click-G2x-recovery-flash\APX.

Obviously you will need to accept any warnings that will display on the monitor, so you can install the driver.

After the installation completes you should see an 'NVIDIA USB Boot-recovery driver for mobile devices' under the Device Manager / USB Controllers.

To flash the One-Click App make sure you remove the battery from your phone and plug in an USB cable to the PC. Check the 'NvFlash' directory for the 'OneClickRecoveryFlasher.exe' and double click on it.

Disconnect the USB cable from the phone, press and hold Volume Up and Down buttons until you see the 'S/W Upgrade' screen on the phone.

Now plug in the USB cable to the phone and click the 'Flash ClockworkMod Test2' or 'Flash ClockworkMod 3.0.2.7' button depending on the version you want to flash.

You should be able to see a message 'S/W Upgrade - Please wait while upgrading' and some files that are being transferred.

As soon as the process is complete you can pull out the USB cable, put the battery back and boot into Recovery.

To boot into Recovery simply power off the phone, hold Volume Down and Power buttons, until the word 'Android' appears on the screen, after which you can let go of the buttons.