yashsingh1/xdaforums huggingface dataset:
[One (M8) General] EddyOS:
Done and added md5s for other files
[One (M8) General] timbohobbs:
Hi, guide worked great thanks ? just one question , when phone is returned from HTC from repair, I'll be s off but no root and with locked bootloader. How would I best unlock , root without HTC dev again ? I suppose I mean how to install recovery without root ?
[One (M8) General] Shozuki:
Well lord knows what's going on here...

I started by flashing the recovery to the one linked here. It won't boot into recovery at all it just sits at "entering recovery..."

I was using a venom custom rom and TWRP 2.8.5.0 touch recovery.

I can boot into the phone, use fastboot and adb - but can't go any further in restoring the handset back to factory... All help appreciated.
[One (M8) General] DeeZZ_NuuZZ:
Fastboot erase cache

Gesendet von meinem HTC One mit Tapatalk

---------- Post added at 07:25 AM ---------- Previous post was at 07:22 AM ----------

If your phone is s-off you can easily unlock it without htc dev, but you dont even need it there should be a way to flash files with a locked and s-offed bootloader.

Also rooting the phone is meant to flash the root zip in custom recovery [emoji14] so it mostly gets confused

But thats not the topic..like i said there are ways for flashing custom recoveries without unlocking...you should use either the search button or google or read through a couple of threads in general forum from m8 ;)

Gesendet von meinem HTC One mit Tapatalk
[One (M8) General] mace0:
Excellent guide BUT.........

Hi Guys, excellent guide, i was failing and took my ages to work out why

I was using Hasoon2000s AIO Toolkit, and then putting ruu.zip in the toolkit folder not the data folder, couldnt find anywhere advising me to do this i just sorted it out myself, would have been useful to note that
[One (M8) General] EddyOS:
Or just not use a toolkit as they're not required ;)

The toolkit caused this issue so I won't make a note of it as it won't affect users doing everything manually
[One (M8) General] pmathis:
HTC_fastboot

Anyway to perform this on a Mac? I can't use the binary listed but do have fastboot installed...surely there is another way as without I only get the signature verification error but now HTC home has come in I'd rather use stock
[One (M8) General] EddyOS:
You could try copying the zip to a microSD card, boot into hboot and see if it works. But the MID/CID MUST match otherwise it'll probably fail
[One (M8) General] derWolf_:
One question: I want to return my phone to repair, but for that it needs to be completely stock - cid, mid, fw.... everything (and I'm S-off btw). I locked the bootloader following this thread, but now I need to change my CID to match my carrier's one, which is - VODAPE17. Now my question is, which RUU to use? Apparently I can't use the one provided in the OP, but I can't find any that matches the CID I have to have.
[One (M8) General] EddyOS:
Wrong thread. This is only for the unbranded EU model. Best ask in the Nandroid thread
[One (M8) General] derWolf_:
Last question - if there the RUU for this CID cannot be found, how to proceed from then in turning the phone to completely stock? (I know it is the wrong thread, and I shouldn't be asking this here, but it is urgent! Sorry about that)
[One (M8) General] pmathis:
Question....do you mean just copy the zip the the root of my ext SD and enter bootloader? Already checked mid and cid.

Thanks...sorry I'm being a dumbass just wish I could do this without HTC_fastboot, just normal fastboot
[One (M8) General] EddyOS:
Blame Google/HTC for not working with 'normal' fastboot!

You just need to rename the ZIP to 0P6BIMG.zip, copy the root of the microSD card then boot in hboot (not the bootloader) and it should find the ZIP and give further instructions
[One (M8) General] pmathis:
Houston we have lift off! ARHD was a great rom but the lack of OTA's was doing my head in.

Thank you Eddy!

:cyclops:
[One (M8) General] pmathis:
Should I flash twice?

So found I need to recreate my sdkinfo.xml but found the guide through searching on here. Just wondering if I have done this manually (forcing it to flash using SD card should I still do it twice?
[One (M8) General] david@ddjacobs.com:
Mac version?

Ignore me, I'm a ****. Just found the search bar.
[One (M8) General] Op3a:
Guys my M8 also have the VODAP304, my firmware is 4.19. I want to return it to 100% stock. If i have to change the CID to HTC__001, it will not be refused for warranty purposes?
[One (M8) General] Einwod:
This Nandroid backup will give you stock, chrome://mega/content/secure.html#!bFNHGIxQ!PcbrsWiMGCdpPWsAcGYcadzFbVVQgD6Q_BvrrwrWtGg you need a stock recovery. Then take the OTA when it's offered. Bingo.
[One (M8) General] Op3a:
Awesome! This is so confusing! Its a lot more easier to flash a custom rom :p . Please, can you help me to get the instructions/links to the stock recovery, and how I flash the nandroid backup and the stock recovery?
[One (M8) General] Einwod:
Everything you need is here: http://xdaforums.com/showthread.php?t=2701376
[One (M8) General] Op3a:
I already saw that thread, but the link to back to stock that is provided is to flash the RUU, and a TWRP recovery. How I do to flash a nandroid backup and a stock recovery image?
[One (M8) General] Einwod:
There are no RUUs for non US versions, only TWRP backups. You download the backup and extract it. Move the extracted folders into your TWRP folder on your SD card and flash from TWRP recovery. The stock recovery file has to be flashed AFTER you have flashed the backup. It's a simple process. Recovery image here: https://www.androidfilehost.com/?fid=95897840722642936
[One (M8) General] Op3a:
Wow. So, correct me if I'm wrong:

- Download Nandroid backup and Unzip;

- Put the files on TWRP;

- Enter in TWRP and restore Nandroid backup;

- Flash stock recovery through fastboot;

- done.

Is this? Or I'm wrong in something?
[One (M8) General] Einwod:
That's it. Really. A quite simple process. While you are downloading the backups, go into TWRP and make a backup of your current setup. This will also be the placeholder where you should put the extracted files when your download is finished.
[One (M8) General] Op3a:
Many, many thanks for your help. To conclude, I only have to S-OFF to lock the bootloader and I can sent him to warranty without problems, am I right?
[One (M8) General] Einwod:
You don't need S-OFF to relock the bootloader. fastboot oem lock
[One (M8) General] Op3a:
But will appear "relocked". I had read that HTC refuses the warranty, unless the phones says "locked". Mine says "unlocked".
[One (M8) General] Einwod:
With S-OFF you can remove the relocked flag, yes. It says so in the first post here and shows how to do it. HTC know that people unlock bootloaders, they even give you the method to do so. I can't see that a relocked bootloader will cause warranty issues, to be honest. If you want to have locked, by all means go ahead. I've just read somewhere that even if HTC make the phone S-ON again, Sunshine will work again free of charge as long as the IMEI number remains the same.
[One (M8) General] EddyOS:
Wrong! I link to the EU RUU in the OP and a few European carrier RUUs are on here as well ?
[One (M8) General] Einwod:
Apologies.
[One (M8) General] Op3a:
But for the VODAP304 there aren't any RUU, right?
[One (M8) General] shafez:
http://xdaforums.com/showthread.php?t=2701376
[One (M8) General] nkojic:
I have fastboot files in one folder from before this new metod of flashing. So my question is do i need to move this new "htc_fastboot.exe" and "4.16.401.10 RUU ZIP" files in my folder? My folder already hace one fastboot.exe file and some adb files. Its a little confusing...
[One (M8) General] EddyOS:
Yep, everything needs to go in the same folder
[One (M8) General] vofzxy:
will this method work on international variants of th eM8 too?

my m8 was a HTC__001 when i got it
[One (M8) General] EddyOS:
That's the EU one, and as the CID is listed in the OP yes this is for you
[One (M8) General] Pr0xiMUS:
Root HTC M8 S-OFF

After converting / returning your device back to 100% stock (and retaining S-OFF), you will probably want to regain root again after you get your device back from repair service. With following this steps you don't need to unlock bootloader, you'll just flash custom recovery via RUU and not via fastboot.

I followed this guide (RUU M8_VZW files (s-off only) by dottat) and modified it to make it work with M8_UL:

ROOTING S-OFF HTC M8

In the folder where is your ADB place RUU custom recovery TWRP 2.8.6.0 (download link: ruuM8_TWRP_2.8.6.0.zip ) and open command prompt. Enter the following commands (phone should have usb debugging enabled and connected to pc):

adb reboot-bootloader

(wait for device to reboot to bootloader)

fastboot oem rebootRUU

(wait for device to change to RUU mode)

fastboot flash zip ruuM8_TWRP_2.8.6.0.zip

(wait for flash to finish)

fastboot reboot-bootloader

Now, after you have TWRP custom recovery installed, you need to root device - flash SuperSU zip from http://download.chainfire.eu/supersu and reboot device. Done.
[One (M8) General] lofty5:
Just wondering something. I have been trying to keep all theflags in the boot loader stock. so software official and boot loader locked. I have been trying to turn son back on whilst retaining root however it triggers the software status modified flag. If i unroot before turn son back on and perform a factory reset will the software status official flag stay official?

is there anyway of keeping root and having son with the flag saying official?
[One (M8) General] EddyOS:
No, as rooting the phone makes it modified
[One (M8) General] Op3a:
Guys I restored the VODAP304 nandroid backup and flashed the stock b recovery but i still says "SOFTWARE STATUS: MODIFIED" . It's necessary to relock the bootloader to the modified flag disappear? Wich command do I have to run on fastboot?
[One (M8) General] shafez:
Please read the first post ;)
[One (M8) General] Incarceron:
Is there any way to restore an American HTC One m8 to 100% stock?
[One (M8) General] EddyOS:
Just get the RUU for your carrier and replace the EU files/CID with that of the carrier version
[One (M8) General] fajo:
Hello, how to return to the htc stock?(Google édition >>htc stock)

I handed in the Mid 0P6B17000 to 0P6B10000

I has Supercid but no flash or zip ruu works

I do not know the original Cid, m8 buy on ebay and google arrived in edition

thank you for your help
[One (M8) General] shafez:
Follow this thread:

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

Then flash this:

https://docs.google.com/uc?id=0B17smFr95pleeTQ5U1NzNkZzM0U&export=download
[One (M8) General] fajo:
Hello, Thanks you very much ;)
[One (M8) General] Kizzie7598:
Hello in a situation at the moment basically used to have phone on android revolution rom but recently wanted to go back to stock however the backup i made of stock was already rooted and i cannot remove the Super SU as it always never unroots the phone and re roots it everytime i reboot the phone. is there any way of me going back to stock, unrooted despite me being S-ON? The Software number I'm on is 4.16.401.10. Sorry about me being very unknowing to all this am fairly new to unrooting htc phones and any help will be very much appreciated. :)
[One (M8) General] Stappern:
hi i di alle the procedure and now im am

status official

s-off

locked

how can i get back to s-on??
[One (M8) General] Einwod:
There is no need to go back to s-on. Why would you want to? You could ruin your phone? Warranty does not matter if s-off.
[One (M8) General] NaderALDirany:
One M8 Dual SIM, needs to Install Stock ROM from scratch

I have read the full Thread, and a lot of other threads but with no success.

PLEASE need your help.

I have HTC oneM8 Dual SIM, It was on Stock ROM (KitKat), but I rooted it and installed TWRP recovery (Just to get root access).

Few days I received LoliPop update OTA, after it was successfully downloaded I took a copy of it to my PC.

But after it Auto-restarted the mobile, it went to TWRP recovery, i tried installing it using TWRP but did not work.

After That I wiped everything on my mobile (System, Data, SDCard, etc...), and I reinstalled the TWRP, and i can access recovery and Hboot ONLY. (FastBoot + ADB).

Note: I ran the Fastboot getvar all when i first bought it, and ran it again today, and i pasted the results.

Please, can you help me here to restore my original STOCK ROM, or to Install the new Update that I have a copy of it?

***************** LoliPop Update ZIp file Name:*****************

OTA_M8_DUGL_L50_SENSE60_MR_HTC_Europe_4.30.401.15-3.33.401.6_release_428495gkzen6r41ji8to70

***************** CURRNET fasboot getvar all*****************

version: 0.5

version-bootloader: 3.19.0.0000

version-baseband: 1.22.30306251.27G

version-cpld: None

version-microp: None

version-main:

version-misc: PVT SHIP S-ON

serialno: HT46MWM07435

imei: *********************

imei2: *********************

meid: 00000000000000

product: m8_dugl

platform: hTCBmsm8974

modelid: 0P6B64000

cidnum: HTC__J15

battery-status: good

battery-voltage: 0mV

partition-layout: Generic

security: on

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: 4c3fbd70

hbootpreupdate: 11

gencheckpt: 0

all: Done!

finished. total time: 0.159s

*****************fasboot getvar all when I first bought it*****************

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.18.0.0000

(bootloader) version-baseband: 1.18.30306251.05G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 1.45.401.12

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

(bootloader) serialno: HT46MWM07435

(bootloader) imei: *****************

(bootloader) imei2: ******************

(bootloader) meid: 00000000000000

(bootloader) product: m8_dugl

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B64000

(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: 6b903f73

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.425s
[One (M8) General] assasin34:
device must have stock recovery before flashing ruu.?
[One (M8) General] Iloudsan:
and it says RUU IS CORRUPTED when flashing ruu

error: preprocess_file : Cannot open file ruu.zip

can i use the exe ver instead
[One (M8) General] Tetsumi06:
Having massive problems getting my M8 to a condition that it can accept an RUU.

Am I correct in thinking that a signed RUU for the phones CID/MID should be flashable on an S-ON?

If so does anyone know why this is failing:

Trying to use:

RUU_M8_UL_L50_SENSE60_MR_HTC_Europe_4.16.401.10_Radio_1.25.214500021.06G_20.68.4196t.01_F_release_417003_signed.exe

on this (HTC stock recovery installed):

Bootloader

*** Software status: Modified ***
*** UNLOCKED ***
M8_UL PVT SHIP S-ON
HBOOT-3.19.0.0000
RADIO-1.19.21331147A1.09G
OpenDSP-v38.2.2-00542-M8974.0311
[COLOR="Red"]OS-2.22.404.5 (3.28.401.7)[/COLOR]
eMMC-boot 2048MB
Oct 10 2014,00:20:35.14326

fastboot getvar all

version: 0.5
version-bootloader: 3.19.0.0000
version-baseband: 1.19.21331147A1.09G
version-cpld: None
version-microp: None
version-main: 2.22.401.5
version-misc: PVT SHIP S-ON
serialno: SH43WWM*****
imei: ***************
imei2: Not Support
meid: 00000000000000
product: m8_ul
platform: hTCBmsm8974
modelid: 0P6B10000
cidnum: HTC__001
battery-status: good
battery-voltage: 0mV
partition-layout: Generic
security: on
build-mode: SHIP
boot-mode: FASTBOOT
commitno-bootloader: df77f8b7
hbootpreupdate: 11
gencheckpt: 0

But get a Error 155 from the RUU app. Has anyone any ideas? Without being able to restore it to stock I can't use Sunshine to get S-OFF (it reports that it needs closer to stock no matter which ROM I install (from the stock backups through to ARHD))
[One (M8) General] Einwod:
Your firmware is totally wrong. That's why you have 2 different numbers on bootloader screen. With s-on, you must flash firmware that matches your already installed firmware. You cannot use the ruu that you have because it's for the wwe international version. You need to do a lot of research.
[One (M8) General] Tetsumi06:
Thank you.

No idea how it managed to get 404 firmware on it. I'll try and find the 401 and flash that.
[One (M8) General] Laximus:
Hello

I just have read the guide, but for me its not clear how turn from S-OFF to S-ON.

I have S-OFF, and my CID is HTC__032

The guide says: "To do this, you just need to use fastboot oem writecid HTC__001, or whichever CID your device originally came with from the list at the beginning of this guide"

But I have the right CID.

Do I write this?: fastboot oem writecid HTC__032 and this will turn to S-ON?

Or S-On will come back after I flash the RUU.ZIP?
[One (M8) General] The Fer-Shiz-Nizzle:
The command is "fastboot oem writesecureflag 3" to turn S-on. Make sure to be on an OEM hboot first, or else it will brick.
[One (M8) General] Laximus:
Thank you!

You mean not in fastboot usb in red label, but the hboot in blue label? This way will work the fastboot command?

One more question: I have a stock nandroid backup and also have stock recovery.img and S-OFF

If I will restore the nandroid backup, -I dont install SuperSu-, relock the bootloader , after I change to Locked and Tampered with the commonds in the first post, after flash the stock recovery, and at the and with this "fastboot oem writesecureflag 3" command change back to S-ON, the result wil be the same like with flash the RUU.ZIP? Will I get FULL STOCK without signs that I modified the system?
[One (M8) General] Grudgie:
Hi.

Right now i am on GPE ROM. If i want to get back to official HTC ROM with lollipop Android 5.1 i need to follow this guide?
[One (M8) General] shafez:
Are you on GPE rom or converted to GPE?
[One (M8) General] Grudgie:
Converted
[One (M8) General] Laximus:
Yes, follow this guide if you are S-OFF!

I am just ready with it, and I am on full stock again again! =D

system status: Official

locked

S-On

stock recovery

to go back S-On at the very end of the process use this command in fastboot:

fastboot oem writesecureflag 3

=)

and now its full stock

I have to bring it back to HTC repair service, as I unplug the charger the phone switch off immediately

thats why I have had revert to stock

So THANK YOU VERY MUCH FOR THE POST WRITER [MENTION=2258271]EddyOS[/MENTION]
[One (M8) General] Grudgie:
I am s-off.

Thank you :)
[One (M8) General] shafez:
Wrong this guide is for SENSE users who want to return to 100% stock.

Converted GPE users must follow the following guide other wise phone will not boot :

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

Make sure you go into stock recovery and do Wipe data factory reset before flashing sense RUU.
[One (M8) General] Laximus:
You are right! Its just for Sense.

Sorry, hope I didnt misslead anybody. =)

For me it worked perfectly by the way, of course on SENSE. =)
[One (M8) General] rav101:
Hi guys,

I have locked my S-Off HTC One M8 Bootloader using the first step but I believe I need to unlock it again so I can install the stock recovery to get back to true stock... I am on Vodafone so cant use the 401 unbranded RUU :( I have tried using an Unlock token however get the following 'FAILED (remote: not allowed)' meaning I can't unlock the bootloader? I get the same issue if I try and install the stock recovery? I was wondering if anyone knows what I need to do to resolve this issue?

Regards,

Ravi
[One (M8) General] Einwod:
http://xdaforums.com/showthread.php?t=2708571

Have a look here. Should work.
[One (M8) General] Iloudsan:
Guys have need some help

When I flash the ruu through fastboot it fails

Saying could not load ruu.zip with the size next to it

And tried to run RUU.EXE with the same version of the zip file when I have hit agree

And next its just disappear

Any help?
[One (M8) General] KotTHECat:
Hello there!

I have S-Off and SuperCID; Software Status: Official and Unlocked.

Do i really need to lock my bootloader? I am gonna use this RUU.
[One (M8) General] Rjev07:
Go ahead no need to relock..if s-off.. I did the same back to stock.
[One (M8) General] hen12y:
Worked like a charm. Eddy, I love you!

as a bit of an inexperienced modder I am always a bit uncomfortable doing anything which isnt a straight copy/paste job into fastboot or adb. I used the command lines to reset flag, but flashed ruu via placing it onto ext sd and renaming it to 0P6BIMG.zip to do an 'official' update. Might be worth entering that as an alternate step in the to do for those who like me, aren't that comfortable with some of this stuff?

Back to full stock and off to CEX :)
[One (M8) General] hbt15:
HI all,

I am on an Australian M8, s-off with SuperCID.

I am not concerned with resetting tampered flags etc.

Can i just start at step 3? I assume i don't need to bother changing cid to HTC__001 as i'm supercid anyway?

I want to RUU simply because my internal storage is a mess after countlerss rom flashed and rather than try manually clean it i'll just start from fresh.
[One (M8) General] voz79:
So if I wanted to use this guide to convert my branded unit to unbranded, I would first have to change the CID to one of the supported ones, then I can continue as per your instructions, right?
[One (M8) General] ring_GT:
Q

Can I Change my CID to any of the supported CIDs ( or SuperCID)

and follow the steps to put it to stock again?

I have the Asia Taiwan version, but I want the European WWE.
[One (M8) General] EddyOS:
Should work, yes. I'd use HTC__001 personally as the CID
[One (M8) General] EddyOS:
So long as you're S-OFF it should work, yes
[One (M8) General] ring_GT:
Thanks.

It is okay to skip the resetting of the tampered flag yes? Im not really bothered by it.
[One (M8) General] VectorM8:
Im on HTC___Y13. It did not work for me. Afret fastboot oem reboot stock in HTC logo any help here? Thanks

Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\admin>adb devices

'adb' is not recognized as an internal or external command,

operable program or batch file.

C:\Users\admin>cd documents

C:\Users\admin\Documents>cd !!!! M8 !!!!!

C:\Users\admin\Documents\!!!! M8 !!!!!>cd fastboot

C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>fastboot oem rebootRUU

...

(bootloader) Start Verify: 0

OKAY [ 0.025s]

finished. total time: 0.032s

C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>fastboot flash zip firmware.zip

error: cannot load 'firmware.zip'

C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>fastboot flash zip firmware.zip

error: cannot load 'firmware.zip'

C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>fastboot reboot

rebooting...

finished. total time: 0.019s

C:\Users\admin\Documents\!!!! M8 !!!!!\fastboot>