yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M8)] Sloth:
I have not done anything to my M8 yet.

Look here for a fix.

http://xdaforums.com/showpost.php?p=51462841&postcount=42

Edit are you sure you have the twrp.img in the folder you are using to open your cmd window?
[Sprint HTC One (M8)] rhe12:
Ok that worked for flashing TWRP, phew!

Now, onto the next step...
[Sprint HTC One (M8)] Captain_Throwback:
You haven't unlocked yet? If so, and you possibly confirm if there are any files in /data/preload? We think the Calculator app might be in there. I'm also hoping there's a Mail widget hiding somewhere too.
[Sprint HTC One (M8)] gscarborough:
firmware is up to date minus the OTA I was still on the 2.8.0.7 just wanted to update the recovery
[Sprint HTC One (M8)] av_27:
Stock recovery

somebody can help me, i have the software version 4.25.651.18 and android 5.0.2, i want to go back from twrp to stock recovery but i don't have the exact files, can somebody give me the link i don't understand what files i need, thank you
[Sprint HTC One (M8)] gscarborough:
check your PM
[Sprint HTC One (M8)] Einwod:
You should remove your serial and IMEI numbers from your original post. They can be used against you.
[Sprint HTC One (M8)] KingFnerb:
I removed it all from my OP. I figured it out.
[Sprint HTC One (M8)] Captain_Throwback:
If you want to update, update to the latest, not an old version. Look near the end of the TWRP thread for the latest recovery.
[Sprint HTC One (M8)] Von Etrigan:
I think I've got the same issue as a couple other people, but the answers have been PMs and not links. I've got a rooted, S-ON Sprint M8, running 4.25.651.14. It works, but I'd like to grab the stock recovery and take the OTA MM update. I thought I'd backed up my stock recovery, but it must have been a previous version - It flashed, but when I tried to take the 4.25.651.18 OTA update, I got an error. I've tried to find a download for the recovery, but all the stock files I've found are several versions old.

So, can anyone send me/point me to the stock recovery for 4.25.651.14, or tell me how to extract it from the RUU? Flashing the whole RUU seems like overkill.

EDIT: Disregard, I found the solution. For anyone else looking, the recovery.img files can be extracted from the appropriate firmware (NOT RUU - I'm an idiot) files in this thread: http://xdaforums.com/showthread.php?t=2729173. Thanks to Murtaza02 for the post that led me to the answer!
[Sprint HTC One (M8)] Sloth:
You can pull it from the 4.25.651.14 Full Firmware using 7-zip
[Sprint HTC One (M8)] moto125girl:
I'm pulling my hair out!

I have managed to unlock my bootloader, flash the twrp, but when it reboots

It's stuck in sprint activation mode. And I am a complete noob and can't for the life of

Me figure how to get passed that. Any help u could give me would be awesome.
[Sprint HTC One (M8)] comstar:
Try turning off your Wi-Fi. It needs to activate on the cell data network.
[Sprint HTC One (M8)] BAReese:
SuperSU on clean MM upgrade?

I did a factory reset and clean RUU install of MM today, but after installing SuperSU from TWRP my phone hangs at the HTC startup screen. Anyone else having a similar issue or know what I'm doing wrong?

Using the latest on crossfire's site (https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip)

Using TWRP 3.0.0...

Wiped Cache

Wiped Dalvik/ARK

Phone is an M8 HK.
[Sprint HTC One (M8)] Captain_Throwback:
That's not the latest stable SuperSU, which is why your ROM won't boot.
[Sprint HTC One (M8)] BAReese:
Ah, you are very correct. I must have gotten an old "This is the latest and greatest link" somewhere.

Found the correct latest (2.65) here: http://xdaforums.com/apps/supersu

Thanks for the quick response!
[Sprint HTC One (M8)] hunkyycbz:
hii..

i have sprint htc one m8:

android version - 6.0

sense 7

software version - 6.20.651.3

baseband - 1.09.20.1112

my phone's bootloader is locked..

can anyone tell me if i apply the procedure in the OP, will there be any problem.

i am getting official updates now and i know i will not get them when i unlock bootloader..

i want to install viper rom on my m8..
[Sprint HTC One (M8)] dedist:
thk

thank
[Sprint HTC One (M8)] Einwod:
You must unlock the bootloader to be able to flash custom ROMs. You will lose everything on internal storage by doing so. Backup anything that you may want to keep from internal storage and move to PC.
[Sprint HTC One (M8)] Ridge84:
I'm sure this doesnt get read very often. I have a bit of programming experience in other areas(PLC), but this is new to me. I just unlocked my m8 v6.2 today. Its an old phone just playing with it to have some fun. I have gotten as far as the adb reboot recovery and installing the supersu v1.94. When the phone boots back on. I get a little prompt on windows 7. Down in the bottom right corner for hidden task. It says device driver software was not sucessfully installed. When it boots back up it acts like it starts to download the drivers then I get that prompt. I downloaded the drivers and adb and such from the guide and have followed it to a T. I checked with root checker and it says not properly installed. Cant seem to get it to root. I keep checking to see if it detects my phone and it does. I thought about flashing cwm and trying it that way? So, Could someone with a little more expertise send me in the right direction? Thank you :)

edit:

So, I am having another dilemma, I tried flashing a updated version of supersu and it wouldnt take. So, I tried putting the zip file directly into the sdcard through the htc sync manager. well now I come to a white htc screen and get stuck there. So I went back in and deleted the newer supersu version and reboot it with the v1.94. Same problem with reboot recovery and figured I would have to wipe it back to factory reset. I then went to wipe and set it to factory reset. No change in status. white htc screen. I am still able to get into the bootloader. It still says I am unlocked. at this point im a little stumped. Now the devices isnt connecting. Im not sure how to get it back to connecting??? is there anyway to load from that screen, I can toggle through, will recovery work or am I bricked?

update 2: Guess you just have to play around if you went through all the first steps first. So I went into recovery on the bootloader and it brought me back to twrp v2.7 . From there my device would connect, I then went back and got the latest version on twrp 3.02 I believe. Flashed it to the bootloader then i went to reboot. It didnt really do anything. It came back to white screen so I went back into the bootloader and then recovery. It brought up the newest twrp version. From there I flashed the newest version on supersu v2.76. restarting at the moment. I Think im just going to look into a custom rom and worry about rooting later, been a long day lol.

Update 3: Ok, I got it rooted. After I flashed newest supersu. It was rooted. I used root checker to do so. I am now running on bad boyz ROM.

Thank you for all the info on here. I thought it would be a help if I went through my step by step process from a newbie prespective. Im sure there are others on here, but there are also a lot of pages here.
[Sprint HTC One (M8)] pokemon_2201:
please help me to update hboot this device
[Sprint HTC One (M8)] Sloth:
Wrong thread...try the firmware thread.
[Sprint HTC One (M8)] pokemon_2201:
sorry
[Sprint HTC One (M8)] Sloth:
No worries :)
[Sprint HTC One (M8)] ericsimons18:
Will installing a recorvery wipe the data on my phone ?
[Sprint HTC One (M8)] Sloth:
Nope, but unlocking at HTC-Dev will.
[Sprint HTC One (M8)] ericsimons18:
thanx - For the quick reply - umm I have a Sprint version of the HTC m7 WLS - I tried installing the universal recorvery 3.1 twrp for it , it give me an error then I found a 3.1.1 version of twrp for HTC m7 Sprint from twrp site - I was just wondering if it's safe ...
[Sprint HTC One (M8)] Sloth:
I don't have the M7 anymore, you should ask around in the Sprint M7 section if it's safe (it should be fine)...you are in the Sprint M8 section now lol
[Sprint HTC One (M8)] Juamps81:
How can I root back if recovery Mode goes to twrp
[Sprint HTC One (M8)] rhe12:
Ok, I don't know what I'm doing wrong, but I tried the next steps, i.e. installing superuser program: Phone off, boot into HBOOT>Fastboot, tried "fastboot flash recovery" and got "error: neither -p product specified nor ANDROID_PRODUCT_OUT set". And when I tried "fastboot flash recovery recovery", got "Error: : Cannot load 'recovery'". Hmm, I seem to be in over my head. I'm going to go do some searching and see if I can figure it out. But any pointers will be appreciated.

Edit: nvm. I did a search and found slightly different worded instructions, as in for retards like me, and found my way back. I booted into TWRP and should be able to install SU me thinks. Thanks.

Edit: Rooted!
[Sprint HTC One (M8)] Sloth:
I have a Calculator app and Mail app in my app drawer before unlocking.

Is this what you wanted to know?
[Sprint HTC One (M8)] Captain_Throwback:
I was asking about Mail widget, actually.

But Calculator app is good to know. I wonder what else is hiding in there.
[Sprint HTC One (M8)] Sloth:
I should also mention I have not activated it on Sprint yet so that may change once I do.
[Sprint HTC One (M8)] Sloth:
Updated OP see changelog.
[Sprint HTC One (M8)] KMachine:
Forgot to post that this method worked for me this past weekend - now running an unlocked and rooted M8. Haven't tried any ROMs yet - I always like to go stock Sense for a little bit to get a feel for it. Will mention that the READ ME file (Word file) could be re-written with a little clearer instructions but nonetheless, it did help me work my way through everything. So thanks everyone!
[Sprint HTC One (M8)] rhe12:
I agree. It doesn't quite have the "for dummies" clarity level, which is why me, a dummy, got temporarily lost :silly: although eventually found my way back. But it nonetheless got me there, eventually.
[Sprint HTC One (M8)] Sloth:
Suggestions? What needs to be added/removed?
[Sprint HTC One (M8)] rhe12:
Well I think the best way to answer that is to provide you with the link I used to get back on track when I got lost due to my noobity: http://www.droidviews.com/root-install-twrp-htc-one-m8/

Although very similar to yours, it seems to be laid out in a way that even a retard like me can follow. Ironically, the stated source for that article is XDA...

Edit: Here's another one, HTH: http://www.theandroidsoul.com/root-new-htc-one-2014-m8/
[Sprint HTC One (M8)] Sloth:
Those are great guides and kudos to the author/authors. The only problem is, folks start following those guides and end up with a soft brick because they use the files from said guide, which are not Sprint specific. I can't even tell you how many OG Ones I had to help save because of this lol.

I'll post links in post 2 with a caveat.:)
[Sprint HTC One (M8)] rhe12:
Sorry, I wasn't clear enough I guess. The idea with providing those links was for writing style and clarity of 1-2-3 type steps and clear instructions that leave no room for mistake. Your guide is probably the best for Sprint, if you were to make some minor changes to be as clear as those guides. That's what I meant to convey.
[Sprint HTC One (M8)] Sloth:
I have done this same guide for 4 different devices and try to be as "noob" friendly as possible lol.

Never had any issues that a message here could not fix.

I'll take a look and see if I can tweak it some.
[Sprint HTC One (M8)] rhe12:
Ok I'll read it newly and see if I can remember where I got lost, and PM you feedback, HTH. I'm the perfect guinea pig to make this noob-proof :D
[Sprint HTC One (M8)] Sloth:
Updated OP please see changelog

Thanks [MENTION=4673879]rhe12[/MENTION] for the feedback :D
[Sprint HTC One (M8)] Granite1:
I've worn out my thanks button BD!!

Between you and the good Cap'n I think it'll be broke for a while!!

Thanks for posting this up, it'll help the masses tremendously!!!! :o:good:
[Sprint HTC One (M8)] filmaker:
Thanks! Through a little work I was able to figure it out.I'm working on a video tutorial which should hopefully help any newbies
[Sprint HTC One (M8)] Sloth:
Post it when it's done and I'll add it to the OP :)
[Sprint HTC One (M8)] Lurch69:
So I'm trying to unlock my M8 via htcdev.com. It's in fastboot and after I type in "fastboot oem get_identifier_token" it just sits at 'waiting for device'. I don't think my computer is recognizing my phone correctly. I'm running Win 8.1. Any suggestions? Thanks!
[Sprint HTC One (M8)] Sloth:
Does fastboot devices give you your serial# followed by fastboot?

Did you press power to select fastboot? Does it say fastbootusb in red?
[Sprint HTC One (M8)] Lurch69:
What do you mean by fastboot devices? It does say FASTBOOT USB in red on my phone.
[Sprint HTC One (M8)] Sloth:
In your cmd window type fastboot devices and see if you get your serial number as a reply just make sure it says fastbootusb on your device
[Sprint HTC One (M8)] Lurch69:
Ok, so I'm pretty sure my problem had to do with getting the drivers installed on Windows 8.1. I decided to try to use my old computer w/ Win Vista to root my phone and it worked flawlessly! I just noticed question #18 on the FAQ deals w/ HTC drivers and Win 8 so if someone else if having a problem I'd start there.

In the interest of making this process even more noob friendly, I'd recommend stating that they need to install the HTC Driver exe, the appropriate HTC BMP USB driver msi, and the Universal ADB Driver Setup msi file. Also, I didn't see directions on how to flash SuperSU in your text document, although it was a pretty straightforward thing to figure out.

Thanks again for your help!
[Sprint HTC One (M8)] filmaker:
Awesome! Thanks. Here's the video:)

https://www.youtube.com/watch?v=wy8Htj2YL4E

I modified the zip that you posted in the OP. I updated the ADB file (the old one was giving me weird driver issues) I also renamed the recovery to something simpler.
[Sprint HTC One (M8)] Sloth:
Thank you sir adding now :D
[Sprint HTC One (M8)] xPhantom:
Awesome video! Thanks a lot! I have a question: have any of you tried using GMD Auto Hide to hide the on-screen buttons?
[Sprint HTC One (M8)] pball52998:
If there's any Mac users. OP said I could get my script in there, and [MENTION=2631751]Lurch69[/MENTION] I would make a super noob windows version if OP allowed me :p that one would take a while since I'm more Mac/Linux oriented in the coding nature. But can do windows some.... bat scripts \(^._.^)/

---------- Post added at 11:48 PM ---------- Previous post was at 11:45 PM ----------

Also by taking a while I mean less than 2 days....
[Sprint HTC One (M8)] Sloth:
Updated OP see changelog
[Sprint HTC One (M8)] Anagarm:
edit: wrong thread
[Sprint HTC One (M8)] Sloth:
Did you do wipe anything? Sounds like your OS might be gone.
[Sprint HTC One (M8)] Anagarm:
I didn't wipe anything as far as I know, but in the case that I did, how can I reinstall it?

And thanks for answering.
[Sprint HTC One (M8)] Sloth:
So when you press reboot system it just boots back to twrp?
[Sprint HTC One (M8)] Anagarm:
Yes, that's correct. No matter what I do, it always loads twrp. If it helps, my partition sizes are:

boot (16 mb)

cache (6 mb)

data (0 mb)

system (2173 mb)

And if I did delete the OS, could I load someone else's backup and have it work again?

Once again, thanks for the help.
[Sprint HTC One (M8)] Sloth:
Seems like you formatted your sdcard

You can try pushing this rom your device...there are a couple small bugs but they are being squashed quickly :)

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

While in twrp open a cmd window and type

adb push ROMname.zip /sdcard/
[Sprint HTC One (M8)] Anagarm:
Thank you so much.

Even if this doesn't work, it helped me realize what I can do to fix it. Thank you for being so kind even though I'm just a new user!
[Sprint HTC One (M8)] Sloth:
No worries and good luck :)

Any other questions just post them :)
[Sprint HTC One (M8)] Anagarm:
Alright, I have one more question and I have to go to bed (it's 2 am where I am):

adb isn't detecting my device when it's plugged in. Whenever I enter a command, it says "error: device not found". What can I do to fix this?

Thanks as always.
[Sprint HTC One (M8)] Magnum_Enforcer:
Make sure your drivers are up to date. You can install HTC Sync for the latest drivers. You can also boot into the bootloader with the phone connected to your computer and it should install some drivers, also.

Sent from my EVO LTE
[Sprint HTC One (M8)] Anagarm:
I'd like to say that I've gotten it to work. I flashed the google play edition zip and now everything is working. Thanks to everyone who helped me.
[Sprint HTC One (M8)] Sloth:
There is no google play edition for Sprint. :confused:
[Sprint HTC One (M8)] Anagarm:
I have the AT&T m8, if you noticed I edited my first post to say "edit: wrong thread", but since you helped me, I decided to go with it.
[Sprint HTC One (M8)] Sloth:
Lol yeah I didn't notice hopefully you found the correct recovery for your device.
[Sprint HTC One (M8)] rhe12:
n00b question alert. In the OP you wrote

"03/31/14 Added Stock Recovery if you feel the need to go back to stock and take an OTA"

Does that mean that with the phone rooted with this method it won't take an OTA update?

Specifically, this.
[Sprint HTC One (M8)] Sloth:
I don't ever take OTA's but from what I understand you need stock recovery and a stock rom for the OTA to work properly.
[Sprint HTC One (M8)] rhe12:
Thanks, as it turns out you're right, I had to flash stock recovery (thx for including it in the update of your OP) then get the OTA, then re-flash TWRP and then re-root. At least I didn't have to mess up with locking/unlocking bootloader.
[Sprint HTC One (M8)] robmart:
How did you flash the stock recovery?
[Sprint HTC One (M8)] Sloth:
Same way you flash twrp instructions are inside the stock recovery folder.
[Sprint HTC One (M8)] rhe12:
What he said ^

But I wrote this as I did it, in case anybody else finds it helpful:

How to go back to stock recovery after unlocking/TWRP/SU to take OTA update and how to revert back afterwards:

This assumes you have used this procedure to root phone. Doesn’t mean this procedure won’t work if you have used variants of that method or a different method, but whether these steps will work if that’s the case I don’t know.

1.	Turn phone off

2.	Boot into bootloader

3.	Choose fastboot

4.	Connect phone to computer through USB cable

5.	Open elevated command prompt and navigate to folder where the stock recovery is located

6.	Type at prompt: “fastboot flash recovery filename.img” without the quotation marks (where filename is the name of the stock recovery image you want to flash). You’ll see something like this:

C:\RootM8 (1)>fastboot flash recovery stockrec.img

target reported max download size of 1830711296 bytes

sending 'recovery' (24576 KB)...

OKAY [ 1.721s]

writing 'recovery'...

OKAY [ 1.106s]

finished. total time: 2.830s

7.	Reboot phone

Your phone now has the stock recovery, and it’s still rooted, but not for long :) . You can now proceed to take OTA update, at which point you will probably lose root, and then follow original procedure to flash TWRP recovery again, and then root again.
[Sprint HTC One (M8)] E The Magnificent:
If I decide to root. Would I be able to go back to uprooted stock?
[Sprint HTC One (M8)] Sloth:
Yes of course :D

Just make a backup of your stock rom.
[Sprint HTC One (M8)] E The Magnificent:
Cool I was looking for the instructions on how to go back. I may root this weekend
[Sprint HTC One (M8)] b_rangel29:
Anybody know if there's any kernels for the Sprint variant of the n8 yet. I've searched a little and saw that faux has a kernel for vzw and tmobile but I'm having trouble finding anything for Sprint version. Tia.
[Sprint HTC One (M8)] Sloth:
Nothing for Sprint ATM :(
[Sprint HTC One (M8)] b_rangel29:
Ok thanks. Hopefully we will get some good stuff to flash soon. I also have a nexus 5 so I'm used to having anything I want to flash. Lol. I'm new to the HTC world but this phone is pretty cool. That being said I have a couple more questions; has the factory firmware been released to flash in case I bork something? And what is the s-off I've read about and what function does it serve? Currently I unlocked the boot loader and flashed twrp and rooted. Also, I tried to install my busybox after I rooted and it wouldn't install to system/xbin and then I tried to install to system/bin and my phone rebooted. Is there other mods I must do first?
[Sprint HTC One (M8)] Sloth:
Firmware can be found HERE must be s-off to flash....I do have the signed Full Firmware if anyone need it. :)

S-OFF gives you access to all partitions on your phone...there are a couple write ups in my FAQ Guide if you want to know more.

If you flash a custom rom it should have busybox baked in...or you can use the one found HERE

I would suggest getting S-OFF it will save you headaches down the road and HTC has a way of making things harder for us to modify our phones with every OTA.
[Sprint HTC One (M8)] b_rangel29:
I'm reading up on the weaksauce forum now about the s-off and will run that when I get home. Thanks for the info. I might flash a custom Rom but am actually a little more interested in just staying stock rooted with a custom kernel. Hopefully we eventually get a bricked kernel for the m8, runs like a beast on my n5. Thanks for the links, I will continue my research.
[Sprint HTC One (M8)] Magnum_Enforcer:
You'll need to use the Firewater method, not Weaksauce. Hit the second link in my sig for more info.

Sent from my HTC device
[Sprint HTC One (M8)] Sloth:
ninja'd by [MENTION=4738854]FinZ28[/MENTION] lol

Weaksauce does not work on the Sprint M8 it was made for the Verizon M8 as they have been blocked from using HTC Dev by Verizon.

You can use firewater to S-OFF takes just a couple minutes :D
[Sprint HTC One (M8)] b_rangel29:
Awesome, thanks guys. Appreciate all the info!!!
[Sprint HTC One (M8)] Magnum_Enforcer:
Glad to help:thumbup:

Sent from my HTC device
[Sprint HTC One (M8)] Sloth:
^^^^ What he said :)

Any other questions...ask away
[Sprint HTC One (M8)] b_rangel29:
Ok, couple more.... Lol. Firewater website says to uninstall sync manager and a couple other apps... Would I need to use Tibu to do that? And I thought those were system apps so I'm a little confused... Sorry for the excessive questions, I am definitely a HTC noon.
[Sprint HTC One (M8)] Sloth:
HTC Sync Manager is installed on your PC so you can sync you phone to your PC.

The other stuff the mention are drivers.

Tibu is not a problem
[Sprint HTC One (M8)] b_rangel29:
I downloaded the sync manager last night. Actually thought it was kinda cool but I will uninstall it before I flash. After doing the s-off is it ok to reinstall the sync manager? Again, thanks for all the help guys.

Edit: I don't need to remove all the other drivers for my other devices before I flash do I?
[Sprint HTC One (M8)] Sloth:
Sure it's fine to install again.

You are very welcome.:)
[Sprint HTC One (M8)] b_rangel29:
Got the whole nine completed!!! Thanks for the help guys. Unlocked boot loader, twrp, root, busybox, and s-off...
[Sprint HTC One (M8)] Sloth:
Nice congrats :)
[Sprint HTC One (M8)] Sloth:
Updated Post 2 with alternate recoveries for those that may be having issues with the "Official" TWRP
[Sprint HTC One (M8)] K0rum:
hi guys.

So I can do SIM unlock on the Sprint HTC m8?:cyclops:
[Sprint HTC One (M8)] Sloth:
Have not seen anything yet.
[Sprint HTC One (M8)] b_rangel29:
I used this tutorial and files to help in the rooting process and everything went great thanks to the help of you guys. I've been reading up a little bit about OTA updates and if I'm correct I can't receive any updates while using twrp. Is this correct, and if so, where can I find the factory recovery? I'm on the 1.54.651.8 software version. I figured I'd ask here since y'all know your stuff about HTC. (Admitted HTC noob here) lol.

Edit: I noticed there is a stock recovery in the DL file but it is not the same as my current version.
[Sprint HTC One (M8)] Sloth:
Correct you must be on a stockish rom and have stock recovery installed to take the OTA.

There should be a folder inside with the stock recoveries included if not download again I have added them recently.