yashsingh1/xdaforums huggingface dataset:
[T-Mobile HTC One (M9)] Lrs121:
Definitely don't try an unzip it if you wanna flash it. The file is specially constructed exactly so it can flash and part of that is the signing. You should be able to pull it apart with ruuveal or a tool with which I've apparently forgotten the name.

Since the sdcard/fastboot zip hasn't been added by the op, I've got an upload, to google drive, for it going right now. But itll take some time. If it weren't over 2 gigs I'd let you guys pull it straight from my server but I have a crappy upload speed. It doesn't have the version number in the name but its for 2.7.532.6 and has the right name for flashing from the sdcard without having to rename it. I can confirm it works too, this is the exact file I used a couple days ago to return to stock fix a stupid I made involving Google play services.

---------- Post added at 09:34 PM ---------- Previous post was at 09:33 PM ----------

Typo I meant 2.7.531.6
[T-Mobile HTC One (M9)] Lrs121:
Here's the link. https://drive.google.com/file/d/0BzuX6WLejxQwbUpKLW14dS1fSUk/view?usp=docslist_api
[T-Mobile HTC One (M9)] singhshb:
great

you are great bro thanx
[T-Mobile HTC One (M9)] gamblor01:
Any stock TWRP backup and stock recovery for 2.7.531.6? I need an untouched (read only) system.emmc.win and stock recovery so I can flash it and accept the latest OTA without having to wipe my data. I find it easier than restoring from backup, which doesn't put everything back, has to be setup again for Bluetooth devices, etc.
[T-Mobile HTC One (M9)] kc6wke:
You can get the stock recovery here

2.7.531.6 twrp backup here
[T-Mobile HTC One (M9)] Prasad:
I'm on the latest firmware. I'm trying to go back to stock. Would flashing the 1.32.531.33 stock recovery be fine or does the newer update have an updated recovery? If so, could someone please upload it?
[T-Mobile HTC One (M9)] kc6wke:
You can pull the latest recovery from the firmware here

Or get the full ruu here
[T-Mobile HTC One (M9)] vasujahagirdar:
2.11.531.19 stock recovery

hi guys ,can i get a link for 2.11.531.19 t-mobile stock recovery ??
[T-Mobile HTC One (M9)] kc6wke:
I posted the same answer to this one post before yours
[T-Mobile HTC One (M9)] vasujahagirdar:
But I'm in search of 2.11.531.19 & the post is about 2.07.531.06 !!
[T-Mobile HTC One (M9)] kc6wke:
If you read the post correctly it says "You can pull the latest recovery from the firmware here"

and gives a link to my thread that has the 2.11.531.19 full firmware download
[T-Mobile HTC One (M9)] vasujahagirdar:
Oh ! Ok ,got it, thank u very much .
[T-Mobile HTC One (M9)] gjlowe:
I have been searching through XDA for a couple of hours now, and now I must post. Sorry if this has been answered and I just couldn't find the right post.

I have been trying to follow instructions to return my T-Mobile HTC One M9 to stock using RUU, but every time I attempt to flash the RUU, I get this:

target reported max download size of 800000000 bytes

Invalid sparse file format at header magi

error: write_sparse_skip_chunk: don't care size 1349472896 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 542282368 is not a multiple of the block size 4096

sending sparse 'zip' (781102 KB)...

error: write_sparse_skip_chunk: don't care size 1349472896 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 1349472896 is not a multiple of the block size 4096

OKAY [ 52.307s]

writing 'zip'...

(bootloader) HOSD CL#505029

(bootloader) ERR [SD_UPDATE_ERR] update_fb_ZIP_buf: can not find ZIP hea

(bootloader) der

(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 22

(bootloader) ERR Update zip file failed.

(bootloader) ERR ZIP ERROR, exit read zip loop

(bootloader) Update zip file OK

(bootloader) ERR ZIP ERROR CODE, 22

(bootloader) end@Done

FAILED (remote: 22: fail to flash via downloadzip)

finished. total time: 54.408s

I have re-downloaded, re-flashed firmware, but can't seem to get it to complete. Any help would be most appreciated.
[T-Mobile HTC One (M9)] kc6wke:
Which ruu are you flashing and how are you flashing it?

S-On S-Off?
[T-Mobile HTC One (M9)] gjlowe:
Thank you for helping! I am S-Off. Using fastboot on my Mac. I am able to flash firmware just fine. Using the RUU linked off the OP with the requisite firmware.
[T-Mobile HTC One (M9)] kc6wke:
Sorry I dont use Mac, only thing I can suggest is to try from sd card.

Rename it to 0PJAIMG.zip, copy to ext sd card and reboot to download mode and it should prompt to update (must be 32GB or smaller sd card).
[T-Mobile HTC One (M9)] gjlowe:
This did the trick! Thanks! I had never had trouble updating using fastboot/adb from my Mac, but something obviously was not working properly in this case. Now all is well! Thanks again!
[T-Mobile HTC One (M9)] Rydah:
Yes, twice.

Prior to doing all of this, flash the twrp 2.8.6.0 Beta that I outlined in OP. TWRP 2.8.5.0 is a major issue and should be removed from the TWRP site. I'll edit my post above to mention to use the TWRP beta.

No stock recovery at the moment, but when an ota update is sent out, it comes with recovery and I'll be able to extract it and post it here.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] Captain_Throwback:
It's also important to make sure you're using the latest version of the Android SDK platform-tools. For some people, that's the reason the fastboot flash system, etc. wouldn't restore system properly. It may be possible to remove the TWRP restore section completely as long as fastboot is the latest version.
[T-Mobile HTC One (M9)] Rydah:
Yes forgot to mention that you should be on the latest android tools, but in my case, I am on the latest version of fastboot and tried both bootloader mode and download mode, and download mode is the only one that 100% went through. Doing this in bootloader mode fails and says due to s-on. And after pushing it via download mode, it didn't boot up, had to restore it after via TWRP.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] ledvedder:
The non-data zip in the OP is giving me an unspecified error when trying to extract system.
[T-Mobile HTC One (M9)] Rydah:
Unzip the entire folder, that may solve it. I have been able to unzip both backups in OP, but I only have tried by unzipping the entire zip file.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] ledvedder:
I've tried both ways.
[T-Mobile HTC One (M9)] flex360:
if someone can make an updater script for me

that would be awesome
[T-Mobile HTC One (M9)] Rydah:
Hmm, try the one with data then. What software are you using to unzip?

Oh whaaaaat, Flex, is that you!?!?!? Anyways, I think [MENTION=1162986]Captain_Throwback[/MENTION] might be help if he has time. He mentioned he made a starting point for another ROM Dev. I'll see if he's available and has info to share...

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] ledvedder:
I tried the Windows tool and 7-zip.
[T-Mobile HTC One (M9)] flex360:
sup maaaaaan

long time no see

i tried the updater script he linked me to, but thats for the international version. The symlinks are a bit different between the intl version and the tmoble version.

I did create a stock rooted rom but wifi calling doesnt work

getting the correct symlinks should sort that out
[T-Mobile HTC One (M9)] Prasad:
Why are you guys restoring the backups anyway? Was an OTA released or something?
[T-Mobile HTC One (M9)] ledvedder:
I just want to get my phone back to complete stock.
[T-Mobile HTC One (M9)] Rydah:
Hmm. Well I'm on OS X and use The Unarchiver but WinRAR might help? Try the first backup in OP.

Seriously. Glad to be back on the same boat as you.

Hmm, not sure man, maybe of you look in root explorer it'll show? I know it does with some files.

Nah, all prep on my end. I'd hate for an OTA to come out and have to figure it out at that moment while peeps freak out.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] Rydah:
Dming you...

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] Captain_Throwback:
That script was for/from a Sprint test ROM, not the international version . . .

A stock system image will have the symlinks intact, like I told you in the other thread ;).
[T-Mobile HTC One (M9)] Prasad:
Ah. Well then, good call! Haha
[T-Mobile HTC One (M9)] Rydah:
We got a few of those in OP. Have at it [MENTION=2979097]flex360[/MENTION].

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] Riff76:
'Sup Rydah! Thanks for the thread bro
[T-Mobile HTC One (M9)] Rydah:
:D sup bro. glad you're here!
[T-Mobile HTC One (M9)] ledvedder:
After flashing the system image, I was able to boot the phone up and root is gone. So, I'm assuming it's good to go now.

Big thanks to Rydah! Without his help, I wouldn't have been able to get my phone back to stock un-rooted.
[T-Mobile HTC One (M9)] kc6wke:
Glad to see you got it.
[T-Mobile HTC One (M9)] upther:
Anybody have a working download link for the 1.32.531.33 stock recovery? The Mega link in the first post doesn't work. Thanks,
[T-Mobile HTC One (M9)] jbfountain:
If you don't get any responce in the next 4 hours PM me and I'll set you up when I get home from work.

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[T-Mobile HTC One (M9)] upther:
I found the firmware and extracted the recovery from that. If I have any problems I'll let you know. Thanks for the offer.
[T-Mobile HTC One (M9)] gjlowe:
Does anyone have a working link to the latest 2.x RUU from T-Mobile? I have the exe version, but no windows box from which to run it, so I need the ZIP.
[T-Mobile HTC One (M9)] kc6wke:
I have the 2.7 and the 2.11.

The 2.7 has been tested, but I have not yet tested the 2.11

You are welcome to try, will take a while to upload. I will post links when done.
[T-Mobile HTC One (M9)] gjlowe:
Thank you! I would take either - I can always do an OTA update.
[T-Mobile HTC One (M9)] kc6wke:
Here ya go

2.7.651.6 Fastboot/SD Card Flashable

2.11.531.19 Fastboot/SD Card Flashable
[T-Mobile HTC One (M9)] gjlowe:
Thanks a ton! Really appreciate it!

---------- Post added at 02:35 PM ---------- Previous post was at 01:48 PM ----------

So I am not having much luck. Tried flashing both with fastboot, but I get this:

FAILED (remote: 9: SD_SECURITY_FAIL zip from usb command in download mode)

I have a 2GB microSD card but these are too large for that. I also have a 128GB microSD card, but that is too big :) Any other ideas?
[T-Mobile HTC One (M9)] kc6wke:
I've never seen that, ya you need 32gb or smaller.

This may help http://xdaforums.com/showpost.php?p=60273529&postcount=172
[T-Mobile HTC One (M9)] gjlowe:
Found a 4GB card and all is well! Thanks a ton! BTW - the 2.11 build worked great!
[T-Mobile HTC One (M9)] dohcvtec:
Hello,

Stock recovery link is not available for download. Can you provide a different link please?

Best Regards
[T-Mobile HTC One (M9)] kc6wke:
posted here a few day ago
[T-Mobile HTC One (M9)] rgao007:
Anyone have the RUU for the MM update?
[T-Mobile HTC One (M9)] kc6wke:
Its not out yet, give it a few days
[T-Mobile HTC One (M9)] hellforgedheart:
Anybody have a stock NANDROID of the marshmallow update? Accidentally nuked mine and I'm stuck in the recovery with no rebased custom roms available.
[T-Mobile HTC One (M9)] jbfountain:
I PMd' you a temporary link to stock TWRP System & Boot.
[T-Mobile HTC One (M9)] hellforgedheart:
Thanks so much!
[T-Mobile HTC One (M9)] vasujahagirdar:
Unable to take ota !!

Hi guys,I have t mobile unlocked m9 with unlocked bootloader ,S-on device ,twrp 2.8.7.0 running viperone 3.5 ,

Now to upgrade to MM ,I want to install stock rom from back up & stock recovery .so installed backed up stock rom & flashed corresponding stock recovery but the downloaded ota is not getting installed !!! Showing error ( exclamatory mark ) plz help

Even tried to flash RUU but it's also not going beyond user agreement level !!
[T-Mobile HTC One (M9)] jbfountain:
I went back to stock using the 2.11.531.19 RUU.EXE; however, I had to run it twice to get it to work. Strange!

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[T-Mobile HTC One (M9)] vasujahagirdar:
Well,I tried it many times but after end user agreement level ,the exe disappears from screen & nothing happens !!

Should I remove sync manager??
[T-Mobile HTC One (M9)] jbfountain:
I really don't think removing sync manager will help with that. If you were S-off there would be more options available. What's got me confused is that the RUU.EXE is not working. I would download the RUU again to see if that works. Also, what version of Windows are you on? Go to device manager and make sure Windows is recognizing your phone correctly. Where are you on the phone when you run the RUU? Booted into system, or are you in download mode? After you check device manager, re-download the RUU, boot into Download Mode and run the RUU as Administrator.

Edit: How long are you waiting for the RUU to start after the agreement screen disappears? It usually takes a minute before it will start.

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[T-Mobile HTC One (M9)] vasujahagirdar:
Windows 10.

S-on

Window recognizing device sync manager also works.the same ruu works few months back .

Waiting for 20 mins after agreement screen .!

Tried both normal screen & download mode !!

Unable to figure out .

Also not able to take ota !!
[T-Mobile HTC One (M9)] jbfountain:
You can't take the OTA until you return to completely stock. Read this thread, and see if you can return to stock using the method I did.

http://xdaforums.com/one-m9/help/ota-failed-returned-to-stock-s-off-t3086711/post60207862

You will need a clean untouched system image, and you will need a clean untouched backup and stock recovery. If you don't have them let me know and I will get them to you. If you follow the steps I used as described you will be able to take the OTA. I can't do it tonight, I have to sleep, but I can do it later today. Unless someone else can help you before then.

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[T-Mobile HTC One (M9)] vasujahagirdar:
yes ,i did clean wipe. restored untouched stock backup flashed stock recovery but after 20% recovery stops with exclamatory mark :crying:
[T-Mobile HTC One (M9)] jbfountain:
You didn't read the thread I linked to.

There was more than just restoring a backup, but it sounds like you have a problem with communication between your computer and your phone anyway.

Until you fix that you won't be able to flash a stock recovery or run a RUU.

You can get a T-Mobile RUU zip or make one from a RUU.EXE and put it on a microsd card that's formatted to fat 32. Rename it to 0PJAIMG then reboot to download mode. If it doesn't start immediately press the volume up.

I think that is the only option you have now unless you can fix the communication issue between your computer and phone.

Good luck with this. I hope you can get it straightened out soon.

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[T-Mobile HTC One (M9)] ThePhoneGeek:
So I have had this problem in the past on a windows 7 machine and this is how I solved it, don't ask me why it worked but I stumbled across it somewhere on XDA and it worked for me.

You need to load ALL of the following (if using x64 os install both x86 and x64):

Microsoft Visual C++ 2005 redistributable

Microsoft Visual C++ 2008 redistributable 9.0.30729.17

Microsoft Visual C++ 2010 redistributable 10.0.40219

Microsoft Visual C++ 2012 redistributable 11.0.61030

Seems odd I know but I loaded all those for both x86 and x64 and I have no issues any more with RUUs failing out like that.

PG
[T-Mobile HTC One (M9)] kc6wke:
I linked sd card ruu's here if that wil help
[T-Mobile HTC One (M9)] rgao007:
I'm in the same situation. Would it be possible for you to send me those files too? Thanks in advance.
[T-Mobile HTC One (M9)] dbrown111:
Would you be able to link me to the same? I've also bricked mine the same way.
[T-Mobile HTC One (M9)] jbfountain:
Done.:good:

Done.:good:
[T-Mobile HTC One (M9)] dbrown111:
Thank you times a million!
[T-Mobile HTC One (M9)] vasujahagirdar:
In twrp 3.0.0.0 there is option of selecting" read only",so after clean wipe installing nandroid back up & flashing stock recovery ,can I take ota rt ?does it work ??
[T-Mobile HTC One (M9)] kc6wke:
It might, it depends on if you nandriod backup is untouched. If the system was written to by twrp prior to the backup, it might not work.

OTA'S require it to be 100% untouched.

---------- Post added at 12:05 AM ---------- Previous post was at 12:03 AM ----------

Here is a TWRP backup of 3.39.531.7 if anyone wants.

System, data, and boot

also 3.39.531.7 Full Firmware here
[T-Mobile HTC One (M9)] vasujahagirdar:
Is it necessary to have device "relocked" to run RUU ? but I flashed the same ruu once before !! & if relocked ,can it possible to unlock again for to take custom rom ??

Earlier when I flashed ruu ,it was with windows 7 subsequently I upgraded my PC to windows 10

Edit: oh well !! Microsoft visual studio redistribution sp pack 2008 was missing on PC !!

After installing this ,ruu moved to next step !!!

Uffff!! Flashed successfully at last !!

Thank u all
[T-Mobile HTC One (M9)] Behold_this:
http://dl3.htc.com/application/RUU_HIMA_UL_M60_SENSE70_TMUS_MR_TMOUS_3.39.531.7.exe
[T-Mobile HTC One (M9)] lobo4806:
is this the new RUU?
[T-Mobile HTC One (M9)] aznracer62:
I tried to RUU to stock. Bootloader was relocked and i'm S-on. Getting an error 155. My phone is stuck on the green circle with the arrow down and the progress bar at full but it's frozen. Any ideas?
[T-Mobile HTC One (M9)] jbfountain:
This is what I would do. You do it at your own risk. Just because it is what I would do doesn't mean you should. You may want to wait a while to give someone else a chance to respond. I have had this problem, and it worked for me.

Hold volume up and power continuously until it reboots and see what happens. If it doesn't boot into system put it in download mode and run the RUU again. Report back and let us know what happened.

Good luck. I hope that you can resolve this issue.

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[T-Mobile HTC One (M9)] Theoriginalgiga:
I'm curious about that myself. if the tag on the file is to be believed it's version 3.39.531.1. According T-mobile's site the 6.0 version is supposed to be 5.29.1700.18.

Can anyone confirm?

Doing a little digging against the URL (dl3.htc.com) it resolves to 173.205.77.16 which is registered to a company called Akamai Technologies who is a content delivery service.

Thanks
[T-Mobile HTC One (M9)] lobo4806:
Yea seems shady to me.
[T-Mobile HTC One (M9)] Theoriginalgiga:
On the flip side it was posted by someone who has a good amount of Rep. I'm curious if he's tried it.
[T-Mobile HTC One (M9)] grim489:
The software on the phone after being updated is 3.39. 5.29 seems like maybe they mixed it up with the m8 or at least some other older phone.
[T-Mobile HTC One (M9)] Theoriginalgiga:
So just to check, you've updated and can confirm that your version says 3.339.5.29?
[T-Mobile HTC One (M9)] Behold_this:
The support page on T-Mobile site has an incorrect software number. I have actually contact them and requested they change it but they don't give a crap as usual. Feel free to check any screenshots, any article, or HTC support that show the correct version number (3.39.531.7) which is the link I've posted.

I'm only doing this to help if nobody believes I know what I'm talking about, well they'd be incorrect, but they don't need to bother downloading it. By the way it can be downloaded directly from HTC as this is their link. Which is found on their support page here: http://www.htc.com/us/support/htc-one-m9-t-mobile/news/

In closing anyone who knows anything about HTC software numbers would know that the number posted on T-Mobile is not for T Mobile branded units. T-Mobile has a carrier number of 531 not 1700. 1700 is the Google Play edition and that version number is for the Google Play edition m8. Also anyone who bothered to read the freaking filename would see that it clearly says TMOUS (T-mobile US!!!!).

It boggles my mind when people with stellar reputations on this forum get questioned and belittled by people with none.
[T-Mobile HTC One (M9)] aznracer62:
This worked to get my phone to boot up normally. Thanks. I think I'm not going to RUU. I'm planning on just using a TWRP backup of marshmallow to update that was posted. What is the quickest way to unlock bootloader again? I relocked it so I could RUU by "fastboot oem lock". Do I need to go through the same process for unlocking again (minus the htcdev part since I already have the .bin file)?
[T-Mobile HTC One (M9)] jbfountain:
It's obvious that those who questioned you on this are not experienced HTC users in this community. I, and I'm sure most others here had no doubt that you were providing the correct RUU with the correct number.

Using XDA to unleash the power of Android on my S6 Edge Plus & HTC One M9
[T-Mobile HTC One (M9)] Theoriginalgiga:
Hey bud, it wasn't an attempt to say you didn't know anything and I certainly am not accusing you as incompetent or malicious. In fact I even said in one of my other posts that with someone with such a high rep is something to be said about the validity. All I was asking is if anyone could confirm and wanted to do my due diligence based on all information available to me (via tmo website, not seeing the download from HTC's website) and the IP spacing wasn't associated to either tmobile or HTC. You're right I'm not extensively intimate with HTC's numbering schema, and yes Tmobile doesn't care about things like updating incorrect documentation. I'm sure you're probably right about the software but as the saying goes "trust but verify."
[T-Mobile HTC One (M9)] lobo4806:
i'm a dumbass. thanks for this.
[T-Mobile HTC One (M9)] fernando sor:
Worked great for me. I was waiting for someone to post an ruu. Thanks.

Just ignore the ignorance.
[T-Mobile HTC One (M9)] fmedrano1977:
RUU is the correct one, relock bootloader and run it.

HTC One M9
[T-Mobile HTC One (M9)] tw39515:
relocking bootloader?

I'm still pretty new to the m9 and have been away from htc for years. Why must the boot loader be re locked to run the RUU. The last 2 times Ive ran a RUU to update rom and firmware I did not re lock boot loader and it ran from windows with no problems. Did I just get lucky. Most of the problems Ive read where people have bricked is because they re locked boot loader and had a bad flash not being able to recover due to locked boot loader. Thanks Tw
[T-Mobile HTC One (M9)] ThePhoneGeek:
If you're S-Off there is no need to relock. To me the $25 to S-Off is MORE than worth it for the simple fact that I can load whatever RUU I want.
[T-Mobile HTC One (M9)] tw39515:
Im s-on and plan on s-off before mm, but i was s-on flashing the ruu before and didn't re lock boot loader.
[T-Mobile HTC One (M9)] ThePhoneGeek:
If you're s-on and running the RUU for your specific device perhaps it works, I've never left a device S-On long enough to worry about it.
[T-Mobile HTC One (M9)] tw39515:
lol nice, this is my first htc that i left s-on for this long too.
[T-Mobile HTC One (M9)] jbfountain:
There is no need to re-lock the bootloader to run a RUU. The RUU will lock the bootloader when you run it unless you are S-Off. You would also have to be S-Off and change MID and CID to use a different variant RUU.

Using XDA to unleash the power of Android on my HTC One M9 and S6 Edge Plus
[T-Mobile HTC One (M9)] jergutierrez:
Is this firmware ok to flash?

I'm on 2.11.531.19, S-off, unlocked bootloader and CID: T-MOB010.

This is firmware only, right?

Does it do a full wipe? or just flash?

Or is it better to just fun the full RUU?
[T-Mobile HTC One (M9)] ThePhoneGeek:
3.39.531.7 is current.

Make sure you also check/set your MID to 0PJA12000
[T-Mobile HTC One (M9)] angasreid:
Anyone have updated links here? Trying to restore my M9 to stock. HELP
[T-Mobile HTC One (M9)] kc6wke:
Just flash the RUU

Here is the 5.1 RUU

Here is the 6.0 RUU
[T-Mobile HTC One (M9)] angasreid:
Thanks! do I do this in Download or Recovery? Also - do I need a specific CID or MID? CID is currently T-MOB101.

I'm seeing error: 22 RU_HEADER_ERROR in Download