yashsingh1/xdaforums huggingface dataset:
[One (M8) General] EtherealRemnant:
You're on the correct firmware but not everyone will be. Currently your guide sets people up for a brick should they follow it and then follow the procedure to go S-ON afterwards as many actually get rid of the red text. Its not optional to flash it twice like you make it sound, its mandatory. If you won't change the text, I'll report the thread because this will result in bricks, end of story.
[One (M8) General] EddyOS:
In which case blame [MENTION=1631739]mike1986.[/MENTION] as it was taken from his firmware thread. I'll 'correct' it to please you but I don't agree with it as EU users will already be on the right FW. Nowhere does this mention that you have to go back to S-ON as that's nothing to do with this guide. All this is for is going back to stock
[One (M8) General] EddyOS:
Text changed to make it a bit more obvious to do it twice, although this is different to flashing an RUU ZIP (where you HAVE to flash it twice as that's how the RUU ZIP works). Surely if it needed flashing twice it'd tell you to do it (as an RUU ZIP does)?
[One (M8) General] EtherealRemnant:
I can't believe mike doesn't have it right either but I checked his thread and sure enough, there it is. Hopefully he'll change it since you tagged him here.

Even if you are on EU firmware, if you modify hboot to get rid of the red text and you have an incomplete firmware flash, you will brick if you turn the secure flag back on to return the device for warranty/exchange. Most people who return to stock are doing so in order to return the device so it is just smart to assume that they may have changed their hboot at some point.

Thank you.

EDIT: Noticed your edit to your post. It doesn't say something like this:

FAILED (remote: 90 hboot pre-update! please flush image again immediately)

After you do the first command? I suppose its possible HTC changed it. I don't have a firmware zip for me to go back to my T-Mobile firmware or I would try it myself to see but every HTC I've ever had before, if you are flashing an image with the hboot in it you had to do it twice. I wonder if the hboot is actually removed from mike's image.
[One (M8) General] EddyOS:
That's correct, it's not there any more. And the HBOOT is in the FW ZIP (see attached). That's why I didn't make it 'mandatory' as I assumed it wasn't needed as that warning didn't come up :D
[One (M8) General] EtherealRemnant:
I still don't trust it and would continue to flash it twice to make sure. I don't remember the exact reason why the hboot caused it to fail all the time, something to do with the signature checking I believe.

The only way to really verify if it is actually flashing or not is to flash a different hboot this way and see if it actually works. I don't have the time to mess with it right now so I'd still suggest the old way. You know what they say about things that aren't broke...
[One (M8) General] EddyOS:
You're probably right, I just did what I did but then again I never flashed a custom HBOOT so it wasn't gonna be an issue (and I'd never go back to S-ON anyway) :)
[One (M8) General] EtherealRemnant:
The only time I ever bother returning to stock is if I have to return the phone under warranty, sorry I was so mean about it, its just a serious issue when you have the potential to brick someone's device. I've never been unfortunate enough to brick but I've seen it posted before and what it came down to was something that wasn't explained clearly and could have been totally avoided. Thanks for the guide, I'm sure it will help many people. :) :good:
[One (M8) General] EddyOS:
It's all good! I've made one last change to that point to highlight that although it's not strictly required it's strongly recommended to do it twice as a precaution

Not sure what else you can out as no doubt someone will get it wrong at some point...
[One (M8) General] EtherealRemnant:
It wouldn't be XDA if they didn't! :highfive:
[One (M8) General] sari94:
Is it possible on my phone with CID HTC__J15 and S-on??
[One (M8) General] EddyOS:
You can use parts of the guide but not the parts with (REQUIRES S-OFF) next to it (basically 1 and 5 are what you need, so long as you have an unbranded handset)
[One (M8) General] EddyOS:
Added CIDs that will work with this guide to help users - if it's not listed then it won't work
[One (M8) General] The1nonly1:
Im guessing that once your back at stock you'll get OTA updates?
[One (M8) General] drgelin:
[MENTION=2258271]EddyOS[/MENTION] Hi. Thanks for your work. I´ve followed your guide to return stock htc one m8. My cid is VODAP304. Everything is ok til 6.-Flash stock FW package. It´s imposible to work cause the bootloader is now locked (number 4.) and this flash fail. I see you have made a new recoveryRUU.zip file to solve this but only for the cid HTC__001 and other different than mine. Please can you make a similar file for my cid VODAP304? I´m still S-OFF. Thank you very much.
[One (M8) General] Brachogan:
so am i need this to get Android L when it publish? or just flash it direct no need for OTA :confused::D
[One (M8) General] EddyOS:
This guide is for unbranded phones only. As you're S-OFF just change your CID to HTC__001 and carry on but if you want to restore your branded phone then you'll need your own backups
[One (M8) General] Jyotirdeb:
If any 1 uploades android l in backup thread then download it and flash.Also you can download this and take the ota to l
[One (M8) General] EddyOS:
If you use this guide to go back to stock you'll get the OTA to L/5.0 once released later this year, yes
[One (M8) General] vickysud:
i was on Developer edition BS_US001 now S-OFF , Supercid , ARHD 9.1 will this guide work on mine to get back to stock developer edition and will i get OTA even if I'm S-OFF ?
[One (M8) General] EddyOS:
Yes but might as well just use the RUU
[One (M8) General] vickysud:
Thank You for the reply , where can i find the RUU ?
[One (M8) General] EddyOS:
Should be on the HTCDev website, if not HTC America's support site
[One (M8) General] vickysud:
no RUU for Developer edition and where can i find STOCK 1.54.1540.9 Firmware file ? Cannot find anywhere in the thread.
[One (M8) General] EddyOS:
The FW file won't be in this thread, but I posted the FW file for it here https://www.hightail.com/download/ZUcyTG05NEhrWTg4RmNUQw

I think it was the M7 RUU that was on the HTCDev site

If there is no RUU then just grab the back from the Backups thread and use that and your CID to substitute into this guide
[One (M8) General] vickysud:
flashed stock backup file 1.54.1540.9 / changed my cid to BS_US001/ flashed firmware 1.54.1540.9 / flashed stock recovery 1.54.1540.9 and if i go into recovery it shows me phone logo with red triangle is that fine ? and I'm still S-OFF and Unlocked will i receive OTA ?
[One (M8) General] EddyOS:
That's the stock recovery, press vol up and power to get into the menu ;)

And yes, you'll get the OTA
[One (M8) General] vickysud:
Thanks a lot for all the info.

so with S-OFF and Bootloader Unlocked will still get OTA updates. cool
[One (M8) General] EddyOS:
Yeah, that screen is the stock recovery. You then hold vol up and press power and a menu with blue writing comes up (example below)

[IMG="Stock Recovery"]http://forums.androidcentral.com/attachments/htc-one-m8-rooting-roms-hacks/116140d1399128491t-guide-how-reboot-into-stock-recovery-htc-one-m8-dscn0506-edited.jpg[/IMG]
[One (M8) General] Jesushasadroid:
Hello boy and girls...I have the Gold Developer Edtion from HTC...i want to return to stock...is there a ruu for this.? i can use to run..i already flashed the stock firmware 1.54.401.10 and getting ready to flash stock recovery to return back to htc for repair on screen...im still getting beats logo screen from old custom rom..

looking for help on this thanks...
[One (M8) General] sagardeswal19:
I have a "without bill" version with 2.3ghz quad core processor. when i try to flash a custom rom, i am able to flash only selected roms. i really like viperone, but i am unable to flash it. it flashes sucessfully but when i reboot, it boots into the bootloader. then i need to flash android revolution hd which works. but again, i need viperone. any helps?

i am new to xda, so sorry for any mistakes.:crying:
[One (M8) General] EddyOS:
Unfortunately this is not the thread to ask that type of question. Please post a question in the Q&A section and someone will help you
[One (M8) General] EddyOS:
There are no RUUs available. If there was this guide wouldn't exist ;)
[One (M8) General] Jesushasadroid:
Okay well I have stock on it stock recovery how can I get s on again and get rid off a custom ROM boot animation that seem stuck on it
[One (M8) General] EddyOS:
You need to flash the stock backup and FW for the Developer Edition if you got it in the US, this guide only covers the EU build so if you need to send it back for warranty it'll be rejected
[One (M8) General] ardsar:
After restoring everything to stock, under tell htc and error reporting, i have text in red that states "This is a test device tell htc is automatically enabled and cannot be disabled. Personally identifiable information such as name, phone number etc etc will be collected"

EDIT

ok I missed the post that already mentioned this. Its due to S-Off. Sorry.
[One (M8) General] Jesushasadroid:
where can i get stock backup...i flash the one from arhd 1.54 and stock recovery....need to get s on back on...
[One (M8) General] EddyOS:
In the backup thread
[One (M8) General] Jesushasadroid:
When turn s on back on does it leave tampered in device. I have Dev m8 from USA..return to stock and to stock revovery..want to put s on back in best way
[One (M8) General] EddyOS:
Yes, as you need to use the guide in the OP to remove the TAMPERED flag before flashing the stock items. As I've said before, this guide is ONLY for the EU unbranded phones. If you want to try and use it with your build you can but I'll offer no help
[One (M8) General] StuMcBill:
I have CID: 11111111 at the moment, is it worth me changing to HTC__001 (double underscore?) to go ahead with this or will 11111111 be OK?
[One (M8) General] EddyOS:
You can leave it as Super CID if you want, I just put it as HTC__001 cause that's what I started with
[One (M8) General] shrubz:
I had this issue returning from GPE RUU, so I flashed 1.54.401.5 firmware first, then flashed 1.54.401.10 firmware and the splash screen is back to stock HTC.
[One (M8) General] nkojic:
I have a question about returning back to stock. I am on viper rom now. My cid is HTC_032 and stock version of sowtver is 1.54.401.10. I know that because i have stock rooted nandroid backup of stock rom, but i dont have stock recovery. Because i have new hboot that command for restoring stock recovery didn work (Mikes post on his thread).

Si if i wont to go to stock i can just restore my nandroid backup of stock rom and then flash stock recovery from this site (stock recoveries ) STOCK RECOVERY 1.54.401.10

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

And after flashing this stock recovery i just need to lock the bootloader right from this site:

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

I do have s- off.

And then i just need to remove supersu from this stock rooted rom. Can i just unninstal it from the rom?

Is this way of going back to stock in my case correct or do i need to do something alse? Thanks in advance
[One (M8) General] EddyOS:
Just follow the guide but use your backup instead of the stock ROM by Mike, the rest should be the same (stock recovery is in the FW package)
[One (M8) General] redgolf:
Hi EddyOs

THANKS FOR THE GUIDE...

I think I have the same phone as you, How did you get S-OFF ??? firewater does not work for me..

here are me fastboot getvar

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.16.0.0000

(bootloader) version-baseband: 1.16.2133156.UA15G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) version-misc: PVT SHIP S-ON

((bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__001

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 098a72e5

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

any help will be great..

I am on 'Android Revolution HD 9.1' atm, but my phone stuck on HTC boot screen with red warning writting for ages everytime it reboot, I want to go back to stock...

many thanks !!!

P.s.. silly me I forgot to do a backup of my stock rom.. can I just use '1.54.401.10_firmware.zip'
[One (M8) General] StuMcBill:
You will need to use sunshine to s-off.
[One (M8) General] EddyOS:
I got S-OFF months ago when Firewater still worked ;) You'll need to use Sunshine now (as Stu already mentioned)

Having said that, you can still do the parts that don't need S-OFF to go back to stock
[One (M8) General] redgolf:
Thanks very much for the quick reply guys..

I will use sunshine then..

The GPe rom looks interesting...
[One (M8) General] RossMacgill:
I used this to return my device as i had a warrney issue, HTC uk was fine with the S-off but otherwise stock phone. its being shipped now, so will just have to wait to see if its fixed :)
[One (M8) General] hughfollett:
[MENTION=2258271]EddyOS[/MENTION] Hi man! I'm new to HTC devices and I can't understand one thing: the first package we dowload for your guide is the odexed 1.54.401.10 twrp package and it's 1.3gb. The firmware zip we download at the end is just 42.6 mb; how come there's so much difference?

TIA
[One (M8) General] carley10:
Help

II have tried doing the stock rom via sd card but I keep getting an error: wrong zipped image.

I think it is because I have s-on however firewater nor sunshine did not work for me so I cannot get s-off.

My spcs is sps_001 which is available yet it still doesn't work

I edited the file to check and the mid and spsid match my phone.

does anyone know what options I have or what I can do to unroot my phone? My phone is currently unlocked and rooted but with S-ON.

thanks
[One (M8) General] alexblajan:
I know there are a lot of people here asking the same question but I couldn't find anything related to my problem.

Well, it's not a problem, but in case I need to return to stock 100%, I need to find out.

I changed my CID to SuperCid but I forgot to write down my CID. Is there a way to recover the lost CID ?

Thanks a lot,

Alex
[One (M8) General] EddyOS:
Quick answer, no
[One (M8) General] alexblajan:
Oh well, that's that. No problem, I can live with SuperCid.

Thanks Eddy !
[One (M8) General] exocetdj:
i think you can just about turn your phone into any variant if you are s off :)

you can write any CID also :D
[One (M8) General] alexblajan:
Take it from my perspective. I'm coming from 5-6 years of dedicated iOS user. The first day I bought my HTC One M8, I rooted and put a custom rom on it (ARHD). I don't remember why, but I modified the CID also, even if my phone is International Unlocked and Unbranded.

Now, well, I just wanted to make sure I won't have problems because I forgot my CID.

Also, thank you for your help. I'll look for some international CID's just in case I need to take the phone to warranty.

Thanks !
[One (M8) General] exocetdj:
And i bet that coming from IOS you are loving the freedom of the android world!!!! Best choice u would have ever made lol ;)

NP mate! have fun:good:
[One (M8) General] alexblajan:
I switched to Android because I was getting bored with my iPhone. It's not just about customizability, but because it has some features that I always wanted on my iPhone.

The only thing I hate (I'm just being honest, don't go wrong on me) is the fact that the Google Play Store has so many crappy apps, not so high quality built, or apps that have spyware.

Nevertheless, I have high hopes for Android and I think I'll keep my HTC for now. The iPhone sits down on my desk without power for 2 weeks now, didn't get bored of my HTC. I have the possibility to switch any ROM I want and I have more battery power to take me through the day.
[One (M8) General] nkojic:
This firmware dont have red text warning and fake text like locked and s-on? Is this problem only in new firmwares like 2.22?
[One (M8) General] EddyOS:
If you use this guide completely there'll be no red text as it's all official HTC files. The red text only comes up once you use custom files
[One (M8) General] nkojic:
Ok so when i go back with NB of stok rooted rom just locked my bootloader and flash this yours firmware? And then i can have normal updates from HTC right?
[One (M8) General] plocri:
Just a small question: if I have S-OFF

AND

LOCKED bootloader, am I able to install firmwares, custom recoveries, custom roms?

UPDATE: Ok, I tested myself, it is possible to do anything if I'm s.off and with locked bootloader ;)
[One (M8) General] ronald_halbal:
CID-HTC__332 help plz

hey, wats up?

I'm a bit new to the XDA site but i know my way around the Android OS to some extent.

I recently unlocked my bootloader, s-off (Sunshine app method) and flashed TWRP (with root) on my HTC M8 (international version).

phone is working fine, no probs...but, I recently received a notification of and update to 4.4.3

I did do a back up right after i installed TWRP, but, TWRP came with the root feature so even if i restore I'll basically have the same as before; a rooted stock OS.

Can u assist me in getting a stock recovery so i can receive the OTA update? or if its not too much can you guide me on how to?

I am seeing a lot of info around but I'm a bit confused.

This is my CID:

CID-HTC __332

I am more than happy to provide you with any further info in order to get me back to bare stock so i can take the OTA.

many thanks in advance..
[One (M8) General] EddyOS:
The HTC__332 CID isn't covered by this guide so please ask in Q&A for help with your query
[One (M8) General] MarkMeinema:
Can I just use this guid with HTC__E11 or do I need different ZIPs?

Having read through the whole thread, there's still something I can't wrap my head around (and I prefer not to own a bricked phone in a few minutes...)..

My phone's CID is HTC__E11, version is 1.54.401.10. I have rooted my phone to get apps to store their data on the SD-card. So I just rooted and didn't replace the ROM. I did succeed in getting root (through the Unlockr guide) and got Foldermount to work. But I also kept getting errors that com.android.systemui stopped, which eventually got my phone in a boot loop. As I's like my phone first and foremost just to work, I'd really just want to get it back to its original state as fast as possible.

I'm just a bit unclear about step 1...

Do I really need to do this step, as I never installed a custom ROM?

If I DO need to flash, is the ZIP provided suitable for my CID as is? I understand that the guide is usaable for my phone, but I'm unsure if the files you provide will work, as I don't have HTC__001...

Really scared of bricking my phone here... :crying:
[One (M8) General] EddyOS:
You don't, no, but doing so will mean you have a 100% stock ROM so OTAs will work fine

I'm going to update the links in the OP now the 2.22.401.4 packages are available so you could just use them
[One (M8) General] EddyOS:
OP updated to new 2.22.401.4 links :)
[One (M8) General] pierreammoun:
Im HTC__059

Which file is the right one ?

Thanks
[One (M8) General] EddyOS:
Nothing in here, sorry
[One (M8) General] pierreammoun:
turned out __059 is the same as __044

Will check and post the result.
[One (M8) General] EddyOS:
Well, no that's not right otherwise it'd be listed in the OP as a compatible CID
[One (M8) General] xepasus:
hi dear

i have m8 with 1.54.401.10 and its S-ON ( cid J15 - unlocked - rooted + twrp recovery )

its cannot to be s-off with firewater and in my country iran i cannot purchase the sunshine s-off method.. so i realy cannot s-off...

how i can update my firmware to 2.22.401.4 ?

i use section 6 in 1st post but got this error in fastboot : remote : 99 unknown fail

i realy confused can you help me?
[One (M8) General] Brds7t7:
Do you have a matching model id for wwe? You can't change mid without s-off. If you do fastboot getvar all and post the output here. But remove serial number and imei.

Sent from My Calculator!
[One (M8) General] xepasus:
ok, there is :

MoiNs-MacBook-Air:tool Moein$ ./fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.16.0.0000

(bootloader) version-baseband: 1.16.2133156.UA15G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno: ####

(bootloader) imei: ####

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__J15

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 098a72e5

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.005s

edit: i download the 2.22.401.4 firmware and check the cid and mid with my m8.... yes its matched... HTC__J15 IS supperted this firmware ( 2.22.401.4 )

but when i flash this firmware in fastboot i got this error :

remote : 12 signature fail

any idea?
[One (M8) General] Manguish:
Do i nee to wipe phone before flashing the odexed zip file?

I get a "failed" error when flashing....
[One (M8) General] hdorius:
S-ON can't flash firmware with fastboot,try http://xdaforums.com/htc-one-m8/development/firmware-flashing-panic-attacks-t2824048
[One (M8) General] Manguish:
Right, i figured out for whatever reason my downloaded zip wasn't complete, so after a re-download i try to flash again.

It flashes the deodexed rom, says it's completed and fine and to reboot my device.

On rebooting, i skip the supersu and it procedes to go to the white HTC logo screen where it plays the duh duh duh dingle sound and stays there.

Pulling what little hair out i have here :(

I've tried flashing an aroma version of the Android Revolution rom, the stock deoxed rom, and flashing via adb a firmware to 2.2.401.4

I had superCID (1111111) previously, so thought i should chnage that back to HTC__001 which made no difference whatsoever.

Any and all help apprecated :(

Chris.
[One (M8) General] egge11:
hello guys, I have cid htc__304 and version-main: 1.54.401.10

I can easily follow the guide or do I have to change something? help me
[One (M8) General] OGhoul:
AT&T (US)

Hello,

I've gone through this thread (literally all 25 pages; I do my homework) and here's what I'd like to accomplish. I'd like to get back to as stock as I can so as to be able to receive OTA updates. Not that I dislike ARHD, but I have to use Good mail for work, and I can't be bothering my helldesk every time I flash a new rom.

My CID is CWS__001, however I stupidly didn't do a nandroid before I flashed my first rom. I'm running Mike's latest firmware.

To accomplish returning to stock, am I to understand that:

Step 1: I'll need to use someone's backup from the backup thread, instead of Mike's odexed ROM:

CID CWS__001

1.12.502.18 - TWRP 2.6.3.3 Thanks to Wonders_Never_Cease

Step 6: I can use the stock firmware from this thread?

Thanks.
[One (M8) General] andywright1982:
anyone know why i keep getting this?

C:\adb>fastboot flash zip firmware.zip

target reported max download size of 1830711296 bytes

sending 'zip' (45467 KB)...

OKAY [ 2.247s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) shift signature_size for header checking...

(bootloader) zip info parsing...

(bootloader) checking model ID...

(bootloader) checking custom ID...

FAILED (remote: 42 custom id check fail)

finished. total time: 2.600s
[One (M8) General] Brds7t7:
Are you S-Off? Is your MID matching whatever you're trying to flash?

Sent from My Calculator!