yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Flippy498:
Chances are very high that it is if the hosd.img didn't fix the issue.
[One (M9) General] Thabto:
If so can someone give me the hosd.img for android 6, just in case I was mistaken I had nougat. I have two HTC M9's. Cant be certain.
[One (M9) General] Flippy498:
Download the corresponding RUU for your SKU and extract the file with the decryption tool.

Edit: Alternatively, it can be found in the firmware pack made by Sneakyghost that corresponds to your SKU and firmware 3.x.
[One (M9) General] Thabto:
Care to share a link for the HTC M9 RUU's? I don't think I know my SKU. Is there a way of telling without accessing the phone itself? I know it was sold by Vodacom South Africa.
[One (M9) General] Flippy498:
Er, did you read page 1 of this thread?

Finding out the SKU without a working download mode isn't possible, though, if you don't already know it. Looks like you used the file from SKU 401, the last time. I couldn't find out whether there is a specific SKU that corresponds to Vodacom South Africa. Although being related with Vodafone the common RUUs for Vodafone don't seem to support a South African CID. I'd stick with 401 for now if I were you.
[One (M9) General] Thabto:
My CID should be HTC-016

Where can I find RUU's?
[One (M9) General] Flippy498:
It helps a lot if you know your CID. Check the downloads in the RUU section. The files are sorted by the SKUs but I listed all compatible CIDs, as well. Most probably your SKU is either 401, 708, 709 or 710 since those are the ones with CIDs that start with "HTC__".
[One (M9) General] Thabto:
Tried using the hosd file from marshmallow, I still don't have download mode. I believe I have the bad nand issue.

---------- Post added at 08:11 AM ---------- Previous post was at 08:06 AM ----------

For my other HTC One M9...... Is there any way to change my CID number. Currently its H3G_001, want something like HTC_016. I have rooted and flashed a TWRP recovery. But I am still S-ON. Can I only S-OFF using sunshine? Let me know
[One (M9) General] Flippy498:
Yes, sunshine is the only option that is available for everyone. The only alternative are java cards/xtc clips which cost several hundreds of USD and can only get used for a limited number of times.
[One (M9) General] Roobwz:
Hi,

I've encountered some problems with my old m9. Ever since factory resetting through TWRP (apps were crashing), I can't boot to system, to recovery nor download mode.

What's my options ??

Nougat H3G
[One (M9) General] Flippy498:
If you don't have a working download mode then there's not much you can do.

You can try flashing the hosd.img for your current firmware (c.f. the blue screen fix in Q8 of the FAQ). Sometimes, this fixes the download mode if the error gets caused by a software issue. However, I guess you're suffering from the dead nand issue which can only get repaired by changing the motherboard. That problem has nothing to do with the factory reset you performed, though. It gets caused by the SD810 heat.
[One (M9) General] Linger85:
Hey,

I've deleted my camera roll album and would like to recover the folder. At the moment, the phone is not rooted, and the programmes that I have used for recovery have been unsuccessful.

I am debating whether it will be worth rooting the phone.

Currently the bootloader is locked. So if I'm correct, the phone will be wiped when I unlock it. My question now being, will this also decrease the chances of recovery?

If So, does anyone have any suggestions?

I appreciate your expertise.

Thank you
[One (M9) General] Flippy498:
Every process that writes data onto the internal memory decreases the chances of a successful recovery since every bit of the new data can potentially overwrite the "deleted" photos. That means more or less everything you do with the phone will make it harder to recover your files.

The last time that I tried to recover photos from an unrooted phone (which required unlocking the bootloader + rooting) ended with the recovered files missing either their upper or their lower half. That was a little bit over 3 years ago, though.
[One (M9) General] Surfer3907:
What is RUU error 255? I'm trying to flash the 3.42.708.3 RUU ZIP and keep running into it. I'm S-On, and have downloaded the file multiple times with the same checksum so it's probably not a corrupted download.
[One (M9) General] Flippy498:
I've never heard of error 255, before. What's your current firmware version? Which method are you using when you try to flash the RUU?

Or is that a typo and you meant error 155?
[One (M9) General] XsaucerX:
Our phones use flash storage to save files, a deleted file its gone instantly (not like a hard drive where the files need to be written on top to be deleted).
[One (M9) General] Surfer3907:
I'm on the same version as the RUU, 3.42.708.3, using the ZIP file and download mode.

Nope, not error 155.

I just re-ran the flash and managed to get an error 99 terrible mishap. However, I ran it again after that, and I'm back to 255. Attached are some screenshots. Any ideas?

(On the topic, I also tried using the TWRP stock backup and I can't get past 25% when I try to install the Nougat OTA from Settings. Always ends up with the red triangle, so I'd like to flash the RUU)
[One (M9) General] Flippy498:
Do you have another SD card that you could try to use? (For making sure that the card isn't the culprit.) Alternatively, I'd ask you to test one of the other flashing methods that are mentioned in the RUU section on page 1.

Normally, it shouldn't matter whether you use a TWRP backup or a RUU for restoring the ability to install OTAs. Therefore, you might be suffering from a precursor of the dead nand issue if both methods fail (more or less).

Both, the RUU and the backup, already got used successfully by S-ON users for getting back to stock. In addition, I couldn't find any infos in regard to error 255 and RUUs via google. Error 99 is related with security issues, though. And if the nand fails you're greeted with a security warning in the bootloader. That's why I assume it might be some kind of hardware issue. I'm not 100% sure, though, and this is nothing more than a guess.
[One (M9) General] Surfer3907:
Happy to report that using a different SD card worked! The RUU zip flashed fine and oddly my phone took the Nougat OTA successfully. Hopefully it stays this way without future NAND issues. Thanks!
[One (M9) General] Flippy498:
Then the faulty SD card most likely corrupted the backup and the RUU.
[One (M9) General] Abreas:
Which Method to use?

Hello Flippy498,

Spectacular Thread. Thank you for all the hardworking!

I am confused though, with the right method to use for my situation. Im not sure if I should use the TWRP Backup or Stock Recovery?

My phone has been wiped clean, no os, no backup. I am able to access TWRP. From what I understand I cannot use Stock recovery 3.35.401.12 for a 3.35.401.32 version, am I correct?

Below is what I see in Download Mode. Could you please tell me which of the listed methods to use?

*** UNLOCKED ***

htc_himauhl PVT S-ON

LK- 1 . 0 . 0 . 0000

RADIO-01 . 01_U11440792_97 . 00 . 51203G_F

OpenDSP- 15 . 6 . 1 . 00522 . 8994_1026

OS-3 . 35 . 401 . 32

Thank you!
[One (M9) General] buttie:
If your phone is fully formatted (including system partition), then the easiest way to proceed is flashing RUU. You didn't show your MID and CID though, so if your MID is 0PJA10000 and CID is one of the following:

CID: HTC__001, HTC__J15, HTC__102, HTC__Y13, HTC__A07, HTC__032, HTC__016, HTC__M27, HTC__002 or HTC__031

then, download RUU 3.35.401.12 from post 6 and use Instructions for the SD card method from the same post to flash it. After that you should be able to take regular OTAs from phone settings (up to 4.28.401.3).
[One (M9) General] Abreas:
Thank you Buttie,

I tried that method and got 99 RU_UNKOWN_FAIL terrible mishap
[One (M9) General] buttie:
Once again, you didn't provide your mid and cid.

First try other SD card (just post above yours similar problem was discussed), if that fails then try using method with HTC_Fastboot, and if that fails then try to restore TWRP backup following closely instructions from post 9.
[One (M9) General] riddell:
Downgrades

There are several reports about downgrades being possible with S-ON in some specific cases and without the need of any additional tricks (e.g. during this conversation: Link #1, Link #2). It looks like you're able to downgrade whenever the firmware version you're currently using and the one of the RUU only differ in the numbers behind the SKU. In other words the part marked with y of x.xx.xxx.yy is allowed to differ whereas x needs to be the same for your current firmware version and the RUU (e.g. downgrades from 1.32.401.15 to 1.32.401.8 or from 3.35.401.32 to 3.35.401.12 are possible but from 1.40.401.8 to 1.32.401.15 or from 3.35.401.12 to 2.10.401.1 aren't).

---------- Post added at 08:07 AM ---------- Previous post was at 08:04 AM ----------

There are several reports about downgrades being possible with S-ON in some specific cases and without the need of any additional tricks (e.g. during this conversation: [URL="http://xdaforums.com/one-m9/general/stock-nand-backup-ota-update-collection-t3132698/post69962684#post69962684"]Link #1[/URL], [URL="http://xdaforums.com/one-m9/general/stock-nand-backup-ota-update-collection-t3132698/post70293596#post70293596"]Link #2[/URL]). It looks like you're able to downgrade whenever the firmware version you're currently using and the one of the RUU only differ in the numbers behind the SKU. In other words the part marked with y of x.xx.xxx.yy is allowed to differ whereas x needs to be the same for your current firmware version and the RUU (e.g. downgrades from 1.32.401.15 to 1.32.401.8 or from 3.35.401.32 to 3.35.401.12 are possible but from 1.40.401.8 to 1.32.401.15 or from 3.35.401.12 to 2.10.401.1 aren't).
[One (M9) General] Fain11:
Downgrade from Nougat to Marshmallow is possible with S-On, see here:

https://xdaforums.com/one-m9/general/guide-htc-one-m9-nougat-downgrade-s-off-t3554665

:good:
[One (M9) General] Flippy498:
Yes, it is possible. However, as explained in the RUU section of this ReadMe thread that method is very risky. Due to the nature of dd commands chances are very high that you brick your phone unrecoverably if you aren't careful.
[One (M9) General] thisisapoorusernamechoice:
Supersu

First off thank you so much for this w wonderful thread, all the info I was looking for when I got this device was here. I have a stupid nitpicky question. The guide in post 4 says to use superSU v2.79SR3, but the most recent one is v2.82SR5, is the more recent one safe to use? I only want to stay on stock rooted long enough to use sunshine for S-OFF, then I'm installing lineageos
[One (M9) General] thisisapoorusernamechoice:
Supersu

Sorry for the double post spotty connection
[One (M9) General] Flippy498:
I've read reports which mentioned that the newest SuperSU leads to a bootloop. That's why I didn't link any newer version. The M9 is quite picky in regard to SuperSU.

Most probably it's safe to update via the playstore as it was on firmware 3.x with version 2.65 since only the ramdisk changes that get executed by the flashable archive are a problem an not the app itself. I can't tell you that for sure, though, since I stopped using SuperSU and switched to magisk.
[One (M9) General] PonczekPL:
I have following questions [MENTION=5872674]Flippy498[/MENTION]

I would like to ensure that im doing it correctly. I don't want to get a brick.

* Does this procedure works on Android 7.0 FW 4.28.401.3?

* Is there a way to save backup to internal memory or something? I don't have any 8GB microSD card, just 2GB.

* How to fix bootloop if I get one?

* SuperSU versions are tricky for this phone. Does Magisk work properly on this phone and can replace SuperSU? Which version do you recommend for 7.0 and my fw?

Thanks in advance
[One (M9) General] Flippy498:
No. The internal storage can't handle the size of the backups. They get corrupted during their creation if you try to save them on the internal storage. (Btw, the SD card doesn't need to have an exact size of 8 gb. 8 gb are only the minimal size your card should have. In other words, bigger cards are fine, as well.)

The answer depends on the cause of the bootloop. The dead nand related one can't get fixed. The solution for a SuperSU related bootloop is mentioned in Q6 of the FAQ. For fixing xposed related bootloops you should flash the xposed uninstaller. Or if you don't mind losing data you can almost always use the universal fix: flash a RUU or wipe the whole phone and restore a TWRP backup.
[One (M9) General] PonczekPL:
Thanks for the fast answer. Yeah I read this FAQ three times already and also the points you quoted but I just wanted to be sure that it's not outdated or something. Im pretty nervous as there are dozens of problems because of rooting procedure on this phone. Sorry for taking your time.

Guess I need to buy bigger card. The only one I have is 2GB.

EDIT::

It worked. I have root on nougat + twrp 3.2.1.0 + Magisk v14. Thank you very much!
[One (M9) General] Marko Indaco:
Hi, you shuold have a bigger sd-card if you want to be able to nandroid backup. A stock rom uses around 4 or 5 giga, and of course increase, according on many apps you install by the time. If you don't want spend much money a good size is 32giga (around 25 € nowadays).

Sd-card Class 10 type it's mentioned as good and fast. Btw, if you wanna read there's a nice thread here.

Regards
[One (M9) General] abumaha:
the iam s-on is it workiing in fastboot or zip ?
[One (M9) General] DaveedDB:
What are you trying to flash ?
[One (M9) General] abumaha:
htc m9
[One (M9) General] DaveedDB:
Lol what are you trying to do with your m9?
[One (M9) General] abumaha:
back to stock after bootloop costum firmware
[One (M9) General] DaveedDB:
First you need to boot into download mode and see what variant you have then flash the stock from that version ,also which custom fw did you try ?
[One (M9) General] abumaha:
iam s-on

now

have vodafone firmware before

but cant install zip or ruu exe failed all
[One (M9) General] abumaha:
No amswer
[One (M9) General] Flippy498:
Er, you remember the rules (especially #5) that you accepted while registering on this website, don't you?

The RUU Section of this thread explains how to find the correct RUU for you phone and which conditions need to be fulfilled for flashing them.
[One (M9) General] abumaha:
.17.161.11.img

target reported max download size of 536870912 bytes

sending 'recovery' (21844 KB)...

OKAY [ 0.655s]

writing 'recovery'...

FAILED (remote: cannot flash this partition in s-on state)

finished. total time: 0.686s

C:\Users\hanynodoc\Desktop\htc fastboot>
[One (M9) General] Flippy498:
What are you trying to flash? And did you read the flashing instructions for that file? You can't flash anything while the phone is booted to the bootloader. That's what the download mode is meant to be used for on the M9 and every newer HTC device.
[One (M9) General] abumaha:
Back to stock

S-on

Vodafone cid

What sulotion
[One (M9) General] Flippy498:
As said in my reply from the 2nd January. Read the RUU section.
[One (M9) General] abumaha:
What u planing to help only read

Read thousand times
[One (M9) General] DaveedDB:
Hahahaha read RUU section maybe you need to read million times to understand
[One (M9) General] forddark:
Hi everyone, can I convert my Sprint M9 into an international version?

:confused: Sorry!!
[One (M9) General] Flippy498:
Please remove the full-quote of the conversion guide from your post. It makes reading your post harder than it needs to be.

To answer your question: Please re-read the "important infos" of that guide.
[One (M9) General] forddark:
the question is because I recently converted my Sprint M9 to the developer version (0PJA20000 to 0PJA11000), and install the ViperOneM9 6.2.0. and reboot with normality, the problem was that I ran out of signal, and so I had to return the stock firmware of Sptint (0PJA20000).

Now if I convert my m9 to the international version? I will have the same problem, or I can damage my device
[One (M9) General] Flippy498:
As explained in the opening post of this thread, the Sprint version is a CDMA device whereas the dev edition and the international variant are GSM devices.

And as warned in the conversion guide, using the guide with a CDMA phone can lead to unrecoverable damages. Therefore, it should only be used with GSM phones.

The reasons are, as hinted in the conversion guide, explained in the RUU section.

However, why do you want convert your phone? The ViperOne M9 thread clearly states that the US-carrier branded models (AT&T, T-Mobile, Sprint and Verizon) are all supported by the rom.
[One (M9) General] Marko Indaco:
Upgrade to Oreo?

Hi folks, I read in a Andoid website that HTC seems almost ready to release Oreo upgrade for our loved HTC One M9. Did anyone can confirm? The article also says that this upgrade shuold fix the KRACK vulnerability, and shuold be released towards the end of February and the beginnig of March...

If is the case, well, I guess it's the first time that an Android device receives 3 major updates :D
[One (M9) General] shaqman89:
Well, there was discussion on this here:

https://xdaforums.com/one-m9/general/real-official-oreo-m9-t3739228/page3
[One (M9) General] Tidy404:
HTC M9 no download mode

Hi guys

I have a HTC M9 that is S-ON, had TWRP loaded and was running a Venom rom and then Android HD.

The phone got into a boot loop, so i tried to reload the custom rom and that kept failing.

Now the phone cant load into recovery or download mode. Download mode gives an error "cant load into download mode" and recovery mode just cycles back to the bootloader when selected.

The phone also doesn't work or even detect with any ADB commands (tried multiple windows 10 drivers) but the fastboot commands see the phone and are able to reboot it etc.

Please can someone give me some advice

Thanks
[One (M9) General] :
Please forgive my ignorance because I've only rooted 4 devices, but shouldn't you best format then load the rom?
[One (M9) General] Flippy498:
It's most likely a dead nand (c.f. the FAQ of this thread). You need a new motherboard or a new phone.
[One (M9) General] Nalub:
I just bought a new (second hand, but new for me) M9. Can you recommend me a custom rom that has good overall performance, without deteriorating the sound? I have the latest firmware. The device is S-on (if it matters). I am not interested in customization, I would like if is possible better battery life than stock, and of course stability and minimum the same sound quality.

If somebody will recommend a ROM, if it is possible please post also the download link, or at least the version.

LE: can somebody tell me the steps for unlocking the bootloader on Nougat? I tried some search options, but didn't find something concrete. I saw that if I am not careful, I might damage my phone permanently, so I want to ask exact what files should I download for rooting it.

Phone info:

kernel: lk

product: htc_himauhl

version: 1.0

serialno:

current-slot:

imei:

version-main: 4.28.401.3

boot-mode: download

version-baseband: 01.01_U114401011_117.00.61117G_2_F

version-bootloader: 1.0.0.0000

mid: 0PJA10000

cid: HTC__032
[One (M9) General] Flippy498:
If you don't care about customization then stay on the stock rom and debloat it with Titanium Backup. Most (if not all) custom roms that are based on HTC Sense add several customization options and tweaks. Custom roms that aren't based on HTC Sense (e.g. LineageOS) might be more lightweight than the stock rom but they suffer from worse camera and sound performances due to the lack of the HTC Sense framework and its drivers.

The battery consumption mostly depends on the installed apps and your personal usage of the phone and less on the rom that is installed. User A might get an insane battery life on a certain custom rom but user B might not be able to reproduce that due to his different usage of the phone or the different apps he's using. The best advice I can give you is try a handful of roms on your own and decide afterwards which one fits you best/pleases you most.

I personally prefer Team Venom's ViperOneM9. That rom contains tons of customization options, though.

Many roms can be found in the Android Development Section of this forum or the Original Android Development Section. There are more roms in the wilds of the internet but they either aren't allowed on xda due to their devs breaching the GPL or their devs simply don't want their work being posted on xda.

The guide in this thread (c.f. the first page) is up to date.
[One (M9) General] Nalub:
You can see in the picture what I get when I try to unlock the bootloader. I cannot get past this step
[One (M9) General] Flippy498:
You didn't follow the instructions on HTCdev. You need to activate OEM Unlock in the developer options of your phone.
[One (M9) General] Nalub:
Thank you. I successfully unlocked the bootloader. But I am still not able to root the phone. The steps that I followed are these:

- download adb/fastboot archive from here https://androidfilehost.com/?fid=817550096634786470

- download and install all-in-one Installer from here https://www.computerbase.de/downloads/systemtools/all-in-one-runtimes/

- uninstalled HTC Sync Manager (since I had it installed)

- unlocked bootloader (succesfully)

- install twrp with this command: fastboot flash recovery twrp-3.2.1-0-hima.img (I received 2 messages: 1. Flash images success (2/2) and 2. End flashing, Press power key to continue

- rebooted to bootloader mode

But here I am stuck, because after loading in bootloader mode, apparently I don't have twrp installed, so I can't install SuperSu
[One (M9) General] Flippy498:
Did you choose "reboot to recovery mode"? If yes, are you facing some kind of error? Which one? If not, please do so.

The instructions might have been not detailed enough at that point since I thought that bootloader option would be striking enough. I added another step for clarifying that.
[One (M9) General] Nalub:
Yes, I chose reboot into recovery mode, and it booted without any errors. I am surprised also that twrp was not installed. But after using the phone for almost 2 days I decided not to keep it, because the battery is in a very bad shape, and the phone gets really hot after using it for 10 minutes (not gaming or heavy stuff, only with browsing). Only the battery wouldn't have been a problem, but the heating is not ok. I will stick with my M8
[One (M9) General] Thabto:
Hi

I unlocked the bootloader of my HTC M9, rooted and installed a TWRP recovery. However I am still S-ON and still running a stock android 7.0 ROM. I want to sell this device, so I want to be able to unroot, and lock the bootloader. What should I do? Thanks. Let me know.
[One (M9) General] Flippy498:
Flash the RUU that belongs to your current firmware (c.f. the RUU section of this thread). That reverts everything you modified back to stock.

Locking the bootloader isn't possible with S-ON. You can only re-lock it. Those two states look similar at first glance but they aren't.
[One (M9) General] Thabto:
Hi. Many thanks for the response. How do I flash the RUU? Through TWRP recovery?
[One (M9) General] Flippy498:
As written in my last post, please read the RUU section of this thread.