yashsingh1/xdaforums huggingface dataset:
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
You need to check Sprint section not in here which is meant for GSM only.

Read - https://xdaforums.com/showthread.php?t=2729173
[One (M8) Q&A, Help & Troubleshooting] elchin_ea:
Hi. Could you tell me, please, wich TWRP backup, should I choose for (Marshmallow) - from post #3 ?

By the way, my issue is power Button. This device is rooted and everything was ok, from recovery mode I delete some files by mistake since then power button does not work well. Should press and hold for a long time to power on.
[One (M8) Q&A, Help & Troubleshooting] Hashk:
Thanks for your help mate.

Peace to you all.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Only if you provide details about your device (fastboot getvar all, and post the details - delete IMEI and serial number before posting).

What exactly did you delete, and why?
[One (M8) Q&A, Help & Troubleshooting] arash13131313:
Chinese Version

I own an HTC one m8 chinese version. I tried to root the phone. I unlocked bootloader, installed TWRP, and Installed supersu.zip from TWRP. the phone turned on.But the superSU was not working because of binary update issue. I google the reason, found out that I have to install newer supersu.So I did. but the phone never truned on again. it shows the chinese logo,but after that goes into a black screen and stays there.

I can Reset the phone, the same thing happens. I can go to boolloader and Factory reset, but the result is the same.

I did not make a backup before rooting :( ;

Please help me. :(:(:crying::crying:
[One (M8) Q&A, Help & Troubleshooting] elchin_ea:
If I'm not mistaken, from advanced I chose everything and deleted them. The reason was wanted to install a new custom ROM.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
I'm still not understanding what you did, what you are asking for, or the current condition. If you really did wipe everything, then there is no operating system. So of course, the power button will not allow you to boot to OS. This is a lot different from saying the power button "does not work well".

On the other hand, if your goal was to install a custom ROM, then why not just flash the ROM? Or for that matter, why are you asking for the stock ROM (TWRP backup)?

Basically, your story is all jumbled up. You need to start form the beginning, describe what exactly you did (in chronological order), and what you are trying to accomplish.

---------- Post added at 11:03 AM ---------- Previous post was at 11:01 AM ----------

I linked you to this thread, so you can take a look and see if your stock backup is posted.

I did

NOT

tell you to repeat (copy/paste) your same exact question here. The answer is the same here, as in your other thread: You need to provide the requested info in order for anyone to help.

https://xdaforums.com/htc-one-m8/help/htc-one-m8-wont-chinese-version-t3802678
[One (M8) Q&A, Help & Troubleshooting] elchin_ea:
I'll try to explain one more time. First of all, a few months ago, I installed custom ROM and Supersu, everything was fine. Then I tried to install another ROM, that is why from TWRP I chose all and erased all. Yeah then was no OS, but I installed a new one. Till today everything is fine, except the power button. By the way, in H-Boot page, when I press volume down button, it goes till the second option.

What about stock twrp, I tested it. Unfortunately, it does not change anything. The device worked well, even offline radio appeared (no in my device Viper rom and It does not has ofline radio). Hope, I could explain my issue.

Sorry for my English.

What about this message. I don't understand. I did not copy/paste anything =)
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Look at the quote where I responding "don't cut and paste". It was directed to another user, not you.

It's the way the forum works. If I post 2 replies within a certain amount of time, it will merge the replies into one post. Yeah, I know it is a little confusing.

My advice would be to run the RUU for your device. This is a complete factory image, all 40+ or so partitions; and basically returns all software and firmware to stock factory condition. Not just a ROM or TWRP backup, which is only 2 of those partitions. After RUU, if the problem with the power button remains, it is likely a hardware issue. Flashing a ROM may have just been a coincidence with the power button issue.

I've already provided the RUU to you some time ago (last year) and your response was argumentative. So I certainly am not going out of my way to provide it again.

In regards to the "Advanced" wipe options in TWRP, I would strongly suggest only wiping partitions you fully understand (you know what they mean, and what the specific result will be from wiping it). As wiping these have no effect on the function of the power button; and no reason to believe that they do.
[One (M8) Q&A, Help & Troubleshooting] elchin_ea:
Oh I see.

Yeah, you're right, before you shared RUU file's link. That one I have already tried and as I said before it resolved Radio issue but not the power button.

Can you tell me what is the kernel source code, which htc offer in htcdev.com? Should I try it?
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
No

, you definitely should not "try" the kernel source code. There is nothing to "try". This isn't something you can install to your device. Kernel source code is made available for developers to make things like custom kernels. It's not useful to anyone but developers.

The kernel itself (not the same as kernel source code) was already flashed when you did RUU, like every other partition on the device (returned to stock/factory condition). There is nothing else to try in terms of software/firmware. Since the power button problem persists after RUU, I would assume a hardware failure (as I already mentioned).
[One (M8) Q&A, Help & Troubleshooting] elchin_ea:
Thanks a lot. I really appreciate your help. Yeah, I guess, it is a hardware issue. Thanks a lot for your effort. Have a nice weekend. :)
[One (M8) Q&A, Help & Troubleshooting] Kenzie_mckenzie:
Having issues using LTE on my sprint firmware, flashing non_sprint RUU resolves this?... Am on S-off already with super CID
[One (M8) Q&A, Help & Troubleshooting] pmkozman:
whenever i try to restore the backup , a message in twrp appears saying "mounted read only"

what should i do ?
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
No.

If you have a Sprint device, you need to use Sprint firmwares/RUUs. All others are incompatible.
[One (M8) Q&A, Help & Troubleshooting] Kenzie_mckenzie:
Thank you
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Will not fix LTE. In fact, a non-Sprint RUU to your device will result in a radio brick and NO cell connectivity at all. Sometimes the damage is permanent.
[One (M8) Q&A, Help & Troubleshooting] nunclud:
I have an m8d, International version and I have been running RR custom OS , and twrp, (Latest). I want to go back to stock 100% but I am still S-ON. How do I go about it. Will I also be able to reset the warning flags. Here is my bootloader. I made a stock backup from twrp before flashing the custom OS. Will that be useful for my going back to stock and I restoring stock recovery, also being able to get OTA. Thanks
[One (M8) Q&A, Help & Troubleshooting] nunclud:
Update.

I was able to get back to stock with my stock MM backup. Only thing left is to lock BL and reset flag. I might not be doing that as it is not necessary for what i want the phone to do now.

:good:
[One (M8) Q&A, Help & Troubleshooting] Einwod:
You can't reset the flag without S-OFF, so it's hardly worth it.
[One (M8) Q&A, Help & Troubleshooting] nunclud:
YEah, i know, but am not planing to since i may b going back to custom ROM after the project i am doing with the phone now that required the stock ROM. I didnt even bother locking the BL. Am fine with what i have now. Thanks.:good:
[One (M8) Q&A, Help & Troubleshooting] eskimosound:
Hi There, can someone please tell me what the last official European M8 RUU was and point me to a link please....
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
https://androidfilehost.com/?fid=24369303960687102
[One (M8) Q&A, Help & Troubleshooting] mrrocketdog:
huu !!!!!! canadians. go figure. :)

err on the side of kindness
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
What can I say¯\_(ツ)_/¯ :angel:
[One (M8) Q&A, Help & Troubleshooting] sayad1:
Plz help

[MENTION=830797]ckpv5[/MENTION] sir

Please help me I need ruu file that can flash via fastboit or sd card

My phone only boot into boolloader not even recovery or system

Also I flashed recovery but nothing happened my boot loader is unlocked :crying:
[One (M8) Q&A, Help & Troubleshooting] eskimosound:
Give us a clue, which country are you in, what network are you with?

You could use the link two posts above!
[One (M8) Q&A, Help & Troubleshooting] sayad1:
Now I am in Qatar but device cider voda021
[One (M8) Q&A, Help & Troubleshooting] Einwod:
You have M8s. Not available here.
[One (M8) Q&A, Help & Troubleshooting] sayad1:
It's m8su
[One (M8) Q&A, Help & Troubleshooting] Einwod:
There are no backups for that model here.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Then you should solve the "how to install twrp" not jump to post #5 which is totally different procedure.

Assuming you're new to android modding .. read this

https://xdaforums.com/showpost.php?p=53807690&postcount=1

You just need to read on how to unlock bootloader and how to install custom recovery i.e TWRP

After doing these 2 steps then only you can proceed those on post #1.
[One (M8) Q&A, Help & Troubleshooting] cristeoleo:
Please, i need a hboot for htv m8 6.20.508.2. Thanks
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Never see any x.xx.508.x before. What CID/MID is that ?

Post fastboot getvar all result.
[One (M8) Q&A, Help & Troubleshooting] cristeoleo:
I did something silly, flash other firmware and now version disappear

---------- Post added at 12:44 AM ---------- Previous post was at 12:43 AM ----------

PS C:\M8> fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.29.214500021.11G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

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

(bootloader) serialno: FA51XWM03439

(bootloader) imei: 358718054460709

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8_ul_ca

(bootloader) platform: hTCBmsm8974

(bootloader) modelid: 0P6B12000

(bootloader) cidnum: HTC__332

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

PS C:\M8>
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
It's not firmware, the ROM (maybe LOS 16) that you installed remove the version on bootloader. I have the same thing.

Still .. there is no x.xx.508.x that I know but based on your fastboot getvar all version, the correct version no. I believe is 6.20.598.2 not 6.20.508.2

There is no free RUU for this 6.20.598.2 (only paid service is available). If you have 1.57.598.2 backup, you can restore and OTA to 6.20.598.2 to fix the version no. on bootloader. Frankly speaking you should not worry about missing version no., won't affect anything as you already on latest firmware.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Please don't quote a whole huge, page long post, just to ask a one-sentence question. I know including the quote is default if you reply to a post. But simply delete what isn't directly relevant to your question, to avoid cluttering up the forum.

There is no version number 6.20.508.2, which ckpv5 mentioned. You have the AT&T version M8, based on your getvar output. So I think you mean 6.20.502.5 (Marshmallow version number for AT&T M8).

However, it's not clear what you are asking for, and why. You are asking for hboot, but hboot is the same for all Marshmallow M8 (3.19.0.0000) and Lollipop, for that matter. Hboot is already up to date, and flashing hboot will not in itself accomplish anything. You also can

NOT

flash hboot by itself when s-on. It will only flash with a signed firmware.zip or RUU.

You might mean firmware (since you quoted the post regarding firmware) but I'd still like you to clarify exactly what you are trying to do. Flashing firmware by itself will render the phone unable to boot, unless you flash RUU, or alternately unlock the bootloader, flash TWRP, and custom ROM.

Further, your CID (HTC__332) doesn't match that for the AT&T model. Your CID corresponds with model 0P6B16000 (AT&T is model 0P6B12000 as shown in your getvar output). So this would indicate the phone had the CID modified (probably under s-off, then made s-on afterwards).

The CID really complicates the matter, as trying to flash an AT&T RUU or firmware will fail due to wrong CID. And you may not want to do that anyway, since flashing AT&T firmware/RUU will change the network band support.

But again, you need to provide some details on what has been done to the phone, and what you are trying to accomplish, exactly.
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Just for information ....

CID HTC_332 has two different MID which is different variant.

CID HTC_332 / MID 0P6B16000 - x.xx.599.x - HTC LA SPA

CID HTC_332 / MID 0P6B12000 - x.xx.598.x - HTC LA AMX SPA

I don't post anything for x.xx.598.x because I couldn't find any backup to start with (was searching for 1.57.598.2 but not available)
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
That is interesting (weird) that this CID ended up with the same model name (and product ID) as the AT&T and US Dev Edition.

What region is this (CID HTC_332)?

Thanks for the info, as always!
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Latin America (SPA I believe refers to Spanish as speaking language)

Seems like they have 6 different telco but so far I know only 2 dealing for htc m8.

HTC_LA_SPA

HTC_LA_AMX_SPA

Other four are :

HTC_LA_ENTEL_SPA

HTC_LA_ESN_TELCEL_SPA

HTC_LA_IUSACELL_MX_SPA

HTC_LA_TELEFONICA_SPA
[One (M8) Q&A, Help & Troubleshooting] cristeoleo:
- Yes, i have LOS16

- Yes, i think that is 6.20.598.2

- What do you want to see with "only paid service". Who do this?

- Well at the beginning to flash 6.20.709.2_NoRedText_hboot.zip and 6.20.709.2_FauxLocked_hboot.zip the recovery disappear, i flash recovery gain but disappear again, to the third time don´t disappear.

- Now i feel a quote of lag in the recovery menu.

---------- Post added at 05:40 PM ---------- Previous post was at 05:37 PM ----------

My operator is Claro Perú, therefore my m8 should be CID HTC_332 / MID 0P6B12000 - x.xx.598.x - HTC LA AMX SPA
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
You can't flash those hboot files with s-on (as I already mentioned).

Are you saying custom recovery TWRP disappeared?
[One (M8) Q&A, Help & Troubleshooting] cristeoleo:
I flash 6.20.709.2, i use this method of this thread: https://xdaforums.com/showthread.php?t=2710503

Quote:

Is there away of getting this working w/o a PC? Don't got a PC ATM :( and I hate the red text...

1.) Download your modified hboot

2.) Rename the file to 0P6BIMG.zip

3.) Put the renamed file on your external_SD (not internal)

4.) Boot into hboot, it should see the file and prompt you to update

5.) After you have updated your hboot, make sure to remove the 0P6BIMG.zip from your external_sd.

Or else it will see the file and prompt you to update, every time you reboot to bootloader/hboot.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
Doesn't matter what method, you can't flash a modified hboot with s-on. You simply can't.

Quote from the same thread:

You must be S-Off to do this!
[One (M8) Q&A, Help & Troubleshooting] Einwod:
Have you flashed the stock recovery? Updates must have stock recovery or will give errors.

Why did you go back to older firmware. Flash the 6 version again before going back to stock recovery.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
No, that is not correct to flash an older version first. Since you flashed fw_6.12.161.4, then just restore same number stock nandroid backup 6.12.161.4 with TWRP. That's it. You will be on the latest (last) OS number 6.12.161.4 and no updating required.
[One (M8) Q&A, Help & Troubleshooting] metafizik:
Could someone please tell me which of the Marshmallow TWRP Nandroid backups I need to restore to get the Android 6.x firmware on my wifes HTC One M8 (carrier is Cricket/AT&T network)? My CID is 11111111.

I made the mistake of restoring a stock KitKat Nandroid firmware and when I restored a Marshmallow Viper backup I had the WiFi doesn't work. I have never been able to get that Windows RUU Firmware to work & have no desire to boot any of my systems into Windows to try that again. I just need to get the firmware up to the latest stock so I can restore Viper again and have everything working. I don't care which one I restore as long as it is GSM since I will be immediately restoring a Marshmallow custom ROM
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
CID is 11111111, so you are S-Off I presume? Well, wiping your phone is probably not a concern for you now, so it would probably be best for you to just flash an RUU.

You can flash any RUU since you are S-Off (I presume), but here is the RUU.zip for the AT&T version.
[One (M8) Q&A, Help & Troubleshooting] metafizik:
Thank you for that xunholyx. Should I flash this zip with fastboot or can I use TWRP? I am guessing not TWRP as I presume it will replace the recovery?
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
There are two ways to flash it.

The easiest way is to rename the RUU.zip by removing everything in the name of it except for 0P6BIMG (and .zip of course), putting that into the root of your extSD card (by "root of" I mean just on the card and not in a folder), and booting to bootloader. The process should start automatically.

You can also flash it in RUU mode

adb reboot bootloader

fastboot oem rebootRUU

fastboot flash zip **drag and drop the RUU.zip here**

You might get a fail without flashing the firmware first, (I seem to recall that with the M8 and the Marshmallow update)

Since you are going to flash a custom ROM anyway, you could also just flash the firmware alone, and not the RUU.zip. You can get the AT&T firmware.zip from here. It's a no-wipe firmware, so you won't lose anything like you would with flashing the RUU.

To flash the firmware, use one of the two methods I outlined above.

Good luck!
[One (M8) Q&A, Help & Troubleshooting] Bob in the UK:
Thank you to both Einwood and Redpoint73 for taking the time and trouble to read and answery my query #2538.

Just got back from a short break late yesterday and I followed what you suggested Redpoint73.

The phone is up and running as should be. It seems obvious now – DOH !!! :o

Genuinely grateful to you for you helping a noob.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
The process (and your questions) were far from obvious. You were right to stop and ask. Nice work getting it done! And you're quite welcome.

---------- Post added at 09:33 AM ---------- Previous post was at 09:27 AM ----------

Which firmware you flash matters quite a bit (not just GSM) as band support is determined in firmware for this device. xunholyx has you covered on that note (AT&T firmware). Flashing almost any other (except AT&T) will likely result in not having LTE, or not having data (3G) at all, since those bands are pretty much AT&T specific. Or for that matter not phone service at all, since I believe AT&T has shut off GSM in most regions at this point?
[One (M8) Q&A, Help & Troubleshooting] tasifahmed:
which firmware you installed for that ?

hello need to know about the firmware version
[One (M8) Q&A, Help & Troubleshooting] DoKyMoBiL:
Thank you so much , u saved my phone ! its takes 4 hours,when im understand everithing,but job done !
[One (M8) Q&A, Help & Troubleshooting] Alex IvanoVVV:
Favorite HTC One (M8)

Hello ckpv5. Please tell me the sequence of actions. What forward you need to download for my "HTC One (M8)". You really are a cool person. Here is the information:

fastboot getvar all

C:\Users\Алекс>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: 6.12.401.4
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: SH***
(bootloader) imei: 35***
(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
all: Done!
Finished. Total time: 0.031s

Unable to lock the boot loader to try flash RUU

fastboot oem lock

C:\Users\Алекс>fastboot oem lock
(bootloader) [PGFS] partition_update_pgfs: pg1fs_security
(bootloader) TZ_HTC_SVC_ENC ret = 0
(bootloader) [PGFS] partition_update_pgfs: pg2fs_sec_recovery
(bootloader) Lock successfully...
(bootloader) deinit_lcd
(bootloader) mipi display off
(bootloader) mdp_clock_off
(bootloader) turn off fd8c2308 failed 1 times. Try again...
(bootloader) disable_mmss_clk done
(bootloader) pll1_disable done
(bootloader) TZ_HTC_SVC_DISABLE ret = -1610744452 (0x9FFDFD7C)
(bootloader) [CRITICAL] SPMI write command failure:
cmd_id = 0, error
(bootloader) = 4
(bootloader) [CRITICAL] SPMI write command failure:
cmd_id = 0, error
(bootloader) = 4
(bootloader) [ERR] Cannot halt SPMI arbiter!!
(bootloader) [INFO] Rebooting device
FAILED (Status read failed (Unknown error))
Finished. Total time: 1.252s

Thank you for understanding.
[One (M8) Q&A, Help & Troubleshooting] Einwod:
Everything you need to do is in the first 5 posts. Simply read, read again and follow the instructions. It's in plain English and could not be made any easier.
[One (M8) Q&A, Help & Troubleshooting] Gor-:
Many thanks

This post has been quite useful.

I spent the last few days trying to root the HTC One M8 without success, despite following each step of the Hansoons tool, i.e. getting to unlock the bootloader, installing TWRP, and after installing supersu via recovery. Each time I installed the SuperSU, I still got a message to the effect that SU binary not found or installed hence it could not work. I really needed to remove the abundant bloatware on the phone. In trying different SuperSU's, my phone ended up not booting fully and got stuck at the HTC logo.

These instructions, which I have tried to follow keenly seem to have led somewhere as my phone now is starting and optimizing apps. THANKS GOODNESS for you guys.

Could you kindly point me to how I could remove all the unnecessary bloatware on the software, since I did not manage to root it successfully.

THANK YOU VERY MUCH.