yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M7)] Sloth:
I have never re-locked my bootloader so I'm not 100% sure if it wipes everything again I would suggest trying this

1. make a backup of your current setup

2. choose reboot bootloader from twrp once there select fastboot plug in the usb cable

3. re-lock your bootloader type this in a cmd window "fastboot oem lock" without quotes press enter

4. flash the stock recovery(provided) type "fastboot flash recovery Sprint_One_stock_recovery.img" without quotes press enter

5. type "fastboot erase cache" without the quotes and press enter

6. boot to OS and take the OTA

7. boot back to bootloader select fastboot plug in the usb cable and and flash your unlock_code.bin(you still have it right?) again like you did the first time you unlocked

8. re-flash twrp

9. restore your backup

There is also a video in the first post on How To Unroot your HTC One and Flash it stock!
[Sprint HTC One (M7)] SantinoInc:
Hey bigdaddy. So I'm finally expecting to receive this phone today and I'm planning on rooting it first thing. I already d/l all the files from the OP to get ready to root. Quick question though: will it be necessary to do Viperboy's [ROOT][5/24]Sprint One Root and Disable System Write Protection

http://xdaforums.com/showthread.php?t=2236849? after following the steps in your OP?
[Sprint HTC One (M7)] Sloth:
System Write should be baked in to all the Sprint roms I would imagine, if you plan to use roms from the other fora you may need it, you could always ask viperboy
[Sprint HTC One (M7)] Tibedabeeto:
Trying to go through the steps but getting stuck on HTC Sync Manager. Every time I try to install I get a PRQStarter error. I tried uninstalling and re installing, re downloaded a new file just to make sure the original one was not corrupted. I have windows 7 64 bit and a Samsung chronos laptop. I did some research and only a few people get this problem but have not seen a solution. Any ides will be helpful would like to root my phone to get all my stuff form the s3 over to this phone. I have changed stuff in my registry that I have read, I have uninstalled and re installed .net framework. I am at a loss, nothing is working.

I have attached 2 errors the first one is what I get after installing anyways and trying to open the program. The other error is the PRQ error I mentioned that I get while installation.

THanks
[Sprint HTC One (M7)] Sloth:
Are you re-starting your PC after uninstalling ALL the drivers then re-installing? Have you tried the PdaNet drivers? Just a couple suggestions :D
[Sprint HTC One (M7)] Tibedabeeto:
I have restarted pc, but not pdanet, will try that next.
[Sprint HTC One (M7)] Tibedabeeto:
Just wanted to give a heads up when I tried PDANet it mentioned my Samsung drivers on the computer. Since I have the S3 as well I guess it is messing up the process. Going to try to uninstall it and install Sync all over again. If it does not work I am going to give up on this laptop and try it on another one later on down the road.
[Sprint HTC One (M7)] Sloth:
That's weird I have Samsung drivers on my machine I didn't have any problems installing the PdaNet drivers

Sent from my Liquid Smooth Nexus 7 :p
[Sprint HTC One (M7)] Tibedabeeto:
I didnt have troubles with PDANet I just have problems with the stupid HTC Sync tool. When I used pda net and it installed the drivers my computer still didnt recongnize it in fastboot mode. I dont know what to do, is there a place to get just the drivers HTC Sync is suppsoe to install? Is that what PDANet did? If so im still stuck where when typing in cmd window it is waiting for device. FAIL

I have another latptop upstairs let me try the whole process on there. If it works, then it was something I did with my main laptop. I tweak so many setting on this thing that I cant remember everything I did. Lets hope that works

UHH I installed UBUNTU on the other one, now I need to reinstall win7. errrr
[Sprint HTC One (M7)] Sloth:
If you click on the Evo root guide in my Sig there is a link to the HTC sync drivers

Also try booting into bootloader it will install more drivers

Sent from my "Blue" One :p
[Sprint HTC One (M7)] Tibedabeeto:
Ok will try that while installing win7 on other computer.

The HTC Sync tool didnt work once installed. I opened the program on my computer and connected my phone and it said no device connected. No matter how many times I disconnected and reconnected my phone. I tried usb debugging on and off as well. So I am just going to try on the other computer. See what happens.

---------- Post added at 10:09 AM ---------- Previous post was at 09:30 AM ----------

No error this time, Idk what on my other computer is causing that

---------- Post added at 10:34 AM ---------- Previous post was at 10:09 AM ----------

Was able to unlock bootloader and in process of rooting, thanks.
[Sprint HTC One (M7)] Sloth:
See changelog
[Sprint HTC One (M7)] Smac7:
I just got my ONE, couple questions though. With the new s-off method, do i still need to use this guide to root? Basically what is the correct order to do things. Also is there anyway around using HTC's unlocking software?

My best guess would be the correct order is

1 root

2 bootloader unlock

3 s-off

any help would be greatly appreciated.
[Sprint HTC One (M7)] Aldo101t:
1. bootloader unlock

2. install recovery

3.root

4.S-off

this is the order of things
[Sprint HTC One (M7)] Smac7:
Thanks!

Is it ok if i take the update it keeps bugging me about before i do it?
[Sprint HTC One (M7)] Aldo101t:
yeah, you can take the update, before you unlock mor root, after that you won't be able to.
[Sprint HTC One (M7)] Sloth:
Thanks for the help Aldo :D good lookin out
[Sprint HTC One (M7)] Aldo101t:
anytime.
[Sprint HTC One (M7)] Smac7:
delete - wrong thread
[Sprint HTC One (M7)] drlzanej:
Jot got my One about an hour ago. Unlocked and rooted. Thanks bigdaddy:cool::):laugh:
[Sprint HTC One (M7)] Sloth:
Welcome to the dark side :D

Sent from my Eliptic Nexus 7 :p
[Sprint HTC One (M7)] daveyglow:
so I keep getting a "failed unknown error" when trying to flash recovery

wheneveri try to flash using any method. my bootloader unlocked fine and says unlocked in hboot

but It wont work any help?
[Sprint HTC One (M7)] Sloth:
Try the twrp link in the readme text and get a fresh copy
[Sprint HTC One (M7)] daveyglow:
thanks for your quick reply but I tried that and nothing? :[

I still get

sending 'recovery' (7912 KB)...

FAILED (data transfer failure (Unknown error))

finished. total time: 0.000s
[Sprint HTC One (M7)] Sloth:
Are you opening the cmd window from the root files folder? Try to copy and paste the command into the cmd window
[Sprint HTC One (M7)] daveyglow:
yes I am opening the cmd.exe file in the folder and ive been copying and pasting the whole time.

im really not sure what it could be. I cant find anyone anywhere with the same issue unless its for an older device

Im stumped. also If I check in rom manager it says that it is installed but when I go to recovery I get a red triangle with exclamation mark
[Sprint HTC One (M7)] Sloth:
You ate HTC Dev unlocked correct?
[Sprint HTC One (M7)] daveyglow:
yes I am
[Sprint HTC One (M7)] Sloth:
Check PM :D
[Sprint HTC One (M7)] amskhan1:
stuck in the getting identfier token

how long does it stay at this point?

http://www.youtube.com/watch?feature...G9lJiTo#t=346s

none of the stuff after the top line has come up yet. It just says waiting for device, so about how long should i wait for something to happen here, in the video it seems instantaneous but it isn't coming on mine. Any idea on what i messed up on?

its been about 30 min of waiting for the token and im confused on weather it should take this long, i am in fast boot on my phone.

i have restarted once or twice, please help

never mind i got it
[Sprint HTC One (M7)] acme64:
I'm not following. If i run the 1.29.651.10 update i will not be able to root afterwards correct? Also, is this the 4.2.2 update?
[Sprint HTC One (M7)] Sloth:
You can't take the ota update if you are rooted and unlocked but you will be able to use this method to unlock and root.

No we have not gotten the 4.2.2 update yet
[Sprint HTC One (M7)] ace8707:
Is it possible to unlock the HTC One without using HTC Dev yet? I have been dying to root mine, but it is a work phone and I don't want to worry about the warranty being voided by using the site.
[Sprint HTC One (M7)] Sloth:
You can use revone to s-off and unlock as far as I know
[Sprint HTC One (M7)] Sloth:
Updated OP see changelog :D
[Sprint HTC One (M7)] wwjoshdew:
Thanks for being awesome [MENTION=4609217]bigdaddy619[/MENTION] and keeping everything up to date! They made a good choice stickying this thread! :)
[Sprint HTC One (M7)] Sloth:
Thanks [MENTION=4035386]wwjoshdew[/MENTION] I also added some screenies to post 1 showing the different recovery options :D
[Sprint HTC One (M7)] jcazes:
Is it possible to root this phone without unlocking the bootloader (and thus wiping the phone)? I am trying to recover photos that were wiped (when I activated my phone) via this method, which suggests using a non-destructive rooting method. Any recommendations?
[Sprint HTC One (M7)] Sloth:
You can try RevOne S-OFF
[Sprint HTC One (M7)] flopez76:
TWRP 2.6 leaves the touchscreen unresponsive, so you can't flash SuperSU. Have the a download for TWRP 2.5? Everything was going smoothly until this
[Sprint HTC One (M7)] jcazes:
But doesn't revOne S-off require you to be rooted and have the bootloader unlocked (the part that requires wiping)?
[Sprint HTC One (M7)] Sloth:
You can get a copy of 2.5.0.0 HERE
[Sprint HTC One (M7)] Sloth:
As far as I know it will work if you are stock and locked
[Sprint HTC One (M7)] Aldo101t:
thanks BIGDADDY, FOR YOUR WORK.
[Sprint HTC One (M7)] Sloth:
YW and thank all of you XDA'ers :D
[Sprint HTC One (M7)] jcazes:
I'm confused -- QBKing says you have to be rooted to gain S-off (as per this video: https://www.youtube.com/watch?v=J4BWxtjaamM ) and then you also need root to put the revone file on the phone's internal storage (and then use the terminal emulator in rom toolbox pro).

I feel like this is a 3-way chicken and egg scenario. I need to be rooted, which requires unlocking the bootloader, installing S-off requires root too. The bootloader seems to be the culprit, as unlocking it requires the wipe.
[Sprint HTC One (M7)] Sloth:
You can run revone from your PC, that's how I did it so I could copy and paste that way there were no typos

1. Download revone (above) and push it to your device: adb push revone /data/local/tmp/

2. Open an adb shell and:

* cd /data/local/tmp

* chmod 755 revone

3. (optional) If your device is unlocked and rooted please switch to root using su.

4. Prepare to gain S-OFF by running the command: ./revone -P

4a. If revone reports success reboot the device and proceed to step 5)

4b. If revone reboots the device (we'll pretend this isn't an undiagnosed random crash) please wait 2 minutes then try again from step 2.

4c. If revone reports that you need to reboot and try again please reboot and try again from step 2.

5. Now that revone has successfully prepared your device for S-OFF please open another adb shell (as per step 2) and change to

the /data/local/tmp directory.

6. Instruct revone to grant you S-OFF and unlock status by running the command: ./revone -s 0 -u

6a. Other optional command arguments:-

* -u - Unlock the device

* -l - Lock the device (as if it was never unlocked)

* -r - Relock the device (mark the device as relocked)

* -t - Reset the device's tamper flag.

7. Presuming revone reported success please reboot the device again, this time to the bootloader (adb reboot bootloader)

8. You should now observe your device is S-OFF (and the lock status changed if you invoked that option).

9. (optional) Re-run revone to remove TAMPERED from your HBOOT screen: ./revone -t
[Sprint HTC One (M7)] Sloth:
Seems TWRP v2.6.0.0 is having some issues I have posted a link in Post 2 to get older versions :D
[Sprint HTC One (M7)] drkcreator:
Quick question guys I can't get the cmd to recognize my commands... If it helps it opens as

User/documents or something like that then I type admin and doesn't recognize it.... What am I doing wrong??
[Sprint HTC One (M7)] Sloth:
Open it from the root files folder (open the folder and press shift and right click inside the folder and choose open cmd window here)
[Sprint HTC One (M7)] vishalsheth:
The procedure is very well explained. I faced problem with TWRP 2.6.0.0. It did not allow me to change anything. I got TWRP lock. I tried with TWRP 2.5.0.0 and it went fine.
[Sprint HTC One (M7)] drkcreator:
Us there another way to get the key?? Every time I try submitting it it gives me an error... It says key is to short or wrong key.... I copy and paste from cmd
[Sprint HTC One (M7)] vishalsheth:
Make sure to highlight and then copy by clicking on the boarder of the window, not tree inside areas .
[Sprint HTC One (M7)] drkcreator:
Will try thanks
[Sprint HTC One (M7)] drkcreator:
Hey guys still no luck on unlocking my device this is what I get.... Any word??

Follow directions from HTC.. <<<<start here/end here>>>>
[Sprint HTC One (M7)] Sloth:
Right click and choose mark and highlight the area it describes at htcdev

Sent from? :p
[Sprint HTC One (M7)] drkcreator:
I did that then right click and it copies also marked it and went to the top of cm and right click it edit copy and pasted on HTC and still get same message :(

Edit... Does itmatter where I have the files?

Would it work with other user token ID?
[Sprint HTC One (M7)] Sloth:
There shouldn't be any files until you get the token email from HTC and no each device has a unique token

Check my profile for threads I've started there is one there on how to submit HTC token :thumbup:

Sent from? :p
[Sprint HTC One (M7)] FrankthaTank:
Having an issue. I unlocked okay and followed the steps to install twrp 2.6.0.0 and when I'm in recovery anything I push results in a swipe to unlock screen. What do I do?

Also my bootloader now says tampered above unlocked
[Sprint HTC One (M7)] vishalsheth:
Use twrp 2.5.0.0 from post 2.
[Sprint HTC One (M7)] FrankthaTank:
...and that bricked my phone. Said entering recovery, took a long while, then NOTHING but a red light.

Now what can I do?
[Sprint HTC One (M7)] vishalsheth:
Reboot in bootloader

---------- Post added at 10:15 AM ---------- Previous post was at 10:15 AM ----------

Please follow the steps. Don't miss any.
[Sprint HTC One (M7)] FrankthaTank:
Nothing seems to be responding. The red light goes off for a bit then comes back on. The computer no longer recognizes the device. I wish I could get back to the bootloader.

EDIT: Device came back to life after a while. Back in bootloader, still says "*** TAMPERED ***"

Everything working better with twrp 2.5.0.0

Thanks
[Sprint HTC One (M7)] Sloth:
Glad you got it working :D

It say **TAMPERED** because you flashed a custom recovery nothing to worry about
[Sprint HTC One (M7)] vishalsheth:
Does this mean that the recovery did not get flashed properly?
[Sprint HTC One (M7)] Sloth:
Do you mean the tampered label or the fact he thought he bricked?

Tampered just indicates there is a custom recovery installed

As far as I know the recovery flash should fail if there is a problem
[Sprint HTC One (M7)] vishalsheth:
I agree with you. When first time I flashed it did not show my tampered, but later with all flash it showed. I'm fine now. Mine is going good.
[Sprint HTC One (M7)] drkcreator:
Thanks [MENTION=4609217]bigdaddy619[/MENTION] manage to finally unlock my phone thanks to ur tutorial..gues I had an xtra space when I was copying. :D
[Sprint HTC One (M7)] drkcreator:
I get this after I power on from cwm is it bad?
[Sprint HTC One (M7)] Sloth:
I have got that a couple times when I was running a custom kernel

Sent from? :p
[Sprint HTC One (M7)] P.Mobile:
bigdaddy is the most helpful person i have ever seen in my life!! dude stayed up mad late last nite to help me my drivers were giving him mad problems and he kept at it .. thankful to have someone go out of there way like that man.. big ups to u bro!! thanks bro glad to see theres still some good peeps on xda:good:
[Sprint HTC One (M7)] cruckus:
Does this work on the 1.31 software? I just got a red HTC one to go with my black but didn't want to mess anything up
[Sprint HTC One (M7)] Sloth:
Yup it will work :D

Sent from? :p
[Sprint HTC One (M7)] cruckus:
You are just the best person ever!!!!
[Sprint HTC One (M7)] :
Thank you for the guide and files! This worked great, however I had the same reported issues with TWRP 2.6.0.0 with it getting stuck on the unlock TWRP screen. Someone mentioned to use TWRP 2.5.0.0 from post 2 and I noticed there was a download for TWRP 2.6.0.1 in the link and that worked as well! I'd rather be using 2.6 than 2.5 so, glad 2.6.0.1 worked!

Thanks again!
[Sprint HTC One (M7)] Sloth:
Added Universal Naked Drivers to Post 2 :D
[Sprint HTC One (M7)] Sloth:
Updated OP please see changelog

**Note** Hopefully TWRP v2.6.1.0 works as intended but if not see Post 2 and download v2.5.0.0
[Sprint HTC One (M7)] paulDAking:
So I've followed all the steps listed from HTCdev carefully but when it comes to unlocking bootloader I was unsuccessful after multiple attempts.. any clue to how to solve this issue? Thanks in advance!\

Problem solved... had to submit same code no spaces like 8 times but it went through!
[Sprint HTC One (M7)] Sloth:
Check your PM :D
[Sprint HTC One (M7)] jdjohn:
I was already rooted, but used this to flash Philz recovery. Great resource here...thanks for your work!
[Sprint HTC One (M7)] Sloth:
Updated Post 2 Instruction on how to backup and restore apps and app data
[Sprint HTC One (M7)] A_Flying_Fox:
wow wow wow so this was my first time using ADB on a macbook and it took a little while before i figured out how to make the commands actually work, but for you guys on mac's, just type in terminal

./adb-mac

thats for any adb commands, and type in

./fastboot-mac

thats for any fastboot commands.

Just download the root files and follow the instructions in the read me. Any instances where it says, like, "fastboot get_identifier_token" you would type in ./fastboot-mac get_identifier_token.

hope that helps
[Sprint HTC One (M7)] turdmuffin:
This might be a dumb question, but since I just did the OTa to 4.3 does any of this change or is it still all the same?
[Sprint HTC One (M7)] Sloth:
Should still be the same... although I have seen a few reports of folks not being able to flash TWRP after taking the OTA(<----- NOT A GOOD IDEA BTW)

I flashed OMJ's Stock rooted 4.3 rom and it deleted twrp somehow lol I just fastboot flashed it again no problems

Another note use TWRP 2.6.3.0 anything older you won't have any touch while in twrp
[Sprint HTC One (M7)] drkcreator:
U might as well be I see ur all over the place helping all us noobs with ur wisdom (kissing ass) jk.... Thanks for all ur help
[Sprint HTC One (M7)] Sloth:
Lol :D
[Sprint HTC One (M7)] Sloth:
Updated OP

10/07/13 Updated TWRP to 2.6.3.0

10/07/13 Updated CWM Classic and CWM Touch to 6.0.4.3

10/07/13 Updated PhilZ Touch to 5.15.0

10/07/13 Updated SuperSU to 1.65

10/07/13 Added Universal ADB Drivers
[Sprint HTC One (M7)] digisolnc:
new OTA?

Hey man,

I wanted to know if this method will work with the new OTA that came out a few days ago. I think you answered this question a few posts ago, but I want to make sure youre talking about the firmware I have on this phone.

Android Version - 4.3

Build Number - 3.04.651.2 CL251863

Baseband - 1.00.20.0913

Sorry if this was a stupid question, I just didnt want to go through with it if its not supported. Just looking to root it to enable wifi tether. Thanks in advance.
[Sprint HTC One (M7)] Sloth:
I'm 100% sure the HTC-Dev part will work

I'm 99% sure everything else will work although I have seen some folks having issues but that could just be a tiny oversite on there part maybe missing something

If you have any more questions shoot me a PM :D
[Sprint HTC One (M7)] digisolnc:
Ill give it a shot this weekend when I have the phone. Thanks for the response. Someone said on another forum that the 4.3 update comes with a new HBOOT version which makes it unable to unlock/root. Do you know anything about that? I apologize for the questions, but id rather talk to someone who knows something versus random people speculating. Ill PM you if I have any questions during the process. Thanks again
[Sprint HTC One (M7)] Sloth:
The new hboot will not allow you to s-off at the moment as there is not an exploit yet, but unlocking and flashing a custom recovery should work fine
[Sprint HTC One (M7)] digisolnc:
awesome, yeah she only wants me to do it for the WiFi tether so we wont be putting a custom ROM on it. As long as I can get root, im golden, and hopefully Ill have you to thank! :)
[Sprint HTC One (M7)] Sloth:
NP good luck :D
[Sprint HTC One (M7)] matthew0776:
Got a replacement device today...went to unlock it and it runs the unlock code.bin but doesnt boot into unlock boot loader option screen jus stays in fastboot mode. Here's the pic command prompt...I've unlocked and relocked a HTC one a few times so I even got a new unlock code from HTC for the new device and still no go...???? Thanks for any 411 FYI...I am on a Mac
[Sprint HTC One (M7)] matthew0776:
Forgot pic ^^^^^
[Sprint HTC One (M7)] Sloth:
Do you have a good charge on your phone? I saw one member I was trying to help his battery was low so the unlock.bin said successful but did not unlock his bootloader.
[Sprint HTC One (M7)] matthew0776:
Its at 45% should i let it go to 100% and try again...????
[Sprint HTC One (M7)] Sloth:
maybe 50+

His was on the verge of dieing so I would imagine 45% would be fine but...
[Sprint HTC One (M7)] matthew0776:
So did I ...lol seems weird to run bin successful and not prompt unlockBL screen ... But ... Hope a little charge fixes it... Otherwise what would I tell best buy ...the phone is defective Cuz I can't unlock boot loader...??? Lol :confused::banghead:
[Sprint HTC One (M7)] Sloth:
Lol seems legit :D

Or try a windows machine

I think this guy was running a Mac also
[Sprint HTC One (M7)] matthew0776:
Lol...I suppose. But I do have ins through them as well. So that would be an interesting convo...lol Let's hope it doesn't come to that.

I haven't took the 4.3 update yet Cuz I don't want new hboot i want to s-off asap...But do u think that would help unlock BL ...?
[Sprint HTC One (M7)] Sloth:
You could use Indirects guide to downgrade to 1.29 but the guy I was helping on the mac couldn't get the 1.29 RUU to flash he got an error everytime but if you can do it on a windows machine and do the downgrade then run the 1.29 RUU then you could use revone to s-off and unlock
[Sprint HTC One (M7)] matthew0776:
So...I waited til charge. Still no go. DL revone pushed it adb after I installed twrp. Says success bit when I boot into BL it still says locked ...? I have no clue why I can't unlock this device...???lol weird
[Sprint HTC One (M7)] Sloth:
Updated OP

10/24/13 Added a link in post 2 ( May help folks using Windows 8.1)
[Sprint HTC One (M7)] oldpreowner:
Coming from galaxy s3 so I've been reading up this week on unlocking the bootloader, rooting, and getting a custom recovery. I'm still a little confused. I'm on the latest version 4.3 and the most up to date bootloader. Can I still get unlocked and rooted using this method? Also the main reason I'm wanting to do this it's for the xposed framework to get volume wake and WiFi tether. Thanks in advance.
[Sprint HTC One (M7)] Sloth:
Yup you are good to go :D
[Sprint HTC One (M7)] Sloth:
Device not recognized? Updated post 2
[Sprint HTC One (M7)] Sloth:
Updated OP see changelong
[Sprint HTC One (M7)] getmoneygreen:
first of all i will like to say thank you from all us noobs out here following your guide to the T to get our phones nlocked and rooted i used your guide and i just have one question how can i install busybox i tried to install it thru the play store but it always fail how can i install busybox correctly
[Sprint HTC One (M7)] Sloth:
I have never tried to install busybox as I always run a custom rom. Most if not all have busybox included if I remember correctly.
[Sprint HTC One (M7)] Sloth:
Added a link to the latest RUU in Post 1 :D