yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M8)] Captain_Throwback:
Alright I said I wasn't going to do a guide. I will however give you the steps I took to get root on my device. You should be able to get clarification on any steps by searching and learning from this site or "the Google."

Unlocked device via HTCDev.

Fastboot flashed TWRP Recovery.

Downloaded SuperSU and flashable Busybox (1.21.1-linusyang WITH symlinks), copied to storage.

Created openrecoveryscript to flash SuperSU and Busybox zips.

adb pushed openrecoveryscript to device.

adb rebooted recovery, watched as zips installed and device rebooted.

...

Profit!

That's my quick and dirty procedure. Hopefully it helps a few more people get root, until we have a proper procedure/fully working recovery and/or (hopefully) S-OFF.

EDIT: I attached a sample of the openrecoveryscript I used. If you use an editor like Notepad++ in Windows or any Linux-based file editor, you can change the path to correspond to your file locations and just push this script (instead of starting from scratch).
[Sprint HTC One (M8)] mrlakadaddy:
I had to use bad seeds stock rooted to get busybox to work
[Sprint HTC One (M8)] adamlee011:
That's pretty much what I ran into. No matter what i tried, I couldn't get root or temp root. Flashed a rooted rom and firewater went through. Su was granting root to adb, according to its log but nothing could really run as su.
[Sprint HTC One (M8)] Ph33zy:
[MENTION=1162986]Captain_Throwback[/MENTION] do you know if the kernel changed in the update? If so, could you modify it to be unsecure and add in init.d support?
[Sprint HTC One (M8)] Granite1:
Hey Cap'n, just got mine today. Before I root and S-off, is there anything you need me to pull from the phone?

Let me know what you need, and how to get it. :good:
[Sprint HTC One (M8)] Captain_Throwback:
Did that hours ago, just haven't posted it yet. Probably tomorrow, over in my firmware thread.

Nope, I'm all good, thanks. Uploading my stock rooted ROM right now and I'll be posting it over on themikmik.com. That'll probably be tomorrow too.
[Sprint HTC One (M8)] Granite1:
Awesome Sauce!!

This is what I've been waiting for, a stock rooted rom to fall back on if I eff anything up. I'm going to probably run everything tomorrow. You the man Cap'n, thanks!
[Sprint HTC One (M8)] Captain_Throwback:
I uploaded this just now. Head over to my firmware thread (linked through baseband/PRI in my XDA Sig) and you can grab it from there.

I also uploaded my stock rooted here: http://themikmik.com/showthread.php?16276-SPRINT-ROM-M8WHL-Stock-Rooted-Base-1-54-651-8
[Sprint HTC One (M8)] Ph33zy:
Thank you sir! Could you also post a stand-alone zip for the native tether hack? I'm assuming this allows you to tether without actually having a tethering plan like on the M7?

---------- Post added at 07:57 PM ---------- Previous post was at 07:44 PM ----------

I just flashed the kernel via bootloader and I think everything went fine because now I can access root with adb. However, I'm not sure if init.d is working. I flashed Flar's S2S mod and it's not loading at boot.
[Sprint HTC One (M8)] henderjr:
Same here on the sweep to sleep . Also the exchange security bypass mod doesn't seem to work for me either. Happy to have the same device yet again captain. You are a huge asset to xda!

edit: deleting the mail.odex and mail accounts and then flashing the exchange security bypass worked. I think I was too sleepy last night to think about the obvious thing to do. Thanks
[Sprint HTC One (M8)] Captain_Throwback:
I didn't post any tether hack.

Did you create an init.d folder in system? If the folder isn't there, the script can't be copied to it.
[Sprint HTC One (M8)] Ph33zy:
OK.. I misunderstood " Native Tethering options enabled" in the changelog for native tether hack.

Also, I have an init.d folder under /system/etc/init.d with the s2w script. It doesn't seem to run automatically.
[Sprint HTC One (M8)] Captain_Throwback:
Are the permissions correct on the script file?

You can confirm init.d support by looking in init.rc in the root of the device and searching for the sysinit service that enables it.

It's possible I uploaded the wrong file, but I don't think I did.
[Sprint HTC One (M8)] Ph33zy:
I think the permissions are correct for a script file. Attached a screenshot.
[Sprint HTC One (M8)] metalfan78:
Hey [MENTION=243460]captain[/MENTION], flashed your Rom this morning and it's running good so far. Thanks
[Sprint HTC One (M8)] schmeggy929:
Weird question here, because im stump. Updated firmware, Firewater S-off, Locked, rooted unsecure Hboot, what is this about?

C:\Program Files (x86)\Minimal ADB and Fastboot>adb push HtcLockScreen.apk /system/priv-app

failed to copy 'HtcLockScreen.apk' to '/system/priv-app/HtcLockScreen.apk': Read-only file system

Mind you im not on your Stock rooted 1.54 ROM YET;)
[Sprint HTC One (M8)] Captain_Throwback:
Are you trying to change that while booted up and while the file is in use?

Might be easier to do that while in recovery.
[Sprint HTC One (M8)] schmeggy929:
Yes while booted up. I tried moving it from sdcard to priv-app while in recovery using file manager but recovery flashes and reboots phone(didn't take).
[Sprint HTC One (M8)] Captain_Throwback:
Is that using the latest recovery [MENTION=4973732]simonsickle[/MENTION] posted yesterday? Seems crazy that write protection could still be enabled for that folder despite being S-OFF. Let me try copying a file there (after I get off this conference call in case it does reboot).
[Sprint HTC One (M8)] schmeggy929:
Yes Simonsickle's recovery and thanks no rush.
[Sprint HTC One (M8)] Captain_Throwback:
Just checked, and I was able to copy a file over to /system/priv-app with no problem. Changed permissions too, all while booted up. I didn't try the specific file you mentioned, though - I just copied an APK I had on my sd card over.
[Sprint HTC One (M8)] schmeggy929:
ok off to flash your ROM, lol
[Sprint HTC One (M8)] Captain_Throwback:
Permissions look good. You have Busybox installed, right? Did you check init.rc to confirm init.d support?
[Sprint HTC One (M8)] Ph33zy:
I'll check today when I get to a computer since the file is too long.

I did flash your stock rooted ROM, which I believe should have init.d built in and still couldn't get S2S to work unless I manually enable the module in Script Manager.
[Sprint HTC One (M8)] Captain_Throwback:
Wait, that's a kernel module, and the update has a new kernel - I doubt it'll work unless it's recompiled off the new source, or hex-edited to match the new kernel information. Sorry, I missed the obvious reason for it not working, lol.
[Sprint HTC One (M8)] Ph33zy:
Ahh ok.
[Sprint HTC One (M8)] MassStash:
idk, cuz I think flar did the module off the 1.54 already that was out before us, not positive tho
[Sprint HTC One (M8)] Captain_Throwback:
True, if insmodding it works, then the module can't be at fault I suppose.

Not sure why it wouldn't work now if it worked before though.
[Sprint HTC One (M8)] adamlee011:
Where can I find this updated twrp? Does it fox touch in aroma?
[Sprint HTC One (M8)] Ph33zy:
Yea i thought the point of init.d was just to run scripts at boot, which is essentially what script manager does. I can get the S2S to load on boot by running the script in my init.d folder with script manager. Anyway, I guess I'll just use that as a work-around for now.
[Sprint HTC One (M8)] Captain_Throwback:
Have you grabbed a logcat to see what's happening with it at boot time? That's really the only way to know.
[Sprint HTC One (M8)] Captain_Throwback:
In OG Development - simonsickle's thread. And no, touch in AROMA is still messed up. I'd imagine that needs to be fixed in AROMA.
[Sprint HTC One (M8)] schmeggy929:
Yeah can confirm the S2S zip I installed doesn't work, so sounds like it does need to be updated I guess.
[Sprint HTC One (M8)] Captain_Throwback:
If someone would logcat maybe we could figure it out ;).
[Sprint HTC One (M8)] Captain_Throwback:
On an unrelated note, OP updated with link to stable build of TWRP.
[Sprint HTC One (M8)] METHOD1911:
I think I may need to try this recovery. I'm using the twrp that came with after I rooted. I was trying to copy a file to overwrite a lib file in system lib causing me to have a system UI FC. I then tried to restore my nandroid that I made right after I rooted. It failed once trying to restore system then failed again trying to restore data. The weird thing is my phone still booted up to that nandroid. I hope this is understandable and sorry for the long post. Forgot to add that sometimes while I'm in that recovery which is twrp 2.700 when I make a any selection my screen goes black then comes back.

One method1911
[Sprint HTC One (M8)] adamlee011:
Thanks. I figured that but i also read (maybe you posted) that foxing touch on twrp may have broken it in aroma, so i wasn't sure on which end it would be fixed. Other carrier m8s don't have the issue.

---------- Post added at 01:53 PM ---------- Previous post was at 01:51 PM ----------

"stable" twrp still 2.7.0.4?
[Sprint HTC One (M8)] Captain_Throwback:
Version numbers haven't changed.

Our version required a "special" fix for touch screen that seems to break incompatibility with AROMA (even though it really shouldn't), but I believe it can still be fixed within the AROMA code. Philz had a suggestion about that in his thread.
[Sprint HTC One (M8)] Captain_Throwback:
Also, it seems init.d support isn't working the "old way". May need to find an alternative version. I'll look into this now.
[Sprint HTC One (M8)] schmeggy929:
TWRP and Holofied theme looks good, it seems you made a really aggressive TWRP. When I hold the power button to turn off, phone does turn off, but after a few secs Twrp splash flashes for a sec. LOL Not an issue though
[Sprint HTC One (M8)] METHOD1911:
Captain I just rename the zip move to the root of the internal storage. I don't have a SD card yet. Then boot into fastboot right.

One method1911
[Sprint HTC One (M8)] Captain_Throwback:
You can't flash bootloader zips from internal storage. Use the instructions from my firmware thread. I'll copy them over to the recovery thread.
[Sprint HTC One (M8)] METHOD1911:
Got it installed

One method1911
[Sprint HTC One (M8)] MassStash:
No

I can confirm, just got all setup from flashing your 1.54 stock on mikmik Cuz I couldn't get my stuff to stock enough setup to take the dang OTA for some reason. Kept replacing customize/ACC/default.xml with stock one, but it wouldn't except it as not modified. Anyway, it seems init.d not working, or s2w not working. How else could I test init.d dir? Like what would be a good test script?

Lol no no, had me trippin for a while, but they changed just power button hold for reboot switch to holding power+volUp. That'll get it turned off when stuck somewhere. Also, I hadn't seen stock recovery "scare common folk away" red triangle ? before. Though stuff was messed up, but you just have to hold volUp and tap power to get to stock recovery now. Wtf, took me 30minutes to figure out! Refused to Google it haha ?

On that note, one more time for the cheap seats: thanks for all your work capt, specifically the 1.54 stock rom you got up. Just a beast bro. Lemme kno how may assist ever so you don't burn your robot self out! Haha ?

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] schmeggy929:
Actually I found that i only see the ghost splash screen when powering off and plugged in USB to computer.
[Sprint HTC One (M8)] MassStash:
Huh?

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] METHOD1911:
How do you fix the binary updater error when trying to flash Captain stock Rom.

One method1911
[Sprint HTC One (M8)] Captain_Throwback:
I answered you in the appropriate place.
[Sprint HTC One (M8)] schmeggy929:
I was talking about a weird issue when you have phone attached to computer(charging). I power off phone and a few seconds after it is off the TWRP splash screen flashes and goes black. A few seconds later the main TWRP menu screen appears and goes black. My recovery has a ghost lol
[Sprint HTC One (M8)] MassStash:
Ahhhhh, erm, have never seen this happening lol. Just me? Perhaps you're on the twrp without poweroff charging? You on latest from sickle?

~Jflteusc on OctOS

KToonsez Kernel

1.998 Max ¦ 189 Min ¦ 702 Screen Off

Ktoonsified v5 Setup
[Sprint HTC One (M8)] schmeggy929:
Lastest from the Captain
[Sprint HTC One (M8)] MassStash:
Yea I don't think his build is up to date brah. He update the link in the OP tho I believe. What version does it say when you're in twrp? Best one out now from sickle s. Displays 2.7.0.0. The bad ones say 2.7.0.4

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] Bachatu:
The same thing is happening to me. When off and then plugged in, it flashes an empty battery symbol then flashes the "TWRP ghost" home screen a couple of times before showing the charging battery symbol.
[Sprint HTC One (M8)] Ph33zy:
I think he said he applied sickles stability fixes to his 2.7.0.4, hence the update.
[Sprint HTC One (M8)] MassStash:
Hmmmm good Q, not how I read it. What say you [MENTION=1162986]Captain_Throwback[/MENTION]?

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] schmeggy929:
Yes Captain's updated 2.7.0.4 from mikmik
[Sprint HTC One (M8)] MassStash:
OK OK, then nvm, that's bueno so not the issue

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] Captain_Throwback:
Does the charging battery actually show up afterwards? It seems like the offmode charging images are just taking too long to initialize. Can you check simonsickle's latest version and see if it behaves the same?
[Sprint HTC One (M8)] Bachatu:
Yes, it does and I believe his version flashed the TWRP screen less and initialized the charging battery icon a bit quicker.
[Sprint HTC One (M8)] adamlee011:
Did the device id change? If so to what?
[Sprint HTC One (M8)] Captain_Throwback:
I don't understand your question.
[Sprint HTC One (M8)] adamlee011:
I'm sorry, I wasn't clear, thanks for responding quickly, we figured it out though. In twrp, m7_whl is now m7whl.
[Sprint HTC One (M8)] Captain_Throwback:
I rebuilt recovery. Full details here: http://themikmik.com/showthread.php...CIAL)-v2-7-0-4&p=299577&viewfull=1#post299577

In my cursory testing, the issue appears to be fixed.
[Sprint HTC One (M8)] Bachatu:
Downloading now, will test it later this afternoon. Thanks for cooking this up!!

edit: Problem is gone now. WHen i plug it in it displays the static battery icon and after a couple seconds switches to the charging animation. Thanks [MENTION=1162986]Captain_Throwback[/MENTION]!!!
[Sprint HTC One (M8)] schmeggy929:
Thanks Captain! No more TWRP Splash screen flash when powered off and plugged in.
[Sprint HTC One (M8)] mrshades812:
All we need is aroma support. ;)
[Sprint HTC One (M8)] MassStash:
Yea, we need to talk to someone that can is maintaining aroma....

~Jflteusc on OctOS

KToonsez Kernel

1.998 Max ¦ 189 Min ¦ 702 Screen Off

Ktoonsified v5 Setup
[Sprint HTC One (M8)] adamlee011:
I am so not getting the hang of what the buttons are going to do.
[Sprint HTC One (M8)] MassStash:
Would this be a good fix for init.d not working with 1.54? Or dirty fix til someone figures out how to make it work in boot.img?

http://xdaforums.com/showthread.php?p=51813905

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] Captain_Throwback:
Sure you're welcome to add that change to your ROM. It will work. I actually haven't bothered looking into it any further, tbh.
[Sprint HTC One (M8)] Captain_Throwback:
TWRP updated and bumped up to version 2.7.0.5. Full details here: http://themikmik.com/showthread.php...CIAL)-v2-7-0-5&p=299613&viewfull=1#post299613

This one is completely stable.
[Sprint HTC One (M8)] Munkeymon:
Which thread is that? I'm aware of the recovery thread, but I don't remember seeing a FW thread?
[Sprint HTC One (M8)] Captain_Throwback:
The thread at which you arrive when clicking the Baseband/PRI in my sig. That post is no longer valid though as there are instructions in the thread now.
[Sprint HTC One (M8)] Munkeymon:
Oh, ok - crossing the forums gets confusing and I didn't even realize you has a sig on this one. Thanks!
[Sprint HTC One (M8)] stacksptdtdm:
On the m7, there is a Verizon kernel, that could be flashed to the Sprint m7 by changing mounts. Can it be done on the m8 as well? I see that Verizon has a kernel and I want to change the mounts. But can someone tell me the mounts that need to be changed in the updater script? For Sprint?
[Sprint HTC One (M8)] MassStash:
Hmmmm, good question

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] METHOD1911:
Has anyone used flasify to flash the recovery

One method1911
[Sprint HTC One (M8)] adamlee011:
do you happen to have the stock recovery?
[Sprint HTC One (M8)] Captain_Throwback:
[MENTION=4973732]simonsickle[/MENTION] has it posted in his thread in General.
[Sprint HTC One (M8)] metalfan78:
I've been using it. It works.
[Sprint HTC One (M8)] Maestertk:
I'm not sure if it's sprint doing service in my area, constant switching between LTE and 3g, or that my radio is messed up via flashing things, but does anyone have a firmware or radio update/zip available to flash? Calls and data keep dropping out randomly. I'm just on rooted stock now.
[Sprint HTC One (M8)] MassStash:
Get your msl, and try a ##data#, ediit, msl, data profile, menu, restore. then after like 5 minutes for it to update n rest, do ##72786#, menu, restore. helps me from time to time, and good troubleshooting measure

~ TF101 on Timduru's Latest KISS Masterpiece

Currently OC'ed to 1.5, KatKernel
[Sprint HTC One (M8)] Maestertk:
Sir, I believe you are a godsend. Thank you so much. I went to the Sprint store and as I figured, they tried, but were ultimately useless. This is why I trust strangers on the interwebs ;)
[Sprint HTC One (M8)] MassStash:
Lol niiiice, so it worked for ya I take it? That's awesome, you typed it just how I speakz! Haha damn sprint... Yay for the interwebz knowledgeable!!!

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] Pneuma1985:
Only sprint version so far i could get aroma to work on...! Thx Cap...
[Sprint HTC One (M8)] MassStash:
huh>?
[Sprint HTC One (M8)] volk9029:
Pneuma was talking about recovery.

Sent from my lair.
[Sprint HTC One (M8)] MassStash:
yea got that, did he just mean couldn't get working?
[Sprint HTC One (M8)] volk9029:
He could get it to work after using captain's recovery.

Sent from my lair.
[Sprint HTC One (M8)] Pneuma1985:
Yes I meant I couldnt get other variations of the new twrp 2.7.0.0 working when it would boot to aroma: it would allow me to select something for the first time with touch input then it would instantly shut off... Then other versions of twrp I used at first wouldnt show what I was selecting in aroma with the volume keys... Venom for instance in their aroma it highlights things you've selected in red... It didnt do that for me until I pushed cap's version of twrp. So it was nearly impossible for to get through the entire installation on base twrp2.7.0.0. If I cant see what I'm selecting I'm basically guessing the whole time. I had to quit out of the installation do a restore. Boot to fastboot push this version then try again. This version actually showed what was highlighted, but I would still lose touch input in aroma, but at least I could navigate through it.

Not exactly sure how this recovery could be affecting a bug in aroma differently than the original twrp build for the m8, but it does.
[Sprint HTC One (M8)] MassStash:
Got cha

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] vykana:
htc one m8 at&t

Can I use the unsecured boot.img on my HTC one m8

at&t

? Srry I'm kinda new to this phone
[Sprint HTC One (M8)] Captain_Throwback:
No.
[Sprint HTC One (M8)] JellyTooth:
thx so much but i have question ..... does the unsecured boot.img work on my htc one m8( dual sim)? or is it dangerous to try it on htc one m8 dual sim? i can always recover my bricked htc but i ask in case it can damage the bootloader if i try:confused:
[Sprint HTC One (M8)] Captain_Throwback:
Nothing in here will work on dual SIM. This thread is largely deprecated at this point. Unsecuring a boot image is a relatively simple process though - what exactly do you need? Perhaps you should start a thread in the General or Q&A section with your issue/what you need?
[Sprint HTC One (M8)] JellyTooth:
Well , all I need is a way to disable system write protection so I can install audio mods like viper4android , disable lpa in build.prop.........etc. but whenever I write or modify anything in system folder it undo upon restarting the device .

I am rooted and unlocked boot loader but S-ON , can you help?:confused:

Thanks
[Sprint HTC One (M8)] Captain_Throwback:
Use SunShine for S-OFF, or build a stock kernel with it disabled.

I know there's a kernel mod [MENTION=4684315]flar2[/MENTION] made to disabled system write protection - have you tried that, or asked him how to apply it to your kernel?
[Sprint HTC One (M8)] webdude12:
Yes, Got root at least. Now can stop removing the junk apps and use wifi tether.

FYI, was able to flash recovery and use ADB from Windows 2008 R2 in workstation mode. So it appears recovery adb will work from at least one windows device. :)
[Sprint HTC One (M8)] ticklemepinks:
with help from cap we are rooted!!!! [https://dl.dropboxusercontent.com/u/33502795/IMG_20140328_141247.jpg
[Sprint HTC One (M8)] Captain_Throwback:
TWRP in OP updated to fix Offmode charging. Thanks [MENTION=456600]Flemmard[/MENTION] for getting it working :D!

Touchscreen is still an issue, but we're working on it.
[Sprint HTC One (M8)] webdude12:
Looks like we are plagued by the same write protected /system folder in the kernel as the rest of the M8s... Going to be a long road. :)
[Sprint HTC One (M8)] Captain_Throwback:
Yup. But you can write to /system while in recovery, so I was at least able to get rid of the NFC icon and re-enable the native tethering interface.
[Sprint HTC One (M8)] Captain_Throwback:
On an unrelated note, can someone that hasn't rooted yet see if this method works?

http://www.kingoapp.com/

If so, it may allow us to pull a stock recovery image.
[Sprint HTC One (M8)] schmeggy929:
Can we flash superSU and busybox in recovery instead of pushing them to recovery?

Only reason I ask, is my device shows offline in adb using Ubuntu. (Need to update SDK). But in heading home now lol

Root on the fly!
[Sprint HTC One (M8)] Captain_Throwback:
Touch screen is fixed! BIG thanks [MENTION=912474]Dees_Troy[/MENTION] for identifying and correcting the issue. Hopefully I'll have a fixed build uploaded soon.

This build does have a glitch where it reboots recovery after certain actions complete, however, such as flashing zips, but the reboot only seems to occur once the action is complete, so you'll be able to queue up the SuperSU and Busybox zips, flash them, and then just reboot system once recovery reboots itself.

We'll probably have a better shot of fixing that error once we have source, unless Dess_Troy figures is out before then ;).
[Sprint HTC One (M8)] Bachatu:
Sounds good! I followed all your steps but for some reason my phone hangs into a black screen after booting into recovery. It flashes the TWRP screen and then nothing, however I am able to send adb commands to reboot into recovery, bootloader or system with no problems. Only when it boots into TWRP does it hang. very strange.....

One thing to note is that the phone went blank the same way earlier today and would not turn back on until about 10 minutes later... Im starting to think that there may be a problem with the phone itself.
[Sprint HTC One (M8)] exSD:
Kingoroot is only supported up to 4.3.
[Sprint HTC One (M8)] schmeggy929:
Sounds good!
[Sprint HTC One (M8)] Captain_Throwback:
Okay TWRP link in OP is updated.

Dees_Troy said he's building another one with proper device name which should be done in 30 minutes or so, but that won't affect functionality at all.
[Sprint HTC One (M8)] schmeggy929:
Thanks Captain! Worked like a charm!