yashsingh1/xdaforums huggingface dataset:
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
Hello, I tired to root my phone then I screwed up and got stock in bootloop . Then I tried factory resetting and accidentally formatted SYSTEM. That's when I totally screwed up. I decided to go with CyanogenMod for a while and it worked perfectly fine. But now I wanna be back on stock

This is my fastboot getvar all

C:\Users\Llorente\Desktop\fastboot>fastboot getvar all

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

(bootloader) imei: xxxxxxxxxxxxxxxxxx

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B67000

(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: 205bdca3

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.036s

as you can see my main version is empty.

I searched a little and someone had the same problem and they said they'd do a TWRP reset then get the OTA then they got their main version back.

after some research I found out because of my HTC__J15 I should resotre .401. Roms. So I'd restore TWRP 4.16.401.10 and when I tried to get OTA it said "We have determined that you may have a modified software to prevent damage to your phone we won't update your phone blah blah blah" and it is fully stock and unrooted. only unlokced bootlaoder. I flashed it's Stock recovery too. and main version is still empty.

Phone was bought unlocked in Iran. and I was on Android M before anything went wrong.

So what do I do now to get my main version back? Should I try to restore 6.12.401.4 ?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Your device is a Middle East variant and they don't use the Intl EU WWE version but their own version. No one ever share their nandroid and I can't find one.

6.12.401.4 won't work for you (as real stock).

To get your version-main back you need to flash its firmware but I don't know their version no.

Don't you remember the version no. ? Then I can try to find one.
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
I didn't even look at my version no. before things went south. All I remember is I was running Android M.

But a lot of phones here are said to be Europe variants. can you tell me what entry indicates my phone is a Middle East variant?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Your MID is the indicator.

Normal EU is 10000 not 67000

The only info that I have the lollipop version is 4.34.401.1

If you can find this backup some where then you redo OTA to MM and fix your version-main issue.
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
So isn't there a way I can know what to download? like something on the box?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
See my edited previous post.

If you can spend USD25 to S-Off then it is easier to fix your problem.

But your problem is not big deal. With your current details you can install any GSM custom ROM.

You only can't do OTA and I don't think there is more OTA to come as htc has drop support for M8 (in term of OTA)
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
I saw it and I'm searching for that version IF I find it I will provide it here.

I'm actually considering S-OFF

BUT I can run latest official MM android on my phone with no problem right? (only problem being version main empty)

EDIT

Okay So I found it, I don't know if it's RUU or TWRP cuz it's not downloaded yet.

4.34.401.1

https://mega.nz/#!vlkTTIrY!Aux5XydlR-G0z02kvgT6nPL5nMNGWVYFmFDA-Aja_8A

Do I need the F.W too ?

and for the recovery can I just use something that starts with 4.x.xxx.x?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Great find ... but that's a RUU zip. As you said your device is on Marshmallow, you won't be able to use this RUU zip but I can (hopefully).

I'm downloading this RUU zip now .. if it is successful then I will make nandroid backup and update to Marshmallow too and I'll get you a proper firmware to fix your version-main problem.

I'll confirm these later .. in one or two hours (my internet is not fast enough).

About your other questions ... you cannot run latest MM RUU but you restore the official latest MM 6.12.401.4 nandroid backup with no problem. You just can't OTA (you'll get that "system variant error")

Recovery must be specific .. not some 4.xx.xxx.x or 6.xx.xxx.x can work on your device.
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
Thank you so much.

So from what I understood you will somehow turn that RUU into a TWRP backup and provide it to me then when I restore it, my main version will be back and my device will be stock.(Recovery and Firmware included), right?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Yes .. I will make TWRP backup for both LP and MM.

You can fix the version-main by flashing the MM firmware.

So you need to restore to MM backup first then flash MM firmware. This will get your device back to stock with recovery and version-main visible.

But I can only confirm this later after I successfully install it.
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
Okay thanks a LOT sir, I'll be waiting.
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
Do you think you could tell me if you succeeded by the next couple of hours?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
The one from the link that you gave, doesn't work for me. I tried 3 different methods .. microSD, Aruwizard & fastboot flashing ... now I'm downloading the zip from different source. (maybe my download is corrupted)

BUT ... I also found the link for the Marshmallow RUU.zip - 6.21.401.1 and for this Marshmallow zip, I successfully flash it and now rebooting - apps optimizing ... :D

View attachment 3772556

If you want this .. I'll give you the link and how-to flash it (if needed).

It's 3.00 AM here .. I'll get back to you tomorrow.
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
Thanks for your reply ::)

I downloaded it too but it was corrupted as well.

With the said RUU, I will get my main version back and my phone be back to stock?

If so please provide me with the link and the guide for it. if not I'll try to find another link.

Is this the guide for it?

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

If so then I just need the link for the RUU. I'll follow the guide and post the results here.

Thanks again.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
The one from other source is corrupted too ...

Use that guide .. but put the RUU.zip in your adb/fastboot folder. That guide was written for the system-wide adb/fastboot - http://xdaforums.com/showpost.php?p=64926362&postcount=4

and you need to relock bootloader because your device is S-On.

command :

fastboot oem lock

fastboot reboot-bootloader

Here is the RUU link : http://alnajat.co/mob/ftp/mob/HTC F...2G_20.72.4196t.01_F_release_467037_signed.zip

Note : this procedure will delete everything on your device including your internal storage. If you have important files, make backup first.

This should fix your version-main problem, give you stock recovery and stock ROM ... out of the box state device.

I need to go now .. I'll check your progress tomorrow .. good night.
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
Thanks for the link however I downloaded it twice and both time the archvie was corrupted. is it supposed to happen with RUU zips? or the link is bad RUU zip file?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
What do you mean by the archive was corrupted ? Are you trying to extract it with 7-zip or winrar or windows archiever ? It is a htc signed zip, you won't be able to extract it. It is encrypted by htc.

Just follow the guide to htc_fastboot flash it. If it is corrupted you'll get error like too many links, bad header & etc as examples.

Here is the md5 for the zip that I downloaded : 2b0df424f732232420463e09808a9504

Check yours, if it is the same then it is ok.
[One (M8) Q&A, Help & Troubleshooting] KARIM9377:
hi

can i use RUU ZIP with s-on htc one m8 with SD card hboot 0P6BIMG way

i have

relocked bootloader

Software :no 6.12.401.4

CID HTC__J15

ruu i am going to use 6.12.401.4

CID HTC__J15
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Are you referring to this device that you have - http://xdaforums.com/showpost.php?p=66836314&postcount=1645

If yes, you can't use 6.12.401.4 RUU but you need 6.21.401.1 RUU and yes you can use microSD method but must use correct RUU.
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
Yes I was trying to extract it to see if it's corrupted or not :D

I followed the guide and it's all good now, version main is back and apps optimizing now:o:o. Thank you!

I have one more question but it's not topic related, but the reason I screwed up in the first place was I was trying to root it. do you have a link to a guide to show me how to properly root MM?

Thanks agian!
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Your problem was wrong/outdated TWRP recovery that you installed. The missing version-main indicates that you installed TWRP 2.7.x.x and accepted the root offered by TWRP which is not compatible to Marshmallow.

I don't know any guide on how to root MM .. but here is my own :

1. Unlock the bootloader again with the unlock_code.bin that received from HTC. If not working, apply for a new one.

2. Install the latest TWRP (current latest is 3.0.2-0) - https://dl.twrp.me/m8/

3. Download SuperSU.zip - http://download.chainfire.eu/supersu-stable

4. Install the SuperSU.zip in recovery.

Due to S-On device, some rooted apps may not play nice due to stock kernel write protection enabled.

You can install a custom kernel like ElementalX and few others made for Sense Marshmallow as all custom kernel come with write protection disabled, so you'll get full root.

I suggest this [MENTION=1148003]lyapota[/MENTION] kernel which is based on 6.21.401.1 kernel source - http://xdaforums.com/showpost.php?p=66053720&postcount=778
[One (M8) Q&A, Help & Troubleshooting] nYm7697:
Thanks.

So I should NOT accept root offer by TWPR right?
[One (M8) Q&A, Help & Troubleshooting] glalizas:
How do i flash signed firmware? Its zip , do i install through TWRP ?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
This is for advance user ....

I see that [MENTION=3741261]Einwod[/MENTION] already guided you in ARHD thread .. so follow his guide. You just need to relock bootloader first because your device is S-On.
[One (M8) Q&A, Help & Troubleshooting] md1032:
Greetings, i have a HTC M8 (unlocked, s-on, latest twrp (3.0.2-0) and android revolution v43 rom),

fastboot getvar all shows me the following

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

(bootloader) imei: xxxxxx

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B10000

(bootloader) cidnum: HTC__Y13

(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.000s

i want to get back to stock and update the fw to latest etc so i can sell it, i can use this guide right?
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Yes.

Restore the stock backup corresponding to your version-main number (4.16.401.13); and corresponding stock recovery (again 4.15.401.13). Than OTA to Marshmallow, and you should be good to go.
[One (M8) Q&A, Help & Troubleshooting] md1032:
Thank you, i did all that with success and from "Settings" -> "Software Information" menu i can see the following:

Android version: 5.0.1

HTC Sense version: 6.0

Software number: 4.16.401.13

I tried to get the OTA updates and it did get 4 small ones but when after these i try again it says there is no update available.

I tried rebooting many times and i did all the updates from play store.

Is there anything else i should do to update it?

Thank you in advance.
[One (M8) Q&A, Help & Troubleshooting] :
this RUU zip worked on my device. I could flash by microSD card method with this firmware 4.16.401.10 under cid HTC__J15 & mid 0P6B67000. why didn't I get MM OTA update after this version 4.34.401.1. But I got pre update. can I get to know how I can read android-info.txt of above mentioned RUU zip. also the way how to create a firmware zip from the RUU zip?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
[MENTION=6755160]umesh.lk[/MENTION]

Are you saying you run 4.16.401.10 with modified android-info.txt first before you run the 4.34.401.1 RUU with microSD method ? Is your device S-Off now ? I remember it was S-On before when you were on 3x firmware.

I've been searching for 4.34.401.1 firmware.zip as I expect flashing the firmware.zip first then I may be able to flash 4.34.401.1 RUU. Will try your method if that is correct.

I have no idea about making firmware.zip .. maybe can be extracted out after decrypting it if on linux but I'm on Windows.
[One (M8) Q&A, Help & Troubleshooting] :
I meant flashing by bootloader as microSD card method. i'm s-off. I could flash 4.34.401.1 under lolipop hboot 4.16.401.10. when mid100, I flashed 4.16.401.10 firmware & then I changed mid670. Later I flashed 4.34.401.1 by bootloader. It was successful. But under mid670 & cidJ_15, I didn't get MM OTA update to 4.34.401.1. I only got 3file preupdate.

I couldn't flash RUU(6.21.401.1) downloaded from your link by bootloader. what is the method used to flash that RUU? I think there must be 6.21.401.1 hboot. can you give me 6.21.401.1 firmware link? thank you.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
I don't have 6.21.401.1 firmware.

You can do the same as you did for 4.34.401.1, install 6.12.401.4 firmware, make sure the MID is 0P6B67000, CID HTC__001 or HTC__J15 or SuperCID. Then you can install 6.21.401.1 RUU either fastboot in RUU mode or microSD method.

In fact any MM firmware should do, only need the correct CID/MID.
[One (M8) Q&A, Help & Troubleshooting] mihran_thalhath:
[MENTION=830797]ckpv5[/MENTION] I am currently running a Marshmallow Custom Rom. Can I revert back to Stock Kitkat or Lollipop using Nandroid backup?
[One (M8) Q&A, Help & Troubleshooting] :
[MENTION=830797]ckpv5[/MENTION]

thanks for your advice. successfully I could flash MM. can I get to know the difference between M8_UL & M8_UHL? But can I get to know why I didn't get OTA update to MM from lollipop? Is that reason for not giving OTA update, the difference between UL & UHL?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Haha ... those you asked me as seems as I'm working with HTC :)

I have no idea about the difference between M8_UL & UHL. What I know they have different LTE where UL has FDD-LTE but UHL has FDD-LTE & TDD-LTE (you can google for info)

No idea why no OTA ... I'll install 4.34.401.1 when I have time to see .. just back from outstation.
[One (M8) Q&A, Help & Troubleshooting] :
between careless people & liars, you are a diamond. I'm regret for disturbing you.

finally can I get to know, when we check updates, device shows updated after examining what type of things? (mid, cid, main-version)
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
No worry ... :)

When we check for OTA, it is based on the build.prop that we have in system. That's why sometime we see people with Asia region but put a EU ROM will get OTA notification for EU but fail to install with "system variant error" (as example) because when installing OTA, it checks CID/MID.

Downloading - base on build.prop

Installing - base on CID/MID
[One (M8) Q&A, Help & Troubleshooting] BlackMambo90:
Can i use this on my locked, S-ON phone?
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
No ... only for unlocked bootloader.

S-On doesn't matter.

Your getvar all in other thread show baseband INVALID_VER_INFO

You should try to fastboot flash the firmware.zip first to see whether it will fix your problem or to unlock bootloader.

You can get the signed firmware on post #5.
[One (M8) Q&A, Help & Troubleshooting] BlackMambo90:
When i try to flash the firmware i get this:

C:\Users\******\Desktop\Nuova cartella>fastboot flash firmware firmware.zip

target reported max download size of 1826308096 bytes

sending 'firmware' (53848 KB)...

OKAY [ 3.085s]

writing 'firmware'...

(bootloader) signature checking...

FAILED (remote: signature verify fail)

finished. total time: 5.939s

And i can't unlock the bootloader because the phone doesn't give me the screen to unlock the bootlader.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
1. Maybe wrong firmware .. signature error.

Download fw_6.12.161.4.zip from post #5

2. Wrong command - correct ones as follows

fastboot oem rebootRUU

fastboot flash zip fw_6.12.161.4.zip

you'll see ERROR, repeat

fastboot flash zip fw_6.12.161.4.zip
[One (M8) Q&A, Help & Troubleshooting] BlackMambo90:
Downloaded the right firmware.

C:\Users\*****\Desktop\Nuova cartella>fastboot oem rebootRUU

...

(bootloader) Error: Command never completed

(bootloader) Error: Command timeout error

(bootloader) Error: Command completed with errors

(bootloader) Failed Reading block @ 786432

(bootloader) [SD_ERR] sd_read_sector: read sector failed (786432 256)

(bootloader) [ERR] partition_read_emmc(589): error -1

(bootloader) Start Verify: 3

(bootloader) Error: Command never completed

(bootloader) Error: Command timeout error

(bootloader) Error: Command completed with errors

(bootloader) Failed Writing block @ 786432

(bootloader) [SD_ERR] sd_write_sector: write sector failed (786432 256)

OKAY [ 10.069s]

finished. total time: 10.069s

Tried the right command this time and i get this:

C:\Users\****\Desktop\Nuova cartella>fastboot flash zip firmware.zip

target reported max download size of 1771147264 bytes

sending 'zip' (53848 KB)...

OKAY [ 3.075s]

writing 'zip'...

(bootloader) adopting the signature contained in this image...

(bootloader) signature checking...

FAILED (remote: not allowed)

finished. total time: 18.203s

C:\Users\*****\Desktop\Nuova cartella>fastboot flash zip firmware.zip

target reported max download size of 1771143168 bytes

sending 'zip' (53848 KB)...

OKAY [ 3.070s]

writing 'zip'...

(bootloader) adopting the signature contained in this image...

(bootloader) signature checking...

FAILED (remote: not allowed)

finished. total time: 5.932s
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Won't work if not in RUU mode.

Try microSD method .. I'm on mobile can't write the guide.

Search for the method.

BUT .. I just notice you have emmc error, that's not a good sign.

That means a hardware failure. It's best to send it to htc centre to fix it.
[One (M8) Q&A, Help & Troubleshooting] BlackMambo90:
Parsing..[SD ZIP]

Reset HTC Debug Flag...

[1]ADSP

[2]BOOT

[3]BOOTLOADER -Fail-PU

[4]RECOVERY

[5]RPM

[6]SBL1(3)

[7]SENSOR HUB

[8]SPASH1

[9]TRUST_ZONE

[10]WCNSS

[11]RADIO_V2

[12]RADIO_CUST

Partition update fail!

Update Fail!

Press <POWER> to reboot.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Read my edit on previous post ... hardware failure
[One (M8) Q&A, Help & Troubleshooting] BlackMambo90:
Oh :'( thanks will call the support monday, already sent them an email.

It got stuck after i updated to marshmallow.
[One (M8) Q&A, Help & Troubleshooting] TheRebel:
Hello,

Is MM RUU.exe for CID HTC__016 now available?
[One (M8) Q&A, Help & Troubleshooting] Einwod:
He wrote this: This Marshmallow RUU is a RUU.zip so you need htc_fastboot. No RUU.exe available for Marshmallow (yet).
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Don't think there will be any RUU.exe. It's been awhile since we have the RUU.zip

Why actually you need RUU exe ?

As long as we have a RUU zip, we can fastboot flash it.

If we don't want to fastboot flash the zip, we can make our own RUU exe (sort of)
[One (M8) Q&A, Help & Troubleshooting] Unauthorised:
[MENTION=830797]ckpv5[/MENTION] will u please guide us how to make ruu. Exe from ruu. Zip..
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
The Marshmallow WWE RUU.zip is signed, so you can flash it via the SDcard method even if you are S-On, if you don't want to fastboot flash it.

Rename the zip to 0P6BIMG.zip and place it onto the root of your extSD (formatted to fat32). Boot to bootloader and select hboot if you have to. It'll flash automagically.

Delete the zip from your extSD after the flash (or rename it to something else) or it will try to update everytime you go to bootloader/hboot
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
As we already know we can use htc_fastboot.exe to install RUU.zip in RUU mode as shown here :

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

and we can use the microSD method as explained above - thanks [MENTION=4987085]xunholyx[/MENTION]

and there is another way for those prefer the RUU.exe method but we don't really make RUU.exe from RUU.zip..

we're going to use the ARUwizard.exe to install the ROM.

What you need :

1. Windows PC with USB 2.0 (won't work on USB 3.0 as reported by many)

2. Latest HTC USB Drivers installed - http://xdaforums.com/showpost.php?p=64926362&postcount=4

3. Download and extract the attached AruwizardMM.zip for Marshmallow or AruwizardLP.zip for Lollipop anywhere that you like

(maybe on desktop is better place for easy access)

How-To :

1. Download the RUU.zip that you want to install

2. Rename the long file name RUU.zip to rom.zip

3. Put your device on bootloader/fastboot mode and connect to PC

4. If the bootloader is UNLOCKED (for S-On device only), relock it with commands:

fastboot oem lock

fastboot reboot-bootloader

5. Right click the ARUWizard.exe and select Run As Administrator

6. Then follow all the RUU instructions and let it install the rom.zip until it is completed.

7. Your device will be rebooted .. run setup .. done.
[One (M8) Q&A, Help & Troubleshooting] hussein1:
help me bro help me

After flash 6.14.707.1 backup not working wifi:crying:

Please solution:confused:
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
How did you determine 6.14.707.1 was the version to flash?

Fastboot getvar all, and post the results (delete IMEI and serial number before posting).
[One (M8) Q&A, Help & Troubleshooting] hysteria24h:
Can you reupload please?thanks
[One (M8) Q&A, Help & Troubleshooting] neofiliate:
Hi Friends,

Approx 1 yr ago I used TWRP and super SU to achieve root on my HTC M8. I have not done anything with it since so I don't mind losing root but would like to apply the OTA updates that have been released since then. From reading (some of) this and other threads I see I need to replace (flash?) TWRP with a stock recovery. I have TWRP 2.6.x.

I am such a noob at this stuff that a lot of the thread's information is way over my head, but I have determination on my side! :)

Firstly, I may have a backup of the recovery that was on it originally as IIRC I did save some kind of backup to my laptop, I will need to dig that out and see if I still have it. If I do is there a set of steps listed anywhere that I can follow to do this, and what software do I need on my PC to achieve such?

Secondly, if I can not find that backup, I take it I need one of the files listed at the start of this thread - how do I determine which one?

- The OS is till the stock HTC

- Android version 5.0.1

- HTC Sense version 6.0

- Software number 4.19.161.2

- HTC SDK API level unknown

Many thanks for any help friends!

PS: I never did anything with the S-ON/S-OFF thing so it's still at whatever the default normally is XD.

P.P.S. Basically my main goal is simply to be able to apply the OTA updates