yashsingh1/xdaforums huggingface dataset:
[One (M8) General] seadersn:
in your os an

adb reboot bootloader

and when rebooted then a

fastboot devices

tells you the same waiting message?
[One (M8) General] EddyOS:
You can only use fastboot when in the bootloader, so if the phone is turned on and running Android fastboot will do nothing...
[One (M8) General] EddyOS:
In theory, yes :)
[One (M8) General] BerndM14:
[MENTION=2258271]EddyOS[/MENTION] You have the m8 again? :good:
[One (M8) General] jakTomas:
ahaaaaaa ,, now i feel stupid :P .... its been a while since i've used these commands , seems forgot the basics :P

will try this and will get back to you
[One (M8) General] EddyOS:
Yep, missed the build quality and speakers. Gone GPe on it, mind ;)
[One (M8) General] seadersn:
you could've had the solution earlier ;)
[One (M8) General] exocetdj:
No one can escape the awesomness of the m8 forever ;) :good:

until the next flagship anyway lol!!!!
[One (M8) General] EddyOS:
Yeah, I reckon the M9 (or whatever they decide to call it) will be a bit special - upgrade due it July as well! :D
[One (M8) General] exocetdj:
I'm on m8 til next feb then i will wait for new flagship then (m10!?, UBER HIMA?)

m9 sounds great but i cannot upgrade as need to move house etc, at least with advantage m8 should be seeing updates all through 2015 and then maybe in jan/feb next year :)
[One (M8) General] EddyOS:
Yeah, although my upgrade is due I might just go to SIM-only and keep the M8 - it's SO nice being back with it
[One (M8) General] exocetdj:
can agree with you on that one :)

got a brilliant device that should get updates for the forseeable and s off. I want for nothing more at this particular time lol ;)
[One (M8) General] EddyOS:
I would've got a Nexus 6 if it wasn't so huge and the screen AMOLED (not a fan). GPe on the M8 is exactly what I want :)
[One (M8) General] exocetdj:
lol 5 inch screen is perfect, GPE is good but being a sense whore myself, il have to pass on that, although i was on GPE lolli for a week and the two are strikingly similar in places
[One (M8) General] boys501:
my OS is 3.28.401.7 !! i can use the One_M8_3.28.401.9_odexed.zip !!!! are there any risk !!!!!!!!! my cid is htc__002
[One (M8) General] EddyOS:
Yep, of course you can - it'll update you whilst you're at it :)
[One (M8) General] boys501:
thank you man
[One (M8) General] SabalSabal:
Hey thanks for this guide. A couple of questions that I would appreciate if you could answer.

1). My main purpose is to go back to stock is so I can get the OTA updates so that I can upgrade my boot loader which can allow me to install the new custom roms available (ex: CM 12). Will thus guide be suitable for that purpose?

2). My m8 is S-On. I presume I can still use this guide and just skip the super su steps?

3). You mentioned the RUU. Can I use the RUU on an S-On device?

Thanks so much in advance.
[One (M8) General] EddyOS:
1. Yes (well, the FW part anyway)

2. Yes

3. Yes, so long as your CID matches on listed in the OP
[One (M8) General] SabalSabal:
Thank you so much for the reply. A couple of follow-up questions.

1). Assume that I follow your guide, go through all the OTA's and eventually get boot 3.19. Since I flashed a stock rom and stock recovery, do I root again (pretend that I have a new m8) by going to the HTC website, unlocking the boot loader, etc?

2). And on this page, for my htc with cid htc_001, there seem to be multiple android backups ranging from 1.12.xy to 3.28.401.6 The one listed on the op is 3.28.401.9. Does it matter which which one I pick or is the lower one safer to choose?

Thanks a ton.
[One (M8) General] EddyOS:
If you follow the links on the OP you'll be on the latest version of everything. Are you S-OFF at the moment?
[One (M8) General] SabalSabal:
No sir, I'm S-On which is why it's tedious I'm told. And as for being on the latest version of everything, I heard that if you flash a 1.12.xy firmware vs the 3.28.401.9, it will be safer because I won't miss a necessary OTA. Apparently if I flash 3.28.401.9, I could miss an OTA which could brick my device when I decide to flash a custom rom. Again thanks for the help. :)
[One (M8) General] EddyOS:
If you're S-ON you can't flash an older FW version. What are you on at the moment? Paste the output of fastboot getvar all if in doubt
[One (M8) General] SabalSabal:
Here you go:

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.16.0.0000

(bootloader) version-baseband: 1.15.2133156.UA13G

(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: ab0efa49

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

Why can't I flash an older firmware? If I can't flash an older firmware then how do I get back to stock? Is it that only s-off devices can use the newer roms? That would be contradictory to what I've heard.
[One (M8) General] EddyOS:
You can get back to stock using the 3.28.401.9 RUU ZIP. Just download THIS and rename it 0P6BIMG.zip (not 0P6BIMG.zip.zip) and put it on a microSD card. Power down the phone and boot into HBOOT (power and volume down) and it should read the file and put you back to 100% stock. you will need to relock the phone I think as well

As to why you can't flash older FW, that's the point of having S-OFF as it unlocks everything. If S-ON you can only flash the same or newer
[One (M8) General] SabalSabal:
I apologize for these last questions but here they go:

1). How would I relock the phone And is it necessary?

2). Once restored to stock using the RUU, would I get OTA updates?

3). For the RUU do I need the original recovery?

4). And do I need to unlock the boot loader again after the OTA updates finish once I decide to download a custom rom?

Lastly, thank you so much for all your help. Me and my phone appreciate it.:)
[One (M8) General] EddyOS:
1. fastboot oem lock, and yes you need to relock if S-ON

2. Yes

3. No as it doesn't use recovery (but it does flash the stock one)

4. Yes
[One (M8) General] SabalSabal:
I'm getting an error when I flash firmware.zip after fastboot oemRUU. Are you sure we can use the RUU on s-on devices? Because this thread: http://xdaforums.com/htc-one-m8/general/htc-one-m8-european-signed-ruu-0p6bimg-t2911563

mentions that a european cid has to be s-off?
[One (M8) General] EddyOS:
Depends if the RUU is signed or not. I assumed it was but if not it will fail. Might may very well need S-OFF for it
[One (M8) General] SabalSabal:
Maybe it's because I didn't lock the boot loader properly? I'm supposed to fastboot oem lock before putting this on the sd-card right?
[One (M8) General] EddyOS:
Yes, but the point of S-OFF is to allow you to flash anything whether it's digitally signed by HTC or not. If the RUU ZIP isn't signed it'll fail if you're S-ON (as you are)
[One (M8) General] SabalSabal:
So is there no way for me to be s-off anymore since I run an older boot loader? (and run a non-sense rom)
[One (M8) General] EddyOS:
If you can flash a Sense ROM based on 4.4.2 you should be able to S-OFF using Sunshine and then you're good to go but that's outside the scope of this thread...
[One (M8) General] fris0nl:
No wifi after flash

Hi guys,

I tried the method of the OP but after flashing my wifi doesn't work anymore. i have an E11, S-OFF, unlocked bootloader.

Can anyone help me?
[One (M8) General] Mr Hofs:
i replied in your Q&A thread, any update there ?
[One (M8) General] fris0nl:
Yes i tried but it still doesn't work!
[One (M8) General] Mr Hofs:
Since you are s-off i suggest you go back to lets say a 1.54.401 firmware + stock matching rom and perform all official ota's again ?!
[One (M8) General] redgolf:
Hi This is my getvar from fastboot

(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__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

my recovery is Philz Touch 6.25.5

I am running skydragon SD+GPE444+v3.0.1,

I want to return to stock is to run GPE - Lollipop, but can not cause I can not update firmware as I am S-ON.

I had downloaded openrecovery-twrp-2.8.3.0-m8.img and flash with fastboot, "writing 'recovery'.. OKAY [0.905s]"

rebooted in HBOOT, select recovery

then "Entering Recovery....." screen comes up....

But it then just hangs on that screen ???

help please !!!!!
[One (M8) General] EddyOS:
In this instance you have to use an older version of TWRP as the latest only works on the newer Android versions. Try using 2.7.x and it should work :)
[One (M8) General] SabalSabal:
If we're s-on, do we still need to remove super su or does it go away by itself before flashing the firmware? What are the disadvantages if super su isn't removed?
[One (M8) General] EddyOS:
You have to remove SuperSU, otherwise you're not stock. Moving forward, OTA updates between Lollipop versions fail even if you have root...
[One (M8) General] redgolf:
thanks

After installing one_M8_3.28.401.9_odexed.zip, using openrecovery-twrp-2.7.1.0-m8

phone boot up

my WiFi is not working !!! can not switch it ON ..:crying::crying::crying:

more help please ???
[One (M8) General] EddyOS:
Did you flash the FW package at the end of the guide? I'm guessing not...
[One (M8) General] redgolf:
Silly me, but I thought I can not flash firmware as I am still S-ON, & sunshine need to be stock for S-OFF

but I tried anyway and get

"Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem rebootRUU

...

(bootloader) Start Verify: 3

OKAY [ 0.015s]

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot> fastboot flash zip I:\HTC\firmw

are.zip

target reported max download size of 1830711296 bytes

sending 'zip' (43011 KB)...

OKAY [ 2.388s]

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.738s

C:\Program Files (x86)\Minimal ADB and Fastboot> "

It failed !!
[One (M8) General] BerndM14:
Of course yes! Though I don't think you'll be denied OTAs if you at least have a stock ROM and stock recovery with S-OFF:confused: Don't quote me on it though lol :D
[One (M8) General] The1nonly1:
Ok. So stock recovery is required for OTA as well?
[One (M8) General] BerndM14:
As I understand it yes, perhaps [MENTION=2258271]EddyOS[/MENTION] could help more on that or correct me if I'm wrong on it. Though that's how I understand it

Then perform a nandroid backup, this will backup also the stock HTC recovery that is needed in combination with the stock nandroid backup to be able to recieve official HTC OTA's

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

Mr Hofs Collection of stock backups etc It's stated as above in the first post.
[One (M8) General] EddyOS:
You will need to have the stock recovery for OTA updates, but flashing the FW package restores the stock recovery so you're good to go
[One (M8) General] b0gd4n:
Hey there.

I want to return my M8 to warranty repairs and therefore have to return to stock.

I have CID H3G_001, root, unlocked, and S-OFF.

I have found the stock H3G__001 nandroid backup and I understand that I have to flash that and so on.

What I do not understand is related to the S-OFF flag. Do I HAVE to make the phone S_ON to get warranty repair?

What happens if I make the phone S-ON? Am I not able to make it S-OFF again?

Thanks!
[One (M8) General] EddyOS:
You can leave it S-OFF, they don't seem to care/check it anyway!
[One (M8) General] b0gd4n:
ok, but if they were to check and it would be S-OFF, would it mean that the warranty would be void?

Also, what happens if I S-ON before sending? Does it mean that I cannot S-OFF again?
[One (M8) General] EddyOS:
1. Some phones go out S-OFF so they shouldn't care

2. If you got S-OFF once you should be able to get it again. As you don't have an unbranded phone this guide doesn't fully apply as the firmware isn't for your device. I'd use the backup available and then flash the stock recovery, lock the bootloader and remove tampered if you need to but otherwise leave it S-OFF
[One (M8) General] housry23:
I have some first hand knowledge on this. You should most certainly go back to s-on. I had some dead pixels and called HTC. They offered to replace my phone. I had to pay $19 for shipping both ways through HTC. I had to send my phone to them, then they would inspect it and send me a new phone. I returned to stock except I left it s-off. Well.... After they received my phone, I got an email saying in order for them to go on I would have to pay $140. To make a long story short, it was because of s-off. I did get them to replace it for free, but it took much lying and arguing.

Now... The problem is, getting s-on is not the easy. Well, it's easy to do... But it doesn't work every time from what I'm getting. So, try to go back to s-on if you can.
[One (M8) General] Black Antitoon:
Can you please elaborate (or link some topics) why it doesn't always work? This is the first time I hear this.

Thanks. :good:
[One (M8) General] housry23:
Well I read it somewhere that the fastboot oem writesecureflag 3 is hit or miss. It may or may not work. I haven't tried and I haven't gotten my m8 back yet to test it. It's just not guaranteed to work. That's all I know. I don't remember where I read it. Might have been m7 forums.
[One (M8) General] EddyOS:
It's not that it's hit and miss, it's that if you're not 100% stock it can brick the phone. As for going back to S-ON, I didn't when I sent my Sensation and Desire to HTC for repair, both were fixed and sent back FOC under the warranty. Might be different elsewhere but a hardware fault isn't caused by S-OFF
[One (M8) General] housry23:
No a hardware fault is not caused by s-off but it does void the warranty. I had to plead and beg them to replace my phone without charging me. S-off cannot cause dead pixels, but they didn't care. The person that inspected my phone took pictures of the bootloader with s-off. I think it depends on who inspects the phone. This happened just this week.

Sent from my OnePlus 7a
[One (M8) General] EddyOS:
Must be different in the US to the UK, our Laws protect the buyer and a software change that cannot cause a hardware fault cannot be used to void warranty. HTC have never had an issue with repairing my past phones and even if they did, the retailer has a duty to replace a device not working correctly. If you can set back to S-ON confidently then by all means do so, but you then take the risk of bricking the phone (and HTC would then probably replace it as it no longer turns on!)
[One (M8) General] housry23:
Yes I've read that before. Must be nice! Your government cares about you more than ours for sure!
[One (M8) General] deeznuts:
If your sending for repkaxment through a carrier no issues. I've sent phones back to AT&T with custom Rom still on and custom recovery and no issues. Now if ur sending back to HTC themselves, well that could be different as some users have pointed out. Luck of the draw I guess with HTC. With phone carriers though or third party warranty companies, I think they hardly check that stuff or care. Then again this was about 2 years ago, don't know if things have changed since?

If carrier then I'd try to at least have stock Rom and no root and stock recovery before sending.

Worst comes to worst throw phone in microwave for 30sec and its literally dead. Dead phones tell no tales ;)!
[One (M8) General] Razorbacktrack5535:
How can I get S-ON after following this guide? Thanks
[One (M8) General] 4onu:
Amazing guide !

after complete all process still have SU ( uninstalled in app) after reboot
[One (M8) General] jureca:
Me too I tried it, I give SuperSU desistalar and reboot back out, I think there's only one way to remove SuperSU and have a RUU, but not removed.
[One (M8) General] EddyOS:
That's strange, it was removed after a reboot for me. I'm afraid I don't know what to do in that case :(
[One (M8) General] redgolf:
another thing

now my version-baseband: INVALID_VER_INFO

"

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.16.0.0000

(bootloader) version-baseband: INVALID_VER_INFO

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

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

(bootloader) serialno: xxxxxxxxxxxxx

(bootloader) imei: xxxxxxxxxxxxxxxxxx

(bootloader) imei2: Not Support

(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

all: Done!

finished. total time: 0.008s

"

that is weird !!!!
[One (M8) General] Mutasek24:
If you are S-ON you bootloader must be RELOCKED

fastboot oem lock
[One (M8) General] EddyOS:
If you've done everything in the OP in the right order it should be fine. Perhaps factory reset in recovery and see what happens. Other than that post in Q&A as this isn't a help thread :)
[One (M8) General] redgolf:
thanks very much for your help..

Will retrace steps again..
[One (M8) General] fris0nl:
Could you please point me to the location where i can find the correct firmware and matching stock rom? I've been looking for hours and i'm getting nowhere. This is so frustrating! :eek:

I have the E11, does that make my model european?

Thanks for helping me!
[One (M8) General] SabalSabal:
In the original op, it mentions that you have to install supersu again after flashing the stock rom. You only have to install it again if it's removed automatically when you install the stock rom right? Then why do you need a special mod to remove the super su in the later step when it's already removed automatically in step 1?

Also, the op doesn't seem to mention when to re-lock the boot loader. After which step does it need to be done if one is s-on? Thanks a lot. You've been amazingly helpful on this thread. Cheers.
[One (M8) General] EddyOS:
If it's listed in the OP, yes

As for where to find the files you'll need to do some searching. FW is on here but I don't think the stock ROM is so you'd have to use a backup from the Nandroids thread
[One (M8) General] fris0nl:
Ok. So when i download a matching nandroid, i simply have to put it in the backup folder of TWRP and flash it? So first flash firmware and then flash the matching Nandroid backup?
[One (M8) General] EddyOS:
Doesn't really make a difference but I'd do FW first and then the backup
[One (M8) General] Mr Hofs:
HTC E11 is wwe unbranded Dutch device (just like mine) check the firmware, nandroid backup thread here in the general section (on top stickied) to get the firmware and in that thread you can also find a lot 1.54.401 nands.
[One (M8) General] fris0nl:
It worked! Finally guys! I think i was doing something wrong with the nandroid backups. I'm on old firmware now, but installing OTA's as we speak. I also managed to remove the tampered flag and returned the bootloader to locked :D

Thanks a lot!
[One (M8) General] Bombi22:
dead link

link for the Odexed file doesnt work
[One (M8) General] EddyOS:
OP updated with new link, Mike moved them ?
[One (M8) General] SabalSabal:
In the original op, when do we fastboot oem lock. After which step? Thanks
[One (M8) General] Mutasek24:
Before flashing FW (after 5 step the only when you are S-ON)
[One (M8) General] EddyOS:
If you're S-OFF you don't have to as one of the steps locks the bootloader again
[One (M8) General] SabalSabal:
Thanks a lot. One last question. If we're s-on do we have to do the super su steps such as removing it? Or does super su automatically go away. Again I'm s-on.
[One (M8) General] EddyOS:
You still have to remove it otherwise it stays there
[One (M8) General] SabalSabal:
Hi, I installed the original rom and it installed fine. I haven't flashed the original firmware yet but I've noticed that my wifi isn't working and I can't even get into the boot loader (to fastboot). Any help?
[One (M8) General] EddyOS:
No FW = No WiFi

Also, go to Settings>Power and turn off 'Fast boot' and you'll be able to turn the phone off to get to the bootloader

Seriously, though, this is all basic rules of flashing. The OP is a complete guide to get back to stock. Miss bits out, it won't work
[One (M8) General] Mutasek24:
Try factory reset in bootloader and see what happens. If not reflash backup/rom again.
[One (M8) General] SabalSabal:
I reset it. No go. But how do I reflash again? I lost my custom recovery and root. Would I have to root again?
[One (M8) General] SabalSabal:
Eddy, if we're s-on can we directly flash the new Android 5.0.1 - 4.16.401.10 RUU for the European phones thus bypassing the entire OTA system. My wifi isn't working after following the op instructions and while I do have the 3.19 bootloader, my phone isn't functional because of the failed wifi. I was hoping that the 5.0.1 RUU could circumvent the issue.
[One (M8) General] EddyOS:
Yep, of course you can but I'll offer no support in this thread...
[One (M8) General] SabalSabal:
Fair enough. But to clarify it still works if we're s-on right?
[One (M8) General] EddyOS:
Should do, but again this isn't the thread to ask in - ask in the RUU thread (or at least read it first)
[One (M8) General] AFTERCRASH:
a. Download this 'unsupersu' ZIP file HERE (thanks to [MENTION=3315415]jbeez[/MENTION] & [MENTION=3525160]SaHiLzZ[/MENTION])

Hello guys, unsupersu.zip the file not found. Please help.

Thanks so much :)
[One (M8) General] EddyOS:
Google'd it in 2 seconds...

http://xdaforums.com/showthread.php?t=2321585
[One (M8) General] jbeez:
This should do it, i dont have the original on the computer im using atm but i can reupload that one later, this is the same thing but I wrote it for a friend so its just got some different wording on the screen when its working
[One (M8) General] AFTERCRASH:
This is ok for M8? Thanks bro
[One (M8) General] jbeez:
ive used it on m7, nexus 4, nexus 5, oneplus, its not really phone specific.

this is what it does straight from the script,

mount("ext4", "MTD", "system", "/system");

delete("/system/xbin/su");

delete("/system/bin/su");

delete("/system/app/Superuser.apk");

unmount("/system");

mounts the system partition, deletes su bins and the superuser apk.

I took koush's superuser zip and just reversed it heh
[One (M8) General] AFTERCRASH:
Anyone have the file unsupersu.zip? For m8? Thanks in advanced the link is down[emoji17] and i want to revome root...
[One (M8) General] EddyOS:
Are you joking? Read literally three posts above yours...