yashsingh1/xdaforums huggingface dataset:
[One (M8) General] Tetsumi06:
1) I've tried downloading the 2.22.401.4 firmware from the OP link several times now but have never managed to get a zip file that can be looked into. Is this because of the signing process?

2) I'm:

version: 0.5
version-bootloader: 3.16.0.0000
version-baseband: 1.15.2133156.UA13G
version-cpld: None
version-microp: None
version-main:
version-misc: PVT SHIP S-ON
imei2: Not Support
meid: 00000000000000
product: m8_ul
platform: hTCBmsm8974
modelid: 0P6B10000
cidnum: HTC__001

but have TWRP + InsertCoin rather than full stock. I was hoping that the inability to even view the structure of the firmware zip was because of signing and tried an RUU flash with the following failure:

sending 'zip' (45467 KB)...
OKAY [ 2.421s]
writing 'zip'...
(bootloader) adopting the signature contained in this image...
(bootloader) zip header checking...
(bootloader) zip info parsing...
FAILED (remote: 99 unknown fail)
finished. total time: 2.678s

Will I need to flash Mike's odexed ROM before I can try and flash the firmware?

Thanks for your help.
[One (M8) General] alexistkd:
any stock for HTC CID __059 ? :) thank you or can i change the CID to __001 so i can use this tutorial?
[One (M8) General] alexistkd:
heres my info:

(bootloader) version: 0.5
(bootloader) version-bootloader: 3.18.0.0000
(bootloader) version-baseband: 1.19.21331147A1.09G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B11000
(bootloader) cidnum: HTC__059
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 5e4b24e4
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.024s

how do i come back to stock again?

thank you.
[One (M8) General] elsworth1983:
Have a look here http://xdaforums.com/showthread.php?t=2701376 great thread by a master [MENTION=4252827]Mr Hofs[/MENTION]
[One (M8) General] nkojic:
I have a problem. I returned phone to stock and flashed latest firmware 2 times. But when i try to update from 2.22.401.4 to 2.22.401.5 it stoped in stock recovery? Why?
[One (M8) General] nkojic:
Solved. Its nandroid backup with build prop. modification was the problem. I return full stock nandroid backup and try again
[One (M8) General] nkojic:
2.22.401.5_firmware? Do i need to flash this ( there are no upload yet for this new firmware ) or it can be 2.22.401.4 if i wont to go to stock?
[One (M8) General] pro4ever:
tnx for guide all done 2.22.401.4 but when i go to ota on phone updates says phone is up to date i thought it would 2.22.401.5 to update?
[One (M8) General] Nabalazs:
THANK YOU!

You my frien just saved me. Thank you for having a STOCK EU VERSION of the phone's OS. I got some kind of weird rebooting issue, and I wanted to factory reset, but accidentally, wiped....well...everything. And I was looking for a stock rom for like 3 hours. Oh and sorry for being hasty with this comment, but I'm so happy it worked, that I just registered to say thank you. Though I have co clue what odexed means, and I honestly didnt put phone to factory state, but still millions of thank you for you!
[One (M8) General] Joplisan:
Thank you!

I'm almost on the same boat as poster above me - I accidentally deleted the whole OS from my phone because of a major fu*kup. But, thanks to this guide, my phone is now working like new, completely stock and without those nasty **UNLOCKED** and **TEMPERED** flags. A million thanks to you!
[One (M8) General] nickrule1896:
Hi what does the CID serve? As in, I don't know why people would wanna change the CID? Sorry if this is a noon question lol.
[One (M8) General] blazevxi:
It can be your carrier e.g. EE or Vodafone or AT&T or for the unlocked models. You can change it when s off to flash different firmwares if you so desire
[One (M8) General] 5i1v3rStorm:
Resetting the Flags

Thank you for the good guide.

My question might seem noobie, but I couldn't find the answer reading thru a lot of posts - so here it comes:

Point 4 in the OP is about resetting the flags (Unlocked / Tempered).

Does this only change the text on my unlocked bootloader (keeping it unlocked and tempered) or does this actually LOCK the bootloader? :confused:
[One (M8) General] EddyOS:
It re-locks the bootloader, meaning you won't be able to flash anything without unlocking it again so really only used for going back to 100% stock when selling the phone/sending to HTC for warranty claim
[One (M8) General] acmerw:
Great guide, only one thing: before flashing stock rom or backup, copy to internal memory bootloader lock text in some text document, via TWRP terminal launch it and flash or restore original rom, ex. sh /sdcard/lock.txt. It saves some time with root-unroot thing. Helped me for warranty purposes
[One (M8) General] cortez140369:
1. Restore the phone back to stock

A nooby question:

Initial situation: ROM Stock - 1.54.401.10 - S-ON - CID: HTC__405

1) UPDATE to 2.22.401.5 via official OTA (without nandroid backup)

2) S-OFF with Sunshine

3) Install custom recovey TWRP - SU - SUPERCID

Then i follewed this guide to return 100% stock without point 1 (1. Restore the phone back to stock) because I haven't change stock ROM.

then:

- remove SU

- remove TAMPERED

- RELOCK bootloader

- restore stock firmware ( 2.22.401.4)

It is correct to receive offical OTA updates or is necessary also point 1) ?

Thanks and sorry for my english
[One (M8) General] DeeZZ_NuuZZ:
you don't Need to relock bootloader...especially if you are s-off do not relock bootloader...tampered also wont give Problems only for warranty purpose.you just Need the stock bootloader/Firmware...also the SU files should be overwritten so only remove root if the System wont let it install..

as Long as you have all System apps etc on the phone OTA should work
[One (M8) General] cortez140369:
Thanks for your reply.

I want to keep S-Off for future use, but the phone must be in factory condition to be resold without problems.

Is important that in these conditions can receive OTA updates without problem.
[One (M8) General] DeeZZ_NuuZZ:
you can always Keep s-off...there is also a Firmware where a hboot.img is which has fake s-on flag and normal CID like htc__001. that works fine too with updates and even when HTC is getting it to fix it they will do it...the hboot is edited to look like complete stock while still being s-off but no one other knows that...and even if you want to be full stock you don_t Need to make it s-on again as some phones are sold as s-offed devices.. :P
[One (M8) General] applegadget:
HTC_044 firmware

Thank you for the guide. I understand that firmware provided in the first post does not support HTC_044. I managed to obtain an OTA update zip from another person from the same country.

The file of the entire OTA is OTA_M8_UL_K44_SENSE60_MR_hTC_Asia_WWE_2.22.707.3-1.54.707.7_release_385194

Within that zip is a file titled firmware.zip, which is about 47.7mb. Can I use this file to convert my m8 to stock?

Appreciate any comments. :o
[One (M8) General] big nu:
US Models?

Can anyone point me in the direction of a guide like this for US Models?
[One (M8) General] zimilaci:
Hey There, thanks for the fantastic tutorial, my question tho....

whats up with the S-off .... isnt that a problem during warranty? :S

how can we set that flag back? (so just the flag not the whole operation")
[One (M8) General] DeeZZ_NuuZZ:
There are several tutorials and files for that! Also s-off won't be bad for warranty. Some devices are sold already S-off...and even if you can lock boot loader or just use a firmware/hboot where the file is edited so its locked and s-on but still s-off
[One (M8) General] dsmpampis:
Hey guys, I'm coming from a N5 and to relock bootloader and unroot the device it's a couple adb commands.

Now I really want to go back complete stock but I'm still S-ON

Can I just relock my bootloader, unroot and get rid of the red letters(when the device is booting) without been S-off?

Thanks in advance!

Tspatalked with my (refrigerator look) HTC One_M8
[One (M8) General] Clipboards:
Thanks in advance for this guide. I don't have a European M8 but i'm sure this can't be too far off for the VZW variant.

I'm awfully clumsy so I imagine i'll have to get a screen replacement sometime..
[One (M8) General] MICH_**:
Is it possible to flash a recovery with a locked bootloader but s-off?
[One (M8) General] WILLI120:
Huuuuuge thanks to you for this guide! :)

Worked great on my phone! After doing everything here, I simply S-ONed it again with the M8 toolkit and now I can finally send my phone in for warranty, so I can get a new one with a working sd card slot :)

Thanks again!
[One (M8) General] EddyOS:
Yes, but you need a custom ZIP to do it via fastbootRUU mode
[One (M8) General] danio.78:
edit
[One (M8) General] Jase Winter:
I have a UK carrier model thats S-OFF, am I correct that I can flash the European firmware zip in RUU mode and essentially convert the phone to a non carrier model?

Thanks guys.
[One (M8) General] blazevxi:
Yes. You just need the appropriate cid. UK unbranded is HTC__001
[One (M8) General] Imperticus:
Where are these zips?
[One (M8) General] EddyOS:
I made one myself based on one released for the Verizon M8. Worked fine for me

EDIT: Forgot I'd uploaded it to my Hightail account. Replace the image with the latest as it's an older TWRP but then flash it in RUU mode and you're done

https://www.hightail.com/download/UlRUTkFoZEtTSUR2WnRVag
[One (M8) General] ehsanuetian:
http://xdaforums.com/showthread.php?t=2701376
[One (M8) General] moresco.dt:
hi mate, i'm on viper 2.4.0 (build 2.22.401.5), i'm s-off, supercid and my HBoot is 3.18

This guide for me doesn't work and i don't know why. My M8 stuck on HTC logo after the flash of the stock rom. Only way to restart him is to reflash the viper once again. What's wrong?

edit:

ok solved, instead flashing the android revolution stock rom i've restored a nandroid backup downloaded from here :http://xdaforums.com/showthread.php?t=2701376
[One (M8) General] Hypercaine:
Followed the process, but now in bootloader mode I have RADIO-INVALID_VER_INFO and OpenDSP-INVALID_VER_INFO.

The phone works fine though. Any ideas?

RESOLVED.
[One (M8) General] nrd\:
Just want to say, fantastic write up, worked for to perfectly the 1st time, no errors / workaround, followed the guide to a t and my m8 is back to stock.

Upon reboot it even prompted me to update to the lastest .5 release!!

HTC ONE M8 - S-on - Super cid - removed tamper - unRoot - Latest stock OTA.

Thank you.
[One (M8) General] Humbie:
Is it possible to go back from 2.22.401.5 back to 1.12.401.17?

This just to get all the firmware updates through OTA again, I seem to be having some issues with my 4G connectivity (probably due to the HK mod v3 which had an impact there).

Can I just use the 1.12.401.17 CWM nandroid backup (for HTC__E11) even though I already have firmware 2.22.401.5?

PS: All I would need is the adsp.img, though that's only available in the firmware package for 1.54 which is why an update from 1.12 to 1.54 is the only way I see to get the correct version here again.
[One (M8) General] tominozh:
Yes, that's what I did. I was on newest firmware and custom/sense stockish rom, just restored system and boot from previous version, didn't restore data cose I didn't want to loose it and got ota again, flashed stock recovery and installed it.
[One (M8) General] EddyOS:
OP updated to latest 3.28.401.7 images
[One (M8) General] rmtbest:
help about come back to stock

hi all ; i am really new in htc world,

i have htc m8 grey metal with this info : tunr now in Android revolution hd 10.1 mike1986 , rooted chainefire

version-bootloader: 3.16.0.0000

version-baseband: 1.16.2133156.U

version-main: 2.22.401.4 rom version

version-misc: PVT SHIP S-ON

product: m8_ul

platform: hTCBmsm8974

modelid: 0P6B10000

cidnum: H3G__001

security: on

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: ab0efa49

hbootpreupdate: 11

gencheckpt: 0

1 - i want to turn my htc m8 to stock as purchaged from store , how can i do it ?

2- can i get ota update after being come back to stock? thx a lot
[One (M8) General] nemesis53:
Hi

I wanna change my M8 HTC_J15 Arabic version to HTC_M27 (Turkey) and it must be stock,unrooted, unlocked(not relocked) and S On afterwards.

You said S Off will remain afterwards and can i change my CID To m27 additionally?

Thanks
[One (M8) General] KarimSalloum:
Hello,

I realize this is probably a stupid question but I guess better safe than sorry,

will this work with SuperCID?

Thanks in advance!
[One (M8) General] EddyOS:
Yes it will :)
[One (M8) General] nex86:
I'm sorry but this package does not contain the stock firmware.

The system image is missing here!
[One (M8) General] EddyOS:
The FW package doesn't contain the System image - hence the name. It only contains the System. Restoring the backup in the earlier steps reflashes the stock system image
[One (M8) General] nex86:
oh I get it. So I can simply flash this one if I don't have a backup right? http://www.androidrevolution.org/downloader/download.php?file=One_M8_3.28.401.7_odexed.zip
[One (M8) General] sirio87s:
for the new "voice" "Software status : official" in bootloader come with the update 3.28.401.6 there is a cure?
[One (M8) General] egidius:
i heave h-11 m8 whit S on plz tell me what to do.Iheave install this but i heave no wifi and sunsine dont work.even firmware.zip dont work.
[One (M8) General] seadersn:
(t)heave = have...?
[One (M8) General] RobokopLG:
Okay, i am new in flashing, please help me, I want 100% stock, but I am unable to achieve it. I flashed ROM to stock 4.4.2, but only from nandroid backup (found here on xda site) because i wasn't able to find proper one OTA for european version with proper cid, then i flashed recovery to stock (from TWRP), but the problem is that regardless of what i do, i can't get rid of "Software status: modified" and after locking of bootloader i get only "Re-locked". Hboot is updated to 3.19.0.0000 after previous updates.

Cid is: T-MOB009.

Here's screenshot of bootloader:
[One (M8) General] Mutasek24:
You must S-OFF to remove ***Software status modifield*** ( older TAMPERED ) and lock bootloader (LOCKED)

http://xdaforums.com/showthread.php?t=2708571
[One (M8) General] RobokopLG:
Okay, thanx, but when I tried to S-OFF using firewater it didn't work, so Is there any other way to get S-OFF except firewater or sunshine which is paid? Or could it be with something else why firewater didn't work on my device? For example I noticed that in bootloader there are not displayed any numbers indicating OS version (can be seen on bootloader screenshot)...
[One (M8) General] BerndM14:
Firewater won't work on most devices, been patched. Sunshine is the only alternative to gain S-OFF.
[One (M8) General] hsnmz:
Guys need a little help, have recently bought a slightly used M8 and it is rooted ans S-ON. Now i need to get back to factory firmware and S-ON for warranty purpose but I don't know what was the original CID. I am from Pakistan, can anyone please help me find the right Rom for it ?
[One (M8) General] senbros:
Hi

Probably it is S on, original CId may not be changed.. without S off CID cannot be changed.. findout your cid first and restored origiginal firmware9Rom)
[One (M8) General] cruhoortwunk:
I'm in a pickle. I had a rooted M8 on 4.4.3. I tried to install OTA 4.4.4 update. It didn't install, probably because I was rooted and had been messing with SuperSU and other zips from recovery. So I tried to reset factory to get the OTA update. I went about it the wrong way, I wiped it using recovery. So I was left with no image.

Decided to install 4.4.4 from ROM on xda. Installed ok, but I couldn't turn wifi on. So I tried to update the firmware to fix that. I didn't realise that you needed to be S-off to update the firmware afterwards. Tried turning S-off, but keep getting issues with firewater. And I don't want the $25 paid one.

So I am now on 4.4.4 with the older firmware and S-ON.

How can I get out of this? I would be ok with installing a stock 4.4.3 and doing OTA and then rooting etc. But I tried a few stock images and they all seem to require a firmware update too. How can I do that without S-OFF?
[One (M8) General] Mr Hofs:
Have a GOOD read here

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

:)
[One (M8) General] cruhoortwunk:
OK, giving it a good read now
[One (M8) General] cruhoortwunk:
I installed the stock nandroid using twrp. It seemed to install ok. But the instruction say I need the stock recovery. WHat difference will it make, as it seems to be fine when restored with TWRP?
[One (M8) General] The Fer-Shiz-Nizzle:
The whole reason you wanted to return to stock in the first place....to take the official OTA to get the updated firmware. OTA's will not install on TWRP, you must have stock recovery
[One (M8) General] cruhoortwunk:
I realise that now. I forgot that was what happened when I initially tried the update, cheers to you and to Monsieur Hofs, I am up and running now
[One (M8) General] corticool:
Sorry, maybe that's a noob question but... Will the OTA updates install if you're 100% stock, including stock recovery, but with S-OFF?
[One (M8) General] The Fer-Shiz-Nizzle:
S-off has no bearing on OTA's. Stock ROM & stock recovery is the only requirement to take an OTA
[One (M8) General] BerndM14:
And system files shouldn't be changed either i.e No deleted system apps, no edited system files(build.prop etc), no xposed framework installed.

Even though the above can fall in the general description of "Stock ROM".
[One (M8) General] snwman:
I have to send the phone back to htc to get the fixed. Distortion on the top speaker. Now im s off and have been for quite a while. Im on hboot 3.19 my question is with the new h boot saying software status: modified. There is a way getting back to say software status: official. A member called scotty1223 got it to work. But is that good enough to send it back to repairs that they wont class is as modified or tampered
[One (M8) General] Aguyos:
Hello guys, i want to make my phone sstock (actualy i'm on viper 2.5), un order to start Sunshine. In fact, i'm locked with S-on, and i can't improve my firmware to get newset version.

So, if i understand (Sorry, i'm french, and technical language is little bit difficult, but i work on it :). I flash stock rom as a custom rom by twrp ? Since i'm S-on, i don't need to install supersu ? For the recovery custom, does i need to put the command firmware since it don't have change as i'm S-on ?

Thanks for you're answer.
[One (M8) General] BerndM14:
Let's start like this real quick:

Why lock if you have a custom recovery and custom ROM?

You can upgrade firmware for your device if you're S-ON but the MID/CID must match!

You don't flash a stock ROM in TWRP, you RESTORE it as a nandroid backup from within TWRP.

S-ON has nothing to do with supersu.

I don't really understand what you're trying to ask, what "command firmware since it don't have change as I'm S-ON"???? :confused:

Go to the COLLECTION of Stock backup's thread and download the nandroid backup for your CID.

Unpack/Unzip the downloaded nandroid backup and place it in your TWRP backup folder on your device.

In TWRP select "Restore" to restore the stock ROM(nandroid) for your device.

After it finished restore your ROM, reboot into bootloader and flash back the stock recovery(you can also find this in the collection thread)

You're all set for the OTA's to update your device to the newest version and/or do Sunshine S-OFF before you do any further updates.
[One (M8) General] Hamodi:
if i still on stock rom

i'v just unlocked the bootloader and root it

can i only lock the bootloader and remove the supersu ??

no need to flash a new firmware ?!
[One (M8) General] Aguyos:
Hello Bernd.

Thanks for you're answer. Very interresting to read.

I download the nandroid backup and the stock recovery for my version. So i'm ready.

I check on my twrp for restore. I ever have a restore file inside, can i delete it before installing the nandroid ?

That's my only question ?

Thanks for you're answer.
[One (M8) General] snwman:
Guys does anybody know how to/ where to find how to get fake s on banner im going blind staring at the screen this long
[One (M8) General] BerndM14:
FAUX LOCKED HBOOTS-
[One (M8) General] dudaketi:
hello, after installing this i dont have french in language please help
[One (M8) General] thefoss:
Theoretically the steps in this guide can be used for T-Mobile US carrier version? By replacing the CID, RUU?
[One (M8) General] Joplisan:
Hi! I tried returning to stock using this guide, like i did a few times before. But this time, OPs rom didn't boot, so i used nandroid to get back, same version with OPs FW RUU. Everything went well, but I don't have CW: M8_UL_K44_SENSE60 under SW info anymore. Isn't that European version indicator? Everything else is the same, i even got the OTA. So what exactly is CW exactly and what am i missing with not having it? Thanks!
[One (M8) General] sbiricuda:
Hi,

I tried to follow the guide but I can't do n. 6 (flashing stock recovery).

This is what I get back (I saw other users got the same but I couldn't find an answer):

My CID is HTC_001 and my recovery is up to date to latest version.

Any suggestion?

Thank you :)

Edit: Solved. Your bootloader must be relocked in order to do that.
[One (M8) General] HC4Life:
---deleted---
[One (M8) General] sherbibv:
is this ok? because the link in the OP doesn't work anymore.

(the first link regarding Mike1986 odexed rom)

http://xdaforums.com/showthread.php?t=2694994
[One (M8) General] EddyOS:
Gimme a mo, I need to update the OP :)

EDIT: OP updated with 3.28.401.9 files so should be OK now BUT there is now an RUU ZIP of 3.28.401.9 available to flash via fastboot and you can get it here:

http://xdaforums.com/htc-one-m8/general/htc-one-m8-european-signed-ruu-0p6bimg-t2911563
[One (M8) General] Jena-HtcOneM8:
Please help. Wifi is not starting after completing all the steps successfully.

CID-11111111

OS - 3.28.401.9

HBOOT - 3.19.0.0000

RADIO - 1.22.21331147A1.29G

OPenDSP - v38.2.2

Note - I had ViperOne ROM and I followed this guide to return to official ROM. Everything was working fine before.

Thanks
[One (M8) General] EddyOS:
No idea, this is not a support thread so probable best to ask in Q&A
[One (M8) General] mderksen:
I've a Vodafone branded M8. When i change the CID to HTC__E11 i can follow your guide to completely go to (unbranded) stock, right?
[One (M8) General] EddyOS:
If you're S-OFF, yes
[One (M8) General] jotha:
Thanks for the tut. Just used it to prepare my phone for repair service ;).

You might add that an eventually replaced splashscreen must be set back to stock BEFORE the phone is locked again and stock recovery is flashed. I had to modify my stock splash.zip for fastbootRUU flashing after I realized that flashing stock firmware/recovery didn't reset splashscreen. (Should've known though....)
[One (M8) General] Stephen:
If your s-off can you not run an RUU? That should recover all partitions then s-on again.
[One (M8) General] EddyOS:
Now that the 3.28.401.9 RUU ZIP is available you can use that so tbh this guide might be a bit out-dated. Think I need to have a go back and re-do
[One (M8) General] boys501:
hi i am s-on with android revolution hd v22.1 my firmware is 3.28.401.7 can i use this guide to return my m8 to 100% stock to get the ota ????
[One (M8) General] jakTomas:
Guys can someone help ,,

everything is installed and still getting the following error :

C:\Android\android-sdk\platform-tools>adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

SH44FWM09049 device

C:\Android\android-sdk\platform-tools>

C:\Android\android-sdk\platform-tools>

C:\Android\android-sdk\platform-tools>fastboot reboot-bootloader

< waiting for device >

i've been trying to fix this for the past 4 hours but no luck ,, anyone ??