yashsingh1/xdaforums huggingface dataset:
[One (M8) Q&A, Help & Troubleshooting] fallenknyt:
HTC One M8X update to Marshmallow

Hi everyone!

I am so thankful for this thread!

I just received an HTC One M8x as a gift. Its brand new so I'm assuming that its not rooted and is purely stock. Here are the details below:

Android Version: 5.0.2

HTC Sense Version: 6.0

Software number: 4.24.709.2

I've don't quite some reading and I believe there is a way to manually update this phone to Marshmallow by flashing using stock recovery. However, I cant seem to find a guide that matches my phone's. Can someone point me in the right direction?

Thanks in advance.
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
Hi fallenknyt

Why you don't just accept the OTA ?

that's not enough info

post the result of ( fastboot getvar all ) after removing serialno and imei

This info will be enough to help
[One (M8) Q&A, Help & Troubleshooting] iloveheart:
need firmware, I try several but all give error

FAILED (remote: 42 custom id check fail)

(remote: 12 signature verify fail)

fastboot-baseband version: INVALID_VER_INFO.

ro.boot.cid=HTC__332

ro.boot.mid=0P6B12000

ro.boot.emmc=true

ro.boot.mode=recovery

ro.boot.podt=0x3E8

ro.boot.engid=0

ro.boot.ddrmid=(0x3)

ro.boot.carrier=COMMON

ro.boot.keycaps=qwerty

ro.boot.selinux=permissive

ro.boot.baseband=1.29.214500021.11G

ro.boot.hardware=qcom

ro.boot.pagesize=2048

ro.boot.rom_type=NORMAL

ro.boot.serialno=FA51XWM03653

ro.boot.devicerev=5

ro.boot.hwversion=B

ro.boot.bootloader=3.19.0.0000

ro.product.board=MSM8974

ro.product.brand=htc

ro.product.model=HTC One_M8

ro.product.device=htc_m8

ro.product.locale.region=US

ro.product.locale.language=en

ro.product.manufacturer=htc

ro.omni.device=m8

ro.omni.version=5.1.1-20160405-m8-HOMEMADE

ro.twrp.boot=1

ro.twrp.version=3.0.2-0

ro.wifi.channels=

ro.allow.mock.location=1

ro.board.platform=msm8974

ro.build.id=LYZ28J

ro.build.date=Mon Apr 4 20:46:48 EDT 2016

ro.build.date.utc=0

ro.build.host=build

ro.build.tags=test-keys

ro.build.type=eng

ro.build.user=jenkins

ro.build.flavor=omni_m8-eng

ro.build.display.id=omni_m8-eng 5.1.1 LYZ28J 9 test-keys
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
you can't try several firmwares you will end by bricking your device

Error 42 indicates that your cid doesn't match the firmware check means it's not your firmware

post getvar all result after removing serialno and imei
[One (M8) Q&A, Help & Troubleshooting] Tamil15:
If the Cid is HTC_332 then model Id should be 0P6B16000. So model id and Cid num is mismatched here..
[One (M8) Q&A, Help & Troubleshooting] fallenknyt:
Hi Ahmed,

I got this phone last August and I have been waiting for that OTA since.. I believe MM started rolling out last January. Its already October but still no OTA. Anyway, here's the phone information below. Hoping for your help.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.26.21331147A1.16G

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 4.24.709.2

(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: 0P6B11000

(bootloader) cidnum: HTC__621

(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: 59ee16dd

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.260s
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
AFAIK there is no RUU available for your device

and you can manually update by flashing stock MM firmware then flashing twrp and restoring stock MM backup then flash the stock MM recovery

Or you can just restore the MM backup only and it will work well on LL firmware

all you need is in this thread

http://xdaforums.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860
[One (M8) Q&A, Help & Troubleshooting] fallenknyt:
Thanks for the link I'll look into it. I also came across this. Can you confirm if this is legit? Also I really don't know which files I need..

rootmygalaxy.net/download-htc-one-m8-official-marshmallow-flashable-ota-update-zip-file

http://www.androidsage.com/2016/01/...te-using-twrp-and-stock-recovery-v6-12-401-4/

Sorry I am kind of a noob to all this flashing stuff.
[One (M8) Q&A, Help & Troubleshooting] Einwod:
Forget that, go to THIS thread and follow the instructions to the letter. You will be back on your stock system and should be able to take OTA updates. Everything you need is in the first 4 or 5 posts. Read carefully.
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
no it's not for your device

all you need is in the link i gave you

if you can't search for your stuff in that thread i will help you

edit _ [MENTION=3741261]Einwod[/MENTION]

i linked ckpv5 thread to him yesterday but he found google much easier
[One (M8) Q&A, Help & Troubleshooting] fallenknyt:
Alright, thanks a lot.

---------- Post added at 02:47 PM ---------- Previous post was at 02:46 PM ----------

Thank you. Ill take your and Ahmed's advise.
[One (M8) Q&A, Help & Troubleshooting] fallenknyt:
Hi Ahmed,

Ive read all link you gave and just wanted to confirm that this can be done without root right? Also can you confirm if the procedure as well as the files for my device I wrote below are correct.

1. Flash stock MM firmware (fw_6.20.709.2) using stock recovery

2. Flash TWRP recovery for htc m8 (twrp-3.0.2-0-m8.img)

3. Flash Stock MM TWRP Backup (6.20.709.2)

4. Flash Stock MM Recovery (6.20.709.2)

Are there any prerequisites i need to do to my phone before these steps? Thanks in advance.
[One (M8) Q&A, Help & Troubleshooting] Einwod:
Stock firmware must be signed by htc and flashed in ruu mode unless you are s-off. The backup must be extracted to a folder and then placed on your internal storage or sd card in the correct folder. You then restore the backup with TWRP. Finally you flash the stock recovery and then you'll be good to go.
[One (M8) Q&A, Help & Troubleshooting] fallenknyt:
Right so ill be using signed firmware also provided in the post. Will root and s-off be necessary? And is ruu mode the boot loader mode?
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
signed firmware from the link above correct

you don't need root or s/off to do that

RUU mode is the mode when you flash firmware/RUU it's part from the commands to flash firmware ( fastboot oem rebootRUU )

This should take you to it

it's in the link also how to flash follow it
[One (M8) Q&A, Help & Troubleshooting] fallenknyt:
Thanks a lot:)
[One (M8) Q&A, Help & Troubleshooting] userxyz123:
Hi. I've flashed a few phones in my time (mainly operator free Nexus devices so it's been fairly straight forward). My girlfriend has a UK HTC M8 that she got from Three. I've a few questions (it's so difficult to make sense of all the advice out there with the heavy, heavy use of acronyms, the variety of patches out there to unlock, differing firmware levels or bootloader version numbers, cids, mids, firmware needing to be signed or not, s-off required or not, regional differences in phone models, phones being locked to specific networks etc).

1) Is it possible to convert this to / flash the Google Play Edition ROM for the M8?

2) I have read a lot about flashing the M8 requiring s-off and that Sunshine bootloader unlock is the only way to do this?

3) Why can't I just set s-off using instructions at htcdev.com?

4) Can you restore the HTC to stock afterwards? (I don't really care about this but it'd be good to know). If so, what information do I need to write down / what needs backing up / what files need downloading before I do anything?

Many thanks for your patience. Despite being an I.T. guy (systems infra / cloud) this area of computing never fails to stretch my mind!
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
1: yes, with s-off

2: you mostly don't need s-off to flash anything but firmware not meant for your specific device, and yes Sunshine is the only way

3: because htc doesn't allow it. S-off is something they don't want people doing

4: yes. It's quite simple to return to stock via RUU, or by following the steps in this thread.
[One (M8) Q&A, Help & Troubleshooting] Coldz0:
my M8 is on 5.1.1

can i install ViperOne 4.6.1 ??
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
it's better to have the latest firmware as the developer recommended

but if you are on the latest LP firmware you can flash the rom with no issues
[One (M8) Q&A, Help & Troubleshooting] billa vimal:
Hello all,

I recently purchased a HTC One M8. It came with stock 4.4.4 and when I try to update to MM, it gives the standard 'modified system' error. Please can some one help to get past this. Here are the details.

C:\Program Files\Minimal ADB and Fastboot>fastboot getvar all

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

(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: 0P6B6****

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

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.062s
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
first remove your serialno

then all you need is there follow the instruction in that post in the end your device will be updated to marshmallow

http://xdaforums.com/showpost.php?p=64926626&postcount=6
[One (M8) Q&A, Help & Troubleshooting] billa vimal:
Thanks for the quick turnaround!

I used this method but I do encounter the following problem.

FAILED (remote: 41 model id check fail)
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
it should pass the mid check as long as your cid is supercid (11111111)

any way change your mid to 0P6B10000 by following this thread instruction

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

P.S: if you can't change the mid while booting into system

flash a custom recovery ( TWRP ) then run the commands while booting into recovery

BTW: your serialno is still there in the first line of the output
[One (M8) Q&A, Help & Troubleshooting] billa vimal:
I'm sorry Ahmed! I guess there is no command available specifically for '0P6B100000'! Not sure if i'm missing it somewhere. Your assistance would be of great help!

Thanks
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
no it's there under the tap titled as

-HTC_Europe MID:

it's there and it's not 0P6B100000 IT'S 0P6B10000

4 zeros not 5
[One (M8) Q&A, Help & Troubleshooting] billa vimal:
OK.. I see it! Thanks for your time mate! Hope this works! I will let you know the outcomes soon. :good:
[One (M8) Q&A, Help & Troubleshooting] billa vimal:
Mate, for some reason, the adb isn't working on my system! But fastboot does! I'm using Windows 10. Could there be any alternative way to change the MID? I tried flashing the MID changer tool in the recovery, but no success!

Is there a workaround?
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
run the commands while booting into recovery ( twrp )
[One (M8) Q&A, Help & Troubleshooting] billa vimal:
Thanks a ton, mate! You've been of great help! This worked! :good:
[One (M8) Q&A, Help & Troubleshooting] Bubsy Bobcat:
I'm confused on how to get S-OFF on my phone since there's different tutorials everywhere that are all very old. I've already unlocked my bootloader and rooted my phone. My current HBOOT version is 3.19 and searching how to get S-OFF with that hasn't really come up with anything except for SunShine (which I unfortunately cannot pay for). So, what is the current way of getting S-OFF without SunShine on HBOOT 3.19? Thanks!
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
no way

Sunshine is the only method
[One (M8) Q&A, Help & Troubleshooting] Bubsy Bobcat:
Back again since I want to relock my bootloader but I'm having trouble with it. I've removed root, other things like Xposed (which are installed through recovery) and I've flashed my stock recovery back onto my phone. Now whenever I try to lock my phone, it goes straight to fastboot mode and won't allow me to do anything else. I have this on top of the screen:

*** Software status: Modified ***

*** RELOCKED ***

*** Security Warning ***

This is what my Terminal displays whenever I try to relock the bootloader using the command "sudo 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 (No such device))

finished. total time: 6.180s

Is there anything I'm doing wrong that's making my phone stay on fastboot when the bootloader is relocked? (I probably am.) Thanks!
[One (M8) Q&A, Help & Troubleshooting] Einwod:
Fastboot reboot

That should restart the phone. The bootloader is locked.
[One (M8) Q&A, Help & Troubleshooting] Bubsy Bobcat:
Sadly that doesn't fix it properly. The security warning disappears when I reboot fastboot but when I reboot the phone or factory reset, it goes back to fastboot with the security warning. The only way I can get the phone working again is by unlocking the bootloader (but I want my bootloader locked again).
[One (M8) Q&A, Help & Troubleshooting] Einwod:
You need to have an operating system on the phone, completely stock, before locking the bootloader. You need to find an RUU or a Nandroid backup which matches your CID and MID numbers. Then, relock the bootloader.
[One (M8) Q&A, Help & Troubleshooting] televators:
Recovery not working, stuck at HTC logo after trying to update firmware/recovery

I just got this AT&T HTC M8 a while back and finally managed to get it rooted and with S.Team Marshmallow. Worked fine but the Wifi wasn't working. From reading, it seemed that the firmware was out of date but the rom was up to date, so discrepancy was causing no wifi issue. Rebooted to fastboot, hooked up the USB, and tried to flash the newest version of TWRP (3.0.2.x) and it failed. Since then, I can't do anything. Recovery doesn't work anymore, getting errors when I try to reflash recovery with older versions, can't boot at all and can't do anything besides lock/unlock the bootloader, get into fastboot, get into oem ruu mode, and reboot from fastboot cli. When I try to reflash the firmware (using twrp 2.7, 2.8, 3.0.2) I get FAILED (remote: 32 header error).

I'm on Windows 7 x64, have correct drivers installed, fastboot cli has been working fine. I'm S-ON, rooted (well, was, can't tell now...), and it's soft-bricked.

fastboot getvar all:

λ htc_fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000
(bootloader) version-baseband: 1.16.21331931.LA11G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main:
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: xxxxxxxxxxxxxxxxx
(bootloader) imei: xxxxxxxxxxxxxxxxxxxxxxx
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product: m8_ul_ca
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B12000
(bootloader) cidnum: CWS__001
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: RUU
(bootloader) commitno-bootloader: c3d94491
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
Execution time is 8(ms)

I don't care about using the same S.Team rom, was going to try Android Revolution HD Marshmallow next. Really, S.Team rom was great except for the wifi issue which I understand is a firmware issue. What do I do? I can't use my phone so I have to throw my SIM into my old phone for now. Thanks for any help, folks.
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
You have a bunch of things going wrong here. First, yes your firmware is woefully out of date. Your hboot number and radio numbers indicate firmware hasn't been updated since the phone's release firmware, 2-1/2 years ago.

Second, since your firmware is out of date, current version TWRP 3.0.2 won't work.

Third, you can't flash firmware with TWRP at all. You need to flash firmware using fastboot while in RUU mode (see more on this below). Plus, I can't tell what you are trying to flash (file name), so it might not even be the correct firmware, anyway. Also, you need to have a locked bootloader to flash firmware.

Broken WiFi has nothing to do with the S.ROM. You'll run into this problem on any of the current ROMs, plus current version TWRP won't work with old firmware, and other problems related to outdated firmware.

You really need to update the firmware, that is the most important thing, and should be addressed first.

Flash the AT&T version MM firmware as described here: http://xdaforums.com/showpost.php?p=66886759&postcount=23

No need to run the RUU noted in the linked post (Step 3), since you are going to flash a custom ROM, anyway.

After updating the firmware, unlock the bootloader again, flash TWRP 3.0.2. Then install the ROM of your choice, and you should be good to go.

Also, you need to delete your IMEI and serial number from your post, as these are personal info that should never be posted online.
[One (M8) Q&A, Help & Troubleshooting] televators:
Thanks, dude. Still learning. Should have thought to remove IMEI/serial. I get that the wifi wasn't working because of the firmware. Took a minute but it clicked after I started messing with the newer versions of TWRP.

Right, so updating firmware. I have reflashed the MM firmware as you said. fastboot says it completed but the phone screen still has the green loading bar on black background with the metallic HTC logo (RUU mode, right?). Should I go ahead and reboot through fastboot or wait for the progress bar to go away?

EDIT 0: Since I know I can reflash that MM firmware through fastboot, I went ahead and did

fastboot reboot-bootloader

and went to recovery and it showed a black background with the phone pic with a red warning triangle. After a minute it went through the boot screen showing the HTC junk as well as what looks like the S.Team boot animation (pink squares with a pink 'S') and it is just sitting at the HTC One white background screen.

Does that mean that the firmware is working but the OS is broken? With the new firmware, I'm inclined to just use the S.Team rom since it worked well and was cozy. If it doesn't boot up to OS after a few minutes, should I try to flash on the new TWRP and then load the ROM through that or what? What is the next step? Thank you again for the advice. I've been trying to figure out rooting, unlocking, and customizing Android phones since they came out and I'm just now starting to understand enough to cause problems.
[One (M8) Q&A, Help & Troubleshooting] spantch101:
so after years of playing with my m8 and flashing different roms and recoveries, it seems to have had enough. maybe not tho, maybe someone can help. if i turn on my m8 it will show splash screen with red writing on bottom as disclaimer then shuts off... it will only stay on if i hold power and volume down to bring up loader, fom there i can still access fastboot but nothing else, cant get to recovery. it just shuts off.. i figured i would try reflashing a new recovery and try again. nothing, just powers down device. i grabbed one ofthe all in one toolkits to try and push a recovery , says it works but still wont boot into it tried pushing a new rom zip and i get this message target reported max download size of 1826414592 bytes

sending 'zip' (662028 KB)...

OKAY [ 22.063s]

writing 'zip'...

FAILED (remote: not allowed)

finished. total time: 22.063s any ideas?
[One (M8) Q&A, Help & Troubleshooting] ahmed.ismael:
have you tried to flash RUU ?
[One (M8) Q&A, Help & Troubleshooting] redpoint73:
This is normal and expected. Red triangle is stock recovery, which is installed as part of the firmware. Flashing stock firmware renders the phone unable to boot into OS. It expects RUU to be run, or alternately a ROM can be flashed to get it back running.

My last post was quite clear about what to do after flashing firmware:
[One (M8) Q&A, Help & Troubleshooting] ImperiousRex89:
ok thanks. that's what i needed to know.
[One (M8) Q&A, Help & Troubleshooting] passion4tech:
Hey Guys I have a question, Does sunshine work on sprint HTC One M8 4.4.4 3.30.651.2?
[One (M8) Q&A, Help & Troubleshooting] beaups:
Run it. If you get to payment screen, it will work.
[One (M8) Q&A, Help & Troubleshooting] Hamodi:
Hey guys

Can i flash the Unroot zip file with stock recovery or i need to get twrp back !!?

I almost done to gdt my phone back to stock only need to unroot it

Thanks
[One (M8) Q&A, Help & Troubleshooting] vofzxy:
hi all,

so i got my M8 2nd hand, (i guess it is int'l version, cause its Singapore) the previous guy installed GPE

on it and made it S-off

im abit confused over the FW bit, given that Android L is out,

i wanna go back to sense as the GPE camera can't seem to be able to lock AF

previously i was asking on the wrong threads, but i can't seem to figure it out

how do i check for the Firmware? there seems to be many variants floatingg on xda. =(
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
There are two ways to check your firmware. You can enter fastboot/hboot and the firmware is listed under "OS". If it is blank, it is because your recovery is outdated.

Also you can use adb and type the command fastboot getvar all. What it says under "version-main" is your firmware version.

---------- Post added at 10:30 AM ---------- Previous post was at 10:27 AM ----------

You can choose "full unroot" in the SuperSU settings. That's the easiest way.
[One (M8) Q&A, Help & Troubleshooting] whoshodade:
Hello all, I have a Verizon m8, s-off unlocked, rooted, most current firmware, radios, and stock rooted most current software release. My problem is with Bluetooth calls connected to either one of my cars. One is a 2014 Mazda and the other is a 2008 Lexus. The issue I have is that during a call connected via Bluetooth to either car, the sound will drop out occasionally and the only way to restore the sound is to unlock the phone and select the phone as the source, then reselect the car again. It took a while to figure that out but regardless it's obnoxious. It never happens when using a jabra Bluetooth speaker headset however. Any ideas?
[One (M8) Q&A, Help & Troubleshooting] DroidManIc:
Hello... Went up and upgraded to a n m8 today, and of course gotta start from square 1 again! I was wondering as far as unlocking and rooting, has anyone tried the toolkits for the m8? Any issues? Or does anyone recommend going the good ol manual way? Thanks in advanced
[One (M8) Q&A, Help & Troubleshooting] xunholyx:
This is how I did mine.

http://htconeroot.com/htc-one-root/how-to-root-htc-one-m8/