[Tutorial] Root, Unlock, Recovery and flashing a Custom ROM

Search This thread

KrazyKooter

Member
Mar 11, 2011
13
0
In step 3 there is this:
Alternatively, download this: http://xdaforums.com/show....php?t=2252959. This is a stock rooted rom for ATT. If you download and flash this instead of the super user tool, you're done. (This rom includes super user)

But when I go to download a rom there are 4 to choose from. which one do I want? I got a HTC One Black 64GB AT&T.
AT&T Stock Rooted DE-ODEX - 1.26.502.12 (966.64 MB) 2 Weeks Ago 665
AT&T Stock Rooted ODEX - 1.26.502.12 AT&T Stock Rooted ODEX - 1.26.502.12 (972.78 MB) 2 Weeks Ago 348
AT&T Stock Rooted DE-ODEX - 1.26.502.10 AT&T Stock Rooted DE-ODEX - 1.26.502.10 (966.74 MB) 04-27-2013 584
AT&T Stock Rooted ODEX - 1.26.502.10 AT&T Stock Rooted ODEX - 1.26.502.10 (972.88 MB) 04-27-2013 388

Thanks for the help.
 

slinson

Senior Member
Sep 26, 2012
130
12
Dallas
Download these adb/fastboot files: http://d-h.st/RvD

the link is dead.....


This is long, but it's nice for noobs because it's detailed. It's honestly kind of fun, I promise. I'm assuming you have WINDOWS. This is based off of the guide by torxx!. It's modified because some of the info is outdated (you don't have to flash the boot.mg separately, for example). If you are NOT a noob you can just look at the "overview" for each step.

UNLOCKING YOUR DEVICE WILL WIPE YOUR DEVICE. THIS IS A SECURITY FEATURE. BACKUP FIRST.

Part 1- gaining unlock token

Overview: go to htcdev.com and unlock bootloader

Be sure you've turned off fast boot option in power menu; usb debugging should be on (settings -> developer options).

Go to http://www.htc.com/www/software/htc-sync-manager/[1] and install HTC SYNC. Alternatively, if you know what you're doing, you can install these drivers:
x86 http://www.mediafire.com/?qabo1tue2v1ky75 x64 http://www.mediafire.com/?8dl8s3l9mr6ggr9

Go on http://www.htcdev.com[4] and create yourself an account on HTCDEV.

Download these adb/fastboot files: http://d-h.st/RvD

Make a new folder anywhere. We'll use C:/fastboot as an example.

Extract the zip downloaded to the new folder

Go Here http://www.htcdev.com/bootloader/[6] and select "All Other Supported Models" and "then begin unlock bootloader" (check the boxes, click proceed, all that good stuff). YOU CAN IGNORE THE DIRECTIONS THAT THEY TELL YOU (and follow this guide instead).

Power off your phone. Power your phone on by holding power and volume down.

Highlight 'Fastboot' the volume buttons then press power to "select".

Plug your phone into your PC and open a Command Prompt. (windows XP - Click Start > Run > type CMD in box then press OK; Windows 7 - Click Start > type CMD in search box then press Enter) Change directory to your folder where we put fastboot files by typing cd c:\fastboot for example.*

*Alternatively, you can just hold down shift and right click in the folder and select "open command window here". Neat huh?

Type this into your command prompt window: fastboot oem get_identifier_token

Select & copy the text as per step 9 on the HTCDev website

Paste your identifier token into the box at the bottom and submit

You Will Very Shortly Receive an email from HTCDev with a link to the second part of the instructions and your "Unlock_code.bin" attached

Download the "Unlock_code.bin" from the email and save it to the same folder that we extracted fastboot files

Type this into your command prompt window: fastboot flash unlocktoken Unlock_code.bin

The Display Will change on your phone, press Vol+ to accept and power to confirm.

Part 2

Overview: flash your recovery. Boot into recovery. Turn phone off if it boots into OS. Boot into back into recovery. You're done!


Download a recovery:

TWRP (the one I use): http://xdaforums.com/showthread.php?t=2173870

CWM 2: http://xdaforums.com/showthread.php?t=2172979

CWM: http://xdaforums.com/showthread.php?t=2173863

Place the Recovery file to the folder where the fastboot.exe is.

Same thing as above- boot (volume down + power) into the bootloader and highlight 'Fastboot' the volume buttons then press power to "select".

Do the same thing as with the command prompt above. This time, however, you'll be typing:

fastboot flash recovery "name_of_the_recovery.img"

For example:

fastboot flash recovery openrecovery-twrp-2.5.0.0-m7.img

then type:

fastboot erase cache

From the menu, boot into recovery (use volume to move up and down, power to select). The phone might boot to the OS instead of recovery, don't worry!

Turn off phone then turn on (while holding volume down) to boot back into the bootloader.

TAMPERED shows up, boot into recovery and now your recovery should be working!

Part 3- obtaining root

Overview: flash a super tool


Download a super user tool for root:

SuperSU (I use this one): http://xdaforums.com/showthread.php?t=1538053

SuperUser: http://download.clockworkmod.com/superuser/superuser.zip

Alternatively, download this: http://xdaforums.com/showthread.php?t=2252959. This is a stock rooted rom for ATT. If you download and flash this instead of the super user tool, you're done. (This rom includes super user)

Turn on your phone again (and disable usb debugging) and connect to computer, copy the .zip super user tool to a location you remember ON the phone.

Flash it with the Recovery: Power off your device and then hold the VOL DOWN + Power to boot into the Bootloader Navigate with VOL and Power to Recovery Now flash the .zip:

- install zip from sdcard
- choose zip from sdcard
- select the downloaded SuperSU/SuperUser zip file and flash it
- Reboot now

You're not out of the woods yet! The stock kernel is system write protected, so you still can't modify it (changes won't "stick"). You'll have to flash a custom rom or a kernel if you want stock instead.

I recommend these kernels: http://xdaforums.com/showthread.php?t=2255900 or http://xdaforums.com/showthread.php?t=2233665&highlight=menu

Download it.

Installing custom rom/kernel ("flashing a rom")

Overview: Download Rom, boot into recovery and wipe and then flash.

According to Shenye, even though your device is s-on, you can still flash boot now. So just do this:

Turn on your phone again (and disable usb debugging) and connect to computer, copy the .zip kernel/cutom rom to a location you remember ON the phone.

Flash it with the Recovery: Power off your device and then hold the VOL DOWN + Power to boot into the Bootloader Navigate with VOL and Power to Recovery Now flash the .zip:

- install zip from sdcard
- choose zip from sdcard
- select the downloaded SuperSU/SuperUser zip file and flash it
- Reboot now
 

lucent6408d

Senior Member
Feb 23, 2010
157
6
Issues with TWRP and my encrypted HTC One

Hi guys,

I have my phone encrypted because of my work email. However I need to do a factory refresh on it and when I boot into TWRP it does not asks me for the PIN so the drive remains encrypted so it wont let me do a factory refresh or if I try to install a new Rom then it wont show me the content of the sdcard. Also if I boot into bootloader, as soon as I select to do a factory reset it takes me back into TWRP and round and round I go.

can someone help me out please?

thanks
 

hchris24

Member
Apr 8, 2011
30
2
help

hello everyone thanks in advance i have unlocked my bootloader and i am now trying to flash twrp 2.6.0.1 and i have follwed all directions to the t but when i try to flash the recovery i get twrp openrecovery-twrp-2.6.0.1-m7.img is not recognized as an internal or external command operable program or batch file the only thing i see wrong is when i boot the one into fastboot and plug it into my pc the red fastboot disappears dont know if this is normal or even the problem and i did move the recovery image to the folder i have my fastboot exe file in
 

GCbard

Senior Member
Dec 27, 2011
1,215
245
I am confused and need some help. I am a galaxy nexus owner looking to upgrade to the HTC one. I am an AT&T customer. I was thinking of upgrading to the AT&T 32 or 64 gig HTC one or just buying the google play edition. I have done research on the "HTC one" xda forum as well as the "ATT HTC one" xda forum. I also see that there are firmware issues and such., My questions are this,

1. Would the Google play edition have more ROMS available to it?
2. Why are there different ROM editions for t-mobile, att and the international version if they are use pretty much the same gsm frequencies?
3. Are there limitations if I get a 32 gig or 64 gig att version compared to the google edition?
4. Are there rom incapabilities between the 32 and 64 gig att vesion?
5. why is there a "HTC one" xda forum and also a "ATT HTC one" xda forum?

thank you for your help. if this is not the right forum to ask this question please point me to the right one.
Thanks!
 

Dperks88

Senior Member
Oct 30, 2010
230
30
Point Pleasant
Trying to get my one to boot into recovery. Flashed twrp and nothing just pops up with a phone with a red x over it. Any ideas what i'm doing wrong?
 

disc0rdian

Senior Member
Nov 16, 2012
100
9
Trying to get my one to boot into recovery. Flashed twrp and nothing just pops up with a phone with a red x over it. Any ideas what i'm doing wrong?

Having the same problem. I have unlocked and rooted many many phones. I used revone to gain s-off and unlock the device. Removed the tamper flag as well. Then I used fastboot to flash clockworkmod and twrp recoveries (old and new versions). Then I rebooted bootloader, then tried to boot into recovery. Problem is everytime I boot into recovery it goes into stock recovery???

fastboot shows that the recovery partition is written too, I dont get it? Should I try locking and unlocking bootloader again? Or maybe locking then unlocking using the dev method?

Anyone else have this issue?
 

HyDRo1X

Senior Member
Jan 2, 2012
285
31
Costa Mesa
I bought my One through Swappa, the listing said Rooted & S-Off, but nothing else, but I see here rooting is step 3, should my bootloader be unlocked already? The listing said it was also Flashed back to stock so I assume it is, but I can't seem to access the recovery, unless i'm not starting it up right, what buttons do i press?
 

HyDRo1X

Senior Member
Jan 2, 2012
285
31
Costa Mesa
hello everyone thanks in advance i have unlocked my bootloader and i am now trying to flash twrp 2.6.0.1 and i have follwed all directions to the t but when i try to flash the recovery i get twrp openrecovery-twrp-2.6.0.1-m7.img is not recognized as an internal or external command operable program or batch file the only thing i see wrong is when i boot the one into fastboot and plug it into my pc the red fastboot disappears dont know if this is normal or even the problem and i did move the recovery image to the folder i have my fastboot exe file in

Same
 

dmmarck

Senior Member
Apr 11, 2011
467
78

I initially had this issue. Here's what I did after the first attempt.

Reboot normally, checked to see fast boot was not marked/selected in power options.

Reboot back into HBOOT, then select fastboot so it'd be in FASTBOOT USB mode.

Did the fastboot commands as normal. I did not use the erase/wipe cache command.

Checked to see if it stuck without rebooting either system or bootloader by just using the volume keys to navigate.

Confirmed it worked, rebooted. Then I went back into HBOOT and tried again.

Re: fastboot commands, I made sure to drag and drop the recovery image into terminal after typing the "fastboot flash recovery" bit. Doubt that had any substantial effect, but hey, anything is worth a shot.



Sent from my One using Tapatalk 4
 

Chuteboxe39

Senior Member
Dec 1, 2008
57
2
Custom ROM doesn't move past android load screen

First, thanks for the tutorial for people like me who don't know wtf they're doing. But I could use some help. In step three to obtain root you say to flash a superuser tool or alternatively flash a custom ROM. I went ahead and flashed the unofficial IllusionRom and it just sits at the android loading screen.

It obviously didn't work, do I do a factory reset? I did backup in recovery but when I go to restore it says it isn't there. Any help appreciated.


EDIT: Nvm, I managed to fix it by using adb push to sd card, factory reset/data cache wipe then flashing the root before ROM. Works great now.
 
Last edited:

dmmarck

Senior Member
Apr 11, 2011
467
78
First, thanks for the tutorial for people like me who don't know wtf they're doing. But I could use some help. In step three to obtain root you say to flash a superuser tool or alternatively flash a custom ROM. I went ahead and flashed the unofficial IllusionRom and it just sits at the android loading screen.

It obviously didn't work, do I do a factory reset? I did backup in recovery but when I go to restore it says it isn't there. Any help appreciated.


EDIT: Nvm, I managed to fix it by using adb push to sd card, factory reset/data cache wipe then flashing the root before ROM. Works great now.

You flashed root separately? Did it not come rooted?

Also, anyone have success with the Twrp rooting option? Where you swipe to root and such?

Sent from my One using Tapatalk 4
 

Top Liked Posts

  • There are no posts matching your filters.
  • 61
    This is long, but it's nice for noobs because it's detailed. It's honestly kind of fun, I promise. I'm assuming you have WINDOWS. This is based off of the guide by torxx!. It's modified because some of the info is outdated (you don't have to flash the boot.mg separately, for example). If you are NOT a noob you can just look at the "overview" for each step.

    UNLOCKING YOUR DEVICE WILL WIPE YOUR DEVICE. THIS IS A SECURITY FEATURE. BACKUP FIRST.

    Part 1- gaining unlock token

    Overview: go to htcdev.com and unlock bootloader

    Be sure you've turned off fast boot option in power menu; usb debugging should be on (settings -> developer options).

    Go to http://www.htc.com/www/software/htc-sync-manager/[1] and install HTC SYNC. Alternatively, if you know what you're doing, you can install these drivers:
    x86 http://www.mediafire.com/?qabo1tue2v1ky75 x64 http://www.mediafire.com/?8dl8s3l9mr6ggr9

    Go on http://www.htcdev.com[4] and create yourself an account on HTCDEV.

    Download these adb/fastboot files: http://d-h.st/RvD

    Make a new folder anywhere. We'll use C:/fastboot as an example.

    Extract the zip downloaded to the new folder

    Go Here http://www.htcdev.com/bootloader/[6] and select "All Other Supported Models" and "then begin unlock bootloader" (check the boxes, click proceed, all that good stuff). YOU CAN IGNORE THE DIRECTIONS THAT THEY TELL YOU (and follow this guide instead).

    Power off your phone. Power your phone on by holding power and volume down.

    Highlight 'Fastboot' the volume buttons then press power to "select".

    Plug your phone into your PC and open a Command Prompt. (windows XP - Click Start > Run > type CMD in box then press OK; Windows 7 - Click Start > type CMD in search box then press Enter) Change directory to your folder where we put fastboot files by typing cd c:\fastboot for example.*

    *Alternatively, you can just hold down shift and right click in the folder and select "open command window here". Neat huh?

    Type this into your command prompt window: fastboot oem get_identifier_token

    Select & copy the text as per step 9 on the HTCDev website

    Paste your identifier token into the box at the bottom and submit

    You Will Very Shortly Receive an email from HTCDev with a link to the second part of the instructions and your "Unlock_code.bin" attached

    Download the "Unlock_code.bin" from the email and save it to the same folder that we extracted fastboot files

    Type this into your command prompt window: fastboot flash unlocktoken Unlock_code.bin

    The Display Will change on your phone, press Vol+ to accept and power to confirm.

    Part 2

    Overview: flash your recovery. Boot into recovery. Turn phone off if it boots into OS. Boot into back into recovery. You're done!


    Download a recovery:

    TWRP (the one I use): http://xdaforums.com/showthread.php?t=2173870

    CWM 2: http://xdaforums.com/showthread.php?t=2172979

    CWM: http://xdaforums.com/showthread.php?t=2173863

    Place the Recovery file to the folder where the fastboot.exe is.

    Same thing as above- boot (volume down + power) into the bootloader and highlight 'Fastboot' the volume buttons then press power to "select".

    Do the same thing as with the command prompt above. This time, however, you'll be typing:

    fastboot flash recovery "name_of_the_recovery.img"

    For example:

    fastboot flash recovery openrecovery-twrp-2.5.0.0-m7.img

    then type:

    fastboot erase cache

    From the menu, boot into recovery (use volume to move up and down, power to select). The phone might boot to the OS instead of recovery, don't worry!

    Turn off phone then turn on (while holding volume down) to boot back into the bootloader.

    TAMPERED shows up, boot into recovery and now your recovery should be working!

    Part 3- obtaining root

    Overview: flash a super tool


    Download a super user tool for root:

    SuperSU (I use this one): http://xdaforums.com/showthread.php?t=1538053

    SuperUser: http://download.clockworkmod.com/superuser/superuser.zip

    Alternatively, download this: http://xdaforums.com/showthread.php?t=2252959. This is a stock rooted rom for ATT. If you download and flash this instead of the super user tool, you're done. (This rom includes super user) Or you can download a custom rom such as this one: http://xdaforums.com/showthread.php?t=2183023

    Turn on your phone again (and disable usb debugging) and connect to computer, copy the .zip super user tool to a location you remember ON the phone.

    Flash it with the Recovery: Power off your device and then hold the VOL DOWN + Power to boot into the Bootloader Navigate with VOL and Power to Recovery Now flash the .zip:

    - install zip from sdcard
    - choose zip from sdcard
    - select the downloaded SuperSU/SuperUser zip file and flash it
    - Reboot now

    You're not out of the woods yet! The stock kernel is system write protected, so you still can't modify it (changes won't "stick"). You'll have to flash a custom rom or a kernel if you want stock instead.

    I recommend these kernels: http://xdaforums.com/showthread.php?t=2255900 or http://xdaforums.com/showthread.php?t=2233665&highlight=menu

    Download it.

    Installing custom rom/kernel ("flashing a rom")

    Overview: Download Rom, boot into recovery and wipe and then flash.

    According to Shenye, even though your device is s-on, you can still flash boot now. So just do this:

    Turn on your phone again (and disable usb debugging) and connect to computer, copy the .zip kernel/cutom rom to a location you remember ON the phone.

    Flash it with the Recovery: Power off your device and then hold the VOL DOWN + Power to boot into the Bootloader Navigate with VOL and Power to Recovery Now flash the .zip:

    - install zip from sdcard
    - choose zip from sdcard
    - select the downloaded SuperSU/SuperUser zip file and flash it
    - Reboot now
    2
    Just wanted to say this tutorial was 100% dead on and what I used to unlock bootloader and root/rom my One.
    2
    yes because when u installed an official rom the root will delete

    Sent from my V8110 using xda app-developers app
    1
    I feel like this title should be changed to clarify that it's unlocking the bootloader, not the SIM lock.
    1
    Does this work on at&t HTC one m7 with 4.4.2 with sense 6 and the latest versión of h-boot 1.57?