yashsingh1/xdaforums huggingface dataset:
[One (M9) Original Android Development] sanju_barc:
Search for ruu.exe on xda for your model. It is an executable file on pc. Which will install Android 6.0 of your phone.

Other way is to find ruu.zip for your model and put it on the root of sd card. Boot the phone in bootloader where it will automatically search for any zip file and install the rom from zip file.

---------- Post added at 12:05 PM ---------- Previous post was at 11:21 AM ----------

Follow this link http://xdaforums.com/showthread.php?t=3083799
[One (M9) Original Android Development] stingerbs:
Do I have to relock my bootloader first?
[One (M9) Original Android Development] sanju_barc:
Yes, to flash ruu, should be bootloader unlocked
[One (M9) Original Android Development] computerslayer:
This is incorrect.

Unless you are S-OFF or have the developer edition of the M9, your bootloader needs to be locked or relocked.

Read more about RUUs here: http://venomroms.com/ruu/
[One (M9) Original Android Development] sanju_barc:
It is well understood that if one is S off, no need to unlock bootloader while flashing ruu. Care to be taken when s on.
[One (M9) Original Android Development] HC4Life:
Why M9 doesn't have a TWRP recovery update like M10 has?
[One (M9) Original Android Development] nkk71:
all this is OT, but anyway: this is a M9, not a M8 or pre M8 device

things have changed, and "developer edition" never had anything to do with it either.
[One (M9) Original Android Development] nkk71:
what's wrong with the current version?
[One (M9) Original Android Development] HC4Life:
Nothing wrong. I saw on TWRP official page HTC10 already has 3.0.2-6 version...:p
[One (M9) Original Android Development] nkk71:
3.0.2 is the "main" version of TWRP, the -x is mostly for device specific changes, since the HTC 10 had issues with kernel source code not being available, and the needed encryption things it was version bumped more than the M9 TWRP,

no big deal ;)
[One (M9) Original Android Development] Desertio:
I tried installing newest twrp .Img for my sprint m9. It said it installed but note only boots into boot loader and download mode. I was on TWRP 2.8.6.4 and flashed image for twrp 3.0.2
[One (M9) Original Android Development] teddy0209:
302 does not work on older firmware, you have to be on MM...
[One (M9) Original Android Development] Desertio:
How can I get back? Or what should I do then? Thank you for the response btw

---------- Post added at 11:23 PM ---------- Previous post was at 11:21 PM ----------

Here's something. Before I updated I did a backup of everything. Can I use adb to pul it out and use that?
[One (M9) Original Android Development] computerslayer:
Agreed....and? I apologize for missing something obvious, but I'm not sure what you're referring to. It may be helpful to know that my last HTC device was the Sensation 4G, so my knowledge of the HTC One series starts with the M9.

Since I was answering a question about bootloader status & RUUs, the developer edition seems like a notable exception worth mentioning.

Something about this conversation rung a bell from a previous conversation with Flippy498 (yeah XDA search) - it turns out that your bootloader must be locked or re-locked to flash a RUU via fastboot, but if you use the sdcard method, bootloader status is irrelevant.

Rather than clutter up this thread further with off-topic conversation (thanks for the reminder), I recommend looking through the HTC ONE M9 Stock File Collection (RUUs, Backups, etc.) - with linked Instructions, particularly the SKU-, CID- and MID-List by Sneakyghost and Behold_this and Flippy498's Google Sheet. Between these two, you can identify your M9 variant, figure out which RUU is proper to your phone and follow the instructions to apply the RUU to your phone.

....and then get back to installing & using TWRP on your phone (after making the appropriate backups)!
[One (M9) Original Android Development] Desertio:
I tried installing TWRP 3.0.1 via fastboot and everything said it was a success however i cannot boot into recovery still. Any ideas?
[One (M9) Original Android Development] Captain_Throwback:
Did you read the FAQ?
[One (M9) Original Android Development] jdiegoe:
Ok, I'm going crazy now.

I've done everything several guides say and was able to unlock the bootloader of my HTC One M9 and to get it rooted but apparently I wiped the OS from the phone as well.. Now I get a legend that says NO OS INSTALLED ARE YOU SURE YOU WANT TO RESTART? Everytime that I reboot from recovery. I used TWRP Recovery to flash a new OS. I installed ARHD and the installation went smooth but everytime it finishes installing and I restart my phone it still gives me the message saying that there is no OS installed.. I've reinstalled and wiped the caches several times with no luck..

Any advice?
[One (M9) Original Android Development] Captain_Throwback:
Does the device boot?

P.S. If it doesn't boot a recovery log of the flash will be needed.
[One (M9) Original Android Development] jdiegoe:
Thank you for replying so fast!

The device is currently stuck in a loop. I can only see the HTC logo at the beggining and that's it. It just turns on and off by itself. The only thing I can do is go into bootloader mode and use the adb commands but that's it. I can't actually use the phone.. I was actually trying to root to flash a new OS into my phone so I could SIM unlock it since the stock ROM didn't ask me for a unlocking code and I heard this was the best option.. I'm so confused..

I know I'm not alone in this one because I saw recent threads about the same topic in other forums but with no solution posted or any replies for that matter.

Thanks again for replying.
[One (M9) Original Android Development] Captain_Throwback:
See my edit (and the OP regarding logs).
[One (M9) Original Android Development] jdiegoe:
Ok, I got the log file, sent it to my pc and when I opened it it was blank.. What?!
[One (M9) Original Android Development] bpdamas:
I am at a loss. I have read all of the FAQ again, am running the most current TWRP, and am trying to take the OTA security update that just came out. I have gone through this process a few different times with other OTAs on this phone and it has worked up until now. I flashed the untouched system image I created through TWRP and then flashed the stock recovery in download mode. I am S-OFF on 3.41.651.4. For whatever reason, whenever I try to install the OTA, I get error code 7 system partition has unexpected contents. Root was installed and uninstalled with systemless root. I don't know where to go from here. I have tried both locked and unlocked bootloaders, installing the untouched system and recovery through fastboot and TWRP, and combinations of both. Nothing seems to work. Any help would be appreciated if anything comes to mind on how to fix this. Thanks in advance.
[One (M9) Original Android Development] Captain_Throwback:
RUU will always work.
[One (M9) Original Android Development] bpdamas:
I somehow figured that was going to be the response. Won't I lose my data and setup with the RUU?
[One (M9) Original Android Development] Captain_Throwback:
Just make a backup of Data first, and then restore it after you re-flash TWRP.
[One (M9) Original Android Development] bpdamas:
Well, I bit the bullet and did the RUU. Here is what I did in case this helps anyone else. Did a backup of data through TWRP. Ran the RUU exe for the current version of software (3.41.651.4). Once the RUU was finished and before the phone booted up, I held the volume down button. It took me into download mode. I scrolled down to reboot to bootloader using the volume buttons and pushed the power button to take me into the bootloader. I then typed the following code to boot to TWRP without flashing it. You need to make sure the version of TWRP is downloaded to the folder on your computer which has your fastboot file. Once booted to twrp, go to restore and select the data options you backed up earlier. Once finished, I cleared cache and dalvik just to be safe. The phone booted up normally and everything was the same as it was. It did go through hands free activation and PRL update but those worked just fine. I then downloaded the update and installed it. Now fully updated and back up and running with root. Thanks for your help.

fastboot boot twrp-3.0.2-0-hima.img
[One (M9) Original Android Development] HC4Life:
I can't copy rom zip files connecting to pc Win10 using mtp or usb storage, it says can't copy, the device was disconnected...:(
[One (M9) Original Android Development] Adromir:
Did you install the latest USB drivers for your device?
[One (M9) Original Android Development] weinberk:
Encryption

Has anyone had any luck with Cyanogenmod 13 on an M9 (or specifically himawl / Verizon M9) with encryption?

With the latest 3.37.605.13 firmware (see http://xdaforums.com/verizon-one-m9/development/6-0-verizon-htc-one-m9-marshmallow-t3316279) I CAN get the phone to encrypt (System, Security, Encrypt) with a PIN. TWRP 3.0.2-0 recognizes the encryption, but cannot seem to decrypt it. AFAIK, CM uses AOSP encryption, so I don't know why TWRP is failing.

Anyone else care to share your experiences?

Thanks
[One (M9) Original Android Development] xtrenge82:
Hi !

I'm getting this errors when I try to install anything (stock rom, VenomOneM9, TWRP upgrade, SuperSU)

E:Unable to mount '/cache'

E:Unable to mount '/data'

E:Unable to mount '/system'

I can only use ADB not fastboot (don't know why)

I have no prior backup, since this happened in one day :crying: and this is my first time using TWRP :silly:

There's no OS when boot so it stuck with HTC logo and red letters and then reboots.

I can only use recovery with TWRP selection, no normal Download or Recovery.

I tried the wipe option in twrp but nothing, also the factory reset both failed.

When I use fastboot command to list devices just shows <waiting device>

I really appreciate any advice or sugestion on this.

Details:

HTC One M9 Hima

Sprint

TWRP 2.8.7.0

S-ON

Unlocked
[One (M9) Original Android Development] KOLIOSIS:
[MENTION=3220030]xtrenge82[/MENTION]

Make sure you're in download mode, otherwise, it won't work.
[One (M9) Original Android Development] xtrenge82:
Thanks KOLIOSIS

but nothing happens when I use the download option I just see the same HTC logo with red letters
[One (M9) Original Android Development] KOLIOSIS:
Seems odd that ADB works but Fastboot doesn't.

Other than installing HTC Sync Manager, to get driver re-installation, uninstall the sync manager afterward driver install, I'm at a loss as to what is going on.

I realize using an RUU seems like the nuclear option,but, unless someone chimes in with another solution, at least you'd have a working device & can give it another shot.
[One (M9) Original Android Development] xtrenge82:
Indeed :p I don't loss my faith yet

the only thing to do on what you said is to uninstall the sync manager, after I plug the usb to computer and phone this app shows itself.

And I posted this here, because I think (I'm not an expert) there's something wrong with twrp if not, it's the only thing is working :eek: so I'm really confused... jeje

Thanks! :)
[One (M9) Original Android Development] KOLIOSIS:
Can you not go to download mode from TWRP?

My apologies if this question seems repetitive,just checking all possibilities.

I'm guessing you're aware fastboot only works in download mode, something that started w/the M9 & continues w/the HTC 10.

Again,just making sure all possobilities are covered.
[One (M9) Original Android Development] xtrenge82:
Thanks for that [MENTION=3512846]KOLIOSIS[/MENTION]

Actually I tried from TWRP and from bootloader too, but always shows the HTC logo with red letters.

BTW I didn't know that about fastboot now I know why is not working...:mad:
[One (M9) Original Android Development] jamieunit:
The download links on the site are like 16kb, twrp app fixed though.
[One (M9) Original Android Development] Adromir:
I actually experienced on my Win10 computer that ADB and Fastboot worked out of the box, but broke as soon as I installed any optional adb/fastboot drivers for my m9
[One (M9) Original Android Development] hunkyycbz:
hi i flashed latest twrp on my T mobile htc m9... but im unable to wipe data, system and cache..it says failed
[One (M9) Original Android Development] acariello:
Very informative and thank you

Latest TWRP 3.0.2-0-hima working on HTC one m9, along with SuperSU v2.65

Successful root on Verizon HTC
[One (M9) Original Android Development] Captain_Throwback:
Poll: Does the latest official version of TWRP still work on devices running Nougat firmware?

I haven't tested it myself, thus the reason I'm asking.
[One (M9) Original Android Development] xlx890121:
It works. :D
[One (M9) Original Android Development] kinghunki:
twrp-3.0.2-0 work in Nougat.
[One (M9) Original Android Development] buttie:
Works without a problem on both Nougat ROM and 4.14.617.6 firmware.
[One (M9) Original Android Development] JohnCorleone:
Does anyone happen to have a black themed Sense keyboard apk with white letters and numbers? After I updated to Nougat the Sense keyboard and in call screen on some themes stopped getting themed. The white keyboard drives me nuts but I still prefer this as my go to keyboard.
[One (M9) Original Android Development] Captain_Throwback:
Why are you asking for that here?
[One (M9) Original Android Development] JohnCorleone:
Tapped on the wrong inbox link. My bad...I wouldn't go that far off topic intentionally. Been plagued with a migraine all day. I really shouldn't even be using this right now. I apologize.
[One (M9) Original Android Development] jpwhre:
I'm looking for a way to flash recovery in download mode. I thought i had passed thru something somewhere that an individual could put the .img file in with meta-info file or something, zip it up and rename to 0PJAIMG.zip and it could be flashed in download mode like the ruu. I have been searching the web and finding nothing.

Is it possible? I am s-off if that is required.
[One (M9) Original Android Development] KOLIOSIS:
It's been a while since I've done anything w/the M9,but,I believe you can flash the recovery via fastboot,but,the phone actually has to be in download mode.
[One (M9) Original Android Development] Captain_Throwback:
The file you're referring to is android-info.txt.

And it sounds like you're talking about flashing from external SD card in Download mode.

Yes, that's a thing, lol :p
[One (M9) Original Android Development] jpwhre:
Exactly what I'm looking for. Care to humor me, and maybe explain?

I don't know why, but no matter what I've done to device since launch, software status still reads official with me never having to do anything to make it that way. Any time I run the RUU from pc, my bootloader stays unlocked, and when I do the .zip in download mode for stock RUU, it as well, I keep my bootloader unlocked. This I noticed after updates put "enable unlock device" option in developer mode easter egg.

I would like to keep a copy of twrp on SD that I can copy to root of card and flash recovery after doing RUU and then flash updated stock rooted rom and never have to hook to pc again. Right now, the only reason is to flash recovery and then unplug.
[One (M9) Original Android Development] nkk71:
Easter egg :confused:
[One (M9) Original Android Development] KOLIOSIS:
Accessing the Developer Options is an "Easter Egg" of sorts (I suppose),since it's not instantly accessible out-of-the-box.........
[One (M9) Original Android Development] jpwhre:
Thank you Captain. http://xdaforums.com/showpost.php?p=61777179&postcount=562

I searched this thread for android-info.txt and look what I found :D
[One (M9) Original Android Development] Captain_Throwback:
So, here's a special treat for everyone:

An "unofficial" version of TWRP 3.0.3-0 has been added to the Downloads tab that can decrypt stock Sense! This is all thanks to [MENTION=2605798]nkk71[/MENTION] and his hard work, it *should* be working on both stock Marshmallow Sense and stock Nougat. I haven't been able to test decryption on CM (I'm in the process of downloading CM13.0 now).

So, feel free to encrypt your device and test it out...if you dare! :D
[One (M9) Original Android Development] computerslayer:
Confirmed working on my device. This is great - well done & thank you!

(for those wondering - I'm running stock Nougat [software #4.14.617.6] on the M9 developer edition)
[One (M9) Original Android Development] bdarius:
hello. I have backed up all my partitions about a year ago and I can't seem to remember whether the system image was modified in this backup. My question is - how do I know that it is not modified? I am planning to restore the recovery to stock and the system image to untouched to apply an OTA update. Thank you
[One (M9) Original Android Development] Captain_Throwback:
Easiest way? Restore it and try to take an OTA.
[One (M9) Original Android Development] bdarius:
So I should just restore the image and flash the recovery? Anything 'worst' that could happen..?
[One (M9) Original Android Development] Captain_Throwback:
Re-uploaded the 3.0.3-0_UNOFFICIAL TWRP just now as I went to try and take an OTA with TWRP installed and it failed. Fixed it so that it will now go through (all except for the firmware part, that is).

For details on how this works, see my post for the HTC 10 here. Different device, same procedure ;) (just the name of the zip is different - 0PJAIMG.zip for the M9).
[One (M9) Original Android Development] Captain_Throwback:
The first post of the thread that my linked post is in has a breakdown of where the zip is downloaded to, as well as a bunch of other good info.

EDIT: See here.
[One (M9) Original Android Development] jt85:
I have an M9 rooted super su, unlocked BL, and twrp 2.8.6-0 installed. A couple days ago I installed the new twrp app downloaded 3.0.2-0 with the built in link. I selected the download and flashed the new twrp file in the app then rebooted my device to no avail. Then downloaded 3.0.1-0 did the same as above then rebooted again to no avail. So I decided I should flash the later download to boot. Reboorecovery BL went straight into trying to load the twrp recovery, but said failed to load into recovery mode. So I selected reboot pressed power and it brought me back to the same recovery screen said failed to load to recovery. After that I flashed twrp 3.0.0-0 through fastboot and it loaded up finale but when I look at the files in the file manager or install method all files lead to blank screens with up a level as the only option at the end of the paths. How ddoI fix this. I realize I probably should have loaded into recovery mode and installed the the first file flashed through the new app but I the purpose of the app was so u could flash recovery images without having to boot recovery. I should also mention when I flashed the original twrp used to root my phone after flashing the twrp app would say no o.s. installed r u sure you want to reboot. But when I rebooted the m9 there were no issues while using the phone in everyday capacity. Everything worked just as it should. I even got a benchmark of 317 flops when tweaking the CPU controls on romtoolbox pro. My pro version of titanium back up didn't save any backups either.
[One (M9) Original Android Development] Flippy498:
[MENTION=7327000]jt85[/MENTION]: Sounds like your firmware is outdated. You can't use any TWRP version higher than 3.0.0-0 if you don't use at least firmware version 3.x of the M9.
[One (M9) Original Android Development] blueberry60:
[MENTION=1162986]Captain_Throwback[/MENTION]

I'm a little bit confused about updating OTA with TWRP, please correct if I'm wrong:

We don't touch the structure of OTA zip file.

We will create a firmware zip named as 0PJAIMG from OTA zip without recovery.img (so it wouldn't write TWRP)

When we hit "install Now" radio button to update OTA, system will reboot into "TWRP Recovery", not stock recovery, this made me confused

We will take a fresh "system image" backup from TWRP prior to rebooting to download mode to install the firmware.zip

Thanks.
[One (M9) Original Android Development] Boskoel03:
I am on mm fm running nougat rom great,with twrp 3.0.0.0,that is what is written when i boot to recovery. Can with that nougat roms be flashed without problems,or do i need to update it? And if i do,is there ( remember earlier was) zip file for flashing recovery,computer broken,no other soon here? Big thanks
[One (M9) Original Android Development] nkk71:
You can update TWRP from within TWRP, using the install image function, as mentioned in the OP
[One (M9) Original Android Development] Boskoel03:
Done,worked,great,thanks :good:
[One (M9) Original Android Development] Captain_Throwback:
Yes, that's all correct. Not sure what you're confused about.
[One (M9) Original Android Development] blueberry60:
We're accustomed to updating OTA from stock recovery, so I was stuck on "System reboots into recovery and OTA install begins".

Flashing firmware without recovery.img is very good idea and solution to have TWRP again.

Thanks.
[One (M9) Original Android Development] Captain_Throwback:
And the whole point of that procedure is so you don't have to flash stock recovery. So you don't ever lose TWRP. TWRP will install the system portion of the OTA - you just have to reboot to Download mode manually after it's done to flash the firmware.
[One (M9) Original Android Development] piterdemon:
Using TWRP 3.0.2.0 with mm firmware now with n and never had problems, idk what ppl do wrong is simple as f*** ;)

Fastboot flash recovery recovery_name_here.img

Wyslane z mojego M9 przy uzyciu Tapatalka
[One (M9) Original Android Development] drakeNas:
Can anyone make a guide how to apply an OTA with TWRP i had difficulties doing it
[One (M9) Original Android Development] Kisakuku:
Did you follow this guide?
[One (M9) Original Android Development] drakeNas:
Yes but it was difficult understanding how to do that step by step. I just need few clarifications

---------- Post added at 09:17 PM ---------- Previous post was at 09:16 PM ----------

Because i know a simple mistake might lead to a bootloop
[One (M9) Original Android Development] Captain_Throwback:
So then ask questions...
[One (M9) Original Android Development] jt85:
Yesterday when I flashed twrp version 2.8.5-0 trying to get back to version of twrp that supported the lolli sw(because as mentioned above 3.0's aren't lolli friendly), when I rebooted it went back to the failure to load to recovery red script message and that's as far as I can get. So far though I still have my bl so I can enter fastboot but no adb devices show when the command is entered in adb. I'm just about ready to flash the nougant ruu then try to re- root and twrp my m9. Suggestion Captain_Throwback?
[One (M9) Original Android Development] Captain_Throwback:
RUU will allow you to flash the latest TWRP, so I would proceed.
[One (M9) Original Android Development] Captain_Throwback:
FYI - Updated the FAQ about root - the latest SuperSU Beta (v2.79 SR1) finally works on the M9! We're now no longer stuck using v2.65. So feel free to flash it (or any of the other working root methods, of course).
[One (M9) Original Android Development] Adromir:
Weird, I was using all latest SuperSu before without having any Problems
[One (M9) Original Android Development] Captain_Throwback:
http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720/post70211383
[One (M9) Original Android Development] Njoatun:
I just followed your guide, but it hasn't worked for me. Right now I'm trying to figure out what could have been the problem.

It seems like the new unofficial version of TWRP wasn't able to flash the system part of the OTA. TWRP reports an error that the MD5 of the .zip file is corrupted.

I'm trying to update from 4.14.617.6 to 4.19.617.1. My phone is S-Off and it has got superCID and international MID.

So you mentioned that OTAs are only accepted, if the system is unmodified. Therefore I clicked within SuperSU app on "complete Un-Root" and I also restored system stock boot image.

Afterwards I repeated the OTA procedure. Still no success. Do you have any idea what could be reason?

I've modified system apps with TitaniumBackup (like deinstalling Twitter or Google Play...), if that could be another reason after complete Un-Root.