yashsingh1/xdaforums huggingface dataset:
[One (M8) General] redpoint73:
You only need s-off for the method given at the top this thread (to return to stock). However, the method in this thread is long obsolete. There are more up-to-date methods to return to stock (Euro version) that do not require s-off. I've addressed this several times in this thread. I wish folks would read the updates (skim through the last few pages of the more recent posts) on a thread, before following instructions that are over 4 years old! It's really just common sense to do so.

You do NOT need s-off to flash the signed RUU intended for your (Euro) device. Which can be found (with instructions) here: https://xdaforums.com/showpost.php?p=64926626&postcount=6

In many cases, it is not recommended to change your CID and flash other version RUUs (for other regions). Doing do will change the phone's band support, and possibly break or otherwise affect the connectivity you have with your local carrier. Unless of course, the specific intent is to change the band support.
[One (M8) General] YahyaChagri:
THANK YOU

BTW cmd does not work in windows 10 so i used the data file in the htc m8 toolkit( she cant flash the ruu it self it says " not enough storage") + i copied htc_fastboot.exe with the included fastboot.exe

RUN the cmd.exe

there will be an error and u have to enter the command " htc_fastboot flash zip RUU.zip " twice but the cmd tries to resend but it gets stuck

the trick is to close the cmd before the RUU reboots and then run the cmd.exe again and enter command " htc_fastboot flash zip RUU.zip
[One (M8) General] redpoint73:
If you are having trouble with the fastboot method, then just use SD card method. Rename the RUU zip to 0P6BIMG.zip, copy to SD card, and boot to bootloader, and it will install automatically.
[One (M8) General] YahyaChagri:
The fastboot method worked

SD card didnt work it says no image or wrong image
[One (M8) General] skooter32:
hi a need the full flashable firmware with the GPT file in it htc one m8s?
[One (M8) General] Einwod:
You're in the wrong place. This is for European M8. No other brand.
[One (M8) General] TheMathMan:
OK. Confused.

Flashed the Odexed stock ROM. Clicked "No" to rooting in TWRP. Rebooted. Back into recovery and flashed SuperSU zip. All OK in TWRP and rebooted system. No superuser, so can't do the next steps.

Any idea? Tried it a couple of times now.

---------- Post added at 08:17 PM ---------- Previous post was at 07:25 PM ----------

More info. If I install SuperSU nothing happens. If I install SuperUser I get the app installed and it says its root but adb shell wont give me # despite the app saying it had been allowed.

If I then try and switch to SuperSU app and have that take control of root then it says it has failed to do so and reboot.

So thats where I am, Stock Odexed. No root...
[One (M8) General] EddyOS:
Going on from my other post, it sounds like the SuperSU package isn't working on the new .10 build. You could try Koush's Superuser package (HERE) and see how you get on. If that also doesn't work you'll have to either stay on .5 for now if root is important or move to .10 and not root for now
[One (M8) General] TheMathMan:
I did use Superuser. Seems to install, app is there and it shows it allowed shell in its log, BUT it doesn't give # in shell at all.
[One (M8) General] EddyOS:
Did you use the flashable ZIP or just the app off the Play Store? The link above is the ZIP
[One (M8) General] TheMathMan:
The flashable zip
[One (M8) General] EddyOS:
Here's SuperSU 1.97, which was the one I used when I first wrote this guide. Perhaps give this a go?

http://download.chainfire.eu/416/SuperSU/UPDATE-SuperSU-v1.97.zip
[One (M8) General] BerndM14:
I used UPDATE-SuperSU-v1.94 and it still worked fine after the .10 update :good:
[One (M8) General] TheMathMan:
So what am I doing wrong??

---------- Post added at 09:22 AM ---------- Previous post was at 09:00 AM ----------

Ok, can you tell me if this is Ok as I got it working this way.

Flashed stock in TWRP. Didn't reboot. Flashed SuperSU zip. Rebooted and its fine and can get root in shell.

Your guide specifically reboots before flashing SuperSU.

Will this be an issue?
[One (M8) General] EddyOS:
The guide is what worked for me and may not necessarily work for all, although it should. If you didn't reboot and it's working then go for it :)
[One (M8) General] TheMathMan:
Ok cool. I just wondered as you specifically said "No" to rooting with TWRP after install. I know this isn't quite the same. I'll crack on then. Thanks.
[One (M8) General] EddyOS:
Personally, I prefer to flash a package for SU as opposed to using the on in TWRP but it's my preference and, as it's my guide, it's what I posted. If you want to do it the other way then by all means do so - whatever works! :D
[One (M8) General] TheMathMan:
Hi,

This wipes recovery off?

I get a red triangle/exclamation if I try and reboot into recovery now, and there is no recovery listed in fastboot.

I guess without a .10 recovery the .5 one should be flashed?

Paul
[One (M8) General] nickrule1896:
Correct me if i am wrong! :p

Let's say i am now on HTC_044(Is this International version? I'm from singapore) ViperRom S-offed, and i did a nandroid backup of my stock rom before flashing the viper rom.

1. Restore phone to the nandroid backup of my stock rom that i made. ---> this is to remove the rom i installed

2. Install SuperSU ---> necessary for step 3

3. Remove tampered and unlocked

4. Flash stock recovery which for my case - STOCK RECOVERY 1.54.707.5 ---> this is to remove TWRP/Philz

5. Remove SuperSU

Back to 100% stock for warranty purposes. Is this correct?
[One (M8) General] TheMathMan:
I think so, although recovery flashing has to be done before the relock bit.
[One (M8) General] nickrule1896:
But the first post of this thread mentioned "step 5. FW flashing" is done before "steps 3&4. tampered and relock"?
[One (M8) General] EddyOS:
That is the stock recovery ;)
[One (M8) General] EddyOS:
No, FW is Step 5, which comes after 3 and 4
[One (M8) General] EddyOS:
Swap 4 and 5 around if you want to use the unsuperuser script in TWRP and then flash the firmware - some say this works better
[One (M8) General] TheMathMan:
Yep, but if you have relocked your bootloader, you can't flash a recovery.

I have now redone this but flashing the .5 recovery after getting rid of the tampered bit. It then got updated with the firmware flash. At the end I reset the device which went into recovery and had a green circle arrow thing so that is good.

HOWEVER - when you go through the setup of the device, the last page, Tell HTC and Location Services - it still has the red text that says its a test device.
[One (M8) General] EddyOS:
I think I'm going to re-write some of the OP as, although it's quite easy to follow, some are finding it hard to follow...
[One (M8) General] nickrule1896:
Oops i meant after :p

Oh yea, TheMathMan made a good point, if we do FW Flash(which is flashing of a stock recovery if i am correct, since it would be needed as a stock recovery is not included in an nandroid backup) after relocking the bootloader, won't it be impossible?
[One (M8) General] EddyOS:
Not if you're S-OFF, no ;)
[One (M8) General] TheMathMan:
As recovery hadn't stuck I tried flashing recovery through fastboot manually and it kicked up and error after relock. I am S-Off. Unlocked and flashed fine.
[One (M8) General] EddyOS:
Recovery did stick, I'm just guessing you'd never seen the stock recovery before ;)
[One (M8) General] TheMathMan:
I had the red triangle with exclamation on reset. When I reflashed it the reset worked with green circular arrows.

All done now thanks. Shame about the red text staying in the Tell HTC bit.

---------- Post added at 03:34 PM ---------- Previous post was at 03:33 PM ----------

And good guide btw, collating all the bits together made it easy for me.
[One (M8) General] nickrule1896:
Ok i seem to be getting the hang of it. So actually, just flash a nandroid backup i made right after unlocking BL, then install supersu and change tempered and reset BL. Then when you say flash a fw package, you mean flash a stock recovery meant for my CID and firmware? And it is possible due to S-off. Is this correct?
[One (M8) General] EddyOS:
Yes and no. After you unlocked the bootloader, a few apps/files were removed so the OTA update(s) will fail as they're missing. If you have an EU unbranded M8 you'll have to use the file I linked as that is the complete ROM file. If you have a branded handset then you'll have some more work to do...
[One (M8) General] pmathis:
Stock Splash

Hi guys,

Followed this guide to the letter and glad to report my UK Vodafone HTC M8 is back to sense...all is good except my splash...I used the google splash but now can't seem to restore the stock, I have found versions but keep getting the error "parsing 24 android-info fail" when I try to flash. I am running 1.54.401.10 and used the rom and FW provided by the OP.:confused:
[One (M8) General] MRKikas:
Another way

Hi [MENTION=2258271]EddyOS[/MENTION] thanks for this guide, i manage to upgrade from 1.54.401.5 to 1.54.401.10 but with some different steps.

My intention was not to stay at stock but only to upgrade for the new base (radio, hboot, firmware).

Because I'm S-Off i know that I could simple flash firmware.zip but I wanted to have an backup of the last HTC stock.

So, my guide was:

1 - Backup up my actual Rom (Renovate)

2 - Restore my nand stock rom 1.54.401.5

3 - Reboot, once rebooted I received the OTA for upgrade to1.54.401.10 but didn't do it....

4 - Reboot to fastboot and flash the stock recovery of the nand (1.54.401.5_Stock Recovery)

5 - Reboot rom and now i accept the Ota Update

6 - The phone rebooted and flash the new base (radio,etc...)

7 - Phone booted and all OK

Didn't had to lock/relock the bootloader, I think the most important is to have the stock kernel an recovery and that's it.

I stayed with the "unlocked bootloader" and S-off

Then flashed the TWRP 2.7.0.2, made an backup of stock Rom (1.54.401.10) and restore my Renovate Rom and all good...

I hope my humble guide help someone in the same situation.

Best regards
[One (M8) General] nickrule1896:
OK this may sound really stupid, but how do I know if I have an unbranded or branded m8? Mine is bought in Singapore, HTC_044. And when you mean use the file you linked, is it the nandroid backup or the few package file you're talking about? And what are the extra steps if let's say I'm on a branded phone. Sorry for so many questions... :/
[One (M8) General] BerndM14:
I might be wrong but I think it goes like this.

Branded - Any phone that is carrier specific, Vodafone, Verizon, Sprint, O2 etc. These carriers will usually add things to the device to make it "unique" to the carrier, it also includes some apps then, the CID will usually start with the carrier specific ID too Vodafone - VODA for example.

Unbranded - Any phone that is not carrier specific i.e any phone with HTC CID which is the international(carrier free) version.

At least that's what I think, if I'm wrong though, I'd also like to know :confused:
[One (M8) General] EddyOS:
HTC__044 isn't covered by this thread, but you can use the backup in the backup thread which matches your handset. Yours is unbranded, but it's the Asian phone, not the EU one
[One (M8) General] EddyOS:
If you're S-OFF what you've done is correct, but the point of this thread is to go back to 100% stock, e.g. locked/not tampered but keep S-OFF :)
[One (M8) General] westentertainer:
ooh **** followed the first part flashed the odex rom its stuck on htc one screen ,cant even press on off button to clear it why oh why do i mess
[One (M8) General] Black Antitoon:
Hold power+volume up for 20 seconds or so. It should be equivalent to pulling the battery, in any state, and will reboot the phone.

If you want to go to the bootloader, then of course you will have to press and hold volume down as soon as it reboots.
[One (M8) General] EddyOS:
I've made a few changes to the OP with regards to removing SuperSU, should be easier to follow and achieve :)
[One (M8) General] otariq:
I did a search and somebody said they still had the "test device message" under tell HTC in the settings. Is it true that there's no way to get rid of that? I'm on a stock ROM unrooted with stock recovery and locked boot loader. No tampered message but I am s off and that message is showing up in the settings.
[One (M8) General] EddyOS:
If the phone is S-OFF you'll always have that message in Settings>About phone>Tell HTC. If you go back to S-ON then it should remove it (I don't care so not tried)
[One (M8) General] otariq:
Okay cool. As long as it goes away that's good. If I ever have to send it in I'll just do the ruu and go back to s on
[One (M8) General] EddyOS:
You don't have to go back to S-ON to send it under warranty (at least not in the UK)
[One (M8) General] metaphz:
Anyone know where to find the US Version of the firmware .1540 CID BS_US002? I've looked everywhere and only find international and US Carrier specific.
[One (M8) General] chrisully:
after doing this cant unlock bootloader am on stock and cant do via unlock code or via htc dev
[One (M8) General] otariq:
You should still be able to use htcdev. I returned to stock and didn't have root so I reused my token code to unlock it. Then flashed twrp. Just make sure USB debugging is on and you have the HTC drivers installed. I reinstalled windows so I just installed HTC sync manager to get the drivers and then uninstalled the program. Use adb devices to make sure the phone is showing up
[One (M8) General] Huigie:
Briljant how-to, easy as f.ck. Had Viper on it, ARHD, converted it to GPE and now back to stock. Wonder why I even bothered with the other roms. HTC has done a great job with theirs. Missed the horizontal scrolling of the GPE so I installed Nova launcher. Converted it to ART last night and it feels very responsive. Love it!
[One (M8) General] EddyOS:
Taken from this thread...

http://xdaforums.com/showpost.php?p=52869865&postcount=189

Here's the link to the 1.54.1450.9 firmware package ;)

https://www.hightail.com/download/ZUczc0w0NHZlcEpDaDhUQw
[One (M8) General] cjm1979:
Thanks Eddy. Needed to do this to claim the free Google Drive allowance. Got a bit giddy when i got the phone and unlocked it before claiming it.
[One (M8) General] nickrule1896:
So if I have an Asian phone as you've mentioned, I will need to get the backup room from the link you provided that is meant for HTC_044, and use it as my nandroid backup. Then when it comes to recovery flashing, I just need the corresponding recovery file from the same thread correct?
[One (M8) General] b0gd4n:
just wanted to get this cleared.

So, in the OP, the first step is to flash a stock rom, the normal way you flash any custom rom. Now, you specified here that I need Philz to flash the nandroid backup provided. Do I flash it with Philz like any other rom, or do I need to restore the backup?
[One (M8) General] Jyotirdeb:
Flash the nandroid backup means you should restore the backup.
[One (M8) General] b0gd4n:
ok, so the first step is different then.

do you know where do i need to place the nandroid backup in order to get picked up by philz recovery?
[One (M8) General] Jyotirdeb:
Sorry but I use TWRP. :(

But can check [MENTION=4252827]Mr Hofs[/MENTION] thread of stock backup.It has instructions.
[One (M8) General] EddyOS:
It depends if the backup was made in Philz or TWRP - they aren't compatible from what I understand (I could be wrong though)
[One (M8) General] b0gd4n:
you did mention the backup provided is made with Philz, and I'll flash philz now. It just was not clear that I need to restore the nandroid or just flash it!

Thank you!
[One (M8) General] EddyOS:
In which case you have to put the backup in the same way you'd create one (I use TWRP so don't know how Philz backup procedure works, e.g TWRP backs are in /sdcard/TWRP/<serial-number-of-device>/backup/backup-folder). Then you just restore it as you would a normal backup
[One (M8) General] b0gd4n:
OK, I succesfully got to the very last point of the process, and I am stuck at 6e, where I need to flash the stock recovery.

You have given me a .img file, and in the instruction it is specified a zip file therefore, when I do fastboot flash zip firmware.img, I get:

target reported max download

sending 'zip' (24576 KB)...

OKAY [ 1.897s]

writing 'zip'...

(bootloader) zip header check

(bootloader) shift signature_

FAILED (remote: 32 header err

finished. total time: 2.138s

I tried fastboot flash recovery firmware.img and I get this:

target reported max download

sending 'zip' (24576 KB)...

OKAY [ 1.897s]

writing 'zip'...

(bootloader) zip header check

(bootloader) shift signature_

FAILED (remote: 32 header err

finished. total time: 2.138s

Can you please let me know what I need to do?

PS, the file name you provided is stock recovery 1.54.771.5 recovery.img

EDIT:

I have also done fastboot oem rebootRUU before trying to flash.

EDIT2:

ok, I rebooted the bootloader, in fastboot, and tried fastboot flash recovery recovery.img and I now get this:

target reported max download size of 1830711296 bytes

sending 'recovery' (24576 KB)...

OKAY [ 1.887s]

writing 'recovery'...

FAILED (remote: not allowed)

finished. total time: 1.897s
[One (M8) General] EddyOS:
It should be fastboot flash recovery recovery.img with the phone connected in fastboot and work, if not either the recovery.img is corrupt or something else is wrong...remember this guide is only for hat I've added so technically your questions don't belong here so I'm flying blind...
[One (M8) General] b0gd4n:
OK, so restarted, cmd and phone, phone in fastboot, plugged in the USB 2.0 port.

Re-downloaded the stock recovery from here http://d-h.st/ubq and checked integrity with md5 > all fine.

Renamed the file to recovery.img and copied it over tot he fastboot/adb folder.

fastboot devices

> returns the device name

fastboot flash recovery recovery.img

and I get this:

target reported max download size of 1830711296 bytes
sending 'recovery' (24576 KB)...
OKAY [ 1.900s]
writing 'recovery'...
FAILED (remote: not allowed)
finished. total time: 1.910s
[One (M8) General] EddyOS:
Is your bootloader locked or unlocked? It has to be unlocked to flash a recovery but if you're S-OFF I can make a ZIP to flash in RUU mode for you...
[One (M8) General] b0gd4n:
well, it's locked. That is what I understood from the steps (step 4 was to reset the unlock flag).

Do I have to unlock it, flash the recovery and then lock it again then?

EDIT: and yes, I am S-OFF.
[One (M8) General] EddyOS:
OK, this is why the guide is only for unbranded EU handsets! Branded phones are different...give me 5 minutes and I'll have something for you...
[One (M8) General] EddyOS:
Right, download this and flash it in RUU mode (it will flash with both H3G__001 and 11111111):

fastboot oem rebootRUU

then

fastboot flash zip recovery.zip

then

fastboot reboot-bootloader

It should work and you'll then have the stock recovery (you can check by going into recovery from HBOOT after it reboots the bootloader)
[One (M8) General] b0gd4n:
thanks mate! That worked!

Now, I need to return the phone to warranty and then back to normal (root and all that beauty)

Thanks again!
[One (M8) General] zat0x:
Where can i find a guide to regain s-on for after this guide
[One (M8) General] EddyOS:
You shouldn't really need to, and it's risky if you're not absolutely certain you're 100% stock, but it is

fastboot oem writesecureflag 3

Do this at your own risk, though, as if anything isn't stock you might brick your phone
[One (M8) General] b0gd4n:
Just to be sure, you don't really need S-ON for warranty repairs, right?
[One (M8) General] Jyotirdeb:
Yes.but you have to act like that you dont know your device is s-off.

Also it depends on which country u live in.As US and UK dont have problems with s-off but my country India does.
[One (M8) General] b0gd4n:
OK, I live in the UK, so there shouldn't be a prob.
[One (M8) General] carloss2013:
thank you guys life savers!!!!!!!!! phone now ready to be sent for repair
[One (M8) General] EddyOS:
You're welcome guys, glad I could be of help!
[One (M8) General] Jyotirdeb:
~( ' . ' ~)|( ' . ' )|(~ ' . ' )~ he he he

I personally always refer to your guide :p
[One (M8) General] b0gd4n:
Hey there.

I just received my device back from repairs and everything went fine.

I now want to get back to normal (root, unlocked, custom rom, etc).

Is the process different now that I used the guide to re-stock, or can I just use a tool like http://xdaforums.com/showthread.php?t=2694925 to get back on track?

thanks!
[One (M8) General] EddyOS:
IF you're still S-OFF...

1. Flash THIS zip file in RUU mode to get TWRP back

2. Use TWRP to root the phone/flash a custom ROM/restore your nandroid

3. Then use the guide to 'lock' the phone to unlock it again (if you wanted to)

That should do the job
[One (M8) General] brockyneo:
followed guide but now when tried to boot into stock recovery i get a pic of a phone with a red triangle any ideas
[One (M8) General] maurydes:
Simply,you have stock recovery...what wrong?
[One (M8) General] sasohamer:
Boot into Recovery and press Volume UP+Power Button once and you are in Stock Recovery
[One (M8) General] wblastyn:
Hi there,

Thanks for the guide.

I bought an unlocked, EE branded m8 from ebay. I initially unlocked, s-off and rooted it and installed a custom ROM. But I decided I just wanted stock Sense, so I changed the CID to HTC__001 using fastboot and followed your guide. Everything seemed to go ok except I can't see any option for manual software updates in the settings. I know they push OTA updates automatically but HTC's website seems to suggest there should be some sort of setting for it. Just wondering if something went wrong or if that's normal?
[One (M8) General] EddyOS:
Should be in Settings>About>Software updates from memory
[One (M8) General] wblastyn:
I did a factory reset and now it's showing.
[One (M8) General] didi_ghost:
Can anyone please help me out with this: http://xdaforums.com/htc-one-m8/help/noob-htc-m8-help-t2806176 ??
[One (M8) General] Mr Hofs:
Nice thread eddy ! Good job done here.
[Huawei Ascend P1] J88_Kev:
Hello,

I’m am new to the site but not to android phones been searching i have been searching high and low to try and update my Huawei U9200 (ascend P1).

My current build number is U9200-1V100R001C02B023 i sure there are new updates available but can’t get any of them to update. any help would be very much appreciated.

Regards,

J88_Kev
[Huawei Ascend P1] J88_Kev:
Right i have been doing more research and i believe that as my huawei P1 is locked to vodafone this is why i can't update firmware. Does anyone know if unlocking will allow the updates??
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] stasikgri:
My mobile is LG L3 II (e-430) and i cant enter emergency mode. I tried volume up+volume down+power but it jus takes me to the lg logo and is stuck there forever. The only thing i figured out is download mode, i can enter it by pressing volume down and plugging my usb cable into my PC. Is download mode same as emergency mode? I need help fast. Thanks.

EDIT: i am in download mode (it is the same as emergency, i have seen it on a forum) and then i do all the steps... (download firmware, kdz ...) then i launch software update and then the program stops responding and after some time it crashes. here is the log: Launching SW update

Unpacking KDZ

after that it stops responding and crashes :(.
[Optimus L3, L5, L7 Q&A, Help & Troubleshooting] IGGYVIP:
Thats normal i think

need more detailed log

use attached dbgwiev.exe (run this before you plug your phone let it run while you trying to flash and save results after and post them here :) )

but i seems normal to me it always program not responding while kdz are being unpacked once it does that it will come back :)

does it crash and ask you to close it even if you not touching it ??

you can try the kdz flashing program i have attached :)

let me know if you need a guide

but read Windows Enabler.doc first :)