ROOT the M9 *Tested and working* - Sprint HTC One (M9)

First you must be HTCDEV unlocked. This will wipe data. You need ADB installed personally I use minimal adb fastboot
Step 1: Go to htcdev.com/bootloader, make sure you’re registered with HTC. Once the process of signing up is complete, log into HTC Dev. Also, make sure HTC Sync Manager is installed on your PC.
Step 2: Select your device from the Unlock Bootloader page. Select the “All Other Supported Models” as shown in the screenshot below. Click “Begin Unlock Bootloader” and confirm all dialogue boxes on screen that are presented to you.
Step 3: Now, you’re going to be presented with a series of four steps to put your device in bootloader mode: Disconnect the device from PC, turn it off completely, press and hold Volume Down button and the Power button to start the device in Bootloader mode.
Step 4: Once you’re into the bootloader mode, use the device’s volume keys to select the download mode option and press power button to confirm. At this point, you’ll need to connect your HTC One M9 to your computer via USB cable.
Step 5: Now on your PC, go to fastboot folder, hold down your keyboard’s shift key and click on any empty space and then click on “Open command window here.”
Step 6: Type in fastboot devices in the command prompt window and press enter. If your drivers are installed correctly, then your HTC One M9 should show up in the command prompt.
Note: if you don’t see your device, don’t panic, reinstall HTC Sync Manager, restart your computer and try again.
Step 7: On page 3 of HTC Dev’s website, click on “Proceed to Step 8”. Follow the listed steps all the way to Step 10 and click on Submit. HTC will mail you your unlock token for your device. Download the token, it should be named “Unlock_code.bin” and then should be placed in your fastboot folder.
Step 8: Now back to the command prompt window, type the following: fastboot flash unlocktoken Unlock_code.bin
Step 9: On your device you’ll get a message saying if you want to unlock your bootloader. Use the volume keys to select your choice, and hit the power button to confirm. Once you’re done, your device will restart and you’ll have an unlocked bootloader.
From there you need to install a custom recovery (TWRP)
Follow instructions in this thread http://forum.xda-developers.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720
CREATE A FREAKING NANDROID BACKUP RIGHT NOW. According to some recognized members of the community, HTC updates only work on an unmodified system. If you ever want to receive official updates from HTC, you HAVE to create a NANDROID RIGHT NOW. Do it. I'll wait.
Then you will need to install Chainfires superuser beta 2.45 http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
These are not my threads just pointing you in the right direction. If someone wants to make a more detailed version I would not oppose.

wytecaztle said:
First you must be HTCDEV unlocked. This will wipe data. You need ADB installed personally I use minimal adb fastboot
Step 1: Go to htcdev.com/bootloader, make sure you’re registered with HTC. Once the process of signing up is complete, log into HTC Dev. Also, make sure HTC Sync Manager is installed on your PC.
Step 2: Select your device from the Unlock Bootloader page. Select the “All Other Supported Models” as shown in the screenshot below. Click “Begin Unlock Bootloader” and confirm all dialogue boxes on screen that are presented to you.
Step 3: Now, you’re going to be presented with a series of four steps to put your device in bootloader mode: Disconnect the device from PC, turn it off completely, press and hold Volume Down button and the Power button to start the device in Bootloader mode.
Step 4: Once you’re into the bootloader mode, use the device’s volume keys to select the download mode option and press power button to confirm. At this point, you’ll need to connect your HTC One M9 to your computer via USB cable.
Step 5: Now on your PC, go to fastboot folder, hold down your keyboard’s shift key and click on any empty space and then click on “Open command window here.”
Step 6: Type in fastboot devices in the command prompt window and press enter. If your drivers are installed correctly, then your HTC One M9 should show up in the command prompt.
Note: if you don’t see your device, don’t panic, reinstall HTC Sync Manager, restart your computer and try again.
Step 7: On page 3 of HTC Dev’s website, click on “Proceed to Step 8”. Follow the listed steps all the way to Step 10 and click on Submit. HTC will mail you your unlock token for your device. Download the token, it should be named “Unlock_code.bin” and then should be placed in your fastboot folder.
Step 8: Now back to the command prompt window, type the following: fastboot flash unlocktoken Unlock_code.bin
Step 9: On your device you’ll get a message saying if you want to unlock your bootloader. Use the volume keys to select your choice, and hit the power button to confirm. Once you’re done, your device will restart and you’ll have an unlocked bootloader.
From there you need to install a custom recovery (TWRP)
Follow instructions in this thread http://forum.xda-developers.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720
Then you will need to install Chainfires superuser beta 2.45 http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
These are not my threads just pointing you in the right direction. If someone wants to make a more detailed version I would not oppose.
Click to expand...
Click to collapse
Does using the HTC DEV unlock void our HTC 1 year warranty we receive? I am assuming yes....

tws101 said:
Does using the HTC DEV unlock void our HTC 1 year warranty we receive? I am assuming yes....
Click to expand...
Click to collapse
Yes but you can re-lock your device if needed. I do not think there is a way yet to put stock recovery back on.
No RUU is out yet.

You should read the other threads in the M9 forum and add the info here from there regarding OTA impact to rooting and what users should to to be able to take regular OTA if they root and end up mounting system r/w at some point...

tws101 said:
Does using the HTC DEV unlock void our HTC 1 year warranty we receive? I am assuming yes....
Click to expand...
Click to collapse
No it does not...

I've been able to HTC Unlock, but I can't flash TWRP. When I try "fastboot flash recovery TWRP-Recovery-2.8.6.0-Hima-CPTB.img" from download mode it says:
Code:
FAILED (remote: 35: SD_PARTITION_NOT_SUPPORT receovery)
And when I try "fastboot flash recovery TWRP-Recovery-2.8.6.0-Hima-CPTB.img" from bootloader I get:
Code:
FAILED (remote: cannot flash this partition in s-on state)
So how am I supposed to flash the recovery?

m03sizlak said:
I've been able to HTC Unlock, but I can't flash TWRP. When I try "fastboot flash recovery TWRP-Recovery-2.8.6.0-Hima-CPTB.img" from download mode it says:
Code:
FAILED (remote: 35: SD_PARTITION_NOT_SUPPORT receovery)
And when I try "fastboot flash recovery TWRP-Recovery-2.8.6.0-Hima-CPTB.img" from bootloader I get:
Code:
FAILED (remote: cannot flash this partition in s-on state)
So how am I supposed to flash the recovery?
Click to expand...
Click to collapse
adb devices
adb reboot bootloader
fastboot devices
fastboot flash recovery TWRP.img (TWRP.img represents recovery file’s name, whatever that be)
This worked for me no problem at all. Make sure device is connected to adb and you have usb debugging on.

Yes I have a Sprint M9.
Try and change the recovery name to just twrp.IMG
See if that works.
Are you in download mode? That is the new fastboot

m03sizlak said:
Yeah it doesn't. Recovery will not flash in download mode nor bootloader mode. And yes it is UNLOCKED via HTC method.
Click to expand...
Click to collapse
I saw your post in the other thread that you finally got the recovery flashed. That is good.

wytecaztle said:
I saw your post in the other thread that you finally got the recovery flashed. That is good.
Click to expand...
Click to collapse
Yes apparently helps if you are able to spell recovery correctly. Now that it's rooted need a boot.img with a writable /system. As currently I don't believe changes to system will persist.

Soon. I popped over to the other M9 international thread to see if there was a dev willing to port. He said maybe. So maybe sooner than later.

Hey everyone!! Im have a small problem, I got the twrp recovery installed OK but im have a problem getting root installed.. I have the superuser zip on the root of my internal Sd card but still no go. I have a Sprint One M9
Edit.... Im going to try to install TWRP. 2.8.5.0 I read somewhere that the newest version won't mount system to read and write just read only....

I got root!!

Got it all done but TWRP fails on backup for some reason......? Error starts with E:/.....

Bikegeek said:
Got it all done but TWRP fails on backup for some reason......? Error starts with E:/.....
Click to expand...
Click to collapse
Follow instructions here. http://forum.xda-developers.com/one...h-recovery-t3066720/post59759441#post59759441

Yup, found that and used 2.8.6.3 and all is well. Thanks.

data preload directory
In the past with both the M7 and the M8, when you unlocked the device from HTCDev and it wiped the device, it also wiped files in the /data/preload directory, which usually contained a calculator app, and some images for mail customization.
The only way to ever get those files back was to later run an RUU once rooted, and copy the directory contents at that point for backup.
I wanted to know if anyone knows if this is still the case with the M9?

Looks like everything is still in place.

wytecaztle said:
Looks like everything is still in place.
Click to expand...
Click to collapse
Does that mean you can see /data/preload and its contents in a file manager? That would be encouraging because that would mean they have fixed a long standing bug in their unlocking process and reset process.

PillowMetal said:
Does that mean you can see /data/preload and its contents in a file manager? That would be encouraging because that would mean they have fixed a long standing bug in their unlocking process and reset process.
Click to expand...
Click to collapse
Preload stuff will be there still... It's on a different partition now and thus not lost when unlocking like before on M8.

Related

[Tutorial][07-17]How to unlock/root/s-off and revert back an Evo 3D(ShooterU)

Updated
Please read the instructions completely and carefully before you attempt anything.
Disclaimer:
What ever you do with your device is your own responsibility. In no way shall I, any other member of XDA or HTC, be held responsible in case you brick, destroy your device or even cause any bodily injury to you, by following these instructions
Click to expand...
Click to collapse
Before you start meddling with your device, please read, search XDA for related information, use wiki.
Those people who are trying to gain S-off to flash ICS ROMs with sense 4.0... You do not have to flash the new firmware as a compulsion. The older Radio works well with the sense 4 ROMs. It is not an absolute necessity to upgrade the firmware. You can skip that. And you can flash any ROM in 4ext touch recovery even with S-ON. Proceed to S-off only if you accept the risks of bricking your device completely without any possibility of recovering it again. And also keep in mind, you will lose all your personal data on the device by following these instructions.
Resources:
1. Windows running computer(PC).
2. HTC EVO 3D android smartphone.
3. USB cable that came with your Evo 3D.
4. Micro SD card with adequate space in it.(At least 4 GB)
5. Basic computer knowledge of how to open a command prompt and how to run commands in command prompt.
6. 7z / winrar archiver.
Prerequisites for doing anything with your device.
1. Download and install the HTC drivers.
(You can get this from HERE)
2. Unlock your device the htcdev way. Visit http://www.htcdev.com and follow the instructions.
You can take a preview of all the steps in attached zip below.
3. Read this post by flashmaniac, http://forum.xda-developers.com/showpost.php?p=22494488&postcount=1
4. Read this post by happyhallsy8 http://forum.xda-developers.com/showpost.php?p=17233858&postcount=1
5. Uninstall the HTC sync application from your computer.
6. Download the adb and fastboot files attached below in fastboot-cmd.rar and extract this to the root of the C drive on your computer and rename the folder to Android.
You need to understand a few important terminologies before going forward:
1. Root: It is the basic file system of the android operating system on your device. This has all the important files and programs and drivers which make your device run. And to access this you need to have administrator privileges. Which is obtained by flashing a custom rom which gives you administrator privileges by default, or you need to flash superuser from a custom recovery and then install busy box.
2. Custome ROM: It is an installable zip archive which contains all essential programs and files found in the operating system released for your device by the manufacturer with some modifications so as to enhance the functionality according each individuals taste.
3. RUU/shipped ROM: RUU is an executable which re-installs the original manufacturer released version of the ROM onto your device.
4. Bootloader: It is the part of the firmware which resides in your device which runs the most basic function of starting the device and switches the control to the operating system once the bootstrap of the operating system has loaded on.
5. Locked bootloader: The device manufactures lock this firmware so that your device does not fail to boot and bad programs don't ruin the essential files.
6. adb: A program which can control your device when your device is connected to the computer through a USB cable.
7. cid: This is your manufacturer provided general hardware/firmware id.
8. Serial number: Unique identification number of your device.
9. Unlocking: Unlocking your device the HTCDEV way gives you ability to flash custom ROMS which are not authenticated by HTC and it does not enable you to flash custom kernels on to your devices.
10: Kernels: These are the files that determine how your device perfomes, so if you do not intend to meddle with your kernels, all you will ever need is unlocking the HTCDEV way
Click to expand...
Click to collapse
If you just want to flash a new ROM you do not need to s-off your device
S-off is required only to flash custom kernels​
The instructions for each different procedure are posted in a new post.
Continued in the next post.
Getting started... Up to flashing a rooted custom ROM
Now lets get started.
1. Unlock your device HTCDEV way. There are ways in which you can achieve S-OFF without unlocking your device first. Search for them in the forum. Unlocking HTCdev way has been shown to be consistently successful.
By unlocking HTCDEV way, you will loose all your personal data from your device, so please make a nandroid backup before doing this.
Also use any of the apps and contacts backup and restore apps available in the market and restore all your messages, contacts, apps and settings.
2. Download Clockworkmod recovery by clockworkmod. This tool is essential to flash any custom ROM. Copy this file to your adb folder on your cumputer, That is c:\android.
3. Download a fully rooted custom ROM like one from LeeDroid or any other custom ROM which is rooted.
4. Additionally you can download superuser rooting app.
5. Go to settings in your device, and select applications-->development-->check the USB debugging. Connect your device to your computer by USB cable.
6. Click start and run cmd prompt.
7. Enter the following code
Code:
cd\(Hit Enter button)
cd android(Hit Enter Button)
adb reboot bootloader(Hit Enter button)
The result will look like this.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
8. Your device will boot into bootloader mode and it will show fastboot USB.
9. Now Enter this code
Code:
fastboot flash recovery cwm_4.0.1.4-shooteru.img
Wait for it to finish.
Once done, reboot your device.
Once rebooted, enter the code:
Code:
adb reboot recovery
You will enter the clockworkmod recovery.
10. Select the option mounts and storage.
next select mount USB storage.
Wait for your computer to recognize and install the driver, now copy and paste the superuser.zip which you downloaded earlier into the sdcard.
Also copy and paste the LeeDroid ROM which you downloaded into the root of your sdcard.
Right click your removable disk on the computer and select eject.
11. Select Unmount in the recovery on your phone. and then select go back.
12. Now on your computer, in the command prompt enter the following code
Code:
adb reboot recovery
13. Your device reboots into the recovery again.
14. Now select install zip from sd card.
then select choose zip.
Then choose the superuser zip and press power button to select.
Reboot the device normally and do the following.
Code:
adb shell (Hit enter, and you will see $, as shown below)
$su(hit enter)
#(Now you have to allow the superuser privileges on your device)
#exit(ENTER)
$exit(ENTER)
c:\Android>adb reboot(hit enter)
once the device is booted into android, visit the google play store, and search for busy box, download it and install, you will have root access.
Now your device is fully rooted.
15. Another way of rooting your phone is by flashing a pre-rooted rom. Download any Gingerbread rom which has been pre-rooted, copy that to your SD card, reboot into CWM recovery and select the rom you downloaded and flash it.
16. If the device gets stuck in the HTC white screen, then follow these steps.
a. Enter the following code in the command prompt.
Code:
adb reboot bootloader
Then go to the folder where you had downloaded the LeeDroid zip, you extract one particular file by the name boot (It is a .img type of file)
Now copy this file to the android folder in C:\ drive (C:\android)
Now in command prompt enter this code.
Code:
fastboot flash boot boot.img(Press enter)
fastboot reboot
You are done flashing a fully rooted custom ROM with latest superuser app.
Means you are fully rooted and unlocked and have a custom recovery through which you can flash any other ROM if you want to.
CREDITS: IN NO PARTICULAR ORDER,
Clockworkmod, Chad.goodman, Flashmaniac, happyhallsy8, frigid, and many more.
Downgrading your Hboot
Now that you have unlocked and got rooted, lets get your device S-off.
As I understand, till date this following way has been successful in getting your device HBoot down and achieve S-OFF, Important thing for that is to change your CID to a universal CID, that is HTC__001.​
I do not know that MY way will work for every device, you are welcome to try my way, for at least the unbranded devices.
There are two ways of changing your device cid.
1. Through fastboot. Open the command prompt, connect your device by USB cable, check USB debugging is enabled. and enter the following code
Code:
adb reboot bootloader
wait till your device enters bootloader and shows fastboot USB, now enter the following code.
a. For unbranded devices.
Code:
fastboot oem writecid HTC__001
fastboot oem lock
fastboot oem reboot bootloader
Please note that in the cid there are 2 underscores before 001.
b. For branded devices such as Vodafone.
Code:
fastboot oem writecid VODAP001
fastboot oem lock
fastboot reboot bootloader
You can even change that CID to HTC__001.
Once you have achieved S-OFF you can change your cid back to original.
2. Manually.
For this you need to download xvi32 hex editor from here
Extract this anywhere, run the xvi32 and open mmcblk0p31.img which you had copied to your device sdcard.
Now change the cid as shown in these pictures.
Initial
Changed
Now save the file.
For branded devices.
Initial,
Changed.
Now save the file and exit.
Now go to adb shell and do as shown:
After this you can check your cid and it will show the changed cid and software build number.
You will get best results if you do this before you flash the custom ROM.
Now you can downgrade the Hboot also in two ways, one is automated as demonstrated by flashmaniac in his thread and the other one is manual.
Downgrading flashmaniac's way does not require you to unlock your device the HTCDEV way.
1. Flashmaniac's way.
Download his tool (Makes sure there are step1.exe, step2.exe and step3.exe in the folder).
Extract the entire folder to root of C drive on your computer.
Run step1.exe
If do not get any errors run step2.exe
Then run the step3.exe
Wait for it to flash the European version of RUU onto your device.
This RUU/Rom.zip in the downloaded folder has the Hboot version 1.49.0007.
2. A little bit cumbersome and manual way of doing it,
Download the tools from Flashmaniac's thread. Extract the zip. Copy the mmcblk0p31.img to your sdcard.
Then run this code in adb. (Your device will be booted normally into android and USB debugging mode should be enabled)
Code:
c:\android>adb shell (Hit enter)
#dd if=/mnt/sdcard/mmcblk0p31.img of=/dev/block/mmcblk0p31 (Hit enter)
You will see copied successfully.
You might face problems here if you are not rooted fully or if your device is still locked.
Then you check the cid and if it shows non workable cid, then write the new cid and relock your device.
Code:
fastboot oem readcid
fastboot getvar cid
Code:
fastboot oem writecid HTC__001 (or)
fastboot oem writecid VODAP001
Code:
fastboot oem lock
Now boot your device into recovery:
Code:
fastboot reboot
adb reboot recovery
In your computer, from the tool folder downloaded from Flashmanic'c thread, rename the Rom.zip to PG86IMG
Copy this zip to your sdcard by mounting your sdcard in recovery.
Reboot into bootloader.
Code:
adb reboot bootloader
now check that your device bootloader shows as Relocked.
If it doesn't show Relocked.
Try this method to Relock it.
Code:
fastboot flash unlocktoken unlock_code.bin
YOU MIGHT HAVE TO RE-DO THE ENTIRE PROCESS OF HTCDEV WAY OF UNLOCKING AGAIN AT THIS POINT. WORKS 100% OF THE TIME
Accept the disclaimer by HTC and let it reboot.
Now pull the battery, and then reboot into bootloader by pressing volume down button and then pressing the power button.(You should keep the volume down button pressed till you boot into the bootloader)
Now relock your bootloader again.
Code:
fastboot oem lock (hit enter)
fastboot reboot-bootloader(hit enter)
Now your device will start reading the zip then it will check it for a signature and will ask you if you want to flash.
select yes by pressing the volume up button.
Let it finish.
You may see some error in the end, stating fail. Don't worry.
Just reboot your device.
You are done.
Now you have a Hboot version 1.49.007.
CREDITS: IN NO PARTICULAR ORDER,
Clockworkmod, Chad.goodman, Flashmaniac, happyhallsy8, frigid, and many more.
Now Finally to S-OFF
Finally the much awaited S-OFF
The need to do all the above steps was to finally arrive here.
It is essential to make sure that, your device has a Hboot 1.49.007.
The whole point of this tutorial up to here has been this.
There is one way getting S-OFF on your device, that is by using the revolutionary tool.
Visit http://revolutionary.io
Select the appropriate operating system.
The download will start as soon as you click on the operating system shown.
Enable USB debugging mode on your device and connect it to your computer by the USB cable.
Extract the downloaded zip from revolutionary site to your C drive.
Run the revolutionary.exe as administrator.
This will give you your device serial number.
Enter the serial number in the space given on the revolutionary.io site and copy the S-off code generated, and paste it your notepad.
For the revelotutionary tool to work you must have an identifiable software build number on your device (You can change that in mmcblk0p31.img with a hex editor).. Better still just flash the European ROM with Hboot 1.49.007.. This is safer and avoids problems while running the revolutionary tool.
Now type the code in the program.
Hit enter and wait for it to finish.
If something goes wrong, or if it says failed.
Then recheck your device's boot loader is locked.
And try again and again till you succeed.
The second way is just download this supertool by frigid and run it and you are done.
Now your device has been successfully S-OFF.
Reboot your device.
Copy which ever custom ROM you want to your device's sdcard.
copy any kernel you want.
Then flash them using the CWM recovery in the recovery.
Or use the fastboot commands to flash the kernels and ROMs as you like.
Hope This tutorial will benefit all the noobs as well as members who face problems while trying to S-OFF their devices.
CREDITS: IN NO PARTICULAR ORDER,
Clockworkmod, Chad.goodman, Flashmaniac, happyhallsy8, frigid, and many more.
Thank you guys.
For warranty issues you can revert back to your original version by following these steps​
Visit this thread
Download the appropriate RUU version for your region.
Make sure that you have your original cid written back on your device.
You can do this by entering the following code
Code:
//to check the current cid//
C:\android>fastboot oem getvar cid
//to change the cid//
C:\android>fastboot oem writecid HTC__044
//You must enter your device cid which you wrote down before you changed it//
Repeat these steps two to three times and reboot into bootloader and re_lock your device
Code:
C:\android>fastboot oem lock
Run the .exe and follow the onscreen instructions.
If this does not work, then, RUN THE .EXE FILE and do as described below.
When the RUU asks you accept, minimize the RUU/drag it down.
Start the task manager on your computer, go to processes, look for a process which has a name ARUwizard, right click on that and select go to location.
Now you can see a zip archive called rom.zip
Open that, and find the android-info.txt, extract it or just open it within winrar.
This will contain the cidnumber, note down the cidnum which was similar to your cid number, and note down the software build number.
Now make these changes in the mmcblk0p31.img with the help of xvi32 hex editor, copy back the file to your device in adb.
Instead, if you remember your original cid and software build number, you can write them back.
Please also remember to write the original cid of your device back in fastboot.
Copy that rom.zip to the root of your sd card, and then reboot into bootloader and flash it in bootloader.
Now reboot the device and run the RUU, once done, do the following.
Enter this code in fastboot:
Code:
fastboot oem lock
Remember to lock your device bootloader first, before writing the secureflag 3, If you don't lock the bootloader, you will brick your device.
Code:
fastboot oem write secureflag 3
fastboot reboot-bootloader
You will see that your bootloader is S-ON and shows RELOCKED.
You are done.
Just in case I fall short of space
Just in case one more
Thanks for this...I already have a custom recovery, and a fully rooted rom...awaiting S-OFF instructions...
I assume that your instructions will work for CID: VODAP021... with HBOOT: 1.49.0013
Thanks
Thanks - Is it worth trying the touch version of Clockworkmod recovery?
also there's no point flashing the superuser.zip and then flashing a rooted rom on top as the superuser.zip would only give root on the current rom - which is then overwritten by the rooted (leeroid) rom
sorry but this post is useless....
how to root is already explained... there are automated recovery flashers... there is an automatically way of gaining s-off.
you destroy the chance that people get the right tutorial on first try...
43D again.... you will never get S-OFF.
Lothaen said:
Thanks - Is it worth trying the touch version of Clockworkmod recovery?
Click to expand...
Click to collapse
No... it's buggy as hell.
Flashmaniac said:
No... it's buggy as hell.
Click to expand...
Click to collapse
that's a shame - worked perfectly on the HTC Desire
Flashmaniac said:
sorry but this post is useless....
how to root is already explained... there are automated recovery flashers... there is an automatically way of gaining s-off.
you destroy the chance that people get the right tutorial on first try...
43D again.... you will never get S-OFF.
No... it's buggy as hell.
Click to expand...
Click to collapse
This tutorial is not yet complete flashmaniac, this will give every possible way of getting s off. That's the point of this. If you don't mind... I will use your links here and will explain your automated way in the beginning. That is my intention.
Please wait till it is complete.
There are some workarounds, those will also be explained.
Flashmaniac said:
43D again.... you will never get S-OFF
Click to expand...
Click to collapse
BS you are the only one posting this...WTF IS YOUR ISSUE...tell me why or STFU!
4D3 said:
BS you are the only one posting this...WTF IS YOUR ISSUE...tell me why or STFU!
Click to expand...
Click to collapse
I am just telling you, that it is not possible. but try and try - you will know why I told you that a hundred times already
dryogeshd said:
This tutorial is not yet complete flashmaniac, this will give every possible way of getting s off. That's the point of this. If you don't mind... I will use your links here and will explain your automated way in the beginning. That is my intention.
Please wait till it is complete.
There are some workarounds, those will also be explained.
Click to expand...
Click to collapse
this will confuse people. there are plenty of none-working ways. now you add one more....
downgrading only works for the cid's that I listed on my thread...
edit: I see that you are advicing people to change their cid.
It usually does not work
if it is working you cannot lock the bootloader
Flashmaniac said:
I am just telling you, that it is not possible. but try and try - you will know why I told you that a hundred times already
this will confuse people. there are plenty of none-working ways. now you add one more....
downgrading only works for the cid's that I listed on my thread...
edit: I see that you are advicing people to change their cid.
It usually does not work
if it is working you cannot lock the bootloader
Click to expand...
Click to collapse
I have done that.. my cid wasn't listed, now I am s off. What do you say for that?
dryogeshd said:
I have done that.. my cid wasn't listed, now I am s off. What do you say for that?
Click to expand...
Click to collapse
As I said - usually it does not work. If there are RUU'S with CID's for your carrier and region you can change them but you cannot lock the bootloader. it says succesfull but stays unlocked
Flashmaniac said:
As I said - usually it does not work. If there are RUU'S with CID's for your carrier you can change them but you cannot lock the bootloader. it says succesfull but stays unlocked
Click to expand...
Click to collapse
There is a workaround for that as I have written dude..
dryogeshd said:
There is a workaround for that as I have written dude..
Click to expand...
Click to collapse
and what is if you CID is TELST001? right! it is not working and it will never work.
This is just one of a thousand examples.
I tried changing the CID with a guy that has TELST001, it has never worked.
never mind... go on with this.
If I downgrade hboot from 1.49.0018, to 1.49.0007, what I'm losing?
Flashmaniac said:
and what is if you CID is TELST001? right! it is not working and it will never work.
This is just one of a thousand examples.
I tried changing the CID with a guy that has TELST001, it has never worked.
never mind... go on with this.
Click to expand...
Click to collapse
Will update as and when I find out the workarounds for not supported cids..
This thread needs support from guys like you. Please wait till I finish the tutorial. You will see why I started this.

[Q] How to Root htc legend

Dear Memeber
i find that my htc legend is un rooted and i need to root it to install a room to it i try many ways i find other the internet and it doesn't success to do it so am look for how and the way to root it
and will be thankful for you
-Unlock the boot loader using HTCDev
-Use HTCSuperTools v3 to gain root access
-Flash ClockworkMod Recovery
-Flash any ROM you want.
These are the basic steps. I might write up an updated, more detailed guide for others when I get back to a computer.
Sent from my Legend using XDA
Go to http://www.htcdev.com/bootloader/
Register, select your device and unlock the bootloader
Get HTC Super Tools from
http://forum.xda-developers.com/showthread.php?t=1343114
Run it, do options 1 and 3, in that order, to root your phone
Get Clockwork Recovery Mod from
http://forum.xda-developers.com/showthread.php?t=1290841
Use 1st step for S-OFF method to install ClockworkRecovery
Boot into Recovery mode and take a backup of your ROM
Download the ROM of your choice and copy it to your SD card
Boot into Recovery Mode, do a data wipe/factory reset and a cache wipe
Select Install from zip in Recovery, navigate to your ROM in SD Card and install it. Hope this helps.
This is a long process, at least for the first timers. You may get stuck at various places, please let us know if you do
Unlock the boot loader using HTCDev
-Use HTCSuperTools v3 to gain root access
i download this two items and i try to root it but it dosen't work with me or maybe i did something wrong
what is the steps that i have to follow by using them
and thanks for your replies
Regards
sometimes it says like this
C:\Android>fastboot oem get_identifier_token
< waiting for device >
...
and it stuck for along time and nothing changed
and other times when i press power button for the fastboot it change to be like this
(bootloader) [ERR] Command error !!!
OKAY [ 0.008s]
finished. total time: 0.008s
C:\Android>fastboot oem get_identifier_token
...
FAILED (status read failed (Too many links))
finished. total time: 4.670s
All I can think of is that you should start again reading every step carefully.
Also, jc36 that's a great guide
Sent from my Legend using XDA
clarify jc36 clockwork recovery mod step
I need to clarify something important for the "Get Clockwork Recovery Mod step which says to follow the 1st step for S-OFF method to install ClockworkRecovery.
On the linked page http://forum.xda-developers.com/show....php?t=1290841
Where it says the following:
"How to use S-OFF user
Download file and move on adb fastboot folder"​
Does "move on adb fastboot folder" mean, put the file into the folder? And if so where is the folder?
There is no such folder: "adb fastboot folder"?
Does it mean:
1. put it in the Android folder created (C:\android) to hold the files instructed by HTC Dev for unlocking the bootloader?
2. Or put it in the android-sdk folder, somewhere? May be the Platform Tools folder where adb.exe exists?
Thanks to anyone who can help clarify this step for me
Yes it means put the recovery into the folder with adb.exe and fastboot.exe
Sent from my Legend using XDA
Thanks again
Thanks for clarifying that. As you can imagine I am a noob. It would be awesome if the brief procedure by jc36 could be expanded upon into an exact step-by-step (hand-holding) for all the noobs out there. Jumping back and forth between the forum links can get confusing -- especially some of the posts are old... leaving one wonder if the instructions are outdated etc!
May be I will do it if I get through this safely....
xdadufus said:
Thanks for clarifying that. As you can imagine I am a noob. It would be awesome if the brief procedure by jc36 could be expanded upon into an exact step-by-step (hand-holding) for all the noobs out there. Jumping back and forth between the forum links can get confusing -- especially some of the posts are old... leaving one wonder if the instructions are outdated etc!
May be I will do it if I get through this safely....
Click to expand...
Click to collapse
Brief is good although I do understand how a noob would want a step-by-step guide. In relation to date, none of the links I gave you were really outdated. The datestamp at the top of the thread might say '6th October 2011, 10:00 AM' but if you look at the bottom of the post it'll say something like 'Last edited by (username); 21st March 2012 at 09:32 AM' on threads/posts that get updated. Welcome to the Legend forums!
Further Clarification
I am continuing with my quest to clarify and document the whole jc36 procedure accurately.
1. After you have unlocked the bootloader are there any mode changes to be made before running SuperTools?
2. After running SuperTools, following the 1st step for S-OFF Clockwork Recovery Mod how do you put the phone into "fastboot" mode? Does the phone have to be disconnected again, powered down, restart with volume held down, highlighting Fastboot then press Power button and reconnecting to computer? Is this the procedure or is there another way while it still connected to the computer?
3. Continueing with Clockwork Recovery Mod code where it says:
"In fastboot mode:
Code:
adb reboot bootloader
fastboot flash recovery recovery_legend_5.0.2.8.img"​
I'm guessing the code above is for command prompt for the c:\android directory as done previously for HTC Dev unlocking of the bootloader?
Open up command prompt. ( Start> Run> Type CMD,).
Command Prompt: cd c:\Android)
Type in Command Prompt:
adb reboot bootloader
fastboot flash recovery recovery_legend_5.0.2.8.img
Correct?
4. After completing Clockwork recovery Mod it says to "Boot into Recovery mode and take a backup of your ROM" -- again do you disconnect the phone to do this and boot into the bootloader to select Recovery mode? And how to you backup? Is it to an SD card or is the phone connected to the computer to take the backup to your hardrive?
Thank you to all in advance who take the time to go over these questions.
1. By mode changes I'm assuming you mean something like enabling USB debugging which is definitely recommended.
2.You get into fastboot mode by rebooting into the bootloader (Hold volume down+trackball+power button). Fastboot is the first selected option so all you have to do is press the power button to choose it and then it will go into fastboot mode
3.Yes in command prompt you navigate to the folder that has adb.exe, fastboot.exe and the recovery image and then carry out those commands
4.If you've flashed a ROM that supports it then in phone options(hold down power button) you can select Reboot and then Recovery. Otherwise to get to recovery you would have to go through the bootloader. To backup you go to Backup and Restore in CWM and select Backup or alternatively you can use ROM Manager to do a backup. The phone doesn't have to be disconnected and the backups are made to the micro SD Card.
Sent from my Legend using XDA
run in to trouble at the beginning
I have run into an error with the command provided with HTC Dev Unlock Bootloader.
I have followed all instructions very carefully. When in command prompt I get this error after entering:
fastboot oem get_identifier_token
...
<bootloader> [ERR] Command error !!!
I am in the android directory in c:\android and have the three files there:
adb.exe
adbWinApi.dll
fastboot (which I extracted from an older version of SDK as instructed by HTC because it doesn't exist in the latest SDK software)
Is your phone connected with USB Debugging on and HTC drivers installed on your computer?
bootloader now unlocked successfully
I just flashed the RUU that HTC Dev recommended for my phone, the version it should have before attempting to unlock the bootloader.
My phone originally had this updated version anyway so I never updated it on my first attempt.
After reading the forums here for people having similar issues I flashed their recommended RUU for the Legend and from that point on the command in command prompt worked. I have now unlocked the bootloader ...
what about gapps?
I finally rooted my phone and flashed cm7.2 ROM successfully after some nail biting experiences... it is not as simple as the instructions posted earlier in this forum make it appear... There were some issues I ran into. I will post an explanation of how I resolved them soon.
What good is a new android ROM without essential Google apps? I know they are not packaged due to licensing but I can not find a reasonable explanation of how to get them on my phone. I thought it would be simple but it is not. Right now I can not download any apps...
I read the gapps packages should be installed during the flashing of the ROM... that point is missing from the instructions here! So what now? Do I have to run through the process of flashing the ROM again along with the gapps package this time?
I tried installing the latest Google Play app but it would not connect to the server -- whatever that means -- after entering in my google account.
Is there any way to get the apps downloaded directly to my computer so I can copy them to the SD card? I did find a couple of solutions to do this but you need to enter google account details and some id number for the phone which I can not find... what is the identifier for the phone and where?
Any assistance on this would be greatly appreciated because at this point the whole new fresh ROM is useless...
You can flash GApps at any time. Whether it's during installation, right after first boot, or years later. Make sure you flash the appropriate .zip.
You can use APK Downloader to get them straight from the Play Store to your computer in .APK format.
http://codekiem.com/2012/02/24/apk-downloader/
All the latest Gapps packages can be found here. Use the 'gapps-gb-20110828-signed.zip' package if you're running Gingerbread and 'gapps-ics-20120429-signed.zip' if you're running ICS.
I need a bit more help please!
I have had the legend for ages and wanted to breath new life into it. I am using a ssensation as my everyday phone and that was a doddle to root compared to this!
I have gotten as far as flashing recovery. I dl'd the S-OFF .img from here and placed it in my adb folder. I tried running the adb command and only got as far as
"fastboot flash recovery" when
"error: neither -p product specified or ANDROID_PRODUCT_OUT set" shows up.
Any help? the HTCdev and Supertools seemed to go flawlessly for me. My HBOOT was 1.01 and HTCdev changed it to 1.02. It also now has *** LOCKED (OOW) *** at the top. I'm still S-ON too. What's going wrong? There is no su app in the app drawer like there was when I rooted my sensation. do I have to start over? any help would be great!
icanttinkofaname said:
I need a bit more help please!
I have had the legend for ages and wanted to breath new life into it. I am using a ssensation as my everyday phone and that was a doddle to root compared to this!
I have gotten as far as flashing recovery. I dl'd the S-OFF .img from here and placed it in my adb folder. I tried running the adb command and only got as far as
"fastboot flash recovery" when
"error: neither -p product specified or ANDROID_PRODUCT_OUT set" shows up.
Any help? the HTCdev and Supertools seemed to go flawlessly for me. My HBOOT was 1.01 and HTCdev changed it to 1.02. It also now has *** LOCKED (OOW) *** at the top. I'm still S-ON too. What's going wrong? There is no su app in the app drawer like there was when I rooted my sensation. do I have to start over? any help would be great!
Click to expand...
Click to collapse
You do see the words "locked"? that means its "locked" you need to follow the steps provided by htcdev in the email they would have sent you including the unlock.bin file with out those steps you can't do anything, its like its still not rooted.
Sent from my Legend using XDA

[GUIDE] Drumz0rz's Complete Guide to Rooting your DNA

I know there are other threads out there that offer exactly what this does, but even with those, I think it can still be a bit tricky to figure out what to do if you're looking to root and modify your phone. I made this thread to collect everything I've done in one place. This should make everything very straightforward and basically n00b-proof.
I take no credit for any of this work. Please thank all the hardworking devs!
**Following all of these steps will WIPE all data from your phone. Backup before beginning. While these should all be safe, there's always the possibility of bricking your phone. I take no responsibility if you do.**
What you'll need:
USB Cable
USB port
HTC Droid DNA (without the OTA update!)
PC running Windows
Glass of Orange Juice (for the Vitamin C!)
**All of this shouldn't take more than 30 minutes but just in case, make sure your phone has at least a 70% charge.**
Preparing (Installing SDK, Setting PATH, testing ADB)
I highly recommend creating a directory on the root of your C: drive on your PC to hold ALL related files. I called mine "android" but you can call yours whatever you'd like. Whenever issuing any ADB command, make sure you navigate to this folder first.
1. Connect your phone to your computer. One of the pop ups will ask to install HTC Sync. Install this to install the drivers onto your computer. Once installed, you can go into your Add/Remove Programs and uninstall the HTC Sync software if you want.
2. Enable USB Debugging in your HTC Droid DNA from the path “Settings > Applications > Development > USB debugging”. The option of USB Debugging should be ticked.
2. Download the latest version of the Android SDK to your PC here.
3. Extract the files to your PC (I recommend something easy like C:\android)
4. Run the SDK Manager and uncheck everything but the Platform Tools and install
5. Add the SDK tools to your system PATH file by doing the following:1. Simultaneously hold down the Windows Key + R
2. type 'sysdm.cpl' into the run dialogue box and click OK
3. On the system properties window that just opened, click on the 'advanced' tab. Then click on 'Environment Variables'
4. Scroll down through the System variables until you find the PATH. Click 'Edit', then add ';C:\android' (or whatever you named your folder) to the end of the line
5. Click OK and close the open windows.​6. Test ADB by connecting your phone to your PC then:1. Open a new command prompt window by pressing Windows+R and typing "cmd" into the box
2. Type 'adb devices' and press enter. You should see your phone's UID listed.
If it says adb devices is not a recognizable command then you didn't setup your PATH correctly
If it says <waiting for device> then your missing the drivers or you didn't enable USB debugging. Try rebooting, and if it still doesn't show, reinstall HTC sync.
Other Tips
You can download all the files necessary at the beginning and do everything through ADB.
Always check the MD5-hash after downloading a file. If they don't match, the download is corrupt and you should try again. I use this simply tiny, no-install MD5 checker.
Always Test after each install to ensure it is working properly. Don't just string all of these together without rebooting once. Bad things might happen and you'd have no idea what's causing it.
You can reboot your phone into the bootloader by either issuing the command "adb reboot bootloader" or pressing and holding the PWR and VOL DN buttons simultaneously when you reboot your phone.
From the bootloader you can enter recovery or you can issue the command "adb reboot recovery"
If your command prompt hangs pressing Ctrl+C will break out of the running command.
Some useful command prompt (DOS) commands:
cd - change directory (ie. 'cd C:\android' will change to the 'C:\android' directory)
cd .. - moves up one directory level
dir /p - lists files within the current directory
Unlocking Bootloader
The next step is to unlock the bootloader. The best method right now is provided by jcase. NOTE: Don't install the OTA update or you won't be able to do this!Step 1: Get SuperCID
Full instructions can be found here.
1. Download .apk from link above.
2. Run the app
3. Run the following Commands via ADB
Code:
adb reboot bootloader
(wait for phone to reboot into bootloader)
fastboot oem readcid
If you see 22222222 you're good to proceed. If you see anything else, reboot the phone and try again.
Step 2: Unlock via HTC Dev site
Go to the HTC Developer website and carefully follow the instructions. They're very straight forward.
When completed you'll have unlocked the bootloader. You'll see a new warning on the splash screen and the bootloader will say *tampered* at the top.​Install Custom Recovery
You can choose either ClockworkMod (my preference) or TWRP recoveries.
1. Download the latest version of your preferred recovery. rename it "recovery.img"
2. Using ADB issue the following commands
Code:
adb reboot bootloader
(once the phone reboots into the bootloader)
fastboot flash recovery recovery.img
(once installation is complete)
fastboot reboot
Now you'll have a custom recovery, and can make a full nandroid backup (recommended!).
S-OFF
Full instructions can be found here. beaups did an excellent job writing this up so it would be pointless for me to reproduce here.
Root / Custom ROM
Choose any ROM you'd like. I prefer Team Venom's ViperDNA. I'll use that as the basis for the next steps.
1. Download the full ROM found in the second post in the above link to your phone.
2. Reboot into recovery
3. Select "install zip from sdcard" and choose the ROM .zip file mentioned above. Follow the instructions on screen.
Note: If you choose a different ROM make sure it either includes a kernel that supports system write or you have to install one first by doing the following. Also, if you have WiFi issues after flashing the ROM follow these steps to reinstall the kernel.Installing the Kernel
1. Download a Kernel (such as dsb's Cubed Kernel)
2. Unzip the file and copy the modules.zip file to your phone.
3. Via ADB issue the following commands:
Code:
adb reboot bootloader
(once rebooted)
fastboot flash boot boot.img
(once complete)
fastboot reboot recovery
The phone will reboot into recovery, at which point you should flash the modules.zip​ENG HBOOT
This is *Optional* and allows for additional ADB commands to be used.
1. Download the HBOOT-8064 file found here. (thanks to fnoji111 and Argumentation)
2. Via ADB issue the following commands:
Code:
adb reboot bootloader
(once rebooted)
fastboot oem rebootRUU
(once rebooted to the black HTC screen)
fastboot flash zip PL83IMG.zip
(once complete)
fastboot reboot
Mods
These are some mods I found to be essential.Remove the Splash Screen disclaimer
Full instructions can be found here.
1. Go to the above link and download the RegawMOD tool (first post) AND the Droid DNA ENG Hboot plugin (2nd post).
2. Make sure the plugin is in the same folder as the tool.
3. Customize it how you'd like. I chose to replace the disclaimer with my own, that basically reads
If Found, Please Return to
*Drumz0rz*
*My Home Phone Number*
Click to expand...
Click to collapse
4. When you're finished press "Create ZIP" and save the file.
5. Via ADB issue the following commands:
Code:
adb reboot bootloader
(once rebooted)
fastboot oem rebootRUU
(once rebooted to black HTC screen)
fastboot flash zip <YourZipName>.zip
(once complete)
fastboot reboot
Now you should have a fully unlocked S-OFF custom ROM, custom Kernel, HBOOT Droid DNA! I hope this helps!
Will this method work for new ota ?
Sent from my HTC6435LVW using xda premium
No, it's just a summary of what's out there. When someone releases a new method to unlock the bootloader I'll update it.
Thank you, when I rooted using the guide linked from one of the sticky posts most of the links were dead, so it is nice to have this.
One suggestion - perhaps include the steps to finish up for those that want to stay on stock rom but be rooted.
drumz0rz said:
No, it's just a summary of what's out there. When someone releases a new method to unlock the bootloader I'll update it.
Click to expand...
Click to collapse
Thanks def look forward to that
Sent from my HTC6435LVW using xda premium
Thanks! Having these steps in a simple guide saved me a good bit of time.
Minor confusion on "Installing the Kernal". I extracted Cubed.Stock.System.Write.zip, flashed boot.img, then flashed Modules.zip in recovery. From the guide, does renaming the package to boot.img work as well?
Lastly, I'm not sure if you want to include flashing/loading ViperDNA's OTA updates.
Is there a way to factory reset phone and eliminate OTA update? I'm assuming no but never hurts to ask....
Sent from my HTC6435LVW using xda app-developers app
John58543 said:
Is there a way to factory reset phone and eliminate OTA update? I'm assuming no but never hurts to ask....
Sent from my HTC6435LVW using xda app-developers app
Click to expand...
Click to collapse
No
Sent from my HTC6435LVW using xda app-developers app
steventrev said:
Thanks! Having these steps in a simple guide saved me a good bit of time.
Minor confusion on "Installing the Kernal". I extracted Cubed.Stock.System.Write.zip, flashed boot.img, then flashed Modules.zip in recovery. From the guide, does renaming the package to boot.img work as well?
Lastly, I'm not sure if you want to include flashing/loading ViperDNA's OTA updates.
Click to expand...
Click to collapse
As in renaming the zip? No, you need to do what you said, I left out the flashing the modules. I'll fix that, thanks.
Detailed guide, one question what if you don't have orange juice and want to use Gatorade as a substitute?
Sent from my HTC6435LVW
I'm no nutritionist but I think those two serve very different purposes. Now if you want to substitute it for a glass of say whiskey... that I think is more than acceptable.

[Q] Please help this noob! (flashing custom recovery)

Okay, here we go. I am new to rooting and I have already unlocked the bootloader on my device (HTC Evo 4G LTE). It still has S-on. After I unlocked my bootloader, I continued on to flash TWRP Recvovery onto my phone using fastboot. My phone does not have an SD card. However, no matter how many times I download the newest version of TWRP or rename the file or change the directory in the command prompt...it says "error: cannot load recovery image". When I attempt to restart in recovery mode, I get this red triangle with an explanation point! I have tried over and over again, but since I cant flash this recovery, i have an unlocked bootloader for practically no reason. I need to get past this step in order to start flashing custom ROM's. I even used RegawMOD EVO 4G LTE Rooter. After i click "Root Me" it puts my device into fastboot and attempts to submit the unlock token to HTCDev.com even though I already did that! I am stuck :crying:
Go here and download the recovery to your ADB tools folder.
http://techerrata.com/file/twrp2/jewel/openrecovery-twrp-2.3.3.0-jewel.img
You can rename the file "twrp" without the quotation marks. Make sure the file doesn't have an extra img extension or it won't work. Once you do this reboot your phone to the bootloader. Connect your phone to your computer via USB cable. You should see the word Fastboot in red highlights change to Fastboot USB. Open up ADB and type "fastboot flash recovery twrp.img" (without quotation marks) then press enter. At this point TWRP recovery should be installed on your phone.
If these are the steps you have followed, disregard.
The advice is free....the bandwidth, not so much
Thank You for Replying Good Sir!
1)when i download any twrp file and try to open it on my computer, it says "the disc image file is corrupted"
2)when i attempt to open ADB , it flashes up then off. I cant read what it says
3)i entered the command in the command prompt and it just says waiting for device
gratealex8 said:
1)when i download any twrp file and try to open it on my computer, it says "the disc image file is corrupted"
2)when i attempt to open ADB , it flashes up then off. I cant read what it says
3)i entered the command in the command prompt and it just says waiting for device
Click to expand...
Click to collapse
Download this extract it to your desktop and run your commands from that folder by pressing shift and right clicking on an empty spot inside the folder and choose open cmd window here.
There is a readme.txt inside follow the instructions on how to fastboot flash twrp (Copy and paste is the easiest way to do this that way there are no typo's)
Use v2.4.1.0 if you are on the latest OTA
Use v2.3.1.0 otherwise
idk whats wrong!!
I did exactly as you said, yet the command prompt just says waiting for device. I'm not sure what to do anymore because regardless of following these instructions, I CANT FLASH TWRP RECOVERY TO MY PHONE. I believe the problem is with my phone but Im running out of options. its beginning to look like I unlocked my bootloader for nothing :/
gratealex8 said:
I did exactly as you said, yet the command prompt just says waiting for device. I'm not sure what to do anymore because regardless of following these instructions, I CANT FLASH TWRP RECOVERY TO MY PHONE. I believe the problem is with my phone but Im running out of options. its beginning to look like I unlocked my bootloader for nothing :/
Click to expand...
Click to collapse
Try these drivers.Install them and reboot your PC once rebooted go to add/remove programs and delete HTC Sync
Getting frustrated
bigdaddy619 said:
I did this and again all I get in the command prompt is waiting for device. No more ideas huh?
Click to expand...
Click to collapse

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

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://forum.xda-developers.com/showthread.php?t=2173870
CWM 2: http://forum.xda-developers.com/showthread.php?t=2172979
CWM: http://forum.xda-developers.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://forum.xda-developers.com/showthread.php?t=1538053
SuperUser: http://download.clockworkmod.com/superuser/superuser.zip
Alternatively, download this: http://forum.xda-developers.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://forum.xda-developers.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://forum.xda-developers.com/showthread.php?t=2255900 or http://forum.xda-developers.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
I feel like this title should be changed to clarify that it's unlocking the bootloader, not the SIM lock.
Just wanted to say this tutorial was 100% dead on and what I used to unlock bootloader and root/rom my One.
Oddity - Did everything, I've got root but I -AM- out of the woods. Was installing bulletproof mod through recovery but it kept failing due to missing a MD5 file or something -- Trying to work that out through that thread atm but anyway, rebooted the phone a couple of times now and I still have root, Tit back up works OR are we talking about things like CPU clocking won't work since it can't rewrite?
Sticking this.
Excellent tutorial. One thing to add:
If you flash the TWRP recovery you link to, after TWRP boots for the first time, if you reboot into System, TWRP will offer to install SuperSU for you; no need to find another to flash. Once the system reboots, you can launch the GUI installer to finish the SU install (it will boot into TWRP and back one more time to do the actual flash).
Does anyone know if this will work on the Rogers HTC One?
Thank you. Followed this last night. Worked flawlessly. The only thing that threw me was rebooting into recovery. It took maybe 3 or 4 reboots for it to say "TAMPERED" at the top. When it didn't say tampered, it would not boot to recovery.
TELUS?
DannySmurf said:
Excellent tutorial. One thing to add:
If you flash the TWRP recovery you link to, after TWRP boots for the first time, if you reboot into System, TWRP will offer to install SuperSU for you; no need to find another to flash. Once the system reboots, you can launch the GUI installer to finish the SU install (it will boot into TWRP and back one more time to do the actual flash).
Click to expand...
Click to collapse
Did you happen do run this tutorial on a TELUS device?
Viceroy_N said:
Does anyone know if this will work on the Rogers HTC One?
Click to expand...
Click to collapse
Yes it does. I have a Rogers phone, and it worked perfectly.
richnanaimo said:
Did you happen do run this tutorial on a TELUS device?
Click to expand...
Click to collapse
No, I have a Rogers device. But the procedure should not be any different.
followed step by step and got an error that says submitted token wrong length
I'm on ubuntu 13.04 and I get stuck at getting the token. I type in fastboot oem get unlock_identifier_token and it says waiting for device. Tried it with sudo and it says error and sudo ./fastboot and it says no such command.
Sent from my HTC One using xda app-developers app
Having a really odd problem. I flash the twrp recovery per instructions. I try to reboot to recovery and it seems to try and then, blam, the att boot.
I have tried this from the bootloader, selecting Recovery, as well as from a booted stated using "adb reboot recovery".
Any hints for me? I originally had a silver One and today got my Black One replacement,. Had no issues on the original one. Hmm. Guess I will try CWM.
FYI: Yes I unlocked the bootloader and it says Unlocked in there
-I also notice that I seem to go right into fastboot, when I boot the bootloader. Now, I believe that is normal if you have the usb cable attached, but this happens regardless.
-flashed stock recovery back and can get into it. trying twrp again, renaming the file to "recovery.img" just because...and it worked on that stock recovery file
-Also, very hard to get into bootloader from powered off state. I may flash RUU_M7_UL_JB_50_Cingular and see if it helps me.
OK, maybe it is the phone or ATT has done something screwy on the latest. I can not even get the RUU install to pass inspection. Wants me to check the connection. I know all my stuff is in order, as I did this all on the previous one. grrr
-Just noticed mine does say Unlocked but it does not say Tampered.
-Crazy. I decided to get a new Unlock token and redo the unlock with it. Now, the bootloader finally says Tampered and I got into TWRP. I have no idea why, since I would think that if the original Unlock token was incorrect, it would not have unlocked the phone.
So, rather than providing worthwhile information for anyone else having problems, I think this post is probably deletable and that is fine by me should the powers so decide.
How would one go back to locking the device for a return?!?
Sent from my Nexus 4 using xda premium
tacotino said:
How would one go back to locking the device for a return?!?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
fastboot oem lock
but, it will say relocked. nobody cares or seems to check. also, it will say tampered until you restore a stock ruu to flash. I used RUU_M7_UL_JB_50_Cingular.exe for mine when switching from silver to black. it is the right one for att. sorry, don't have the link to the download anymore.
great writeup! quick comment though, just helped my brother unlock his phone. i had a similar issue to @Barsky above so I decided to try to reflash the recovery. The first time I used the line fastboot erase cache after flashing the recovery and I think that's what caused it to not boot into recovery. The second time I flashed TWRP, I didn't enter that line and voila it worked on the first try!
can anyone post a mirror of the dev host files? devhost seems to be down.
nice...
help please
I seem to be stuck in recovery after installing super su/ rom. I messed up the order and did the rom then su. Any ideas on how I can get it to boot? I tried installing clean rom 2.5 and used the su file i found here ----> http://www.teamandroid.com/2013/03/17/root-htc-one-supersu-android-41-jelly-bean-tutorial/2/
any help is greatly appreciated... I just want my phone back
---------- Post added at 09:44 AM ---------- Previous post was at 09:36 AM ----------
also, i did hit factory reset under bootloader/fastboot screen (where it says tampered/unlocked),
mbroch89 said:
I seem to be stuck in recovery after installing super su/ rom. I messed up the order and did the rom then su. Any ideas on how I can get it to boot? I tried installing clean rom 2.5 and used the su file i found here ----> http://www.teamandroid.com/2013/03/17/root-htc-one-supersu-android-41-jelly-bean-tutorial/2/
any help is greatly appreciated... I just want my phone back
---------- Post added at 09:44 AM ---------- Previous post was at 09:36 AM ----------
also, i did hit factory reset under bootloader/fastboot screen (where it says tampered/unlocked),
Click to expand...
Click to collapse
I think the last bit was your problem. You can't factory reset from bootloader. Try to push twrp again in fastboot then load/flash clean romantic, then boot up. It already has root so you don't need to push su.
Sent from my HTC One X using xda app-developers app

Categories

Resources