yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M8)] mswlogo:
Hi Captain,

So this latest version, does it still require Unix to either flash or get root. Or are you past that since these last few enhancements.

I supper appreciate the hours you, troy and others are putting into this.
[Sprint HTC One (M8)] Captain_Throwback:
Like I said, you can flash the zips now, so you don't need adb anymore. But adb is working with Windows now as well.
[Sprint HTC One (M8)] exSD:
Don't need any linux flavor.

Unlock via htcdev.

Fastboot flash recovery.

Drop supersu and busybox onto your sdcard/internal storage.

Reboot to recovery and flash the zips.

Your bootloader is now unlocked and you've got root privs.

BTW Cap you should probably make a new thread for the custom recovery. It isn't stated in the this thread's title and people shouldn't have to fish around for it otherwise you'll run into more user problems to complain about.
[Sprint HTC One (M8)] Captain_Throwback:
It's not my recovery to post, unfortunately. Dees_Troy is the developer of TWRP and he will post a thread when he has a chance. This page has been created on the TeamWin site: http://teamw.in/project/twrp2/221

I will add a recovery tag to the thread title, but that's the most I can/will do.
[Sprint HTC One (M8)] mcwups1:
I love you guys. I really do. I remember when rooting was an underground undertaking. Thanks for everything you do, and making something almost essential now easily obtainable.
[Sprint HTC One (M8)] Sloth:
It's gonna be called M8_whl?
[Sprint HTC One (M8)] Captain_Throwback:
What's gonna be called m8_whl? If you look at the build.prop in the OP you'll see the ro.product.device=htc_m8whl.

So I'm not sure what you're asking.
[Sprint HTC One (M8)] Sloth:
Sorry Capt disregard forgot to look at the build.prop. :(
[Sprint HTC One (M8)] Captain_Throwback:
Added link to Bootloader-Flashable zip for TWRP in OP (Sprint ONLY).

To flash via HBOOT, you must use an external SD card. Place the zip (EXACTLY as it is, without unzipping or changing the name) onto the root of your sd card (i.e. in no folders). Boot into bootloader, and HBOOT should read the zip and ask if you want to update. Choose Yes, and then reboot when complete. Once booted back into Android, move and/or rename the file so that it doesn't get picked up by HBOOT again.
[Sprint HTC One (M8)] mcwups1:
Wow. Unlocking the bootloader is now above my head.

Never mind. Even though the MD5 matched the file provided by HTC for windows, it was missing files!? Found another way.
[Sprint HTC One (M8)] mswlogo:
Might want to mention NOT to unpack the zip and keep it named as OP6BIMG.zip on your SD Card. Guess what I did :)

I didn't get root. Wasn't sure where to get latest SU and BusyBox from so I found it here:

http://www.theandroidsoul.com/root-new-htc-one-2014-m8/

Also what do we need Hboot for in your OP? I didn't use it.

---------- Post added at 09:33 PM ---------- Previous post was at 08:57 PM ----------

I got root working using your links to BusyBox and SU. Thx.
[Sprint HTC One (M8)] eric00716:
Now if we could just get rid of system write protection I'd be set for a while.
[Sprint HTC One (M8)] locdang:
thank Captain_Throwback
[Sprint HTC One (M8)] Captain_Throwback:
Yup, and that's likely what's causing the reboot issue as well.
[Sprint HTC One (M8)] Bachatu:
Thanks Cap!!!

I'm rooted and was finally able to get rid of most of this bloatware. I created various update zips through TB and restored in recocery. Everything went smooth and flawlessly! This phone is absolutely fast!
[Sprint HTC One (M8)] exSD:
How are you getting rid of the bloatware?
[Sprint HTC One (M8)] Bachatu:
I use Titanium Backup to freeze some of the known logging apps, carrier apps, bloatware, etc. I assign labels to them, filter my apps and do a batch freeze all at once. Just my quick and dirty way of cleaning up my ROM.

My usual routine is to backup my TB data folder from internal storage and its one of the first things I restore after flashing or reset of a ROM.
[Sprint HTC One (M8)] ahecht:
Can you remove bloatware through ADB when in recovery, or is /system/ write protected there as well?
[Sprint HTC One (M8)] Bachatu:
Cap said in an earlier post that recovery does allow us to bypass write protection. I believe this is what allows us to install SU and Busybox through recovery.

As far as removing apps you could probably use adb to remove files. I'm not an expert in this arena however there are many ways to achieve the same results.
[Sprint HTC One (M8)] Captain_Throwback:
Just use the TWRP File Manager.
[Sprint HTC One (M8)] ahecht:
It says it needs to be s-off to work.
[Sprint HTC One (M8)] mswlogo:
What do we need HBOOT for?

I have TWRP and Root and never used it.
[Sprint HTC One (M8)] Captain_Throwback:
Who said you needed it?

This is a thread with information and stuff that was pulled from the device. You'd have no way to use it anyway.
[Sprint HTC One (M8)] mswlogo:
My bad. I missed the word "via".
[Sprint HTC One (M8)] mswlogo:
Captain,

Can you explain how you got tether to work?

Thanks
[Sprint HTC One (M8)] Captain_Throwback:
There are 3 options near the top of build.prop which are currently set to 0 which hide all the Mobile Network Sharing options:

ro.wifi.hotspotUI=1
ro.bt.tetheringUI=1
ro.usb.tetheringUI=1

Setting these values to 1 as you see above will bring back all the options (you only need the first one for wireless tether).

Since /system write protection is enabled, the file must be replaced while in recovery so that it persists. I made a copy of the build.prop file and pasted to sdcard while in Android. Used Root Explorer's text editor to make the changes to that copy and saved. Then, I booted into recovery, mounted system, and used TWRP File Manager to rename the original build.prop to keep it as a backup. Then I copied the updated file to /system, and changed permissions on the new build.prop to 0644. Reboot back to system, and you have your tethering settings back.

This does not allow you to tether if you do not have a tethering plan, however. This is for those people that do have a paid plan but were missing the UI to do so (like me).
[Sprint HTC One (M8)] fr0st420:
Got custom recovery and root thanks to this thread. Now all we need is somes to play around with :). I see the international version is starting to get roms. Thats a good sign.
[Sprint HTC One (M8)] eric00716:
Can anyone that knows how make me a flashable flashlight apk? Please
[Sprint HTC One (M8)] schmeggy929:
Here ya go. http://xdaforums.com/showthread.php?p=51499514
[Sprint HTC One (M8)] fr0st420:
Anyone else missing the calculator app? Also has anyone figured out how to change the ugly Sprint spark icons to the international ones lol
[Sprint HTC One (M8)] Captain_Throwback:
It's not "missing" as there simply isn't one. There is a widget though.
[Sprint HTC One (M8)] Rydah:
Isn't it in data/preload/ before we unlock the bootloader?

Sent From My HTC One!
[Sprint HTC One (M8)] eric00716:
That was the case with og One
[Sprint HTC One (M8)] MassStash:
No stock Calc? That's weird.....

~Jflteusc runnin' latest Carbon Nightly

Latest KToonsez Kernel 2.1;189;480

Pegasusq

Row

Thermald:

Mpdecision:
[Sprint HTC One (M8)] Bachatu:
There's an official recovery for Sprint now

http://xdaforums.com/showthread.php?p=51506910
[Sprint HTC One (M8)] Captain_Throwback:
It's the same one already posted here.
[Sprint HTC One (M8)] Bachatu:
Cool, sorry for the duplicate info.
[Sprint HTC One (M8)] Captain_Throwback:
No problem. [MENTION=912474]Dees_Troy[/MENTION] should be posting an "official" thread soon.
[Sprint HTC One (M8)] sgt. slaughter:
Bet your right... Didn't even look there before I went in unlocking the device...

Great thread and work as always Capt btw!
[Sprint HTC One (M8)] MassStash:
Anyone not unlock yet? Really comes stock without calc? Haha

Found this in general too http://xdaforums.com/showthread.php?t=2699906

~S-Off LTEvo; Always Solid Viper4G Latest;

cpu0/1: 1.5ghz ¦ 384mhz
[Sprint HTC One (M8)] fr0st420:
I got the wifi tether hotspot hack working. Only downfall is you can to enter the iptables commands via terminal emulator since there is no init.d support for the stock rom. If your interested check this thread out:

http://xdaforums.com/showthread.php?t=2474432
[Sprint HTC One (M8)] Captain_Throwback:
Anyone seen a Mail widget? I miss it from Sense 5 :(.
[Sprint HTC One (M8)] ahecht:
I'm not unlocked yet and I do have a calculator app. No way to access data/preload without unlocking though.

View attachment 2659853

The apk is at /data/preload/Calculator.apk and the package name is com.htc.calculator
[Sprint HTC One (M8)] MassStash:
Hmmmmmmmm, that's friggin weird it gets Deleted. Can you dump rom without Unlocking?

~S-Off LTEvo; Always Solid Viper4G Latest;

cpu0/1: 1.5ghz ¦ 384mhz
[Sprint HTC One (M8)] ahecht:
I got the file by using ADB backup. It's attached.
[Sprint HTC One (M8)] MassStash:
Is there a flash light apk too?

~S-Off LTEvo; Always Solid Viper4G Latest;

cpu0/1: 1.5ghz ¦ 384mhz
[Sprint HTC One (M8)] ahecht:
When I run pm list packages -f | grep preload it just returns package:/data/preload/Calculator.apk=com.htc.calculator. I don't see a flashlight app.
[Sprint HTC One (M8)] MassStash:
Ah, so there's no stock flash light function anywhere?

~S-Off LTEvo; Always Solid Viper4G Latest;

cpu0/1: 1.5ghz ¦ 384mhz
[Sprint HTC One (M8)] Munkeymon:
Do we know yet whether getting S-OFF through HTC is going to screw us down the road? I'm just thinking about the 3D and how I had a really nasty upgrade path to ICS because I was lazy and did the official S-OFF instead of trying to crack it the old fashioned way.

https://play.google.com/store/apps/details?id=com.teslacoilsw.flashlight is pretty nice, free and ad-free - no need for a stock app, really.
[Sprint HTC One (M8)] MassStash:
What? Don't think S-Off has ever screwed anyone down the road... There is no official S-Off for any device, so again please explain what the heck you're talking about haha

Thanks man, but I'm fully aware there's flashlights on play store, just curious if a first party stock flashlight was there

~Jflteusc runnin' latest Carbon Nightly

Latest KToonsez Kernel 2.1;189;480

Pegasusq

Row

Thermald:

Mpdecision:
[Sprint HTC One (M8)] fr0st420:
You should be fine using the HTC unlock method. On the m7 I did the HTC unlock method first and then eventually s-off'd.
[Sprint HTC One (M8)] ahecht:
HTC unlock is not S-Off. There is no way to get S-Off without a third-party exploit.
[Sprint HTC One (M8)] Munkeymon:
Maybe that's what I'm remembering? It was 2+ years ago, but I know I couldn't use the ICS ROM on my 3D because I couldn't update the firmware and that was somehow related to rooting it the official way. Ended up being lazy and waiting a month or so for the OneX/EVO which I didn't go through HTC to root because the ordeal with the 3D left a bad taste in my mouth, so I'm reluctant to trust them again.
[Sprint HTC One (M8)] MassStash:
Using the literal meaning, not trying to be rude here, but it had to have been laziness or ignorance man. I can't see how htc unlock, ooooor S-Off would not allow you to update firmware thereby allowing you to drop ics on there.... S-Off allows you to flash firmware, should have been all good to go. Long story short, I don't see anything to be frightened about by HTC Unlocking or eventually S-Off'ing when that is made available, unless you're worried about warranty to replacement. After S-Off, we should be able to make mock stock bootloader to trick people for warranty, but until then you're unlocked bootloader with clearly say tampered/unlocked or relocked

~Jflteusc on OctOS

KToonsez Kernel

1.998 Max ¦ 189 Min ¦ 702 Screen Off

Ktoonsified v5 Setup
[Sprint HTC One (M8)] Munkeymon:
Oh it was definitely laziness, and I saw the process was easier for people who didn't have the official root, so I was annoyed with HTC.

Anyway, sorry for the useless derail everyone.
[Sprint HTC One (M8)] MassStash:
Lol but that's what I'm getting at man, there is no one to blame but your self here. Just wanna make sure you understand it is not HTC's fault here, as they don't have an official root method. Just unlock method

~Jflteusc on OctOS

KToonsez Kernel

1.998 Max ¦ 189 Min ¦ 702 Screen Off

Ktoonsified v5 Setup
[Sprint HTC One (M8)] mswlogo:
You are confusing things.

Unlock is generally safer. But to upgrade firmware you have to relock.

Lock/unlock wipes the phone.

S-off lets you direct flash the new firmware.

BUT, if you flash the wrong thing, you can brick it.

S-off makes it all easier and more flexible. But you better follow the rules.

I effectively bricked my 3D by someone releasing basically a broken "modified firmware no hboot"
[Sprint HTC One (M8)] indiscriminant:
You are not confused I have had every HTC device since the Hero. There was an issue on the 3D/LTE if you did the HTC Unlock with using custom roms and software that required you to do additional work to get things to flash at times that was not required if you were able to unlock through an exploit. You could take the time to re-lock and use the exploit assuming you didn't get caught on a bad hboot to get around it but it wasn't easy.

When I upgraded to the HTC One (M7) I was worried about the same issue and didn't want to initially unlock through HTC unlock due to this but ViperBoy I think it was, a dev I had trusted, had found that it didn't I unlocked through HTC Unlock on the M7 and never had the issues there were with the 3D and its the same way from what I can tell on the new M8.

I am ordering mine for later this week to do the M8 myself while my wife takes my M7.
[Sprint HTC One (M8)] MassStash:
Huh, that's weird. Never heard of that issue at all. And definately never had that issue with my EVO lte. Oh well, hopefully that was just a thing of the past haha

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] indiscriminant:
I can't remember if it was the 3D only or was also the LTE. I was lucky enough to always unlock by exploit and not use the HTC Unlock until the M7 where I needed to get unlocked due to a trip I was taking and couldn't wait for an exploit to be found. I do remember lots of issues with people trying to get things done in those rom threads if they had used the HTC unlock. Like I said, could have just been the 3D but I do remember there being problems..
[Sprint HTC One (M8)] l1ttl3z:
Not sure if this belongs in here since I have the Sprint version of the m8.. I managed to screw up my phone before making a nandroid backup..Does anyone know where I can find a stock Rom for my phone that I can flash in twrp or hboot.. I tried to do a factory reset and the phone is even worse than when I messed it up lol
[Sprint HTC One (M8)] Munkeymon:
I think it was just the 3D because I never had a problem flashing new stuff on the original EVO and had mine until after the last official updates came out, IIRC. It was the 3D and the strange new world of HTC sanctioned unlocking that got me.

Fingers crossed, but I haven't managed to brick anything pushing a FW update yet and Captain Throwback is pretty good about packaging his updates, so maybe I'll wait for an exploit.
[Sprint HTC One (M8)] MassStash:
Man, I must just be brave/dumb whatever, there's no fear in htc Unlocking I can think of haha. Specially when main guys like captain are doing it.... Why would wait if these guys did it already? Stopped being care and dive in folks!

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] m03sizlak:
Do we have a kernel module that disables system write protection yet? I'm not seeing any point in rooting if changes you make to /system don't persist through a reboot.
[Sprint HTC One (M8)] Captain_Throwback:
Yes.

(You forgot to search first, didn't you?)
[Sprint HTC One (M8)] mswlogo:
It was a very reputable name that made the mistake. And I still trust him. He missed a file remove one file from a "modified firmware" and it was not an immediate brick.

I'm sure some folks would remember but you'd be partially on "Virgin Mobile". And there was no way to get back it out. Not sure if they ever fixed it. I replaced the phone.

My only point is there is more risk with S-OFF. And it's always been more laborious/limited to live with just HTC Unlock.
[Sprint HTC One (M8)] mswlogo:
Did anyone get this to work?

I tried Script Manager at su,boot. Change permission to 744. Put the script in Data so it won't get deleted. But I keep getting no subscription.

Also tried to paste into terminal emulator. But it looks like one wrapped line. No errors though (from script).
[Sprint HTC One (M8)] m03sizlak:
No. I did search. Earlier in the thread you said we can replace files in recovery and they'll persist. But I asked if there was a KERNEL MODULE that disables write protection so /system changes can be made while fully booted and will persist. As best I can tell, there is not. Despite that, thanks for your work so far.
[Sprint HTC One (M8)] schmeggy929:
There is a Module in the the HTC One M8 forum, but it requires init.d support
[Sprint HTC One (M8)] Captain_Throwback:
See below.

There is a guide linked in that thread for people without init.d support to get it working, I thought. At any rate, I guess I can upload the boot.img I'm using that has init.d support included so all can enjoy it ;). It will require you to have Busybox installed, which I believe everyone that's rooted from this thread should.

EDIT: Zip file attached. It can be flashed via HBOOT (if you're unlocked, of course), fastboot flashed via RUU mode, or extracted from the zip and the image fastboot flashed that way. Boot image has been unsecured, init.d support has been added, and I added an additional symlink to external storage so that all apps will see it properly (if you use Titanium Backup, you'll see what I mean).
[Sprint HTC One (M8)] schmeggy929:
You are da man Captain! Thanks!

The HBoot way what do i have to renew the zip to this time around on the M8?

EDIT: Nevermind I did it flashboot style
[Sprint HTC One (M8)] schmeggy929:
Worked perfectly, installed module and added both the write protection and Sweep to Sleep init.d scripts and now good to go.

here is a link for those that want to flash zip and be done.(survives reboots)

http://xdaforums.com/showpost.php?p=51560297&postcount=20

Also here the thread to install Sweep to Sleep by Flar2 as well (must first install Captain's unsecure boot with Init.d support)

http://xdaforums.com/showthread.php?t=2700160
[Sprint HTC One (M8)] m03sizlak:
Nice. But after looking at the source code to that kernel module I have serious concerns about using it, which I outlined here: http://xdaforums.com/showpost.php?p=51584830&postcount=24

Basically they are using proof of concept code for a ARM linux rootkit where the author readily admits that data corruption could result. The code is also unnecessarily complex as it is taking steps to avoid rootkit detection, something that we do not need to worry about, at all. Instead of hooking system calls the normal way, they are actually overwriting the original functions with binary/assembly code to jump/transfer-control to the replacement functions. The author of the rootkit software also says using that approach (modifying code in-place) may cause the instruction cache to become incoherent with the actual instructions in memory due to ARM instruction caching.

If you're not too concerned with the possibility of data corruption I would say go ahead and use it, otherwise I'd recommend waiting.
[Sprint HTC One (M8)] MassStash:
Idk bout not worry about at all, always better safe than sorry? Awesome that you bring it up tho. Only data corruption if you mess with things, then load module. If we all start using it with this init.d support, and script, or in install-recovery.sh outlined in that thread, should be an issue of it not being loaded anymore, and thus not possible to edit system prior to it being loaded, and thereby derivating any said corruption. Should be all bueno now we have set at boot locked down yea>?

~ TF101 on Timduru's Latest KISS Masterpiece

Currently OC'ed to 1.5, KatKernel
[Sprint HTC One (M8)] m03sizlak:
They have different MD5's:

http://techerrata.com/file/twrp2/m8_whl/ (official twrp recovery for sprint M8)

openrecovery-twrp-2.7.0.0-m8_whl.img

MD5: 17e2e552b6001801d675ae0a2d7ed26b

http://d-h.st/XGT (recovery linked to in the OP of this thread)

recovery-m8.img

MD5: 807886acdda9a2daea23b669771a8ca0
[Sprint HTC One (M8)] Captain_Throwback:
Sorry for not being exact. They are not identical, they are simply built from the same source and based on the same device files. They don't function any differently.

By that merit the recovery.img in the bootloader zip and the image posted in the OP aren't even the same.

Maybe now that we have kernel source we can get those issues stabilized. I'm working on building a new kernel from the source now.
[Sprint HTC One (M8)] MassStash:
Are you guys on 1.12.651.17 also? Curious if same kernel for 1.54.401.5

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] fr0st420:
Did we lose the fm radio apk during the unlock process? I don't see it in my app drawer.
[Sprint HTC One (M8)] schmeggy929:
I don't remember, but I don't think it was in /data/preload.

here it is though
[Sprint HTC One (M8)] schmeggy929:
Also Mike1986 (ARHD ROM 3.2) says his ROM should work on Sprint as well. But I have a feeling there is still something wrong with our TWRP. There is no touch in Aroma(understandable) and ROM starts to install a few dozens apps, but flashes and reboots phone.
[Sprint HTC One (M8)] Munkeymon:
Mine didn't come with an FM Radio app :confused: I had assumed they had stopped including them and I just didn't notice because that sort of thing is spec sheet white noise.
[Sprint HTC One (M8)] schmeggy929:
Yeah i didn't notice it either. Never used in any phone, so that went into the remove pile.
[Sprint HTC One (M8)] MassStash:
I have reboots trying to flash anything/wipe caches

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row
[Sprint HTC One (M8)] Captain_Throwback:
AROMA is a whole different animal. And patch that fixed touch in our TWRP is probably the same one that breaks it in AROMA.

It does mention the TWRP glitch in the OP. And it's obviously still being worked on. I can't get a good nandroid either.
[Sprint HTC One (M8)] schmeggy929:
Yeah I know it mentions the glitch, and know you guys are working hard. Luckily nand worked for me or I would have been stuck!
[Sprint HTC One (M8)] fr0st420:
Thanks. I moved it to /system/app via twrp and its working.
[Sprint HTC One (M8)] m03sizlak:
Now that the Sprint kernel source is out I think we can expect a much more stabler recovery soon. Personally I think I'm going to wait for that,
[Sprint HTC One (M8)] ahecht:
On the Sprint version the FM Radio isn't included, but Next Radio should be installed automatically when you activate the phone. If not, you can get it from the Play Store.
[Sprint HTC One (M8)] fr0st420:
Thanks. I didn't know next radio was an actual fm radio app. Though it was a bs streaming app
[Sprint HTC One (M8)] Captain_Throwback:
It is that too, lol.
[Sprint HTC One (M8)] Munkeymon:
Didn't work on mine and the Play Store says Sprint is blocking me from installing it, so that's fun.
[Sprint HTC One (M8)] henderjr:
I uninstalled it earlier not realizing this but was able to install it form the play store and use the tuner.
[Sprint HTC One (M8)] mswlogo:
Bumpity Bump

Do you think Mikes 3.2 ROM would support Sprint Native tether?

I often don't get phones on the day of release. Is this rather quiet progress compared to UL phone normal?

I was expecting to see 20 devs pounding on it by now.
[Sprint HTC One (M8)] Captain_Throwback:
You should be able to put that script in /system/etc/init.d so that it runs automatically.

And it's been a week (at least since I got mine). And there are a bunch of different variants of the device (carriers and colors) not all even available yet.

Don't worry, development will grow.
[Sprint HTC One (M8)] MassStash:
I second that. Been very short time still, always takes time.

~m8whl modded stock

2.265 Max ¦ 300 Min

ondemand

row