Note: This procedure is meant for HTC One X but also works on other android phone and tablet devices.
The boot.img file is required to install a custom ROM on the HTC ONE X which is currently S-ON. S-OFF devices need not require the additional steps of flashing a boot.img file but as S-OFF is yet to be achieved on the HTC One X(at the time of article publication), it is highly recommended to use a ROM in combination with a boot image file or you may end up in boot loops.
Getting started with the boot.img file flashing procedure on android phone:
If you are coming from the rooting guide for ONE X, this process is totally compatible for your device.
- Keep the working USB cable ready
- Make sure you followed and installed adb & fastboot drivers on your computer.
- You have made a full Nandroid backup via Recovery menu.
Steps to Flash boot.img file on HTC One X or any Android Phone:
- If are not already on Bootloader then, Hold both POWER and VOLUME DOWN for 10 seconds or until device reboots.
- You will get into the bootloader, if not keep holding the POWER and VOLUME DOWN.
- Now select Fastboot by pressing POWER button.
- Connect your device to computer via USB
- You will see the change to Fastboot USB being displayed in red on the screen.
- If you don’t have the fastboot kit already, download it here.
- Extract the folder in a easily accessible location.
Place the boot.img file that you downloaded from the ROM makers website in the same folder and replace any other boot.img file with the same name in the folder or delete it. Alternatively you can use the executable boot.bat file to avoid the next steps involved in flashing boot.img file(if provided by ROM maker).
- Open Command prompt or terminal and navigate to the folder where fastboot and adb files are stored.
- Type following commands: (if your boot image file has a different name, use it with the below command, just replace boot.img with whatever is the name of file).
fastboot erase cache fastboot flash boot boot.img fastboot reboot
- You can see the progress in the command prompt/terminal and a success message.
- If you find any error or the flashing is stuck on some step, you either have not installed the drivers properly or device isn’t in the fastboot mode. Check the device connectivity by typing “fastboot devices”. If you see a any output name, a device ID like HT78698UGJHG, your device is connected properly and you just need to retry avoiding simple errors like typos or wrong file path.
- You have successfully flashed the boot.img and ready for the first boot of your brand new custom ROM.
- Only if this isn’t your first boot and you were flashing a custom kernel, reboot into recovery by pressing VOLUME DOWN to select recovery mode, then press POWER button and wait until device reboots. Now continue with STEP 2 (flashing modules of kernels)
Flashing the wrong boot.img is risky and you end up in bootloops, so avoid using this procedure unless you are very sure about what you are doing. If you unfortunately get stuck on the flash/start screen follow this guide to unbrick or restore your HTC One X.