yashsingh1/xdaforums huggingface dataset:
[One (M8) General] Einwod:
Just connect the phone to the PC. You need USB 2 connection. Run the RUU.exe file from the computer and it should carry on by itself. If it fails, put the phone into RUU mode and try again. Backup everything you want to keep. This will wipe the internal storage entirely. Good luck.
[One (M8) General] wahla21:
Ok thank you.

Do I need to change the cid?
[One (M8) General] Einwod:
No need to change CID. Run the RUU and it should work OK. You must have HTC drivers in place. To be sure, download and install HTC Syncmanager and then uninstall it. It will leave the correct HTC drivers behind.
[One (M8) General] Hossein1990:
hi

i have htc one m7 version 7.19.401.102

cid HTC_J15 relocked S-on i have twrp

do i need to be s off to do this methods?

and i found a ruu in this (zip file not .exe)when i tried to flash and transfer ruu.zip it gave me this error

failed remote: 02 data length is to long.

what should i do?

btw i think i just deleted my twrp when i do the flash ruu
[One (M8) General] Einwod:
First thing to do is read the title of this thread. It has nothing to do with M7.
[One (M8) General] Hossein1990:
tnx for reply mate where can i found for m7 could plz send me a link?
[One (M8) General] Bizarro_:
hi

I have htc one m8 no OS S-on my modelid: 0P6B10000 cidnum: HTC__032 i found some rom from here but the zip files always give me some error messages even i try Copy of 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 but it give me error HTC MTP Devices Properties This device cannot start. (Code 10) i reinstall the driver but no luck so my question is what to do from now on and can someone put working back up without error for my cid or can give me a suggestion what to do
[One (M8) General] Einwod:
What exactly are you doing with these files? Trying to execute them from TWRP or from your PC?
[One (M8) General] Bizarro_:
The zip file I am execute inTWRP and exe file from PC doesnt work zip files are corupted this on forum post a try test the zip
[One (M8) General] Einwod:
The exe files are not corrupt, you just have to have patience. The zip files should be run from fastboot oemRUU mode. That's why they won't work. READ what it says on the threads where you found these files. You cannot cut corners and think that you can flash them like mods etc. YOU NEED TO READ!!!!!!!!! Especially this:

3. Flash the RUU

We are now at the point where we can flash the RUU and restore the phone to 100% stock. To do this, we first need to boot the phone into RUU mode using the command fastboot oem rebootRUU. Once in RUU mode, you'll see a silver HTC logo on the phone and that's it. At this point, we now use the HTC fastboot package to flash their RUU.zip file using the command htc_fastboot flash zip ruu.zip. This process will take a few minutes, and the phone will reboot a few times but once done it'll say complete. At this point, reboot the phone back to the bootloader using fastboot reboot-bootloader
[One (M8) General] aliensof:
Need help to return HTC M8 to stock

HI all,

I am newbie in this forum. I need help to return my HTC M8 K-18 to stock.

I read a lot on this forum how to return to stock but every time it didn't work for me.

it's HTC M8 android K-18

I erase my stock System/ROM and installed the REVOLUTION HD version, its have a lot of problems and i want to return to stock.

my phone is S-ON.

what should i do step by step (Please) to return to stock

thanks a lot for your help
[One (M8) General] Einwod:
First, post the results of fastboot getvar all less your serial and IMEI numbers. Then someone can begin to help.
[One (M8) General] aliensof:
(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.22.21331147A1.29G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

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

(bootloader) serialno:

(bootloader) imei:

(bootloader) imei2:

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__K18

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

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.009s

Hope this is helpful
[One (M8) General] Einwod:
You cannot use this method to go back to stock as you are S-ON. However, you can try this RUU file to attempt what you want. The only problem is we cannot see what your firmware version is from the getvar all. You must have an older version of TWRP installed. Try the RUU.exe file. Remember, you will lose everything on internal storage so backup everything you want to keep, especially TWRP Nandroids. Move them off your internal memory.
[One (M8) General] aliensof:
My version use to be 3.28.401.9 but after i changed to revolution HD it's blank

how can i do S-OFF to my device?

I will also try what you suggested
[One (M8) General] Einwod:
You can only gain S-OFF with Sunshine. It really is worth the money. You are using an older version of TWRP, that's why it is blank. Also, the reason you are having lots of problems with ARHD is because your firmware is not current, i.e. lollipop. You still have kitkat firmware.
[One (M8) General] Bizarro_:
fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.25.214500021.06G

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

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

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

Can you tell me which RUU is right for me please
[One (M8) General] Einwod:
You are S-ON so cannot use this method. See my earlier post here.
[One (M8) General] Bizarro_:
I have no OS so what can i do
[One (M8) General] Einwod:
Download the RUU and run it from your PC. Put the device in fastboot mode.
[One (M8) General] Brontok:
sorry if im asking a dumb question.. i got my m8 today and it came from germany ( vodafone carrier, but unlocked ).. its not rooted, fully stock rom.. what should i do to install lollipop for my carrier ? do i have to go s-off or can do it in a simpler way ? ( im currently on 5.0.1 lollipop and i dont even know if there is any newer stock rom available, lol :)

thanks for any kind of help
[One (M8) General] Bizarro_:
it has occured a error
[One (M8) General] Einwod:
You already answered your own question. You have Lollipop, you can't have more.

---------- Post added at 02:21 ---------- Previous post was at 02:17 ----------

Everything points to you having the correct CID etc to flash this. Does the device start in any form? If so, try again from a fully booted device. That RUU matches the info you provided.
[One (M8) General] Bizarro_:
What you mean by a fully booted device can you explain to me
[One (M8) General] ckpv5:
You have no OS, you can't fully booted..

Your device is S-On and you have this error 155 because you don't relock bootloader.

Relock bootloader with command fastboot oem lock (after put your device in bootloader/fastboot mode) then run the RUU.exe again (select run as administrator)
[One (M8) General] Brontok:
[MENTION=5990330]Bizarro_[/MENTION]

thanks for replying... but what should i do if i want to install lollipop for my own carrier ? do i have to do all the steps as if i were rooted and with unlocked BL, or is there a simple way for those that are already at full stock?
[One (M8) General] Bizarro_:
If I want to use your TWRP backup collections II these particular two CID,HTC__032 MID 0P6B10000

4.16.401.10

4.16.401.13 what can i do first
[One (M8) General] ckpv5:
Read all the instructions on post #1

You need TWRP 2.8.7.0 installed

You restore 4.16.401.10 and its 4.16.401.10 stock recovery then do OTA to 4.16.401.13

There is no need to relock bootloader for these procedure of restoring nandroid backup.

And this thread about RUU not nandroid backup, if you have questions, ask in that thread not here.
[One (M8) General] Bizarro_:
can you tell me why i have no OS when i boot I was able to install that RUU and update software to 4.16.401.13 i`m sorry if my question is at wrong thread

*** Software status: Modified ***

*** UNLOCKED ***

M8_UL PVT SHIP S-ON

HBOOT-3.19.0.0000

RADIO-1.25.214500021.06G

OpenDSP-v48.2.2-00564-M8974_F0.1211

OS-

eMMC-boot 2048MB

Aug 4 2015,19:21:49.2464
[One (M8) General] ckpv5:
Maybe because you don't use the recommended TWRP 2.8.7.0 that I mentioned above.

OS blank usually means you used the outdated 2.7.0.x
[One (M8) General] Bizarro_:
so if I istall TWRP 2.8.7.0 i should able to see OS it won`t be a blank anymore ?
[One (M8) General] ckpv5:
Won't work for now, wait for next OTA.

Make sure use only 2.8.7.0 from now on.
[One (M8) General] Bizarro_:
I flash recovery that you suggest but OS is still Blank
[One (M8) General] Einwod:
You have already been told it won't show until the next OTA arrives. You are NOT reading anything. Is your phone working or not? That is what these forums are for, to help get your device working again.
[One (M8) General] ckpv5:
It's very hard to help you when you cross posting in other thread too.

I asked you to ask any question in the thread where you get the backup

but instead you asked in different thread. You should have read post #1 in this thread - http://xdaforums.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860 on how to do it properly and ask on anything that you don't understand there because this thread is about RUUing only.

If to fix the OS blank is very important to you ... install TWRP 2.8.7.0 then restore 4.16.401.10 again, install stock recovery 4.16.401.10 again then do OTA to 4.16.401.13 again.

After successfully done the OTA ... don't use that 2.7.0.2 TWRP ( delete it from your PC) .. use only TWRP 2.8.7.0
[One (M8) General] krele90:
Anyone with HTC_059 CID? Can I use this method for return to stock?
[One (M8) General] lu_peng2:
if i only want to go back for the update (i'm Soff)

do i really need to relock bootloader and reset the tempered falg to flash a RUU?
[One (M8) General] Rjev07:
No...no need to relock the boot-loader if s-off or reset the tempered flag..flash the correct RUU...from bootloader by fastboot command.
[One (M8) General] Einwod:
No, all you need to do is flash the RUU. You will however, lose everything on your internal storage, so backup what you want to keep. Especially Nandroid backups stored on internal storage.
[One (M8) General] Sh0X31:
Any way to change "Unlocked" to locked?

This not work for me
[One (M8) General] Triple_T93:
Different CID

I've bought this HTC One M8(International 16GB) off of Amazon and whenever I update it says variant system version when it attempts to install it. It's S-OFF and I guess it's rooted (not actually an expert here). I have dealt with ROMs for Samsung Galaxy S+ and I don't quite know my way around the One M8 modding. I want to revert to the stock ROM in hopes I can install the system update. After finding it's rooted I began to rethink it's actually international(also because it has 2.5Ghz processor not the usual 2.3) although the box was sealed. Can someone help me? I'll really appreciate any kind of help.
[One (M8) General] Einwod:
Post the results of fastboot getvar all after removing your serial and IMEI numbers from the output. Then we can begin helping.
[One (M8) General] Triple_T93:
There you go.

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.24.21331147A1.09G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 4.16.1540.8

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

(bootloader) serialno:

(bootloader) imei:

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B12000

(bootloader) cidnum: 11111111

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 3aa067db

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0
[One (M8) General] Einwod:
It would appear you have a developer edition device, unlocked, S-OFF with SuperCID. It is NOT the European model according to the MID. You could of course change the MID and firmware versions and make the device European.
[One (M8) General] takichiman:
Hello, my phone is bricked after trying to install SkyDragon ROM,

I want to get back to stock, can anyone please provide me a mirror to the RUU link ? It is broken. Thank you.
[One (M8) General] Einwod:
What is the CID number and also the firmware version? Post the results of fastboot getvar all after removing your serial and IMEI numbers.
[One (M8) General] takichiman:
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.25.214500021.06G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 4.16.401.13
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: xxxxxxxxxxxxx
(bootloader) imei: xxxxxxxx
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B10000
(bootloader) cidnum: HTC__032
(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: f063fb42
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.088s

Is it possible to go back to stock 4.16.401.10 even though I'm 4.16.401.13 ?

Thank you so much.
[One (M8) General] Einwod:
Normally you cannot downgrade firmware unless you are S-OFF. You can try to flash the WWE RUU. If it fails, you may need to use a Nandroid backup instead. Get the file here.
[One (M8) General] takichiman:
Thanks for the answer.

When I would know it failed, by then I should be having a relocked bootloader (please correct me if i'm wrong). But is it possible to flash anything by then (particularly a nandroid)?
[One (M8) General] Einwod:
If you are not S-OFF, you need a relocked bootloader to flash the RUU. If it fails, you would need to unlock the bootloader again to use a Nandroid backup. Or, try the Nandroid first. You'll need the TWRP backup and the stock recovery. Both available on this thread. Post#2 for the Nandroid and post#3 for the stock recovery.
[One (M8) General] Triple_T93:
How would I do that?
[One (M8) General] Einwod:
Have a look here.
[One (M8) General] shashwa:
The link for the RUU is dead. I have found it here (ZIP)

As I am not allowed to post URLs due to my low post count. You need to go to

goo.gl (Slash) KyMZdm
[One (M8) General] Einwod:
In post#712 I link the RUU.
[One (M8) General] shashwa:
Thanks for that, I did see it, I'm on a mac so I need the ZIP.
[One (M8) General] Einwod:
If you are S-OFF you can use this zip and update from there.
[One (M8) General] filippo_derosa84:
Hello,

I've got a HTC One M8 (Three UK) on which i flashed the GPE Rom.

Now I want to go back to the original HTC Sense rom (even if it's not Three), is the process in this thread the one to follow to do that?

Thanks
[One (M8) General] ckpv5:
S-On ?

Do you know which version that you need ?

Check the thread linked in my signature, anything you're not sure can ask there.
[One (M8) General] filippo_derosa84:
Thanks for the answer.

My phone is S-Off with TWRP already installed.

I'm not sure if i need a specific version I just want to revert my phone back to any HTC Sense stock rom. My phone was H3G branded but that's not a need to go back to that specific version as long as I've back my phone to a stock rom.

I'll have a look there! :)
[One (M8) General] ckpv5:
If it is S-Off then it's up to you what you want your device to be ;)
[One (M8) General] guyinsun:
Thank you very much for the guide
[One (M8) General] Aisfkhan:
Ruu File doesn't exist? Where to download now?
[One (M8) General] Einwod:
Try reading just a few posts backwards from here. I have already linked to it if you would only have the patience and READ A FEW POSTS. Laziness is rife in these forums. I want, I want, I want. You're like spoilt children some of you people.
[One (M8) General] Aisfkhan:
Sorry
[One (M8) General] firithmorgulion:
i dont know if it is stated somewhere here in this thread

but it might be helpful to add the command for setting the phone back to s-on

fastboot oem writesecureflag 3

otherwise the phone will think its a testing device from htc
[One (M8) General] Einwod:
There's no reason to go back to S-On except for warranty. In fact, it's not recommended to go back at all.
[One (M8) General] alan5673:
Hi all,

If any one can help me it would be greatly appreciated.

I'm trying to get back to stock from running Venom Roms viper 4.6.1

My phone was s-off, super CID, bootloader unlocked.

I've followed all the instructions relocked the bootloader, reset tamper flags and changed CID back to european HTC__032

On flashing the RUU I get the following error in the command window;

C:\Android\adb>fastboot flash zip ruu.zip

target reported max download size of 1826418688 bytes

sending 'zip' (1594628 KB)...

OKAY [ 63.519s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) shift signature_size for header checking...

FAILED (remote: 32 header error)

finished. total time: 63.821s

Any ideas what the problem might be or how to solve it?

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.22.21331147A1.

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 3.28.401.9

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

(bootloader) serialno: HC44KWM00065

(bootloader) imei:

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__032

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: RUU

(bootloader) commitno-bootloader: df77f8b7

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

Thanks in advance for any replies.
[One (M8) General] Einwod:
You locked the bootloader. Why? You are S-OFF there's no need to lock it. Now unlock it again and retry.
[One (M8) General] alan5673:
Unlocked Bootloader again but no difference same error message.

Is there any specific firmware/radio/hboot i should be running beforehand for this to work properly?
[One (M8) General] Einwod:
Go to Androidruu.com and find the correct RUU for your device. It's near the bottom of the M8 page. Number 14 or 15. It's a full RUU.exe file. Just run from bootloader screen. If it fails, then from fastboot ruu screen.
[One (M8) General] alan5673:
Downloading now. I'll keep you posted. thanks
[One (M8) General] Einwod:
When it works, you'll have 3 updates. Take them all and you'll be on stock marshmallow.
[One (M8) General] alan5673:
Worked a charm back on stock again. Thanks
[One (M8) General] greek_lover_69:
can i flash this?

my CID says BS_US001

cant really categorize it which stock firmware i need?!

hboot 3.19

Radio 1.29.21500021.24

so can I flash this or not? my Phone is on stock not rooted or anything. Just stuck so need to reflash stock firmware for it to work.

thanks!
[One (M8) General] Einwod:
This is to return a EUROPEAN M8 back to stock. Yours is not a European CID. What is your current firmware version? You can see it on the bootloader screen beside )S.
[One (M8) General] greek_lover_69:
hello and thank you for you answer!

it says>

CID says BS_US001

Radio 1.29.21500021.24

opendsp-v51.2.2

OS-6.12.1540.4

can find any other info...

I guess mine falls under> Sprint/Boost/VirginMobile/ACG/C Spire

6.20.651.3

http://www.htc.com/us/support/htc-one-m8-sprint/news/
[One (M8) General] Einwod:
So the firmware version you need is: 6.12.1540.4

You should search for a signed version as I don't think you are S-OFF.
[One (M8) General] greek_lover_69:
I guess mine falls under> Sprint/Boost/VirginMobile/ACG/C Spire

6.20.651.3

http://www.htc.com/us/support/htc-one-m8-sprint/news/

no its S-ON.. the phone is untouched.. its not even mine so I dont want to mess up too much with it.

SO i find the version and i flash it through the recovery?

---------- Post added at 07:49 PM ---------- Previous post was at 07:40 PM ----------

by checking HTC this version is http://www.htc.com/us/support/htc-one-m8/news/

HTC One (M8) Unlocked/Developer ROM

why would my phone have that version installed?! is this normal?
[One (M8) General] Einwod:
WRONG!!!!!!!!!!! The device is the developer edition, nothing to do with Sprint. DO NOT, I repeat, DO NOT try to use the RUU from Sprint.

---------- Post added at 07:55 PM ---------- Previous post was at 07:51 PM ----------

This is the version you need: http://www.htc.com/us/support/htc-one-m8/news/
[One (M8) General] greek_lover_69:
yes yes.. I saw... but i mean isnt this strange? do they sell phones with this version on?

I downloaded it.. how do I flash it? thanks! :)

i put the phone in fast boot mode and ran the .exe but I only get an error (170) USB connectivity
[One (M8) General] Einwod:
Half way down the download page, read this:

Manual system update instructions

And follow the instructions. Couldn't be more easy.
[One (M8) General] greek_lover_69:
yeah that is the problem...

I cant use the first method as I cannot boot into the device.

I start it in FASTBOOT Mode then run the file from the PC but I get the error message I have mentioned earlier...

"i put the phone in fast boot mode and ran the .exe but I only get an error (170) USB connectivity"
[One (M8) General] Einwod:
Have you followed the instructions? Have you got fastboot/adb drivers installed? have you installed HTC Sync? When the device is plugged in, can you see it in device manager?
[One (M8) General] greek_lover_69:
hello and thank you!

yes of course.. I have been flashing roms for quite some years.

finally managed to process with the installation.

The optimizing started like when I made a wipe and data reset through recovery. xxx out of 164

but as soon as it finished I got the same problem as before:

"Android is starting.. starting apps"

and there it gets stuck

any ideas what I can do?!
[One (M8) General] Einwod:
That's a normal procedure. How long have you left it before doing something else? Have you wiped dalvik and cache in TWRP. Have you tried wiping the data partition in TWRP? That method will wipe totally your internal storage, so make a backup first and best is to remove it from your phone onto your PC.
[One (M8) General] greek_lover_69:
I left it like this for 2 hours.... so I guess it stuck..

it has the STOCK recovery installed so it only has the options> 1.wipe data factory reset and 2. wipe cache

i did them both of course...
[One (M8) General] Einwod:
In TWRP advanced there is an option to wipe data partition. If you choose this, you must confirm by typing the word yes otherwise it won't wipe.
[One (M8) General] greek_lover_69:
sorry sorry... I wanted to write STOCK recovery! So there are no such options... :)

should I install another recovery and try? how about flashing through recovery? might that help?