yashsingh1/xdaforums huggingface dataset:
[One (M8) General] Jephreyz:
So I eventually went against your advice and turned S-ON on my AT&T HTC One M8 converted to a GPE. I figured I would share my experience with you since there apparently isn't much we know about S on HTC devices and perhaps this information might benefit the community but then again, I don't really know what I'm talking about. By turning S-ON after flashing the stock RUU posted by graffixnyc in this thread: http://xdaforums.com/showthread.php?t=2708589

Nothing bad happened. At least nothing I can see. I haven't seen any warning flags, red text, etc. My phone did not brick or anything like that and I was able to also lock the bootloader. My phone is fully functional (as far as I can tell). I have not tried an OTA update and I'm not sure if the S-ON will interfere with an OTA update from a different source. I can give an update once I attempt an Android L OTA soon if you'd like. For now, I can say that converting the device to stock unrooted and going S-ON will not do anything noticeably bad to the phone. I hope this information has helped you but then again, I don't really know what kind of information will help so if this didn't help, I'm sorry and I'll refrain from spamming you again. I'd like to thank you for your advice throughout this process. Without your help, I would have never been able to gain the knowledge I have on S in general. Thanks for helping me and thanks for helping the community :)
[One (M8) General] scotty1223:
I'm glad you didn't have issue,but unfortunately your experience isn't enough to say with certainty that "nothing bad will happen" every time. Lots of folks returned to s on without prollems,but some have not,and we can't ever be certain what a state a persons device is in,and how the phone will react to it. An HTC phone does a lot of security checks.

While we appreciate your sharing your experience,not every one will have the same one.
[One (M8) General] Jephreyz:
I agree with this emphasis. Results may vary.
[One (M8) General] teck_keeda:
Actually in sony i had unlocked ? my bootloader and backed up DRM keys (require root) but after 2 months my power button was not working properly....

What i did..

Restore DRM & relocked bootloader and flash the stock rom.... And then send it to service center and they also fix the issue for free!!

So is there any way to gain the warranty back in htc like in samsung we can clear flash counters by "triangle away" app... And here in sony with DRM method?
[One (M8) General] Sathirian:
Oh my, am I dumb. Please ignore and sorry.
[One (M8) General] scotty1223:
i assume youre refering to a sony xperia. this thread is not for that,i have no knowledge of that device's inner workings.
[One (M8) General] teck_keeda:
I

I referred to xperia because i have got that device right now and having no experience of htc devices so that's why with the reference of my xperia i asked the question.

My question is that after unlocking the bootloader is there any way to get the warranty back in htc?
[One (M8) General] scotty1223:
htc does not use any counters(that i know of)

if you used htcdev to unlock intially,then they have your imie,esn,name on your htcdev account,etc. all on file and techincally could look it up if they desire.

if youve achieved s off via some other means,you just need to be 100% stock firmware with no tampered or relocked banners and your warranty should be fine.
[One (M8) General] teck_keeda:
Can you share the method (video or blog) how to do it?

It will be great help to me.
[One (M8) General] youngchaos:
If it worked with Verizon M8 , will it work with Europe M8? :D it's my first HTC device , i don't wanna to mess up something.
[One (M8) General] scotty1223:
method for what? instructions are in the first post. there is a link at the bottom for the tampered thread.

to return to stock:

-remove tampered

-lock bootloader

-restore cid(if altered)

-restore mid(if altered)

-run stock RUU. allow OTA to current(if available RUU is older)

youll have to do your own research to find an ruu,there are many variants of m8 and very few ruus available

some folks like to turn s on,i personally do not recomend that.
[One (M8) General] scotty1223:
it should. i would scan back thru the thread and check what others have reported working.
[One (M8) General] Sathirian:
I managed to get everything back to stock, but the only thing missing is I am still S-off. From what I can tell from this thread, I shouldn't go back to s-on for various reasons and HTC won't care if I send it in for warranty but there is a small issue with that. My phone has been repaired by HTC before and I have s-off'ed after they repaired and restored everything. So my phone has gone through HTC once with S-on and I am worried that if I send it in with s-off they can tell that I did something.

I should also mention that the first time I sent it in, I was complete stock, no unlock and s-on. No modifications whatsoever.

Anyone experienced something like this before? Should I bite the bullet and send it in to HTC or go S-on?

Thanks
[One (M8) General] suicidal acorn:
From what I've heard, HTC really doesn't care as long as what you're sending it in for isn't software related. If you bricked your phone they obviously won't fix it. But if you cracked your screen I've heard they could care less what you've done software wise. Take this with a grain of salt, but it's worth keeping in mind.
[One (M8) General] Sathirian:
Thank you for your reply. I am sending it in for a screen related issue and I don't think it will matter. I have heard of another case where someone sent it in S-off and it got returned unfixed. He simply went S-on, sent it in and had no issues. I may just try and send it in and see what happens.
[One (M8) General] scotty1223:
if you can re unlock your bootloader,you can give s on a shot. i would try to run an old ruu first,so you will be able to re-s off if need be.
[One (M8) General] Steve-luo:
This is very convenient! Thanks for sharing!
[One (M8) General] chrishull85:
After some help if possible please :)

Phone is going back to HTC for repair, i have a stock RUU on there now just trying to get bootloader back to locked. The fault i have means usb is not recognised when the phone is booted up it does however work via fastboot in the bootloader. So my question is is there a way to run the lock cmds or another method of locking the bootloader from the fastboot cmd rather than in the OS itself using ADB?

Im a little stuck :( any help would be really appreciated
[One (M8) General] BerndM14:
[MENTION=3437245]scotty1223[/MENTION] might have the answer for you though. I don't know if maybe you can run the command through Android Emulator? Or if adb shell commands can work When you use it in recovery mode? :confused:

Maybe wait for Scotty to confirm either one before you do anything.
[One (M8) General] chrishull85:
Ive managed to do it :)

I found this tool http://www.htc1guru.com/dld/guru_bootloader_reset_1-0-zip/

Installed TWRP, used an OTG cable and usb thumb drive containing the zip, ran this zip, followed instrcutions and boom have locked bootloader. I then re-ran the RUU over the top to ensure everything was out of the box stock and all done.

Thought this might be useful for someone else :)
[One (M8) General] scotty1223:
Guru's tool works,and folks have run the commands in terminal emulator.

If you attempt the latter,make sure to copy and paste the commands its very easy to screw up the command if you attempt to type it.
[One (M8) General] syntropic:
This method is great... I used it (with proper attributing to Scotty1223) in a little guide for those who wanted to go back to stock just enough to get the Google Drive promo....

I only wish there was some hack to get root privileges on the device. I went through all the HTCDev brain damage to unlock bootloader, installed TWRP, and SuperSu. I then got S-Off using sunshine. However, I wanted to get the OTA, and I thought it would be a rather simple task of flashing the stock recovery. I did this, and then re-locked the bootloader (which was a mistake), and now....after the OTA, not only have I lost root, but the HTCDev unlock_code.bin method doesn't work. Its maddening having S-off but not being able to unlock your bootloader so you can get proper root.... and although I am looking, there does not seem to be any temp root methods at this point.

I am not sure how much help I will get from HTC, as there first response was that "they don't support unlocking the bootloader as this violates the warranty"... B*stards.

If anyone has any thoughts on how to get temporary root on the device so I can unlock the bootloader using the method described herein, please let me know.

EDIT: Although I suspect it isn't possible... but is there anyway to put the command (echo -ne "HTCU" | dd of=/dev/block/mmcblk0p2 bs=1 seek=33796) or the effective result of executing it in the shell into a flashable zip? Would that work if you have S-off? Although just entering the echo command is easy... it is worthless without root....so if there is some way we could leverage the power of S-off to unlock the bootloader... this could be an alternative.
[One (M8) General] jshamlet:
Could you use Sunshine to temp-root, then execute the commands from a local terminal?
[One (M8) General] Bad Bimr:
Need to send phone in for pink screen. M7 S-Off

I flashed the latest RUU to 4.4.3

Phone is now wiped on stock but rooted rom

I can lock the bootloader via the OP's instuctions.

Does that also UnRoot the phone. If not how do I unroot?

I assume I will still be S-Off

Thanks
[One (M8) General] Behold_this:
This thread is for the m8. [MENTION=3437245]scotty1223[/MENTION] has another one specifically for the m7 and I suggest you find and use that...unless you want to write to the wrong partition.
[One (M8) General] Bad Bimr:
Oops posted in wrong thread. Too many tabs open. Lol
[One (M8) General] CinemaGFX:
Tampered.

I went through all the processes to get my phone back to stock, everything is done, but I have a tampered flag. How do I remove this??

Thanks!
[One (M8) General] scotty1223:
If you are s on,you'll need to run a signed ruu or re-s off.

This is why I do not recommend to turn s on.
[One (M8) General] CinemaGFX:
Where would I find a signed RUU?
[One (M8) General] fareed_xtreme:
These commands used to work for me in the past. I do not know why they do not work on my device. It is on HBoot 1.57. Can somebody confirm that they were able to unlock and lock on this HBoot version? Need help in this regard as I will be trading in my M7 in a few days for a M8
[One (M8) General] Captain_Throwback:
You're in the M8 thread - I think you mean to be in the M7 thread.
[One (M8) General] fareed_xtreme:
Sorry mate. Just was verifying the code of both M7 and M8 and ended up posting in the wrong thread. Apologies.
[One (M8) General] Czarny *:
So... How can I do it (unlock bootloader without HTC Dev) if my phone has CID, wich one I can unlock with firewater but there I need to have unlocked bootloader and root?

-android 4.4.3, compilation 2.23.118.3

Thanks and regards

Edit:

I've searched answer, nevermind .
[One (M8) General] whosaysjohn:
Hi, i relocked the bootloader via the OP's instuctions.

How do I unroot? HTC ONE M8
[One (M8) General] boe323:
You should make a little installable app with lock and unlock actions for s-off users, ive said this before but ive made them executable and it works, but im not good enough to actually do it properly.
[One (M8) General] otariq:
What's the benefit of that? The only time I lock mine is when running the signed T-Mobile ruu when new ota's come out
[One (M8) General] treIII:
Here's my scenario. I'm soff. Locked boot loader. And cannot gain root access. My phone is. Soff though. I took the its today from t mobile and now I cannot get my phone rooted because I cannot unlock my boot loader. I used sunshine apk to unlock and now I can't get twrp to install because of locked boot loader. Thanks

Sent from my HTC One_M8 using Xparent Blue Tapatalk 2
[One (M8) General] scotty1223:
Your scenario is not unique and has been discussed. You'll need to pack your recovery image with an android info text document and install the zip file via ruu mode or hboot.
[One (M8) General] boe323:
Its so much better and safer imho, don't have to worry about making a mistake. Ive made 2 scripts, they boot to bootloader after running them to show you the status, I don't have to enter the terminal or worry about typing something wrong.
[One (M8) General] scotty1223:
For what it's worth,you don't need to lock it at all if you're s off. You can run ruu's and accept ota's just fine while unlocked.
[One (M8) General] scotty1223:
I personally think it's good for folks to have some basic knowledge/skill/condidence of using adb and manipulating the phone in a cmd window.

Hopefully for some it's the difference in fixing their device quickly and smoothly instead of having to learn and set up adb in a fustrated panic.

This is why I do things the way I do. If you'd like an app,go ahead and make one.
[One (M8) General] bitminer999:
Hello! thank you for being so helpful to everyone here.

I just got my phone back from htc warranty after locking my bootloader because they saw it was s-off. I want to reunlock my bootloader. I tried running the code with adb and somehow I still have supersu installed somehow so I was able to get into the su menu and try to run the code.

I got back this:

/dev/block/mmcblk0p3: seek error: Invalid argument

what do I do? thank you so much in advance. I am using a Verizon HTC One M8 with s-off and I think I have root because I can access the root menu and I have supersu
[One (M8) General] scotty1223:
Are you still s off? Try the process again, and let us see your entire command window
[AT&T HTC One (M8)] JEANRIVERA:
Hello guys,

Here is a method (confirmed working by Me) to SIM Unlock your HTC ONE M8 GSM ONLY NOT FOR SPRINT for other SIM cards for use on other GSM networks.

Before we begin I wish to inform you that I did not create this tool. It is the property of sieempi.

You MUST be S-OFF & have External SD for this to work.

S-OFF METHOD or http://theroot.ninja/ if you can't S-OFF with first method

Usual disclaimer: I am not responsible for anything you do to your phone. Use this mod at your own risk.

as pointed by @GSLEON3 you could only do the SuperCid "11111111" described bellow after S-OFF and it will also unlock your device but if for some reason you change back your CID you will lose the unlock the other method unlock the device forever

SUPER CID WILL NOT SIM UNLOCK YOU DEVICE FROM CARRIER

how to SuperCID your device after S-OFF

[NOOBS Guide] HTC ONE SUPERCID method via fastboot

or permanent method

Instructions:

1) Go to this site: http://www.sieempi.eu/blog/2011/09/22/universal-sim-unlock-for-s-offed-htc-devices-536

2) You'll notice that the HTC ONE M8 is not listed in the supported devices, but the process does work.

3) Supply a valid IMEI and email address on the form on that page and where it says "Phone Type" put HTC ONE M8 , and they will email you a Config.Dat file to put on the root of your EXTERNAL SD card.

4) Reboot into bootloader, select "SIMLock" and it'll apply the config file.

5) Follow the instructions on the phone and reboot when it tells you to. If you get an "OpenCID File Fail" error, this is normal, proceed anyway!

6) Once you've rebooted, your HTC One M8 should be fully SIM Unlocked!

7) Put in a foreign SIM card and test it out

8) for Sprint M8 devices only Thanks to [MENTION=4159801]pisang_aza[/MENTION]for pointing and [MENTION=4374106]nikme[/MENTION] for the original thread follow this instructions http://xdaforums.com/showthread.php?t=2682242

If you have any questions, please refer to the linked site as I will be limited in how I can help since I am not the original creator of the tool.

Credits:

Adrian Campeanu (sieempi) - for the tool, because you know, it's his intellectual property and stuff

Binary - for sharing the site that has the tool and for risking his device to make sure it works (THANKS!!! )

Source: http://xdaforums.com/showthread.php?t=1272080

PS. I encourage donations to the tool maker who actually created this tool. You can find his donation button on the linked unlocking site.

This info was taken from this HTC Amaze forum thanks to @electronicrice for putting together the original thread that can be found here

http://xdaforums.com/showthread.php?t=1659430
[AT&T HTC One (M8)] meraz9000:
Confirmed as working. Did S-off in my ATT HTC one and now I Can finally use my Tmobile Sim card. It takes about 3-4 mins to pick up signal first time. Be patient :D
[AT&T HTC One (M8)] designgears:
Why is all the text white?

Can't see it
[AT&T HTC One (M8)] JEANRIVERA:
thank you I did not noticed since I am using a dark theme on xda fixed!!!!!!!!!!!!
[AT&T HTC One (M8)] JEANRIVERA:
did you only did the S-OFF only and put another sim card or you did the whole process?
[AT&T HTC One (M8)] TipoF130:
I don't have a T-Mobile sim on hand that's in service right now. Does anyone know if the One requires any Band unlocking as the AT&T S4 did? Or are the AWS bands unlocked by default?
[AT&T HTC One (M8)] JEANRIVERA:
Honestly I don't have the answer to that question. Sorry you might have better luck asking in q&a section
[AT&T HTC One (M8)] makomek:
Do I need S-OFF for the permanent method ?
[AT&T HTC One (M8)] rbouza1:
i still gotta test
[AT&T HTC One (M8)] JEANRIVERA:
Yes is needed
[AT&T HTC One (M8)] makomek:
This morning I went out to buy one outright at the AT&T store since I don't have service with them and none of the four stores around me would want to sell it to me , they all said they have it in stock but they not allow to sell it before June 11. What an a**h*** AT&T are lucky I don't have service with them.
[AT&T HTC One (M8)] JEANRIVERA:
i do understand your situation but unfortunately they are not allowed to sell the phones until april 11 (not june 11) as part of an agreement HTC made with verizon it is not their fault as an option you can buy it online from them and get it in 1 or 2 days without contract
[AT&T HTC One (M8)] mayad79:
I am s- off on ARHD ART 4.0, and when I follow the instructions it states all failed.

I assume it didn't work, right?

Thanks for any help.

Sent from my HTC One_M8
[AT&T HTC One (M8)] TipoF130:
According to the OP it's normal, I got that as well but have not tested it yet.
[AT&T HTC One (M8)] JEANRIVERA:
If you put it in the external sd card it should work always as far as it been recognized by the bootloader
[AT&T HTC One (M8)] Z51:
This process literally took about five minutes. Thanx a bunch :)
[AT&T HTC One (M8)] mayad79:
Thanks for the tip, this time it's says imei passed. Sweet......

Sent from my HTC One_M8
[AT&T HTC One (M8)] mlts22:
IMEI passed here as well. Quite painless for an unlock process.
[AT&T HTC One (M8)] PimpFinger:
For this to work I must have an external micro sd card installed?
[AT&T HTC One (M8)] JEANRIVERA:
Is it to hard to read the OP? Yes, you need to put the config.dat file in EXTERNAL SD
[AT&T HTC One (M8)] PimpFinger:
No it's not too hard to read the OP. I read the OP. I was just making sure I understood it. Is it to hard to not be a smartass?
[AT&T HTC One (M8)] JEANRIVERA:
actually is not that hard to be a smartass look how naturally came from both of us!!!!! lol no hard feelings mate I'm here to help !!!!!!!!!!
[AT&T HTC One (M8)] PimpFinger:
Ha! Water under the bridge. I work in IT and completely understand the frustration of people not reading the f'ing manual. I've just been away from Android for a while and wasn't sure if you meant a physical sd card external storage; because I flashed recovery last night from internal storage. Couldn't do that the last time I was on Android.

Anyway thanks for the guide!
[AT&T HTC One (M8)] PimpFinger:
So did you guys get more errors than just "Open CID File Fail" error? Mine said everything with "Open" at the beginning failed, and I did run it from an external sd card.

Read MCCMNC file success

CID, IMEI, atsdeb, SF, NAME all fail to open.

Get device IMEI success

IMEI checking... PASS!

I don't have another SIM with me right now to test, but will be getting a tmobile SIM in the mail tomorrow.

So am I done?
[AT&T HTC One (M8)] an0ther:
I went to my local att store on Monday and bought it for full price.
[AT&T HTC One (M8)] JEANRIVERA:
I'm 99% sure that it should work!!!
[AT&T HTC One (M8)] PimpFinger:
Excellent! That's what I like to hear. I'll post results tonight when I get home from work.
[AT&T HTC One (M8)] JEANRIVERA:
Please share your results with us after testing!!! Thanks in advance!!! ?
[AT&T HTC One (M8)] imna357:
Thanks a lot, it worked, i have the amber gold, and now i using it on tmobile. Is this a permanent unlocked?

Thanks a bunch.

Once i get the refund from the unlocking service, you'll have a beer from me.

Did all the rooting and s-off while drinking, woodford reserve, it helps:d
[AT&T HTC One (M8)] JEANRIVERA:
What carrier did you originally bought it for?
[AT&T HTC One (M8)] killcreek:
Does this SIM unlock method work for all carriers.?? or just have to be ATT???

Does the process work for Sprint HTC one M8.???
[AT&T HTC One (M8)] JEANRIVERA:
It does work for Sprint devices but as far as I know I'll be only for international SIM cards not US carriers but no one have confirmed
[AT&T HTC One (M8)] PimpFinger:
It worked. ATT to Tmobile.
[AT&T HTC One (M8)] jonathan413:
ok so i got my sdcard in the mail today. put the config.dat file on it and took less than 20 seconds to unlock. popped in an old metropcs sim card and it worked. to my surprise it showed that it was picking up LTE. couldnt confirm since the account is deactivated but good to see. Now i did the supercid route a few days ago and it didnt work. Can i change my cid back to original and still keep unlock through permanent method or will it erase?

---------- Post added at 08:12 PM ---------- Previous post was at 08:11 PM ----------

are you picking up LTE?
[AT&T HTC One (M8)] JEANRIVERA:
The CID doesn't affect the status of your device unlock after is permanently unlocked
[AT&T HTC One (M8)] jonathan413:
so aside from changing your CID to unlock ( which didn't work), what are the other possibilities? say flashing an RUU of the tmobile variant without issues? not like i would do such a thing though.
[AT&T HTC One (M8)] K.AuthoR:
Would this method work on the M7 AT&T variant as well? I'm waiting on my M8 to arrive, but this would be pretty nice in the meantime.
[AT&T HTC One (M8)] donpiero278:
yes it will work with M7 but it is more complicated since it doesn't have a external SD go here and read a little specially the last 5 to 10 pages

http://xdaforums.com/showthread.php?t=2314824
[AT&T HTC One (M8)] imna357:
At&t on best buy, Amber gold is exclusive to them
[AT&T HTC One (M8)] PimpFinger:
I was when I was at work. While outside I was getting decent speeds with speedtest app (between 8-12 Mbps down and 2-6 up). However on the 30 mile ride home from work I discovered I lost data altogether while traveling down a major hwy that definitely should have coverage, but I did have 4 bars of signal strength. After driving a ways I lost all signal strength and couldn't make a call. Then signal strength would pop back up and back down. I didn't get data (3g) back until I was almost home. Where I live I don't expect to get LTE because it simply isn't here. However on running the speed app on my phone a few times gave terrible results on 3g. Extreme latency as high as 700 ms ping with a speed of 0.0 up and 0.0 down; that was a few hours ago.

I just ran another on 3g and got about the same, and now I have no signal whatsoever. After looking at their coverage map more closely I see that I am supposed to actually be in a 2g zone, but I still have no signal in my house. Not sure if Tmobile just really sucks here or if there's another problem.
[AT&T HTC One (M8)] jonathan413:
I think I've read in the tmobile section that the att version had the AWS radio locked so then that translates to either having LTE or EDGE in certain markets leaving holes in coverage without HSPA+. Supposedly there is talk on unlocking the radio or flashing a tmobile HTC one m8 radio when their RUU is released. That is of course rumor.