yashsingh1/xdaforums huggingface dataset:
[AT&T HTC One (M8)] tkg.3:
------------------------------

Thank you. It worked
[AT&T HTC One (M8)] Sls3007:
Thanks for the reply, Yes the file name is firmware.zip. It opens flawlessly now with windows file explorer or 7zip ( i extracted it and rezipped it).

But I'm still getting "cannot open firmware.zip" after I moved firmware.zip to the adb program file, next to fastboot.exe.

What should I do now? I feel dumb for being stuck because of one simple thing...

UPDATE: It finally worked! For those who experienced the corrupt firmware.zip file, the solution is DO NOT OPEN the firmware.zip file, let it be.
[AT&T HTC One (M8)] LuisG1981:
Thanks, It really worked!! I am now running MM.

Regards from Mexico
[AT&T HTC One (M8)] toxicosis:
its really awesome!!! i did this and worked super!!

Regards from Mex
[AT&T HTC One (M8)] ckpv5:
Do you relock the bootloader before flashing firmware.zip ? Is the firmware.zip fully htc signed and not some modded one ?

There are other ways to update with the RUU (and you don't need to flash firmware.zip)

Run the RUU then go to windows %temp" folder and copy out the htc_fastboot.exe and rom.zip

1. rename the rom.zip to 0P6BIMG.zip and put in on microSD. Boot to bootloader/hboot .. select volume up to update and remove the rom.zip after the update completed.

or

2. put both htc_fastboot.exe and rom.zip in your adb/fastboot folder

then run commands

fastboot oem rebootRUU

htc_fastboot flash zip rom.zip

You need to relock bootloader - fastboot oem lock if your device is S-On and unlocked.
[AT&T HTC One (M8)] BigDogg365:
will this method work if I try and use the OTAkg.zip listed on that same page instead of the full RUU? I would rather not lose all my settings, (I'm carrier unlocked (on t-mob), S-on, w/ bootloader unlocked)

Note- I'm having some difficulty d/l the ota from post #13, might just bite the bullet and go full RUU.
[AT&T HTC One (M8)] ckpv5:
Not possible to manually install OTApkg.zip on S-On device and it's different method.
[AT&T HTC One (M8)] BigDogg365:
Oh, Ok then. I guess It's all in or not at all. Can I restore my apps thru Titanium after RUU? Thx for the help!
[AT&T HTC One (M8)] ckpv5:
User's apps & data should be fine (those you downloaded from Play Store or manually installed, but not system apps data)

What you can do .. after RUU installed, make a nandroid backup first before you start restoring data. If something goes wrong, you can always restore your backup and start again.
[AT&T HTC One (M8)] BigDogg365:
Ok cool, moving latest Twrp & Titanium backups to SD card. Will TWRP (using 3.0.0.1 now) still be avail after flashing firmware & RUU? or will I be back on stock recovery (to make the nandroid backup) Thx
[AT&T HTC One (M8)] ckpv5:
No.. TWRP will be removed, all your internal storage data/files will be deleted. That's why copy out to PC all your important data/files from internal storage. Best to backup your microSD data/files too.

Once you re unlock it with unlock_code.bin, again all data will be removed. After re unlock bootloader, reflash TWRP then only you can make nandroid backup. Copy back all your backup data/files and then you can do all the restore.

RUU-ing will give you out of the box state device.
[AT&T HTC One (M8)] BigDogg365:
Thanks for all your help & guidance, worked like a charm! :good::laugh:
[AT&T HTC One (M8)] Big-Bonsai:
Can someone help me out with this? I can extract whats in the firmware.zip just fine using winrar. But when I place it in C:\Users\admin\adb next to fastboot exe like the instructions said and type in fastboot flash zip firmware.zip in the command prompt, it shows "can not load firmware.zip". I've tried renaming the zip file as well.

Update: I finally got the firmware to work. Downloaded alternate adb and fastboot tool from here http://xdaforums.com/showthread.php?t=2317790

Then it went on smoothly. Hope this helps.

Update 2: somehow, the ruu installation went on till 38% and still showed error 155. Now I cant even boot my phone. Stuck at HTC logo. To make matters worse, my RUU keeps shutting down after I agree to the terms and conditions. Please help.
[AT&T HTC One (M8)] grigoriisi:
Do not unzipp the firmware. Flash it just like you downloaded it. If your phone is stuck at boot screen then press power and volume up button and as soon as the screen goes off press and hold power down button that should bring you to boot loader screen where you can choose fastboot where you can flash ruu or firmware. Good luck.
[AT&T HTC One (M8)] the orange bandit:
Thanks so much, this worked for me after a whole afternoon of endless trying to figure out WTF happened.
[AT&T HTC One (M8)] LuisG1981:
You should download the "Visual C++ Redistributables for Visual Studio" (I think it's 2012 version) in order RUU doesn´t shut down.
[AT&T HTC One (M8)] Godspeed07:
Hello and thank you.

My device show ***relocked*** and ***software status: modified*** and i am s-on

I have tried option 2 because i am more familiar with it. It fails as noted below:

C:\Program Files (x86)\Minimal ADB and Fastboot>htc_fastboot flash zip rom.zip

htc_fastboot v3.0.9.2 (2015-05-29)

target rom version: 6.20.502.5

found large-zip header, file count: 6

processing file 1/6...

sending 'zip' (57338 KB)...

OKAY [ 2.504s]

writing 'zip'...

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

(bootloader) signature checking...

(bootloader) rom parsing start ...

(bootloader) rom parsing finish ...

(bootloader) zip header checking...

(bootloader) zip info parsing...

FAILED (status read failed (Too many links))

finished. total time: 7.784s

htc_fastboot finished. total time: 8.436s
[AT&T HTC One (M8)] redpoint73:
Need more info about the phone, in order to help. Do fastboot getvar all, and post the output (delete IMEI and serial number before posting).
[AT&T HTC One (M8)] Saad Saleem:
Is this official signed firmware marshmallow????
[AT&T HTC One (M8)] grigoriisi:
Yes it is.
[AT&T HTC One (M8)] coldsun15:
Hi there, quick question... Once I update to Marshmallow, will be able to unlock and root again? And how can I do this?

I read somewhere that Marshmallow root didn't work...

For info: Im on stock AT&T Lollipop 5.0.2, software number (firmware) 4.28.502.2, unlocked via htcdev, rooted and S-On... need more info let me know.

I just want to upgrade to marshmallow to get the firmware and be able to flash marshmallow roms and kernels and stuff... But am afraid that after relocking and flashing the firmware and RUU I won't be able to unlock and/or root again...

So if anyone could tell me if this will be possible and how to do it, I'd much appreciate it!

Thank you,

Coldsun15

Edit: Before I rooted the device, when I got TWRP 3.0.x.x I chose the Read Only option first to make a backup, then I unchecked the Read Only...
[AT&T HTC One (M8)] grigoriisi:
You will be able to unlock the booatloader the same way, actually with the same unlock code . Then flash a custom rom they are all rooted.
[AT&T HTC One (M8)] 77tammy7:
I have twrp and AR HD 53.1 right now with unlocked bootloader. I just want to know if I want to run MM RUU, do I have to just relock the bootloader or I'll have to flash stock recovery as well?
[AT&T HTC One (M8)] grigoriisi:
Read the first couple pages of this thread you will find your answer.
[AT&T HTC One (M8)] redpoint73:
I responded to the other thread you posted in.

Please don't ask the same question in multiple threads, as it just leads to unnecessary confusion.
[AT&T HTC One (M8)] rsuarez74:
I need help

I tried installing MM update manually like 5 times past couple of days with no luck. It keeps getting stuck "Updating (2/2)SENDING...." -updating the ROM on your Android phone..." when nthis has happened the past couple days I've been able to pull the plug and try again... but this time after I flashed the MM firmware as suggested in this post it started to hang again at the same point (install step 2/2 still hanging) but this time when I tried to pull the plug it wouldnt restart. just stuck on the white HTC logo screen. So I had no choice but to try to run the ruu.exe again. Any ideas guys this is getting very frustrating and now even worse because I cant strartup my phone now... Please help
[AT&T HTC One (M8)] rsuarez74:
I need help

I need help

I tried installing MM update manually like 5 times past couple of days with no luck. It keeps getting stuck "Updating (2/2)SENDING...." -updating the ROM on your Android phone..." when nthis has happened the past couple days I've been able to pull the plug and try again... but this time after I flashed the MM firmware as suggested in this post it started to hang again at the same point (install step 2/2 still hanging) but this time when I tried to pull the plug it wouldnt restart. just stuck on the white HTC logo screen. So I had no choice but to try to run the ruu.exe again. Any ideas guys this is getting very frustrating and now even worse because I cant strartup my phone now... Please help
[AT&T HTC One (M8)] Jikenda:
Did you ever find a solution? I'm having the same issue and I have tried flashing just the Rom.zip via adb and that failed also, so I'm stuck.

Edit: The phone is relocked, s-on, unrooted, stock 4.4.3. I also flashed the MM firmware already.
[AT&T HTC One (M8)] redpoint73:
Was there an error message? Any other response?

You should be flashing with fastboot, not adb. And you need to be in bootloader-fastboot mode.

You also need to use htc_fastboot to flash the RUU, not the "generic" Android fastboot (which can't handle files >1GB in size).
[AT&T HTC One (M8)] Jikenda:
First off, thank you for the reply and attempt to help.

When flashing the rom with htc_fastboot, I'm getting error message: FAILED (status read failed (too many links))

I also tried flashing the full stock wipe zip with htc_fastboot and I received the following:

C:\Android\android-sdk\platform-tools>htc_fastboot flash zip M8_6.20.502.5_ATT_FullStock.zip

sending 'zip'... (57162 KB) OKAY

sending time = 2.502 secs

writing 'zip'... (bootloader) signature checking...

FAIL12 signature verify fail

FAILED (remote: 12 signature verify fail)

Execution time is 5(s)

C:\Android\android-sdk\platform-tools>

This is my wife's phone, so I'm not used to working with HTC devices any longer, but I'm trying. It has been a while..
[AT&T HTC One (M8)] redpoint73:
Signature verify fail usually means you haven't relocked your bootloader (fastboot oem lock) which is required to flash firmware and RUU (unless you have s-off). Bootloader screen needs to say LOCKED or RELOCKED in order to flash firmware or RUU.

You also realize that the filename looks like its just firmware.zip, not the full RUU.zip?
[AT&T HTC One (M8)] Jikenda:
The phone is relocked and s-on (per the bootloader screen on top). I was flashing just the firmware as I read that you need to flash the firmware in order for the RUU file to work if done normally over usb from the PC. I tried flashing the full zip file also when RUU failed, but no luck with that either as I received FAILED (remote: 12 signature verify fail).
[AT&T HTC One (M8)] redpoint73:
This is confusing, as you originally said you were having the "same problem" running the RUU, and that you already flashed the firmware (successfully? It would imply so).

Now you are saying both the RUU and firmware fail with "signature verify fail"?

You need to clarify the exact sequence here.

Also, do fastboot getvar all, and post the results. Need to see more info about the device.
[AT&T HTC One (M8)] Jikenda:
C:\Android\android-sdk\platform-tools>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 4.0.U605761@60220A

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.20.502.5

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

(bootloader) serialno:

(bootloader) imei:

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

(bootloader) commitno-bootloader: 205bdca3

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.163s

OK, so let me explain quickly. My wife's phone was still on 4.4.3 and would not update no matter what I did. So, I figured the easiest way to go would be with the update utility, so I downloaded the latest MM RUU file and launched if from my PC and it just hung on the updating/sending screen and never did anything else. I had to unplug the USB and reboot the phone and it would boot back up in 4.4.3. I was reading here on the forums that in order to use the RUU I would have to update the firmware and I got the file and did so and it was successful. I used the RUU exe file again thinking that it would work this time, but it was doing the same thing (just hanging on the updating/sending screen). I had to unplug the usb again, but now it will only go as far as the htc logo on boot up and hang. No boot loop or anything else, it just sits there.

Unsure of what to do at this point, I thought perhaps the firmware didn't really take, so I tried flashing it again, but now it is failing. I also tried flashing the full MM zip via htc_fastboot as well as just the ROM zip but neither of these worked. I also tried renaming the full wipe MM zip and renaming to 0p6bimg and putting on the external SD, which was not recognized.

So, I'm sure that by trying so many different things, I've messed something up, but that is the story thus far. Also, it has been a while since I've had to do any of this so I'm positive I'm making mistakes along the way. I apologize for the confusion and thank you again for trying to assist.
[AT&T HTC One (M8)] redpoint73:
I think you're confusing the files a bit. And just to be clear, so we're speaking the same language:

1) The file you mentioned, M8_6.20.502.5_ATT_FullStock.zip is just the firmware.zip which is a small file containing hboot, radio, Bluetooth, and a few other modules, the whole thing is around 55 MB. You seem to be confusing this with the RUU, which is much larger (around 1.5 GB).

2) ROM.zip is presumably extracted from the RUU (where did you get it exactly?) in which case its not "just the ROM" despite what the name implies, but a full RUU zip (41 partitions or so).

Based on the fact it says 6.20.502.5 for version-main in your getvar output, means the Marshmallow firmware was in fact flashed. But the fact that both this and the RUU are giving you signature error, when the bootloader is relocked, is somewhat disconcerting.

Make sure you are renaming to 0p6bimg.zip and also make sure you disable the Windows option to hide file extensions (otherwise, you may have it name 0p6bimg.zip.zip, and not realize it, causing it to not be recognized).
[AT&T HTC One (M8)] Jikenda:
I have the RUU exe file on my PC, which is what I have tried running and it just hangs, but I do not have a zip of that file that I can flash via fastboot or I just didn't come across it. However, I did believe that the M8_6.20.502.5_ATT_FullStock.zip file was the same and I should have realized if I had noticed the size of the file.

Also, you are correct in that the ROM file seems to be around the same size as the RUU, so it is not just the ROM as I originally thought.

OK, so should I try using fastboot again to flash the ROM or perhaps put that file on my external SD and rename it? I was renaming the M8_6.20.502.5_ATT_FullStock.zip file as I thought that was the full RUU zip. I definitely made a mess out of this! What would you suggest as a next step? I can't find the exact thread on here where I found the ROM file, but it was on one of these threads in the general section. I'll add an edit when I find it.
[AT&T HTC One (M8)] redpoint73:
The SD card method is the most bug-proof. I would try to rename the ROM.zip to 0p6bimg.zip, put on SD card and go into bootloader, and see if it gets detected and installs. If not, make not of any error messages or other outputs, and report them here.

Again, turn off the Windows option to hide known file extensions, in Control Panel>Folder options, if you haven't already. As this will avoid any confusion in renaming the file accidentally to 0p6bimg.zip.zip
[AT&T HTC One (M8)] Jikenda:
I'll give it a shot. Thanks again for the help, I really appreciate it.

---------- Post added at 03:48 PM ---------- Previous post was at 03:41 PM ----------

I renamed the file and it recognized it, but no dice..

Parsing...

Device halted due to Large Image update fail!

Press <POWER> to reboot
[AT&T HTC One (M8)] redpoint73:
Can't be sure what is going on, as I still don't know the exact source you got the ROM.zip.

But assuming its the proper zip format RUU for 6.20.502.5, that is an unusual error to get. Doesn't look good, it implies the partitioning may have gotten screwed up by interrupting the previous RUU attempt. RUU is the only way to fix the partitioning, that I know of. So if the RUU doesn't work, you may be in trouble.

Try flashing the firmware M8_6.20.502.5_ATT_FullStock.zip by renaming to 0p6bimg.zip, and flashing by SD card method, and report what happens.
[AT&T HTC One (M8)] Jikenda:
Unfortunately, I'm just getting Image Update FAIL.

I'm trying to find the thread where I found that zip. Otherwise, I'm not sure what to do about this phone right now. I've never bricked a device before. This sucks.
[AT&T HTC One (M8)] redpoint73:
I'm not really sure either. Failure of the proper stock, signed firmware and proper RUU via SD card method, is not a good sign. Just a few shots in the dark:

1) Re-download the FULL STOCK, WIPE firmware zip 6.20.502.5 form here (https://docs.google.com/spreadsheets/d/1aNd_nm4Em1wamRLFT7qHM2c3O9_sg_H3ztBrGq1u9Ws/pubhtml, and try to flash with SD card method. Just to make sure the download wasn't corrupted or something.

2) Try to unlock the bootloader again using the HTCDev.com process, and see what happens. If it works, put TWRP 3.0 on the phone (flash with fastboot) and see if you can put a custom or stockish ROM on the phone.
[AT&T HTC One (M8)] Jikenda:
1) I'll try that now..

2) that's kind of the route I was thinking. I've got nothing to lose at this point.

Thanks once again for the help. This has been a nightmare, but chances are I screwed something up because I wasn't taking my time to do it right. I'll let you know what happens.

:crying:
[AT&T HTC One (M8)] redpoint73:
I don't think you can be blamed too much. You were trying to flash the official RUU, which stalled/froze. Its a relatively common thing to encounter, and I would have done the same or similar in that situation (unplugged phone, or killed the process on the PC) and there really isn't anything else to do in that situation. You probably could have waited forever, and the RUU would not have finished on its own. If the RUU stopped/froze writing a critical partition (hboot, radio, etc.) a brick is going to result; and there isn't much you could have done to prevent that.

Bricking a phone. while unlikely, is always a possibility for any of us that decide to mod their phones. Its a risk we just decide to take, and live with. But in this case, it seems the "brick" is not really the result of a user mod, but rather implementing the official manufacturer RUU, which is a bit frustrating.
[AT&T HTC One (M8)] Jikenda:
So, I downloaded the fullwipe zip and tried flashing via SD card method and it loads it, and then says checking and then just press power to reboot. I might try downloading the RUU.exe again and for the life of me, I still cannot find where I got that ROM.zip, so unfortunately we might never know where that came from!

---------- Post added at 11:48 AM ---------- Previous post was at 11:24 AM ----------

A quick update:

So, I found another firmware.zip that I figured I would try and I gave the SD method a shot and it didn't work, so then I moved the file back to my PC and flashed it via fastboot, which did take. I then removed HTC Sync manager because I just read that you probably should and then I redownloaded (for the 3rd time) the RUU.exe. I started it up again and it didn't hang for the first time. The RUU finished and my phone is now booting up, so I'll take a loot once it is done but, I think the moons just aligned and the phone will now be up to date.

This was an absolute nightmare, but you were a huge help in troubleshooting the issues and making things a bit more clear about the files. This is why I love XDA... Anytime I need help, I always find at least one person willing and when I can help out I do also. Much appreciated and I'll update when this is complete. I'll also post where I got the firmware (I tried the one from your link, but I got that 12 signature verify fail error again) when I go back in case anyone else is having this issue.

Update: The firmware came from post #13 in this thread
[AT&T HTC One (M8)] redpoint73:
Not sure how much I actually did (aside from explaining the files, and giving some ideas), it seems like you did a good job figuring it out yourself! Sometimes trial and error, and persistence are the key.

But happy to have helped in any way. Hopefully, the phone boots up fully, and you are good to go.
[AT&T HTC One (M8)] Jikenda:
Phone booted up properly and is all updated. Looks good to me.

I don't know what combination of things worked, but something did and I'm sure my wife will be happy that she can use her phone again.

Much appreciated. Any help is always welcome and ideas and explanations can be more valuable than holding a person's hand through the whole process. Thank you again and have a great week.
[AT&T HTC One (M8)] redpoint73:
Nicely done. All I can think, is that the firmware you were trying before (which is intended to be stock and signed) somehow has its signature compromised, giving you the signature error. And it seems the same was true for the ROM.zip (or maybe it wasn't a signed RUU?).
[AT&T HTC One (M8)] rsuarez74:
no I gave up trying
[AT&T HTC One (M8)] BUYMECAR:
what the flying ****??! my phone was stock, unrooted, locked running Android 5.1 and I tried to run the RUU because the update was not available through the settings. ADB detected my phone fine but the RUU.exe doesn't actually do anything, it starts loading then just closes. I tried to reboot my phone into fastboot and now it's stuck on the HT one screen.
[AT&T HTC One (M8)] redpoint73:
HTC added some new requirement with all the MM RUUs. You won't be able to update to MM by RUU unless you flash the MM firmware first, see the red text in the RUU section of my Index thread: http://xdaforums.com/showthread.php?t=2751432

But failure to do this will usually result in Error 155 Unknown Error, not just RUU freezing. You probably also have some general incompatibility of your PC config with the RUU (as the RUU can be very finicky - much more so than just getting adb/fastboot connectivity). Win7 and USB 2.0 have the best compatibility with RUU.
[AT&T HTC One (M8)] BUYMECAR:
Had to download latest versions of all the C++ redistributable packages, both x86 and x64. Was able to run the RUU fine after that.
[AT&T HTC One (M8)] javier2494:
Ruu problem help

I follow sw instructions but RUU get stuck and the upgrate screen
[AT&T HTC One (M8)] javier2494:
Same problem that you

Hi im having the same problem than you , can you help me pleas to fix my phone , whhere did yo find the other firmware
[AT&T HTC One (M8)] praz993:
ckpv5 and redpoint73,

Thank you guys so much for the info and your patience with so many redundant questions. Was able to successfully relock, flash my firmware and run the RUU by lurking in this thread...

Much appreciated.

FYI, my RUU hung on Updating 2/2... for about 45 min.. so I bailed out and used command line to boot back to fastboot from RUUbootloader.. Re-ran RUU as admin and it worked like a charm the second time.

Props.
[AT&T HTC One (M8)] c_brown93:
Is the OTA no longer available? I am on 4.4.2 and it says up to date.