This guide is for HTC One X Endeavoru and not HTC One X Evita. You can see which one you have in the HBoot menu.[toc]Someone from Iraq posted in our group that he needs some help with his HTC One X as he wiped the system folder via CWM on his device. Since there is no system, the phone stays on HTC logo and doesn’t go past that. It boots but it has no system to start. To make it work, all I did was:
- Boot into CWM and mount USB storage.
- Copy the CyanogenMod 10 zip file in the phone’s storage but before that I extracted the boot.img from the zip file and placed it in the folder where we had the ADB files.
- Unmount and flash the CyanogenMod 10 zip file via CWM.
- Boot into fastboot mode and flash the boot.img using the command fastboot flash boot boot.img
- Reboot the phone using the command fastboot reboot
The phone booted with CyanogenMod 10 Android 4.2.2 – smooth as butter! That is all he needed. Pretty easy, isn’t it?
But that is not all. Sometimes you may not be able to boot into CWM but you should always be able to boot into fastboot. Or, it may be possible that you don’t have enough charge on your phone that makes it impossible to flash files to your phone. There’s workaround for that.
Charge HTC One X in Fastboot Mode
floepie from XDA-Developers forum has made a script that charges your HTC One X when you are stuck in fastboot mode.
Copy the following code in a text file and save it as charge.bat Make sure you save it in the folder where you have ADB files.
" @echo off :start fastboot getvar battery-voltage fastboot reboot-bootloader ping /n 6 localhost >nul goto start "
Open Command Prompt in the same folder, type charge.bat and hit enter button. The script executes continuously and shows the voltage battery. Once it crosses 3680 mV (10% charge) you can start flashing files to your phone. However, I recommend you to charge it up to 3700 mV so you are sure it will last longer.
Unbrick the HTC One X
Disclaimer: Hack My Android is not responsible for what you do to your phone or if it goes to a state worse than it already is. The developers are also not responsible for the same!
Download the nandroid backup: (Source)
Place both files ending with .7z.001 and .7z.002 in a separate folder and join them using HJ Split so that you get a single zip file. Extract the contents of the zip file to get a folder which has the date of the backup as its name.
Boot into HBoot of your device by pressing the Volume up key while turning your phone ON. On the top, you will see the version of HBoot. It should be 1.39 as seen below:
If it is not, update it using the following method:
- Download firmware.zip and place it in the folder where you have the ADB files. If you do not understand this, you have not read this post from the beginning.
- Boot into HBoot and select Fastboot mode.
- When your phone is in Fastboot mode, enter the following command to lock the bootloader. If it is already locked, skip this step:
fastboot oem lock
- The device will reboot. Go into fastboot mode again and type:
fastboot oem rebootRUU
- A black screen with silverish HTC logo appears.
- Enter the command:
fastboot flash zip firmware.zip
- The green bar under the logo should go to 100%. If it doesn’t enter the same command again.
- Enter the command:
- You should be in fastboot mode now.
- Unlock the bootloader from HTCDev.com You will get a file called Unlock_code.bin. To unlock the bootloader, you need to enter the command:
fastboot flash unlocktoken Unlock_code.bin
- Your bootloader is unlocked.
Restoring the nandroid backup
Please note that all files you flash must be in the same folder where you have the ADB files.
- Download CWM for your phone and rename it has recovery.img
- Boot your phone in fastboot mode and use this command to flash it:
fastboot flash recovery recovery.img
- Extract the boot.img from the nandroid backup and flash it using the command
fastboot flash boot boot.img
- Now boot into HBoot and select “Recovery” option.
- In recovery mode, go to Mounts and Storage>Mount USB Storage.
- Your phone’s storage shows up on the PC. There should be a folder called “clockworkmod” in it. If it is not, create it.
- Inside the folder clockworkmod, create a new folder called “backup” and place the folder you obtained from the nandroid backup into this newly created folder.
- Unmount USB Storage in CWM and go back.
- Select “Backup and restore”>”Restore” and select the folder you copied in Step 7.
- Restore it, go back and select “Reboot system now”.
Your phone must reboot fine. If you are stuck in HTC logo, try to wipe data, cache and dalvik cache from CWM and reboot again.
If you face any issues, feel free to comment below.
Thanks Dlovan Kocher