yashsingh1/xdaforums huggingface dataset:
[T-Mobile HTC One (M9)] Prasad:
I just uninstalled and redownloaded a fresh copy. So, yes. Please mirror me a copy of the latest fastboot, in case I missed something obvious.

By the way, firmware.zip flashes just fine, but not the RUU.
[T-Mobile HTC One (M9)] Rydah:
Sorry bud. I'm kinda hesitant to run the ruu as I just had to restore all my data, but I'll probably bite the bullet by Friday. Keep around.

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] Prasad:
Thanks! Still wondering why it won't flash the RUU though -- did you guys restore the TWRP backup or unroot the phone before flashing the RUU, cus I didn't do those things. All I did before attempting RUU flash was unlock the bootloader.
[T-Mobile HTC One (M9)] flex360:
hey man, youre not getting my hangouts or something?
[T-Mobile HTC One (M9)] Rydah:
Was at the HTC event. They had an open bar!

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] Rydah:
No, it's weird. Have you tried redownloading? I'm stumped on what it could be. . .

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] Prasad:
Stumped me too. I last downloaded the fifth copy on the third browser. I'd be really grateful if you could upload the fastboot binary you're using..
[T-Mobile HTC One (M9)] Rydah:
Sure, here you go. . .
[T-Mobile HTC One (M9)] Rydah:
Status Update,

I have yet to find a solution for the RUU flashing. I haven't had the free time for that yet, but will look into it soon. In the meantime, I am looking around and asking some of the legends for advice & help.

Updated OP:

-Added A Warning That Firmware Zip Will Wipe Data & Settings

-Added Modified Firmware Zip (Removed Aboot, Bootloader, Kernel, Stock Recovery & Also Removed The Script That Wipes Data & Settings.)

Enjoy.
[T-Mobile HTC One (M9)] Prasad:
I noticed the link to the beta TWRP now has TWRP 2.8.6.4 ... I take it this includes all the improvements towards the M9 that the beta already had?
[T-Mobile HTC One (M9)] Rydah:
2.6.8.4 is still only a beta, but yes.
[T-Mobile HTC One (M9)] Prasad:
Thanks! I'm going to try restoring the TWRP backup this time, before trying to flash the RUU. The link to the explanation regarding restoring a backup is a little confusing. First, there's fastboot flashing the system file from the TWRP backup, then there's more TWRP optional steps. The next section has TWRP restore from sdcard. I've downloaded the TWRP backup files now. I'm wondering which way to proceed? Would the fastboot flash of system suffice, or do I have to restore from TWRP as well? I remember someone mentioning it had to be flashed twice to really work.. Could you please provide specific steps for a full restore to stock..
[T-Mobile HTC One (M9)] Rydah:
I apologize, I'll clean that up today. Anyways, just the fastboot push of system should suffice.
[T-Mobile HTC One (M9)] Prasad:
Awesome! Thanks again! I'll definitely try that first now.. Also, I'm wondering if it's an issue if TWRP shows system in the mount menu? I'm using the latest TWRP 2.8.6.4, not restored anything just yet.
[T-Mobile HTC One (M9)] Rydah:
I believe it's in OP (i'll have to recheck) but if the "System" option is listed in the mount menu in TWRP 2.8.6.0+, that means system has been mounted once and is NOT going to take an OTA. System shouldn't be listed in twrp after you restore the partition in fastboot.
[T-Mobile HTC One (M9)] Prasad:
Understood. So hopefully after the TWRP restore, system should no longer show up again, indicating a clean restore back to stock! :)
[T-Mobile HTC One (M9)] Rydah:
after pushing it (system) it will remove the mount button. :) which should be good enough.
[T-Mobile HTC One (M9)] Rydah:
hehe i just hit 1234 on my thanks meter. ;P
[T-Mobile HTC One (M9)] Prasad:
You're welcome! :p
[T-Mobile HTC One (M9)] Prasad:
I tried it. Strangely enough, I still get the same error from trying to flash RUU. Here's the log:

And now my phone won't boot :( It keeps booting into the recovery mode now!

Also, system disappeared from the TWRP mount menu so I was expecting it to be fine and working, but it's not.
[T-Mobile HTC One (M9)] Captain_Throwback:
That seems to happen to some people (possibly because of outdated fastboot).

At this point you will have to restore the stock system in TWRP as [MENTION=1256436]Rydah805[/MENTION] indicated, which should get you booting again with stock system.
[T-Mobile HTC One (M9)] Prasad:
That's what I don't understand. I have latest fastboot binaries on both my mac and windows systems. I'm now using ADB push from recovery to push the system files to the internal sdcard. Gonna try restoring from TWRP now..
[T-Mobile HTC One (M9)] Rydah:
Like [MENTION=1162986]Captain_Throwback[/MENTION] said, now that it is restored via fastboot and it won't boot, boot into twrp and restore system and should boot.

That's the latest platform tools, so idk. ?

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] Prasad:
Yeah, the TWRP restore worked! :) I've atleast got a working phone now. [MENTION=1256436]Rydah805[/MENTION] I tried your fastboot binary from windows, same problem as before:

.. And fastboot.exe actually crashed , ie. "fastboot.exe has stopped working" error in Windows 8.1

Officially a first.
[T-Mobile HTC One (M9)] Rydah:
It came off of my windows 7 laptop, idk if it's different by OS versions.

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] epsix:
Is there a way to root without unlocking bootloader from HTC?
[T-Mobile HTC One (M9)] Behold_this:
Not currently no.

Also for those having issues flashing RUU.zips , please see my boys [MENTION=1102297]Sneakyghost[/MENTION]'s post in the hima firmware thread. He will be posting updated tools for handling the larger RUU transfers.

http://xdaforums.com/showpost.php?p=60030277&postcount=29
[T-Mobile HTC One (M9)] Rydah:
Awesome, thanks! ?

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] Rydah:
Awesome, will do. :))) Glad we're officially 100% safe now. Thanks for confirming.
[T-Mobile HTC One (M9)] epsix:
System dump. .33?
[T-Mobile HTC One (M9)] Rydah:
???

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] epsix:
Do you have the update from T-mobile camera fix yet?
[T-Mobile HTC One (M9)] Rydah:
I don't believe it's officially pushing yet. If anyone were to receive the ota, please upload the .zip.

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] Rydah:
Something nice coming soon. ?

Sent From My HTC One (M8)
[T-Mobile HTC One (M9)] Prasad:
Curiosity augments hair loss.
[T-Mobile HTC One (M9)] Rydah:
lol. I got something cool but useless. . . Build: 1.32.997.3 which is an engineering/debugging build. I thought it was something else, but nonetheless, pretty cool to see the engineering RUU's come with SU & SQLite along with a bunch of other tools. lol
[T-Mobile HTC One (M9)] virajxp1:
im trying to ash the ruu do i need s-off? and also thonly thing i need to take ota's isstock rom and recovery right?
[T-Mobile HTC One (M9)] Prasad:
You need to be S-ON and bootloader LOCKED to flash any RUU. Just follow the instructions and you should have no problems.
[T-Mobile HTC One (M9)] virajxp1:
No its not a exe its a zip that I have to flash it in fast boot
[T-Mobile HTC One (M9)] Rydah:
Found a simpler process to restore system to stock without having to wait forever in fastboot. lol Uploading a new stock system.img :) I know we all want to be stock for the OTA. The original image (TWRP system backup) took around 5-10 minutes to restore, this new process restored my system within 38 seconds. It even rebooted back into system without having to restore in TWRP (original method required this, taking another 3-5 mins.)

C:\Users\@ThisIzRydah\AppData\Local\Android\sdk\platform-tools>htc_fastboot.exe flash system system.img"
sending 'system' (393216 KB)... OKAY
writing 'system'... (bootloader) HOSD CL#505029
(bootloader) start@1
(bootloader) system@100%
(bootloader) Update partition OK
(bootloader) end@Done
OKAY
Execution time is 38(s)
[T-Mobile HTC One (M9)] Behold_this:
New ota zip: https://www.androidfilehost.com/?fid=95916177934556684
[T-Mobile HTC One (M9)] Rydah:
OP Updated; Added OTA Link and latest firmware zip. RUU coming soon.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] Rydah:
1.32.531.33 Stock Backup uploading soon. At my sons baseball game, but already have the backup. ?

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] twinnfamous:
I'm pulling system now. Would u like me to upload or u got it covered allready
[T-Mobile HTC One (M9)] Rydah:
Sure, an extra mirror wouldn't hurt. ?

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] twinnfamous:
Here u go latest system pull/dump full stock

https://docs.google.com/file/d/0BzsWJXZYM6uxdlNWYUk1V0t1RDg/edit?usp=docslist_api

Pm if u want the system deodexed version.
[T-Mobile HTC One (M9)] Rydah:
Thanks brotha

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] twinnfamous:
No problem I'm just glad to see more involvement in the tmo forum this time around with the m9.
[T-Mobile HTC One (M9)] minotauri:
After soft bricking my phone restoring my device, and then not having a Windows computer to use HTC_Fastboot.exe, and not being to do a fastboot ruu properly, I just placed the 0PJAIMG.zip file in the root folder of my sdcard (or in the root folder of the media partition) and rebooted and HTC download mode automatically restored my system.
[T-Mobile HTC One (M9)] Rydah:
Yup, should work that way too as long as the sdcard is formatted in FAT32.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] Behold_this:
Just a FYI, and sorry for the off topic, s-off is now available for the M9 via sunshine 3.1. Ran it successfully on my device with the stock 1.32.531.33 rom.
[T-Mobile HTC One (M9)] twinnfamous:
Well that's great news I'm rooted on stock so time for s-off.
[T-Mobile HTC One (M9)] Rydah:
??? No Homo, but thanks for the heads up. Haha

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] Rydah:
BTW Guys, OP Updated With 1.32.531.33 Stock TWRP Backup. Enjoy.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] fallenangel408:
there is no firmware update when i go to 1.32.531.33...and is there any other mirror i cant seem to download from google page?
[T-Mobile HTC One (M9)] Rydah:
Link in OP works for me.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] patricio16:
now that the OTA is uploaded, is there a way i can update without having to restore everything back to stock or is that not an option?
[T-Mobile HTC One (M9)] Rydah:
Yeah, just restore system to stock untouched as described in this thread (think page 2) and restore stock recovery.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] patricio16:
okay so i still need to go back to stock, i was hoping since i was s-off i could just flash the ota without restoring system to stock
[T-Mobile HTC One (M9)] Rydah:
You won't lose data with the method I mentioned. ? honesty isn't too hard. In the future I'll provide zips that'll do it for us.

Sent From My HTC One (M9)
[T-Mobile HTC One (M9)] patricio16:
i ran into an issue im running the beta twrp 2.8.6.4 but system is listed under my mount section. its listed but not selected what should i do?
[T-Mobile HTC One (M9)] patricio16:
also the nandroid back up wont copy over to my device it says that the file is too large but i have 20gb available on my sd card. I dont understand why that would be happening.. wtf
[T-Mobile HTC One (M9)] Prasad:
There's a file size limit per file. You can circumvent this with adb push.
[T-Mobile HTC One (M9)] patricio16:
​

i keep getting permission denied error when trying to push to my sdcard! i cant figure out what the problem is :crying:
[T-Mobile HTC One (M9)] Prasad:
What do you get on running: dab devices

If it shows as "offline", make sure you've granted adb for the computer you're using.
[T-Mobile HTC One (M9)] patricio16:
when i run adb devices i see my phone, i had an issue with emulator before but that was bluestacks and i fixed it. now it sees only my phone but wont push. i keep getting permission denied
[T-Mobile HTC One (M9)] trackhouse1:
OK here is where i am....

Have been following the instructions for returning to stock. i pushed the system file system.emmc.win to my phone via fastboot. but now i am unable to find the nandroid backup when i reboot into twrp. have tried to transfer it from my pc but get the file size too large error. what do i do?​
[T-Mobile HTC One (M9)] texas_born:
Do you have an SD card? Maybe you can load the stock backup to an SD card.
[T-Mobile HTC One (M9)] trackhouse1:
I have an sd card i tried to copy the newest stock to it but it kept giving me first file size to big error when trying to transfer the 4.9 gig system.emmc file and when i tried to transfer as a zip was able to transfer but it gives me an error on the zip. Am trying the original stock now before update
[T-Mobile HTC One (M9)] texas_born:
Can you remove the SD card and copy the stock backup from your pc to SD card? I just successfully updated following op's instructions so I know it works but I also made sure I had backups on my sd card and on internal SD card.
[T-Mobile HTC One (M9)] trackhouse1:
was able to flash the original stock file by copying the RUU zip to an external sd card and renaming it to 0PJAIMG.zip and rebooting to download mode. an sd card is definitely the shure way to ensure this process works. all the other instructions worked fine. i think the .33 file may be corrupted though i was totally unable to flash it with this method. after reboot the OTA update flashed with no probs. thanks for your help i really love XDA and all its members!
[T-Mobile HTC One (M9)] Rydah:
Finally caught up with recent user posts. On-Device RUU instructions added to the "HOW TO" post.
[T-Mobile HTC One (M9)] minotauri:
Good addition for future users with problems. I might add, that when I did this over the weekend, the device rebooted several times during the flashing and it is working even though it looks like its frozen. So... users just need to be very patient.
[T-Mobile HTC One (M9)] Rydah:
I'll add that as a note. Thanks
[T-Mobile HTC One (M9)] Behold_this:
[MENTION=1256436]Rydah805[/MENTION] please check your PMs when you get a chance ?
[T-Mobile HTC One (M9)] virajxp1:
I just want to clarify, with s-on can i restore a stock nandroid in the captain throwback twrp (2.8.6.4?) or do i need s off to wipe system and restore a nand? people have been telling me that twrp and system and everything is different on the m9 than the m8. also do you need s-off to flash any custom rom on the m9 using the captain throwback twrp? and is there any ruu available like the .exe that i can run on my pc with s-on (not flashing it through fastboot with s-off).thx for the help!!:):)
[T-Mobile HTC One (M9)] Rydah:
Guess I was too late. Lol

You can restore a TWRP backup with S-ON. It's not listed as a requirement to use TWRP/flash roms. Yes a lot is different with the M9, so please read OP and pages related that are linked in OP. No RUU.EXE is available YET but might be out in a couple days. . . There is a second method to flash the previous RUU through SD Card. (To flash an older RUU than the current system, S-Off is needed)
[T-Mobile HTC One (M9)] Behold_this:
No worries mate! You're a big help to the community. Things move fast with a new device.
[T-Mobile HTC One (M9)] Rydah:
Thanks !!!

Side Note, Modded 1.32.531.25 Firmware Zip Added To OP. It DOESN'T Include "Aboot, Kernel or Recovery." It also does not wipe user data. Didn't test it, but it should work fine. :)
[T-Mobile HTC One (M9)] Behold_this:
I'm sure your Zip is perfectly fine. The DZdata.imgs are what wipes internal storage. I personally would maintain aboot in the package because a modified package can only be flashed on a s off device anyway. Some newer versions of software won't boot without their corresponding bootloader ( not a problem on the current ROM but when the Android base changes it will be ). Other than that great package!
[T-Mobile HTC One (M9)] Rydah:
Looks like I'll re-mod the modded zip. Lol
[T-Mobile HTC One (M9)] DunningKrugerEffect:
Helping out as per the usual :)

[MENTION=1256436]Rydah805[/MENTION]

Okay so anyone who is having trouble flashing TWRP backups over Fastboot (Download Mode). Namely the dreaded "8000000 bytes" error. I believe you may be following the process wrong (not your fault, I did it too).

The htc-fastboot that Rydah805 uploaded in this post DOES, in fact, work with all versions of Windows.

Here's how.

Step 1

Go to the folder that contains the ADB and fastboot files (I use minimal adb/fastboot, you may use the SDK, whatever).

Step 2

Rename the EXISTING Fastboot to Fastboot_backup

Step 3

Download htc_fastboot.zip as found in this post (it's attached).

Step 4

Extract the file and move it into the folder that contains ADB and Fastboot (again, this could be the SDK or Minimal ADB/Fastboot, whatever you use).

Step 5

Rename it from htc_fastboot to simply "Fastboot" (no quotes).

Step 6

This should alleviate the "target reported max download size of 800000000 bytes" error.

From there you should be able to flash large HTC related files to your devices :)

The reason for this is because if you don't, your commands will default to the regular Fastboot file which isn't capable of dealing with the kinds of crap we're doing here. By renaming the htc_fastboot to just Fastboot, you're going to direct future commands to that version of fastboot instead of the stock one and the new one can handle giant TWRP files :)

Once you're done, change the names back and your ADB/Fastboot should function as normal. Leave htc_fastboot in your folder for future use. :good:

Sorry if this has been posted already, I did a thread search and found someone recommending links to something else to get an uber-updated htc_fastboot but this works just fine in my experience :)

Unfortunately, I still can't get the update to go. Frustrating indeed. Even after following all of the instructions, it wants to pretend like my system partition is still r/w in stock recovery.

I'm just gonna try flashing the .33 nandroid and see if that works :P
[T-Mobile HTC One (M9)] Rydah:
Added A BusyBox 1.23.2 & SQLite 3.8.7.4 Installer I Put Together In The OP. Not Really Fitting To This Thread, But It's A File I Use And Thought I'd Share.
[T-Mobile HTC One (M9)] DunningKrugerEffect:
Okay, so I flashed the .33 Nandroid from TWRP...rebooted just fine, seems to work okay. System software is .33 now. Everything seems to be functioning properly. So just an fyi, some may be able to just restore the stock Android and re-root to get the .33 update instead of going through the rigmarole to obtain the update and keep going :)
[T-Mobile HTC One (M9)] d@rklink:
For those who are flashing the TWRP backup, are you also flashing the firmware.zip file for .33? I ended up doing so trying to get the overall OTA file to flash through the oem rebootRUU command, but just wondering what everyone else has done. I must say, I'm so angry that I couldn't just unroot and run the OTA. I flashed stock recovery and when I went into supersu to uninstall/unroot, it just sat there and nothing ever happened.
[T-Mobile HTC One (M9)] child0fdecadance:
So did you just have the .33 Nandroid on your SD card, go into TWRP and flash it as a backup? Did you have to re-root after or did you still have root?
[T-Mobile HTC One (M9)] DunningKrugerEffect:
Yeah, the one Rydah805 has in the OP is a stock, untouched backup so I had to re-root. The process was this:

Step 1

I made a Nandroid backup

Step 2

I downloaded the .33 backup

Step 3

I deleted all the contents in the Nandroid backup file that I created on my SD card. I replaced those files with the ones I downloaded from Rydah's OP

Step 4

Restored backup. Hangs a bit restoring System but ultimately finished in about 1-3 minutes.

Step 5

Rebooted, checked to make sure I was on .33. I was

Step 4

Rebooted back to TWRP, flashed Chainfire's SuperSU (linked for download in my root thread)

Step 5

Profit.

Of course, immediately afterward, I ended up flashing mike1986.'s Android Revolution HD ROM (version 5.0, which works fine on our devices).

End of the day, I had the update on my device, with root, and I didn't lose S-Off or bootloader unlock. Now I'm on a custom ROM. Win-win.

I really do hope we get a ROM dev soon though, I'd prefer to run a T-Mo stock-based ROM (WiFi calling, official firmware, etc) but for now, this works. At least my LTE isn't broken :)
[T-Mobile HTC One (M9)] PlatinumNick:
can you flash this RUU with a unlocked bootloader? the OP doesnt mention this?
[T-Mobile HTC One (M9)] minotauri:
Yes you can.
[T-Mobile HTC One (M9)] PlatinumNick:
thanks, i really dont care about my data and all this stuff looks confusing so Im just going to flash the RUU and get the OTA and root back again
[T-Mobile HTC One (M9)] child0fdecadance:
Off topic. But how is that ROM? Do you notice any performance changes?
[T-Mobile HTC One (M9)] PlatinumNick:
when running the RUU does it wipe the data saved on your internal sd card as well?

---------- Post added at 01:22 AM ---------- Previous post was at 12:23 AM ----------

everytime I try to flash the RUU it gives me this

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

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

sending time = 8.517 secs

writing 'zip'... (bootloader) HOSD CL#505029

FAIL9: SD_SECURITY_FAIL zip from usb command in download mode

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

Execution time is 9(s)

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

C:\Program Files (x86)\Minimal ADB and Fastboot>
[T-Mobile HTC One (M9)] minotauri:
Yes, Internal storage is wiped with the factory ROM. The contents of your external SD Card will not be. (if you have one, you can also put the RUU zip on the root of the sd and if its formatted FAT32, it should update from there too)

Hmm i dont recognize that error.

I would recommend first starting in RUU mode first ...

htc_fastboot oem RebootRUU

Then flash the zip: htc_fastboot flash zip 0PJAIMG.zip

You will probably (and I think shoudl) get an FAILFAIL90HBOOT pre-update error. And it'll stop. Then just reboot the device into fastboot again, and it should automatically restart or start it over again manually.

Look at this thread for error messages and more info: http://xdaforums.com/one-m9/general/firmware-t3068243
[T-Mobile HTC One (M9)] PlatinumNick:
thank you so much i think i soft bricked my phone so if you can help me out here

http://xdaforums.com/one-m9/help/help-please-t3089416#post60273471
[T-Mobile HTC One (M9)] PlatinumNick:
so after soft bricking my device last night and somebody helped me out i want to point a couple of things out regarding flashing the RUU

1. you need to relock your bootloader before you flash a RUU : fastbook lock oem

2. you need to reboot into the RUU screen which is a black screen with a silver htc logo. From download mode type in Fastboot : fastboot oem rebootRUU

3. then you can finally flash the RUU on that screen

I believe these tips should be added to the OP so nobody has the trouble i was in last night.

And if im wrong in any of these please correct me still a novice
[T-Mobile HTC One (M9)] Behold_this:
http://dl3.htc.com/application/RUU_...51_68.08.50320G_F_release_428184_signed_2.exe
[T-Mobile HTC One (M9)] minotauri:
You don't need to relock boot loader. Otherwise the rest is good.
[T-Mobile HTC One (M9)] d@rklink:
Thanks for this! I am really anal when it comes to flashing on my phone and I feel like I did a really bad patch job to get the .33 software on my phone. I always like running RUU's then just unlocking again and rooting.
[T-Mobile HTC One (M9)] PlatinumNick:
thanks, then i think i messed up because now on my bootloader it says relock, how do i unlock it again, or can i root a relocked device?