yashsingh1/xdaforums huggingface dataset:
[T-Mobile HTC One (M9)] skruff77:
All i did was what was in the OP post

How do I restore stock system so that I can accept an OTA?

Copy the system.emmc.win from your TWRP backup folder to the folder containing fastboot on your PC (or any folder, if fastboot is in your PATH). Make sure your Android SDK platform-tools are up to date!!

Reboot the device into Download mode (adb reboot download) and connect to PC.

Fastboot flash the backup file* (fastboot flash system system.emmc.win).

Fastboot flash stock recovery (fastboot flash recovery recovery_signed.img)

Reboot to system, install OTA.

can i run the RUU when im S-off?
[T-Mobile HTC One (M9)] jbfountain:
Yes you can run a RUU with s-off. The OP also says that you may have to restore backup via TWRP.

Sent from this great HTC One M9 using XDA's mobile app.
[T-Mobile HTC One (M9)] Rydah:
Yes you can run the RUU with S-Off like [MENTION=6420972]jbfountain[/MENTION] said... Also, like he mentioned, the guide also says to restore the stock twrp backup via twrp after pushing it via fastboot.

So to be clearer than water:

1 fastboot flash the system partition

2 restore the entire backup via twrp

3: fastboot flash stock recovery (or flash entire firmware.zip from O.P. If you're S-Off, use the modded zip to preserve data)
[T-Mobile HTC One (M9)] skruff77:
THanks guys i got it now.:D
[T-Mobile HTC One (M9)] Rydah:
That's what this thread is for, to make things easy for us all.
[T-Mobile HTC One (M9)] MrLizm:
I may have blown it?

Restored the image, however, gapps and sense keep crashing cant even get past the pop ups to check OTA. I am going to try a few things just wondering if anyone had some suggestions.

Thankies.

--- So the "few things" I was going to try worked. I may have rushed through the OP but all I had to do was wipe data/cache/dalvik someone probably already answered this I just wanted to post my findings in the event someone else is as lazy as I am.
[T-Mobile HTC One (M9)] ALI 9:
I got the same problem.... All I wanna do is get that OTA update ..... I got my S-Off .... I flashed stock recovery .... It started updating .... Then I got the same error .... Now I don't know anything about any system partition can someone please clear that out

can anyone give me the link for the system partition .... i have a 1.32.617.6 software
[T-Mobile HTC One (M9)] Behold_this:
Dude you can't ota from .617 (dev edition software) to .531 (tmo carrier software)! The OTA package clearly states which software it is made to update. In this case the 1.32.531.33 ota is made to update from 1.32.531.25 ONLY! You'll never ever accomplish what you want the way you are doing it.
[T-Mobile HTC One (M9)] ALI 9:
then can you please guid me how i need that OTA update ...
[T-Mobile HTC One (M9)] Behold_this:
Change to super cid, then run tmo ruu. If you want to receive future T-Mobile OTAs you will need to change your mid as well.
[T-Mobile HTC One (M9)] Rydah:
Seriously... ?

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] mrgoodpaul:
What is the T-Mobile mid?
[T-Mobile HTC One (M9)] Behold_this:
Any and all device & support information for the T-Mobile variant of the HTC M9 can be found here:

http://xdaforums.com/showthread.php?p=59767173

MID=0PJA12000
[T-Mobile HTC One (M9)] Jwtiyar:
iam back to stock with RUU , now i can get OTA normally?
[T-Mobile HTC One (M9)] Rydah:
If you ran the RUU perfectly fine then yes. As long as nothing was changed.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] jbm0329:
For anyone who comes here looking to revert back to the T-Mobile RUU from the Developer Edition, it's super simple to do. I downloaded the RUU that was provided in the OP, changed the name to 0PJAIMG.zip (placed it on the 32GB external SD card after I formatted it; do NOT put it in just yet... wait til you are in download mode, else it will try to flash the ROM that's on it. If you forget, it's not the worse thing ever... when it tries to flash the ROM, just say no and it'll go in to download mode)... I used adb to reboot into download mode (probably can just turn the phone off and use the power button and volume down button simultaneously to get the same result). Get the command window to open just like you did when you converted it to the Developer Edition. Once in download mode, I used the command of "fastboot oem writemid 0PJA12000" (no quotes)... this changed the MID back to T-Mobile's. Then I used "fastboot oem writecid T-MOB010" to change the CID back to T-Mobile's. Then I used the command "fastboot reboot-bootloader" and it you will need to choose 'download' mode again; it will then ask if you want to flash the RUU (volume up is yes and volume down is no). It flashed with no problem...

My only concern was whether or not it would SIM lock the device again (I'm on AT&T and T-Mobile uses an app to unlock their current phones and you have to be on their network). I didn't have this problem... I suppose it didn't SIM lock it because the bootloader is unlocked and I have S-Off. I saw a message flash asking me to put a T-Mobile SIM card in it but it didn't stop (just a brief flash). After it finished loading, I simply had to add AT&T's 4G APN settings and it works just fine.

Hope this helps someone...
[T-Mobile HTC One (M9)] guyverzero:
Well, today is the day where we should (hopefully) be getting that update! Can't wait to see all the improvements people have been talking about with the kernel and such.
[T-Mobile HTC One (M9)] BlackDave:
Can't wait.
[T-Mobile HTC One (M9)] SmIzUrF:
Anybody receive the ota?
[T-Mobile HTC One (M9)] BlackDave:
So far, no.

Edit: After some research, it won't start until tomorrow -_-

http://a.disquscdn.com/uploads/mediaembed/images/2292/6858/original.jpg
[T-Mobile HTC One (M9)] hellforgedheart:
No sign of it and no chatter anywhere. It's kinda b.s. that it takes this long to get it. It was released to T-Mobile weeks ago.
[T-Mobile HTC One (M9)] BlackDave:
It was believed to be released on the 20th but then I saw a tweet saying they were going to release it today instead but still no word....
[T-Mobile HTC One (M9)] TheAtheistOtaku:
And so the delays begin
[T-Mobile HTC One (M9)] 123421342:
No one yet?
[T-Mobile HTC One (M9)] dronepro:
These guys are killing me.

Sorry to be a debby downer :( it hurts me too.
[T-Mobile HTC One (M9)] dronepro:
This is after a back and forward with them yesterday where they kept giving me links that point to the fixes included in 1.32.531.33 that ATT needed 2 updates to patch. After a polite, "no need to "F" around, just say what you need to day and don't beat around the bush about this" they sent me the above attachment.

It's safe to say there is either a delay, a big delay, a HUGE delay or they might even decide to skip 5.1 all together (now is 100% reported that TMOUS will skip 5.1.1) and might move to Android M. Maybe they're waiting this long because they're patching the fixes that were supposed to come with 5.1.1 into 5.1 release and it's taking longer than expected... at this point... their silence is making everyone go crazy.
[T-Mobile HTC One (M9)] BlackDave:
My problem with this is that there are still issues on the current Android version that needs fixing and could be fixed with this 5.1 update but if they decide the delay it and bring Android M, we're going to have to suffer even longer. And who knows when Android M will release on this device and what problems it will bring. I'm tired of having to restart my phone every so often because it's bound to **** up after a set amount of hours or days. Meanwhile the iPhone I use for works goes weeks without any problems.
[T-Mobile HTC One (M9)] twinnfamous:
Well if the new firmware gets pushed please give me a heads up. It's all I'm waiting for to get volte and Wi-Fi calling working on the international roms. Until then I'll be on Leedroids new base with all the great stuff.
[T-Mobile HTC One (M9)] dronepro:
Agreed however i am not sure why you need to restart so often. I don't have any issues with my phone other than i would like the camera fixes and whatever CPU fixes that may have implemented to speed it up a bit and also the battery drain issues as i understand there is potential for a 10-15% increase in life with 5.1 or 5.11 which for me is about 2 hours more almost.

I've been an HTC user for about 7 years now and i have to say the pi22ed me off with their crap work on camera and an SD810 CPU that works at best as good as the 808...

Fortunately for Jump i will try the M10 at the end of the year or 2016 and if they mess that up too i'm done with this company for life...
[T-Mobile HTC One (M9)] Rydah:
I'll send someone an email and see what's up... This is absolutely ridiculous.

Sent From My LG G4
[T-Mobile HTC One (M9)] JohnCorleone:
Just got my T-Mobile 5.1 update...
[T-Mobile HTC One (M9)] Garmig:
I got it too!
[T-Mobile HTC One (M9)] jbm0329:
Hopefully, we'll be able to get the full download (RUU/Exe) file from HTC soon. I have 2 that are SIM unlocked, unlocked bootloader, and S-Off on AT&T and I'd like to get this installed. I'm hopeful that this update will squash the heat issues.
[T-Mobile HTC One (M9)] Prasad:
So far, it very likely seems to be the case. :)
[T-Mobile HTC One (M9)] chogardjr:
It will. I just came from Sprint where they already got this update. The issue with 5.0 is they have cores 4-7 always on minimum of 633mhz. This is the main cause. After Sprint went 5.1 those cores now behave as they should.
[T-Mobile HTC One (M9)] 123421342:
Man really? After all this time they didn't even update it to 2.10?
[T-Mobile HTC One (M9)] Prasad:
That's just internal HTC numbering, right? Anything in 2.10 that isn't in this update ?
[T-Mobile HTC One (M9)] Lrs121:
The number version varies from device, carrier, revision ect.

http://www.androidfannetwork.com/2013/12/09/htc-ruu-and-update-version-numbers-explained/

edit:

external ota link

1.32.531.33 to 2.7.531.6

md5: ea863733bc367770edc7ac62021c0aa6
[T-Mobile HTC One (M9)] LeeDroid:
one of you guys fancy dumping system and boot?? nandroid will do :)
[T-Mobile HTC One (M9)] Lrs121:
sure, gotta make a bootloader flash zip and system image back up made and ill dump some.
[T-Mobile HTC One (M9)] itskapil:
Here is a mirror (a direct download link), enjoy! :)

Btw, credit for this goes to [MENTION=4487349]Lrs121[/MENTION] -- this is his grab.

MIRROR LINK (version 2.7.531.6)

[MENTION=1256436]Rydah805[/MENTION] you will like it for OP.
[T-Mobile HTC One (M9)] jbm0329:
Hello. Since this is JUST the update zip, I presume it wouldn't wipe the phone upon an installation?

More importantly, what's the proper way to install this update?

My phones are S-Off and has an unlocked bootloader.

Thanks
[T-Mobile HTC One (M9)] LeeDroid:
Excellent! Thanks :)
[T-Mobile HTC One (M9)] guyverzero:
So, if I am S-on using the newest venom rom, what would be the correct procedure to update the kernel?

I know I gotta restore to stock, but do I need to wait for the RUU, etc? Or has there been a write up for this already that I'm missing (the one I saw was for S-off updating)
[T-Mobile HTC One (M9)] Lrs121:
To restore to stock without ruu/wipedata if running stock rom rooted

http://xdaforums.com/showpost.php?p=59745198&postcount=3
[T-Mobile HTC One (M9)] Rydah:
2.7.651.6 OTA added to OP. :) More to come.
[T-Mobile HTC One (M9)] jbm0329:
Awesome! What's the best way to flash this without wiping the device? Change the name of the file, place it on my external SD and flash it or should I use ADB to flash it?

Thanks
[T-Mobile HTC One (M9)] Lrs121:
must be flashed through stock recovery
[T-Mobile HTC One (M9)] jbm0329:
So just use ADB and flash it... Gotcha. Will it wipe the phone?

Thanks
[T-Mobile HTC One (M9)] Lrs121:
it shouldnt its an ota file.
[T-Mobile HTC One (M9)] jbm0329:
I appreciate your assistance. New to HTC and I want to get rid of this heat problem ASAP!
[T-Mobile HTC One (M9)] Lrs121:
no problem the new ota style makes things a little more difficult. it does help a lot with the heat.
[T-Mobile HTC One (M9)] jbm0329:
Good to know. It doesn't matter that I'm bootloader unlocked with S-Off, right?
[T-Mobile HTC One (M9)] Lrs121:
nope so long as the system partition was reverted to an untouched state and you have the stock recovery flashed.
[T-Mobile HTC One (M9)] jbm0329:
Yep, it's back to stock to accept OTAs except I can't accept it because I'm on AT&T right now.

Thanks

---------- Post added at 10:58 PM ---------- Previous post was at 10:37 PM ----------

Sometimes, it's nice to be wrong! I didn't realize that I could accept a T-Mobile OTA while I'm on AT&T. My son said he got the notification, so he's installing it now. Super excited! Thanks
[T-Mobile HTC One (M9)] itskapil:
For help, check out this guide. Also contains link to back to stock (step 1, pretty useful), if need be.
[T-Mobile HTC One (M9)] jbm0329:
I appreciate it. Funny thing is, though I'm S-Off with an unlocked bootloader, and SIM-unlocked on AT&T, it prompted me to download the update! I was so sure that it would not give me the option since I was on another carrier. Love to be wrong sometimes. [emoji2]

Thanks again
[T-Mobile HTC One (M9)] guyverzero:
I'm on Venom right now. Could I just run an RUU of a stock rom and have that work, or would there be any other steps (like going to a stock recovery, etc). Also, after finally getting 2.7 on stock, could I reflash my nandroid of venom I'm running right now and still have the new firmware, or would I have to do a clean install of the newest venom rom?

I've tried searching to find a post mentioning the steps for getting a venom rom to stock, getting the latest stock for new firmware and such, and going back but it's nowhere to be found (at least in my searching) and I don't want to do anything wrong. This process is unbelievably complicated compared to what I had to do with the S4 (my last phone), I guess that's one of the downsides (but there are many upsides too!)
[T-Mobile HTC One (M9)] Lrs121:
you can ruu back to stock but i youll lose every thing stored on the internal sdcard. you can also restore a stock rom nandroid then follow the steps to go back to a read only state to take the update. after you update youll have to wait for team venom, or any other sense based roms, to update their rom to the new base before youll get the benefits of the new firmware in their roms.
[T-Mobile HTC One (M9)] twinnfamous:
If your s-off just Flash the 2.7 firmware.

YOU can find it in the international forum comes with latest twrp
[T-Mobile HTC One (M9)] guyverzero:
Not s-off, mentioned that in the original post I had made on the subject (should have said it again though, my mistake)
[T-Mobile HTC One (M9)] twinnfamous:
No I should have read more before replying.

Ruu for you only way. It pays to s-off it has alot of benefits
[T-Mobile HTC One (M9)] guyverzero:
I'm actually biting the bullet now. I had planned to do it because I was impatient about the TMO update not coming out, but decided to have faith (and had to spend 500 on my car, but that's another story). Oh well though, gonna have this until the M10 is out so I guess 25 bucks isn't that much. Flashing things and such seems loads easier with s-off. Thanks for the advice
[T-Mobile HTC One (M9)] Lrs121:
system.img and boot.img in a tar.gz

https://drive.google.com/open?id=0BzuX6WLejxQwR1hQek41ajBRNnM

md5sum: c6bc884631d738cdc4fa890a34ada1ab
[T-Mobile HTC One (M9)] Rydah:
Are you completely stock? If so, through stock recovery.

I'll be posting up the nandroid and firmware soon.

Sent From My LG G4
[T-Mobile HTC One (M9)] Nismo_q:
I had to flash the RUU .33 exe and updated OTA. Then reflashed TWRP, rooted, then flashed Venom 3.5 rom.

Newest Venom rom works perfectly on the new update.
[T-Mobile HTC One (M9)] jonathan3579:
That's what I've been wondering. I guess I'll have to do that too. Did you start from scratch or use a backup to restore? I really don't want to have to go back through all the damn settings again.
[T-Mobile HTC One (M9)] Nismo_q:
After clean restore of RUU and update, I restored from HTC backup. Back and running in an hour.
[T-Mobile HTC One (M9)] effortless:
2.7.531.6 T-Mobile RUU Download

2.7.531.6 T-Mobile RUU

http://dl3.htc.com/application/RUU_...01_81.03.50702G_F_release_445023_signed_2.exe
[T-Mobile HTC One (M9)] elitox87:
im not sure where to post this, but this seems to be the only and most active thread in this sub-forum. read thru the last 5 pages and still can't find an proper answer with guide. my current m9 is S-OFF, bootloader unlocked, rooted ON STOCK ROM - when i first got twrp installed, i did made an nandroid backup; should i just recover from this and flash stock recovery? i just want to flash the new firmware that's released from the CURRENT tmo. update[im going to be on a custom rom right after this], what do i really need to do? each post is like a link to another link, can we just get something added to the OP ? also, i can't find the MOST RECENT firmware zips from OP - should i be looking elsewhere? thank you much for your time and patience.
[T-Mobile HTC One (M9)] kc6wke:
Read here
[T-Mobile HTC One (M9)] elitox87:
that was fast! thankyou - so i'm going the NOWIPE route - flash the zip in twrp and calling it a day?
[T-Mobile HTC One (M9)] kc6wke:
flash in download mode
[T-Mobile HTC One (M9)] elitox87:
crazy, after what i thought was a successful flash, now my phone just reboots itself every 5mins..or rather whenever the lockscreen kicks in.
[T-Mobile HTC One (M9)] kc6wke:
It may be the new firmware with old rom, I've heard a few are having issues.
[T-Mobile HTC One (M9)] elitox87:
right, so i've reverted back to stock via ruu zips that's provided here. all good now. thanks.
[T-Mobile HTC One (M9)] Maddog0057:
Did you ever find a way to update to 5.1 using the nowipe method? I was able to get the zip to run successfully but I still cant find a stock ROM to flash to get me on 5.1
[T-Mobile HTC One (M9)] elitox87:
no i have not. my experience with this was - it was just too buggy to run the new firmware on 5.0 tmo stock. so after reverting back to 5.0/ .33 stock, i then proceeded to manually upgrade to 5.1 via .zip flash instead. one interesting find to me was, throughout this entire process, the bootloader STAYED UNLOCKED so, from there after the 5.1 updated, i just flashed to twrp recovery and am now running ViperRom. from you sig, i see that you too are on stock tmo rom, so just flash the stock recovery then grab the 5.1 flash ZIP and you should be good.
[T-Mobile HTC One (M9)] twinnfamous:
If your using no-wipe zip read this

NoWipe ZIPs:

This package is modified. This type of ZIP updates basic Firmware partitions, does not touch the /data partition, leaves kernel, splash and ramdisk (in order to support custom ROM’s modifying ramdisk) alone. The “Apppreload.img is removed, the bloatware partition will remain unchanged (to remove bloat permanently flash Apppreload.img from International/WWE/401). Recovery will be replaced with the current TWRP. Phone will boot normally after using this.

Which means you have to flash kernel from new base because the old one is not changed.
[T-Mobile HTC One (M9)] Rydah:
2.7.531.6 RUU Added To O.P.
[T-Mobile HTC One (M9)] daniel2744:
I was noticing that on the OP. You mean about the extra 3GB of space being used up. If I'm on a custom rom, does this still apply?
[T-Mobile HTC One (M9)] Behold_this:
Depends on the ROM. I can say for sure that it is not an issue on Viper and it probably has been addressed on the other ones as well but I can't confirm.
[T-Mobile HTC One (M9)] zuzu_:
How to 1.32.531.25 -> 1.32.531.33 -> 2.7.531.6 w/ S-OFF and Fastboot (download mode)?

I can't seem to find the proper ZIP files to use to flash from stock (but S-OFF) version 1.32.531.25 to 1.32.531.33, and then from 1.32.531.33 to 2.7.531.6, without wiping.

The only file that seem to "work" when flashing with Fastboot and the device in Download Mode is the "1.32.531.33 Full Firmware" ZIP file, but even though that shows "success", when the phone reboots the software version still reports as 1.32.531.25.

I'm on Mac OSX and don't have access to a Windows computer. So I need to be able to flash either with the adb or fastboot command tools, or from within TWRP recovery.

I've been doing Android updates since original HTC Nexus One, but this is throwing me for a loop. Any help would be appreciated. Thanks!
[T-Mobile HTC One (M9)] Behold_this:
There is T-Mobile 2.7.531.6

RUU available from HTC's website
[T-Mobile HTC One (M9)] zuzu_:
and how am I supposed to run RUU EXEs without Windows?

Also, don't RUU wipe the data partition?
[T-Mobile HTC One (M9)] jbfountain:
You can find a no wipe flashable 2.7.531.6 zip here.

http://xdaforums.com/one-m9/development/firmware-t3068243
[T-Mobile HTC One (M9)] zuzu_:
Thanks, I saw that thread, however:

1.) I don't see the actual link for the files themselves. Perhaps I'm overlooking something, but I've read through it several times.

2.) It warns that updates are incremental in nature. This leads me to believe I need ZIP files for BOTH the "dot 33" update and then the most recent 2.x update.
[T-Mobile HTC One (M9)] jbfountain:
Go back to that page, and scroll down to where it says "Downloads". Right underneath it says "Google Spreadsheet with all links". Click on that, and it will take you to a spreadsheet with the links to all of the firmware downloads.
[T-Mobile HTC One (M9)] zuzu_:
Ah HA! You're a lifesaver! Thank you!!!
[T-Mobile HTC One (M9)] jbfountain:
You are welcome my friend. Glad I could be of assistance. :good:
[T-Mobile HTC One (M9)] mikaeldalc:
So, here's my dilemma. I decided to flash the MaximusHD Rom (WWE based rom). Its smooth but certain things are a bug mentally. Id like to Go back to the US Tmobile based rom and get the OTA update. Im Not S-OFF and dont plan on paying $25 to do so. I have a backup, but its a twrp backup, so it wont allow me to install the OTA. What are my options? does anyone have a 2.7.531.6 TWRP Backup or a rom i can flash?
[T-Mobile HTC One (M9)] Behold_this:
You need to find a truly clean backup that will accept an OTA (in this thread OP), or you need to flash the ruu (link also in this thread OP). Simply flashing a ROM will not update your firmware!

When people post questions asking where to find things that are clearly posted in the OP it really makes me wonder what is wrong with the world.
[T-Mobile HTC One (M9)] mikaeldalc:
Well first thank u for the reply, second, I DID read and try all options that you've stated. It says I can't because I'm s-on.
[T-Mobile HTC One (M9)] skulldreamz:
Thanks my dude, appreciate your contribution...
[T-Mobile HTC One (M9)] Lrs121:
Is anyone else getting issues trying to unzip the zip files outputted from using ruuveal on the latest ruu zip?
[T-Mobile HTC One (M9)] skulldreamz:
Yeah each zip I downloaded said corrupted as well :/
[T-Mobile HTC One (M9)] Lrs121:
I was trying to get a copy of the stock recovery without having to unpack, modify and repack the one in the op. I ended up tearing apart the firmware.zip in the 2.1 ota to get it because of the corrupt zips.
[T-Mobile HTC One (M9)] GunnerOnASpooky:
Is there a 2.7 flashable firmware available? Or do I have to go back to 1.32 and update? I am on 2.10 right now, and want to get wifi calling working again.
[T-Mobile HTC One (M9)] kc6wke:
yes, Here
[T-Mobile HTC One (M9)] skulldreamz:
Actually I believe I'm incorrect and that the aboot needs to decrypt the ruu. It's not going to open in a file explorer because they are signed by T-Mobile

Also [MENTION=1256436]Rydah805[/MENTION] do you happen to have the 2.7.531.6 sdcard flashable (0PJAIMG.zip) ruu.zip? Thanks my dude