Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,209 Members 36,917 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
hasoon2000
Old
(Last edited by hasoon2000; 1st February 2014 at 04:03 PM.)
#1  
hasoon2000's Avatar
Senior Member - OP
Thanks Meter 9,187
Posts: 3,512
Join Date: Feb 2008
Location: Orland Park, Illinois

 
DONATE TO ME
Default [HOW TO] Unlock bootloader, Root, Flash Custom ROM, Flash Kernel

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. The custom recovery is for 2 different devices

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

If your phone is from AT&T or Telus, then flash the one that says TWRP ATT/Telus.

If your phone is NOT from AT&T or Telus, then flash the one that says TWRP International.

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!
* Developer of AIO Toolkits: Amaze 4G / Sensation 4G / Vivid / Rezound / MyTouch 4G Slide / One X (TEGRA3) / One S / One V / Evo 4G LTE / Droid Incredible 4G LTE / Wildfire S / Desire X / One X (Evita) / One X+ / Droid DNA *
* QX Series ROMs: Dinc4GLTE / One X+ *

If I have helped you, you can give me a donation so I can continue going to school!



Need a phone unlocked? PM me for details! I can unlock many GSM phones, even the new HTC One Series!

Need to see if an IMEI is blocked/blacklisted before your buy/sell/trade? PM me for details as well!

Not only do we Google you, we read your emails, too! <-- Article

"Something can scar you, but do not let it define you."
The Following 105 Users Say Thank You to hasoon2000 For This Useful Post: [ Click to Expand ]
 
hasoon2000
Old
(Last edited by hasoon2000; 27th December 2012 at 07:51 PM.)
#2  
hasoon2000's Avatar
Senior Member - OP
Thanks Meter 9,187
Posts: 3,512
Join Date: Feb 2008
Location: Orland Park, Illinois

 
DONATE TO ME
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 and you have the International model, 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.

AT&T and Telus ROMs are compatible with each other.

International models won't work on an AT&T/Telus 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!
* Developer of AIO Toolkits: Amaze 4G / Sensation 4G / Vivid / Rezound / MyTouch 4G Slide / One X (TEGRA3) / One S / One V / Evo 4G LTE / Droid Incredible 4G LTE / Wildfire S / Desire X / One X (Evita) / One X+ / Droid DNA *
* QX Series ROMs: Dinc4GLTE / One X+ *

If I have helped you, you can give me a donation so I can continue going to school!



Need a phone unlocked? PM me for details! I can unlock many GSM phones, even the new HTC One Series!

Need to see if an IMEI is blocked/blacklisted before your buy/sell/trade? PM me for details as well!

Not only do we Google you, we read your emails, too! <-- Article

"Something can scar you, but do not let it define you."
The Following 52 Users Say Thank You to hasoon2000 For This Useful Post: [ Click to Expand ]
 
hasoon2000
Old
(Last edited by hasoon2000; 27th December 2012 at 07:51 PM.)
#3  
hasoon2000's Avatar
Senior Member - OP
Thanks Meter 9,187
Posts: 3,512
Join Date: Feb 2008
Location: Orland Park, Illinois

 
DONATE TO ME
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.

Open up my toolkit and press "Factory RUU" from the links sections. I usually have the most updated RUUs that Football releases on my Dev-Host account. 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.
* Developer of AIO Toolkits: Amaze 4G / Sensation 4G / Vivid / Rezound / MyTouch 4G Slide / One X (TEGRA3) / One S / One V / Evo 4G LTE / Droid Incredible 4G LTE / Wildfire S / Desire X / One X (Evita) / One X+ / Droid DNA *
* QX Series ROMs: Dinc4GLTE / One X+ *

If I have helped you, you can give me a donation so I can continue going to school!



Need a phone unlocked? PM me for details! I can unlock many GSM phones, even the new HTC One Series!

Need to see if an IMEI is blocked/blacklisted before your buy/sell/trade? PM me for details as well!

Not only do we Google you, we read your emails, too! <-- Article

"Something can scar you, but do not let it define you."
The Following 36 Users Say Thank You to hasoon2000 For This Useful Post: [ Click to Expand ]
 
hasoon2000
Old
(Last edited by hasoon2000; 28th December 2012 at 07:01 AM.)
#4  
hasoon2000's Avatar
Senior Member - OP
Thanks Meter 9,187
Posts: 3,512
Join Date: Feb 2008
Location: Orland Park, Illinois

 
DONATE TO ME
4. How to use ADB Sideload

You may have seen what ADB Sideload around the forums but have no idea what it is. Since our 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!
* Developer of AIO Toolkits: Amaze 4G / Sensation 4G / Vivid / Rezound / MyTouch 4G Slide / One X (TEGRA3) / One S / One V / Evo 4G LTE / Droid Incredible 4G LTE / Wildfire S / Desire X / One X (Evita) / One X+ / Droid DNA *
* QX Series ROMs: Dinc4GLTE / One X+ *

If I have helped you, you can give me a donation so I can continue going to school!



Need a phone unlocked? PM me for details! I can unlock many GSM phones, even the new HTC One Series!

Need to see if an IMEI is blocked/blacklisted before your buy/sell/trade? PM me for details as well!

Not only do we Google you, we read your emails, too! <-- Article

"Something can scar you, but do not let it define you."
The Following 32 Users Say Thank You to hasoon2000 For This Useful Post: [ Click to Expand ]
 
hasoon2000
Old
#5  
hasoon2000's Avatar
Senior Member - OP
Thanks Meter 9,187
Posts: 3,512
Join Date: Feb 2008
Location: Orland Park, Illinois

 
DONATE TO ME
and for the hell of it in case I want to add even more.
* Developer of AIO Toolkits: Amaze 4G / Sensation 4G / Vivid / Rezound / MyTouch 4G Slide / One X (TEGRA3) / One S / One V / Evo 4G LTE / Droid Incredible 4G LTE / Wildfire S / Desire X / One X (Evita) / One X+ / Droid DNA *
* QX Series ROMs: Dinc4GLTE / One X+ *

If I have helped you, you can give me a donation so I can continue going to school!



Need a phone unlocked? PM me for details! I can unlock many GSM phones, even the new HTC One Series!

Need to see if an IMEI is blocked/blacklisted before your buy/sell/trade? PM me for details as well!

Not only do we Google you, we read your emails, too! <-- Article

"Something can scar you, but do not let it define you."
The Following 9 Users Say Thank You to hasoon2000 For This Useful Post: [ Click to Expand ]
 
targett
Old
#6  
targett's Avatar
Senior Member
Thanks Meter 12
Posts: 440
Join Date: Apr 2009
Quote:
Originally Posted by hasoon2000 View Post
Post 3: How to reverse everything and go back to stock
Can't wait for this one...
I'm a little confused as to how to do it!
Need to send mine back - faulty :'(

Sent from my HTC One X+ using Tapatalk 2
Touch HD > Touch HD2 > Desire HD > HTC One X+ > HTC One (M7), Eee Pad Transformer & 2x Nexus 7 (2013) (for the kids)
The Following User Says Thank You to targett For This Useful Post: [ Click to Expand ]
 
daredevil_off
Old
#7  
Member
Thanks Meter 12
Posts: 53
Join Date: Oct 2011
great tutorial, thanks.

but i think you should organize your posts using bold, colored and stepwise sentences. that would be great for clarity.
HTC One
stock, unrooted
CID: HTC__002


Previous Phones:
HTC One X+
stock, unrooted
CID: HTC__001


HTC Sensation
Battery: Anker 1900mAH


 
prissysox
Old
(Last edited by prissysox; 27th December 2012 at 05:11 PM.)
#8  
prissysox's Avatar
Senior Member
Thanks Meter 21
Posts: 118
Join Date: Dec 2010
Location: Louisville, Ky
I followed instructions exactly. How long should phone show cyanogenmod boot image?
I've tried two different roms and made sure i installed the boot.img according to instructions but I can't seem to get past boot image.

---------- Post added at 06:13 PM ---------- Previous post was at 05:14 PM ----------

Quote:
Originally Posted by targett View Post
Can't wait for this one...
I'm a little confused as to how to do it!
Need to send mine back - faulty :'(

Sent from my HTC One X+ using Tapatalk 2
Hold down power, volume up and down. Boot into bootloader. Select recovery. Select restore. Select one of your backups.
This should take you back.
 
PopAhmad
Old
#9  
PopAhmad's Avatar
Member
Thanks Meter 9
Posts: 61
Join Date: Jul 2012
Location: Amman
my phone stuck on boot screen when i tried to restore it from the NAND backup ...

anyway a great tool and make the life easier especially to the people who aren't familiar with black screen and white things
 
hasoon2000
Old
#10  
hasoon2000's Avatar
Senior Member - OP
Thanks Meter 9,187
Posts: 3,512
Join Date: Feb 2008
Location: Orland Park, Illinois

 
DONATE TO ME
Updated the Third Post!

Quote:
Originally Posted by targett View Post
Can't wait for this one...
I'm a little confused as to how to do it!
Need to send mine back - faulty :'(

Sent from my HTC One X+ using Tapatalk 2
Look at post 3

Quote:
Originally Posted by daredevil_off View Post
great tutorial, thanks.

but i think you should organize your posts using bold, colored and stepwise sentences. that would be great for clarity.
I'll fix it up later. At least the general idea is there.

Quote:
Originally Posted by prissysox View Post
I followed instructions exactly. How long should phone show cyanogenmod boot image?
I've tried two different roms and made sure i installed the boot.img according to instructions but I can't seem to get past boot image.
Shouldn't take more than 5 minutes to boot. Ask the respective devs about it.

Quote:
Originally Posted by PopAhmad View Post
my phone stuck on boot screen when i tried to restore it from the NAND backup ...

anyway a great tool and make the life easier especially to the people who aren't familiar with black screen and white things
Look at post 3. It should help now
* Developer of AIO Toolkits: Amaze 4G / Sensation 4G / Vivid / Rezound / MyTouch 4G Slide / One X (TEGRA3) / One S / One V / Evo 4G LTE / Droid Incredible 4G LTE / Wildfire S / Desire X / One X (Evita) / One X+ / Droid DNA *
* QX Series ROMs: Dinc4GLTE / One X+ *

If I have helped you, you can give me a donation so I can continue going to school!



Need a phone unlocked? PM me for details! I can unlock many GSM phones, even the new HTC One Series!

Need to see if an IMEI is blocked/blacklisted before your buy/sell/trade? PM me for details as well!

Not only do we Google you, we read your emails, too! <-- Article

"Something can scar you, but do not let it define you."

The Following 4 Users Say Thank You to hasoon2000 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes