[HOW TO] Unlock bootloader, Root, Flash Custom ROM, Flash Kernel And More!

Search This thread
Jul 27, 2012
17
2
.IMG fail.

Every time I boot into fast boot and run the 'Fast boot flash recovery recovery.img' prompt it responds with..

c:\fastboot>fastboot flash recovery recovery.img error: cannot load 'recovery.img'

Does any one know how to fix this? It's getting really frustrating and I have been here for hours non the wiser.
 

ATZ-007

Senior Member
Sep 7, 2009
1,169
326
London
Xiaomi Poco F3
please help meee
i have an htc one x running jelly bean 4.1.1 and i rooted it ...everything worked finee ... until i installed an app from the play store called font installer after i installed it i changed the font and installed the font ... the notification bar was gone ... i was able to use the device but without the notification bar so i turned it off and on again ... and i get stuck on the htc one logo ... PLEASE ANYONEEE PLEASE HELP MEE ... did i brick the device or what?? :( :( pleasee again hellpp and thank you

Using ADB from your computer, try pushing original font back in to phone. You should be able to extract from from any Sense 4+ Rom for One X.

Good luck :thumbup:

Sent from my HTC One X using xda premium
 

ClydeB1

Senior Member
May 6, 2009
11,018
4,274
Every time I boot into fast boot and run the 'Fast boot flash recovery recovery.img' prompt it responds with..

c:\fastboot>fastboot flash recovery recovery.img error: cannot load 'recovery.img'

Does any one know how to fix this? It's getting really frustrating and I have been here for hours non the wiser.

Have you placed the recovery.img file in your c:\fastboot folder and is the file named recovery.img? If the file has another name you need to use the actual file name.
 

_ice_man_

Senior Member
Jul 17, 2012
64
4
Hi guys, i have a few questions;
a)im on viper 2.7.1. an i would like to go to the newest viper.
As i understand i need a new hboot,my cid is hc_32.
I have a nandroid backup of my stock rom which i made right when i unlocked the bootloader and installed a custom recovery.
b) so what do i need to do? Just go back to stock rom and get the official update or do i need to go back and relock the bootloader?
A friend of mine bricked his phone trying to install the new viper and he has experience with installing new roms because he had at least 10 different ones on his HOX. So if anyone would be so kind and pm me or write noob step by step instructions how to get the updated hboot and install the new viper i would appreciate it very much.
Thanks in advance...
 

mrregina

New member
Nov 14, 2012
2
0
Root htc one x on official jellybean update

Post 1: How to unlock your bootloader, flash a recovery and root
Post 2: How to flash a custom ROM and kernel (boot.img)
Post 3: How to reverse everything and go back to stock
Post 4: How to ADB Sideload a ROM



Alright. This is for everyone who wants to root their phone. I've seen MULTIPLE threads of the same question "Can I root my phone and How do I do it". So I hope I never have to see it again! In this tutorial, I use use my toolkit as the way to root. Doing it manually takes forever and that is why I made my toolkit.

Requirements:
HTC One X (charged to at least 70%)
Windows XP,Vista,7 (8 is not officially supported since I don't have the drivers)
USB cable
Ability to read and follow step-by-step
Understanding that I am no way guaranteeing anything. If you screw up your phone, you probably didn't follow my steps and made a foolish mistake.

Let's begin.

Download my toolkit from here.

http://xdaforums.com/showthread.php?p=24972527

Extract the FOLDER to your C: drive or to your desktop.

MAKE SURE YOUR DIRECTORY DOES NOT HAVE A PERIOD OR SPACE.

Open One X.exe

So now you have my program open. Great.

On your phone, go to Settings -> Developer Options and Enable USB Debugging.

From my toolkit, Click 1. Install HTC Drivers.

After the drivers install, restart your computer.

After your computer loads up, open my toolkit and connect your phone to the computer. Your phone should now be recognized.

Now, click 2. Register at HTCDev. Register with a VALID email address and LEAVE the web browser open.

Now, under the commands section of my toolkit, press Boot into Bootloader.

You should have a nice, white, shiny screen that says FASTBOOT USB.

Click 3. Get Token ID. Look at the pop up and it will tell you how to get the Token ID.

Highlight where it says < < < < Identifier Token Start > > > > all the way to < < < < < Identifier Token End > > > > > and right click and it will automatically copy it.

Now, click Submit Token ID. Your web browser should now open a new tab. Scroll down and in the empty box, paste your Token ID. Press submit. HTCDev now emailed you your unlock token.

Your phone should still be in the bootloader. Now, go to the email address you registered to HTCDev and DOWNLOAD your unlock_code.bin. Press 5. Unlock Bootloader. Locate your unlock_code.bin and it will flash it to your phone.

READ the warning. THIS WILL WIPE ALL YOUR DATA FROM THE PHONE.

When you agree to it, press the volume up button and press the power button to accept it. Your phone will now restart.

When your phone loads up, go through the set up wizard. Then, on your phone, go to Settings -> Developer Options and Enable USB Debugging.

Under the Extras section, press Perm Root. It will push SuperSU.zip to your phone.

Under commands, press Boot into Bootloader once again.

Now, it is time to flash a recovery.

TWRP (Team Win Recovery Project) is a custom recovery that will allow you to flash custom ROMs, Mods, etc.

CWM (ClockWorkMod) is a custom recovery that will allow you to flash custom ROMs, Mods, etc.

I recommend TWRP and we will use it for this tutorial,

Select TWRP and press Flash Recovery.

After it flashes, remove the USB cable and have HBOOT selected in bootloader. Press the power button and it will reload to another screen. Press the Volume Down button until you get to Recovery. Press the power button to select it.

Go to Backup and back up your boot and system partition. Always have a back up before you flash or do anything.

After that, go to Install and locate SuperSU.zip. Click it and slide the screen on the bottom to flash it. After it flashes, reboot the phone.

In your app drawer (your menu with all the apps), open SuperSU. If it says the binary needs to be updated, then update it. If it doesn't, then you are fully rooted!

Hello, I recently updated my rogers htc one x to the official jellybean update. Can I still use the toolkit to root and the phone? PLease get back to me.
Thanks
 

ClydeB1

Senior Member
May 6, 2009
11,018
4,274
Hi guys, i have a few questions;
a)im on viper 2.7.1. an i would like to go to the newest viper.
As i understand i need a new hboot,my cid is hc_32.
I have a nandroid backup of my stock rom which i made right when i unlocked the bootloader and installed a custom recovery.
b) so what do i need to do? Just go back to stock rom and get the official update or do i need to go back and relock the bootloader?
A friend of mine bricked his phone trying to install the new viper and he has experience with installing new roms because he had at least 10 different ones on his HOX. So if anyone would be so kind and pm me or write noob step by step instructions how to get the updated hboot and install the new viper i would appreciate it very much.
Thanks in advance...
I presume your cid is HTC__032, if so you can download the 1.39 hboot firmware zip and flash that without having to return to stock and getting the JB OTA. If your intention is only to go back to a custom rom then flashing the firmware is the easiest way to do this. Before updating the hboot though you need to currently be on at least hboot 0.95 or higher. If not then you will need to flash a ICS ruu to first update your hboot.

To flash the firmware you need to run the following commands: (It is advised to first take a backup of your data and important files on your sd card and to place the rom file on your sd card)
1. Lock bootloader - fastboot oem lock
2. Boot to RUU mode - fastboot oem rebootRUU
3. Flash firmware - fastboot flash zip firmware.zip (if you get an error then rerun this command)
Note: The firmware will flash the new hboot, as well as a new stock boot.img and stock recovery.img.

4. Unlock bootloader - fastboot flash unlocktoken Unlock_code.bin (you can use the same unlock_code file as you used previously, check your emails if you can't find it, or else reapply at htcdev.com)
5. Flash custom recovery - fastboot flash recovery nameofrecoveryfile.img
Note: If the unlock process wiped your sd card you may need to boot to recovery and mount usb storage to copy the rom file across again. If your phone won't boot into recovery then run command - fastboot erase cache and try again.

If you then wish to flash a JB custom rom:
6. Flash new boot.img from rom - fastboot flash boot boot.img
7. For good measure - fastboot erase cache
8. Boot to recovery and flash rom
 

aban714

Member
Aug 28, 2012
15
7
unlock bootloader failed

Thanks Hasoon for this awesome tool. But I cant get my bootloader unlocked. HTCDev says unlock bootloader failed. error code 173 and reason: check rule fail with exception. I have seen many with this error.

this is my token id

<<<< Identifier Token Start >>>>
1F17803E91FADCAFD889068F88CC7118
57C47674D48F4505C1EAE2F4D41C9195
8AD4AFFAFD8C20F68358319568F3E43F
9485BD7FFB39F872A9C6497B3BB9C812
F7822305A3F2342C0DEF501A511FDBA9
8843E2FFE32B46B7CBADCE87F183C396
9498A9EEAF4F2A92C3A299A6156A8E69
99C2857F9A80D70678C5D5997508B8EE
C08DDB09CB96186AF706B2B2234C1E05
B3A055AD30D67527F5BC5A3FADEB940A
8408E07532D83F509C09E4A065069525
2577B2B55CFD763D644E0288CBC2D5FC
2699CAF7CD2C3DE10C162D2E9D9EAFFD
89660417E56C808048A7A6ABABAF3C1A
99255D7EDE7B031F69EEA92653A258D3
24B4233143240793944B3A8CD7C766CA
<<<<< Identifier Token End >>>>>

can someone check plz
 

iSaurabh

Member
Jan 13, 2013
24
4
Delhi
www.SaurabhDHar.com
Unlocking Bootloader Failed!

We're sorry, but it appears your attempt to unlock the bootloader on this device has failed. This could be caused by several factors including simple errors in the entry of the unlock token, problems with your device, or a lack of manufacturer support for the unlocking process. Please see the specific error code listed below, and try again if necessary.

Error Code: 173.
Error Reason: Check Rule Fail with exception.




Whats the problem ? :( :confused: :crying:
 
We're sorry, but it appears your attempt to unlock the bootloader on this device has failed. This could be caused by several factors including simple errors in the entry of the unlock token, problems with your device, or a lack of manufacturer support for the unlocking process. Please see the specific error code listed below, and try again if necessary.

Error Code: 173.
Error Reason: Check Rule Fail with exception.




Whats the problem ? :( :confused: :crying:
I'm prety sure it's the website and not our devices or methods. Alot of poeple have the same proubles (problems/troubles) as we do.:(
 

Top Liked Posts

  • There are no posts matching your filters.
  • 150
    Post 1: How to unlock your bootloader, flash a recovery and root
    Post 2: How to flash a custom ROM and kernel (boot.img)
    Post 3: How to reverse everything and go back to stock
    Post 4: How to ADB Sideload a ROM



    Alright. This is for everyone who wants to root their phone. I've seen MULTIPLE threads of the same question "Can I root my phone and How do I do it". So I hope I never have to see it again! In this tutorial, I use use my toolkit as the way to root. Doing it manually takes forever and that is why I made my toolkit.

    Requirements:
    HTC One X (charged to at least 70%)
    Windows XP,Vista,7 (8 is not officially supported since I don't have the drivers)
    USB cable
    Ability to read and follow step-by-step
    Understanding that I am no way guaranteeing anything. If you screw up your phone, you probably didn't follow my steps and made a foolish mistake.

    Let's begin.

    Download my toolkit from here.

    Link 1 and Link 2

    Extract the FOLDER to your C: drive or to your desktop.

    MAKE SURE YOUR DIRECTORY DOES NOT HAVE A PERIOD OR SPACE.

    Open One X.exe

    So now you have my program open. Great.

    On your phone, go to Settings -> Developer Options and Enable USB Debugging.

    From my toolkit, Click 1. Install HTC Drivers.

    After the drivers install, restart your computer.

    After your computer loads up, open my toolkit and connect your phone to the computer. Your phone should now be recognized.

    Now, click 2. Register at HTCDev. Register with a VALID email address and LEAVE the web browser open.

    Now, under the commands section of my toolkit, press Boot into Bootloader.

    You should have a nice, white, shiny screen that says FASTBOOT USB.

    Click 3. Get Token ID. Look at the pop up and it will tell you how to get the Token ID.

    Highlight where it says < < < < Identifier Token Start > > > > all the way to < < < < < Identifier Token End > > > > > and right click and it will automatically copy it.

    Now, click Submit Token ID. Your web browser should now open a new tab. Scroll down and in the empty box, paste your Token ID. Press submit. HTCDev now emailed you your unlock token.

    Your phone should still be in the bootloader. Now, go to the email address you registered to HTCDev and DOWNLOAD your unlock_code.bin. Press 5. Unlock Bootloader. Locate your unlock_code.bin and it will flash it to your phone.

    READ the warning. THIS WILL WIPE ALL YOUR DATA FROM THE PHONE.

    When you agree to it, press the volume up button and press the power button to accept it. Your phone will now restart.

    When your phone loads up, go through the set up wizard. Then, on your phone, go to Settings -> Developer Options and Enable USB Debugging.

    Under the Extras section, press Perm Root. It will push SuperSU.zip to your phone.

    Under commands, press Boot into Bootloader once again.

    Now, it is time to flash a recovery.

    TWRP (Team Win Recovery Project) is a custom recovery that will allow you to flash custom ROMs, Mods, etc.

    CWM (ClockWorkMod) is a custom recovery that will allow you to flash custom ROMs, Mods, etc.

    I recommend TWRP and we will use it for this tutorial,

    Select TWRP and press Flash Recovery.

    After it flashes, remove the USB cable and have HBOOT selected in bootloader. Press the power button and it will reload to another screen. Press the Volume Down button until you get to Recovery. Press the power button to select it.

    Go to Backup and back up your boot and system partition. Always have a back up before you flash or do anything.

    After that, go to Install and locate SuperSU.zip. Click it and slide the screen on the bottom to flash it. After it flashes, reboot the phone.

    In your app drawer (your menu with all the apps), open SuperSU. If it says the binary needs to be updated, then update it. If it doesn't, then you are fully rooted!
    66
    Post 2: How to flash a custom ROM and kernel (boot.img)

    The fun part! Now, I will teach you how to flash a ROM and boot.img

    Find a ROM you like, the first thing you should do is make sure it is COMPATIBLE with your phone. If you find a ROM that is for AT&T (Evita) and you have the International model (Tegra3), don't be an idiot and flash it. I will not help you with that since you already agreed to my warning from the first post.

    International models won't work on an AT&T HOX and Vice Versa.

    Also, DO NOT ASK IF YOU CAN FLASH A ROM FROM ANOTHER DEVICE!

    Will it work? NO! Will it ever work? NO! Can I flash it anyways? Brick your device, I don't care. I warned you.

    Let's get back on task. So you found the ROM you want to try, so go ahead and download it. KEEP THE THREAD OPEN! MAKE SURE YOU READ EVERYTHING AND REREAD IT AGAIN! READ WHAT USERS SAID ABOUT IT AND ABOUT BUGS! GO AHEAD AND READ THE WHOLE ENTIRE THREAD! GAIN KNOWLEDGE!!

    Connect your USB cable to your phone. View the folders on your phone. I like to make a folder called ROMs on my phone and transfer it in there.

    After you transfer it, open my toolkit and press Boot into Recovery. When you are in TWRP, MAKE A BACKUP!!!

    After you make a backup AKA a Nandroid, click Wipe. Wipe Cache, Dalvik, Factory Reset and System. NOTHING ELSE! If you click anything else, IT WILL WIPE YOUR SD CARD AND YOU WILL HAVE MORE ISSUES ON YOUR HEAD!

    So you wiped everything. Great. Your phone is ROMless, Yay!

    Now go back and press install. Go to the folder where the ROM you downloaded, is located in. Select the ROM and slide the screen to flash it. After it flashes, press the back button. Press Reboot and Reboot into bootloader. Open the ROM you downloaded from your computer. You should see boot.img. Extract it to your computer. Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it.

    After it flashes, press reboot from the phone.

    Congrats! Enjoy your fully working or borked ROM! Remember, DO NOT ASK FOR ETAs, DO NOT BUG/PM A DEV ABOUT UPDATES, and BE RESPECTFUL TO THE DEVELOPERS!
    39
    Post 3: How to reverse everything and go back to stock

    Now, let's talk about getting back to stock. There are 2 ways to do this.

    1. Flash the stock RUU (If available) (Recommended)
    2. Restore your Nandroid (backup that I told you to make earlier)

    1. I'll talk about flashing the stock RUU first.

    Go here and download the RUU.

    http://xdaforums.com/showthread.php?t=1543604

    Download the correct RUU for your phone.

    Now, back up all your data (pictures, contacts, etc) since this will put your phone back to complete stock.

    Connect the USB cable to your phone. Press Boot into Bootloader.

    It should now say FASTBOOT USB on your screen.

    Press Relock bootloader. It may give you a security warning error or it may say failed. Who cares, ignore it. It's normal.

    Your phone will boot up normally.

    When the phone is fully loaded. Unplug and replug the USB cable back in the phone. Now,run the RUU you downloaded and follow the instructions.

    Your phone will be back to stock.

    2. Now, we will talk about restoring your nandroid backup.

    Connect your phone to the computer. Open up the folder to view the files on your phone.

    From your computer, Go to TWRP -> BACKUPS -> (Your hardware Serial Number) -> (Folder you wish to restore to) -> and copy boot.emmc.win to your computer. Rename boot..emmc.win to boot.img

    Open my toolkit and press boot into recovery.

    Click Wipe. Wipe Cache, Dalvik, Factory Reset and System. NOTHING ELSE! If you click anything else, IT WILL WIPE YOUR SD CARD AND YOU WILL HAVE MORE ISSUES ON YOUR HEAD!

    Press back and press Restore. Choose the backup to restore to.

    After it finishes, press the back button. Press Reboot and select bootloader.

    Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it.

    You are now back to your stock Nandroid.
    38
    4. How to use ADB Sideload

    You may have seen what ADB Sideload around the forums but have no idea what it is. Since the HOX does not have an SD card, it makes things harder when you have to flash a ROM.

    Here's a scenario when we need to use ADB Sideload.
    1. You accidentally wiped your internal SD and have no ROM on your phone
    2. You wiped your ROM and forgot to transfer a custom ROM/have no backups(Nandroid) available.
    3, You have none of the above and there is no available RUU for your phone. <----- This is a real bummer.

    Here are the steps to load on a ROM
    I placed TWRP in my toolkit for a reason. CWM does not support ADB Sideload (as far as I know) and TWRP does.

    Boot into recovery manually. Turn your device off and hold the VOLUME DOWN + POWER button together until the BOOTLOADER pops up. Press the VOLUME DOWN button until you have selected RECOVERY. Press the POWER button to get into RECOVERY.

    Connect the USB Cable to your phone and computer.

    In TWRP, click "Advanced" and select ADB Sideload.

    Download a ROM to your computer (if you haven't already done so). Rename it as one word. For example CM10.zip, QX.zip, ARHD.zip, etc.

    In my toolkit, under the extras section, press ADB Sideload a ROM. Press "Yes" when it asks you if you are in recovery. Then select the ROM you want to install. It will then sideload it to your phone and flash it.

    After it finishes, press the back button. Press Reboot and select bootloader.

    Pull the boot.img from the zip file and extract it.

    Open my toolkit and press Flash a Kernel. Locate the boot.img and it will flash it.

    You now have a ROM on your phone!
    10
    1 more, just in case.