yashsingh1/xdaforums huggingface dataset:
[One (M8) General] deltagreen88:
Ok, removed Imei & Serial (thanks for the info) - the problem with the link you provided is that there is no nandroid for Hboot 3.16 (version starting with 1.x.xxx.xx, but correct me if i'm wrong) so i took the one from the link i stated I posted the exact same question to a thread specifically for S-On, but the links in there do not seem to work, and are probably not updated anymore.. There i cannot find RUUs that match the version n° 1.x.xxx.xx, and to be honest i don't really understand the concept of these RUU files and hoped to solve the problem with simple nandroid backups to restore.. Thanks anyway for you quick response..

Sincerely,
[One (M8) General] Einwod:
You should not be looking for an RUU file. You take a Nandroid backup that matches your device, extract it and place it onto your device and then restore that Nandroid. Flash the stock recovery and then take the necessary OTA updates to get back to MM stock. If you want, then you can flash the latest TWRP and a custom ROM afterwards. The air of the thread I linked to is to get back to stock which will then allow you to take the OTA updates which in turn will update your firmware etc. It would be a lot easier with S-OFF, but you don't want to pay for it. This is a safe if rather long way to do it.
[One (M8) General] deltagreen88:
Yeah, you're right, if it would be my device, i would have sunshined to S-off long ago, but my friend in question refuses this (unfortunately) and at the moment we wouldn't even be able to install the sunshine app and do the necessary stuff to get to s-off (and i can understand him, since he's trying to get rid of the device, preferably in a working state though ;) without paying any further)

However, the nandroid i picked should well match this device (well it worked except for the problems i'm experiencing at the moment) eventually it is a requirement to flash the stock recovery as well?? Because i thought to myself that we wouldn't need to get back to stock recovery, in case we will do future nandroid backups ourselves (respectively the cousin of my friend would eventually be doing that).. So can you eventually confirm that flashing stock recovery immediately after restoring the nandroid would be a requirement..?

Either way, here's a selection of stock recoveries from the thread you proposed earlier, and i don't really know which one i should pick..?

Sincerely,

EDIT: I'm not sure if what i need to do is going onto MM stock, i suppose at this point that's not even possible, since my hboot version is 3.16 (i suppose KitKat stock)..? But please don't hesitate to correct me if i'm wrong..

EDIT 2: Of course if you want (since you're present on the Tutorial thread too) i'll continue posting on that thread rather than this one (since it's only for S-Off - and i don't want to pollute this one)..
[One (M8) General] Einwod:
Take the first Nandroid from your attachment picture (2.22.401.5) and the equivalent stock recovery. Use them both on the device and you'll be good to update via OTA to Marshmallow.
[One (M8) General] deltagreen88:
Ok, thanks for the instructions, i'll try that asap and update my post here just to keep you informed..

Sincerely,
[One (M8) General] karandevilocs:
i did all the steps and even factory rested thru recovery and after i boot up in software info section it says ARHD 53.1 (my last rom) even tho i flashed the latest 6.12.401.4 RUU ! everything else looks good tho!

did i flashed the stock rom or what ? why is it saying ARHD even after RUU !! i wanna sell it so please help!
[One (M8) General] Einwod:
Something obviously went wrong. If you're not S-OFF then you need to relock bootloader and try again. Where did you find the RUU?
[One (M8) General] karandevilocs:
yeah i guessed that something went wrong!! so first off i gotta say that im S-OFF and i did all the steps including relocking-twrp adb shell commands-changing supercid to cid - and after all those i flashed the ruu!!

and here is the ruu that i flashed : https://www.androidfilehost.com/?fid=24369303960687057

but the strange part is when i wanted to test that archive is healthy and i tried the test option in winrar and found out its damaged !!

it looked like this :

then i fixed the archive and it got fixed but the inside files changed and it became like this :

so which one was the right one and should i redownload and flash it again (or are there any newer versions that i could try) or is it something else!?

thanks
[One (M8) General] Einwod:
The only thing you need to check is the MD5 numbers match, that will check whether the file is corrupt or not. The file is signed, so normally you should make absolutely no changes to it, not even try to open it. Rename the complete file to 0P6BIMG.zip making sure it is not 0P6BIMG.zip.zip. Place it on the root of your SD card and go to the bootloader screen, when you change to fastboot it will flash automatically. When it is finished, it is recommended to rename the file or remove it from the SD card as it will install every time you start in bootloader mode.It should be as simple as that. Let us know how you get on.
[One (M8) General] karandevilocs:
what? i didnt put it on sd or anything !! i flashed thru pc and htc_fastboot flash zip ruu.zip command using fastboot !! is that the problem ? and should i put the file in internal root or do i need a sd card for the job?

ps: Md5 matches
[One (M8) General] Einwod:
With an external sd card, you follow what I have written above. Should work first time. Unless you have a strange mid number.
[One (M8) General] karandevilocs:
thanks everything went according to the plan and worked like charm!! one last thing is it possible to revert the phone to s-on tho? im s-off and i wanna sell this but im not sure whether they'll complain bout s-off thingy!
[One (M8) General] Einwod:
It's not advisable to return to S-ON. Just leave it S-OFF for the next user. You'll be doing him a favour if he wants to mod his new phone.
[One (M8) General] karandevilocs:
yeah guessed it so! again thanks for all your helpful solutions!

cheers!
[One (M8) General] whynotbgd:
THX
[One (M8) General] btje:
I'm on lolipop, do I have to update the fuu before updating the ruu?
[One (M8) General] Mabz96:
HTC One M8 - No Service, IMEI, Baseband Version

I've currently been experiencing some issues with my HTC One M8, every time i restart the phone the IMEI and Baseband version change to unknown, i also get no service on my phone. This problem seems to last a few hours or so then i get service and everything is all and well until i restart the phone again.

If anyone has any knowledge on this matter that would be much appreciated.

Thanks in advance.

FYI: Unlocked bootloader / TWRP installed / Stock OS
[One (M8) General] Einwod:
Why are you posting this in multiple threads?
[One (M8) General] :
link not working pls fix it
[One (M8) General] Einwod:
Try this one. This is a full RUU.exe It will wipe your internal storage. Backup anything you want to keep first.
[One (M8) General] :
this is lollipop i want MM file and can you help me there ?
[One (M8) General] Einwod:
Take this one, update by OTA to MM. There is no RUU for MM as yet.

---------- Post added at 13:29 ---------- Previous post was at 13:26 ----------

Take this one, update by OTA to MM. There is no RUU for MM as yet.

Here is the zip file you want.
[One (M8) General] :
sorry my device is from other country i can't use OTA :(

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.12G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.12.401.4

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

(bootloader) serialno: SH458WM03787

(bootloader) imei:

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(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: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

this is my device i changed MID and CID to current values do you have any links for MM 0P6BIMG.zip ?
[One (M8) General] Einwod:
You are S-OFF and already have MM firmware. What are you trying to do? Your device is setup as WWE international, which that RUU will work. Also the zip file will work too, but you must rename it and place onto external SD card and flash thru bootloader.
[One (M8) General] :
i tried this file but it gives Device halted due large file....
[One (M8) General] Einwod:
Then you are trying to do it wrong. Run the RUU.exe from Windows or rename the zip file and place on external SD card. It's a simple process.
[One (M8) General] :
i'm using GPe ROM but i wanna change to Stock SENSE ROM i renamed and copied to SD Card and tried to update from HBOOT

---------- Post added at 10:38 AM ---------- Previous post was at 10:37 AM ----------

but i want MM
[One (M8) General] Einwod:
You didn't say that. You must go back to stock with the RUU. Use the one I linked as the partitions on GPE ROMs are different sizes. You have to go back to stock then either OTA or use the MM zip file linked. You cannot go straight from GPE to MM without going to a completely stock setup, which the RUU will get you.

---------- Post added at 13:44 ---------- Previous post was at 13:41 ----------

You should read THIS thread.
[One (M8) General] :
i understand very thanks for your helps

---------- Post added at 10:48 AM ---------- Previous post was at 10:45 AM ----------

last noob question how to use RUU.exe file ?
[One (M8) General] Einwod:
Simply download the file, connect your phone to computer with cable and doubleclick the RUU.exe file. It will go through the process and flash to the device. If there are errors, restart the phone in bootloader mode and try again. It should work. Make sure you have updated all the drivers on your computer. Easiest way is to download and install HTCsync programme, then uninstall it. That will leave the drivers behind. It should work OK. You will then be completely stock and can take OTA updates to MM. Once you have MM again, you can flash any custom ROM of your choice.
[One (M8) General] theoptimusG:
Can i do this with a verizon with super cid?
[One (M8) General] Einwod:
You'll find the Verizon ruu on their help pages. It would also depend on your mid/firmware setup as well. Should work.
[One (M8) General] theoptimusG:
So i cant use this ruu with my verizon m8. Im using my verizon m8 with gsm network i wouldn't flash verizon ruu because of the restriction
[One (M8) General] Einwod:
No, unless you have modified the mid to match wwe edition.
[One (M8) General] ahmed.ismael:
but is it true that Verizon and WWE m8 are different in hardware [MENTION=6036233]theoptimusG[/MENTION]
[One (M8) General] theoptimusG:
I see . Changing mid with supercid then flash this ruu right?

---------- Post added at 10:24 AM ---------- Previous post was at 10:23 AM ----------

I read lot of forums that it is true gsm and cdma version has different partitions
[One (M8) General] ahmed.ismael:
yes they are but wait for confirmation maybe i'm wrong
[One (M8) General] Einwod:
I would also investigate further. You may end up with a very expensive paperweight. The man to ask is [MENTION=830797]ckpv5[/MENTION].
[One (M8) General] ahmed.ismael:
i can confirm that he said before it's different and can't flash GSM firmware on CDMA device
[One (M8) General] :
sir its gives ERROR 159
[One (M8) General] Einwod:
Flash the firmware first and then try again.
[One (M8) General] :
what firmware ?
[One (M8) General] Einwod:
This one.
[One (M8) General] :
is it hboot update ? and how to flash this ?
[One (M8) General] Einwod:
It's a firmware and if you don't know how to flash it, you really should not be tampering with your device in this way. All the instructions are in the first posts. There are many firmware threads here also. Use the search function.
[One (M8) General] :
htc_fastboot flash firmware firmware.zip or flash it from recovery ? which one ?
[One (M8) General] ahmed.ismael:
you can't flash firmware via recovery

and to flash only firmware you don't need htc_fastboot

The regular fastboot is fine with firmware flashing

fastboot flash zip firmware.zip
[One (M8) General] androidfreak11:
Hello guys,

Trying to get my HTC M8 back to work for hours.

Always getting this message:

target reported max download size of 1826418688 bytes

error: cannot load 'ruu.zip'

RELOCKED

S-ON

STOCK RECOVERY

STOCK FIRMWARE 4.16.401.10

CID 102

What am I doing wrong?

Thanks in advance!
[One (M8) General] ahmed.ismael:
you are trying to flash RUU.zip using fastboot

you shoud flash it using HTC_fastboot
[One (M8) General] androidfreak11:
Ok yeah, this is ture. But whenever I tried "htc_fastboot" it said "couldn´t recognize this commant" (in my language) .. So what I now did was rename it to 0P6BIMG.zip and put it on the SD-Card, which worked like a charm!

Thanks a lot for your help though :)

Greets!
[One (M8) General] Einwod:
Unlock the bootloader. You can't flash anything with it locked.
[One (M8) General] ahmed.ismael:
[MENTION=3741261]Einwod[/MENTION]

he was flashing RUU.zip
[One (M8) General] Einwod:
Same applies or? RUU.exe yes. Zip files have to have an unlocked device.
[One (M8) General] ahmed.ismael:
flashing RUU.zip with unlocked bootloader causing error 155

bootloader must be relocked or locked to flash RUU (( for s-on devices only ))

or i'm wrong because i read it in every guide i have read
[One (M8) General] Einwod:
My bad. You're quite correct. My mind was elsewhere.
[One (M8) General] redpoint73:
As I understand it, the rules depend on whether the zip is signed or not, and what partition its being flashed to.

You can flash an unsigned zip to the recovery, system (OS) partition, and boot partitions; provided the bootloader is unlocked. So this applies to custom recovery and custom ROMs.

You can flash a signed zip such as RUU or firmware, but the bootloader must be locked (if s-on). But you can't flash an unsigned zip that installs to some "protected" partitions such as hboot and radio (unless you have s-off) so that excludes flashing unsigned RUU, firmware, radio, hboot, etc.

S-off bypasses the requirement for the bootloader to be locked for RUU or signed firmware, and also allows unsigned zips to be flashed to "protected" partitions such as hboot and radio.
[One (M8) General] androidfreak11:
Nope, it was definitely RELOCKED before by me. But you have to have stock recovery + stock firmware flash before with fastboot so the RUU.zip gets through. :)
[One (M8) General] ahmed.ismael:
may be you missed something

to flash the RUU.ZIP you don't need to have stock recovery and firmware (( only relocked bootloader for s-on devices ))

unless your device is branded to carrier (( in this case you will need to flash the firmware first then flash the RUU ))

all you need htc_fastboot in your adb folder

that's working for me over 10 times (( WWE device )) no need to stock recovery&firmware
[One (M8) General] totel1985:
Hello, so I'm stuck on green Htc bootloader and nothing seems to work, I am carrier branded Orange Romania and it is difficult to find a ruu.exe/ruu.zip. Ideas anybody? Below you have the getvar all. Thanks a lot

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.12G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

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

(bootloader) serialno: SH

(bootloader) imei:xxx871052994xxx

(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: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0
[One (M8) General] ahmed.ismael:
remove your seialno and imei

this device is not branded it's WWE device

Follow this post steps you will be back to stock it's the same as your device

http://xdaforums.com/showpost.php?p=64926626&postcount=6

your internal storage will be wiped
[One (M8) General] DominicHatebreed:
http://androidruu.com/index.php?developer=M8
[One (M8) General] totel1985:
A true life saver!!! Thanks a lot men! I have a working phone again!!
[One (M8) General] sakunakia:
um currently using a s-ON At&t unlocked htc one m8 with a custom rom installed.can i go back to stock 6.0 without s-of. if so please help me to find the needed firmware and files.
[One (M8) General] ahmed.ismael:
you can flash the latest stock RUU for your device available on HTC website

and you are good to go with s-on device just relock your bootloader and flash it

here is the link

https://www.htc.com/us/support/htc-one-m8-att/news/

By flashing RUU your internal storage will be wiped so backup your files first
[One (M8) General] Einwod:
A simple Google search http://www.htc.com/us/support/rom-downloads.html
[One (M8) General] Xtenchen:
Ruu is broken link, bank you send me a new link
[One (M8) General] Einwod:
This is a link to the FULL RUU.exe file. Or HERE may download quicker.
[One (M8) General] Clem.B:
Mirror link rom download : https://www.androidfilehost.com/?fid=95916177934518148

Same MD5 : 4e03845aeab375746b4553e610047680
[One (M8) General] Morteza-Sk:
Last week I tried to flash the stock ruu.zip but I got error about signature ... Whats wrong ?
[One (M8) General] Einwod:
What stock ruu.zip? Post results of fastboot getvar all after removing your serial and IMEI numbers.
[One (M8) General] Morteza-Sk:
(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.12

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.13.206.5

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

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: O2___102

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0
[One (M8) General] Einwod:
So you actually mean the stock O2 RUU? Where did you get the zip file from? There is a thread here that has the stock image backup for your device. Everything you need is in the first 5 posts. Read carefully.
[One (M8) General] venoms2k:
HELP! I need assistance with my Euro M8 I can't return to stock!

So I had Marshmallow on my European M8 and I wanted to try 7.1 on it...unlocked the bootloader bla bla bla and there I had 7.1 on it...I have my S-On, so I wanted to revert to stock ROM and I'm srsly lost right now like I tried so many methods but I just can't seem to find one that works so I installed Viper ROM on my phone and It's on Kitkat with Sense so It's near stock and it has the TWRP recovery on it. Now my question is how do I revert to stock ROM like I tried taking S-Off but the cmd with the tools doesen't work like I don't get a SuperUser notification to approve it and Sunshine won't do shi* it will just say I need a non debuggable boot.img or something like that...I beg anyone who has any clue on how to solve this to help me with this. I think my phone needs 6.12.401.4 firmware. Thank You!
[One (M8) General] Einwod:
The first thing you need to do is post the results of fastboot getvar all after removing your serial and IMEI numbers. That way we can be of more assistance.
[One (M8) General] venoms2k:
Please don't get mad but I have no idea how to do that or even what that is...can You briefly explain what I have to do to
[One (M8) General] Einwod:
First, you cannot use this thread, it's for S-OFF devices. Secondly, put the phone to the bootloader screen. Attach to your computer, then open a command window and type

fastboot getvar all

The output will be similar to this:

version: 0.5

version-bootloader: 3.18.0.0000

version-baseband: 1.19.21331147A1.09G

version-cpld: None

version-microp: None

version-main:

version-misc: PVT SHIP S-OFF

serialno: ************

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

imei2: Not Support

meid: 00000000000000

product: m8_ul

platform: hTCBmsm8974

modelid: 0P6B10000

cidnum: 11111111

battery-status: good

battery-voltage: 0mV

partition-layout: Generic

security: off

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: 5e4b24e4

hbootpreupdate: 11

gencheckpt: 0

Make sure to delete your serial and IMEI numbers, where you see the lines of *s in the example above.
[One (M8) General] venoms2k:
(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.12G

(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: 76df2b54

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0
[One (M8) General] Einwod:
It would appear you are up to date with firmware, so all you really need is a stock nandroid and recovery to get you what you need. Go to this thread and you will find what you need. All you need is in the first 5 posts, read them all carefully.
[One (M8) General] venoms2k:
Thanks mate! Really grateful for Your help will check out the link. Thanks again cheers!
[One (M8) General] ainaz:
I have m8. I got it from a friend last month

And i want to know. Is my m8 international version?

Model: OP6B100

FCC ID: NM8OP6B100 M8n
[One (M8) General] Einwod:
From what we see, yes, it is. However you are S-OFF and the previous owner may have changed more. Post the results of fastboot getvar all after removing your serial and IMEI numbers.
[One (M8) General] ainaz:
Is it a way to delete my phone serial number & IMEI number?

Can you show me how.. step by step
[One (M8) General] ahmed.ismael:
He mean to remove them from the result

To get getvar result do the following

Reboot the device to bootloader,connect the device to PC

Open CMD window

Type

fastboot getvar all

Copy the result and paste it here

( remove imei and serialno from the result before posting )
[One (M8) General] ainaz:
Ok, I will try . Thank's for answer

---------- Post added at 06:16 PM ---------- Previous post was at 05:58 PM ----------

Here it is [MENTION=3741261]Einwod[/MENTION]

INFOversion: 0.5

INFOversion-bootloader: 3.19.0.0000

INFOversion-baseband: 1.29.214500021.12G

INFOversion-cpld: None

INFOversion-microp: None

INFOversion-main: 6.12.401.4

INFOversion-misc: PVT SHIP S-OFF

INFOserialno: *********

INFOimei: *********

INFOimei2: Not Support

INFOmeid: 00000000000000

INFOproduct: m8_ul

INFOplatform: hTCBmsm8974

INFOmodelid: 0P6B10000

INFOcidnum: 11111111

INFObattery-status: good

INFObattery-voltage: 0mV

INFOpartition-layout: Generic

INFOsecurity: off

INFObuild-mode: SHIP

INFOboot-mode: FASTBOOT

INFOcommitno-bootloader: 76df2b54

INFOhbootpreupdate: 11

INFOgencheckpt: 0
[One (M8) General] ahmed.ismael:
It's international variant now

However you can convert it to any GSM variant
[One (M8) General] ainaz:
Where was I to know that it is m8 international variant?
[One (M8) General] ahmed.ismael:
M8_ul = gsm variant

Mid 0P6B10000 = gsm variant

Version main ( 6.12.401.4 ) = WWE ( international )