yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Flippy498:
Your rom is untouched (= never was rooted and never was mounted as read/write)? If not you need to flash a RUU or to restore an untouched TWRP backup as described in my sheet.

Aside from that you need to get rid of the SCID. It prevents the M9 from installing OTAs and lacks many of the benefits it had on older HTC devices. It's up to you which of the two possible CIDs (BS_US001 or BS_US002) you want to use.
[One (M9) General] harkavagrant:
worked like a charm! OTA took immediately thank you!
[One (M9) General] warren.walker:
Is there a reason to choose either BS_US001 or 002 or should both work regardless?
[One (M9) General] Flippy498:
It absolutely doesn't matter which one you choose.
[One (M9) General] kiko_ocaña:
Hello friend :) , just downloaded 3.36.709.3, the file check it with Md5 and ok. But the zip is a 'file is corrupted'. You can try to decompress it to corroborate. For this reason it does not work for me, since the 0PJAIMG file does not recognize it in my m9u boot download mode. :(

Thank you, I am attentive to your answer :good:
[One (M9) General] amit_coolcampus:
Unable to install Android 7.0 Nougat 4.14.617.6 on HTC M9

Hi All,

I have an HTC imported from Hong kong. Have converted it to US developer Edition. Using Super CID 11111111.

Have been using US unlocked RUU since Marshmallow was introduced and successfully installing the same on my HTC M9.

But now downloaded the Nougat twice and it says Error 132 - Signature Error. Please find the correct ROM utility for this device.

Have tried to install using ADB sideload it gives status 7 error on assert CID function. Tried using the CID as BS_001 and BS_002 as well. Also I am s-off.
[One (M9) General] Flippy498:
They're all encrypted. That's why you can't unzip them and that's why your zip program states it would be corrupted. (That's actually been explained several times here on xda.) All of the files are working fine with S-ON and S-OFF. They got tested on my S-OFFed M9 and have all been successfully used by S-ON users afterwards. Please re-read the instructions in my google sheet and verify that you're following the steps exactly as they're described. Besides (only if the phone is/was S-OFF) you should check whether the MID is correct. It's already been reported that RUUs can't get flashed via SD card if you make a typo while changing the MID via facebook.

Please re-read page one (especially the linked CID list). The SCID has more negative effects than benefits on the M9. Therefore you should stick to one of the CIDs that belong to the 617 sku. The ones you mentioned are not correct. CIDs always contain 8 letters/numbers/symbols and the ones you mentioned only contain 6. Aside from that the encryption key changed between the 3.x and the 4.x firmware of the M9. You either need to flash an android M RUU and update via the OTA to android N or you need to flash one of the firmware packs before you can flash the RUU. Although sneakyghost hasn't released one yet I'm sure that there are already full wipe and no wipe packs somewhere here on xda since the steps that are needed for creating them are not a secret.
[One (M9) General] amit_coolcampus:
Thanks a lot for the help. I flashed Marshmallow and updated via OTA that worked for me. thanks a lot Sir. :)

but one question : RUU that I downloaded is a complete setup and it works even when You're trying to upgrade from lower version. Isn't it? I mean to say Why was I not able to install directly by running the exe file?
[One (M9) General] Flippy498:
That's only partially correct. It's meant to re-flash the whole firmware and the system. However, you can only update the system via a RUU if it uses the same encryption key as your phone's firmware. From time to time HTC changes its keys (this has been the case during the android M update for the M8 and it's now happening with the android N update for the M9) and then you need to either update the key of your phone manually (only possible with S-OFF and the before mentioned self-made firmware packs) or by installing the OTA the normal way since OTAs aren't encrypted if the encryption key changes.
[One (M9) General] kiko_ocaña:
Thanks for your answer :), I had no knowledge that the files are encrypted, sorry. I am trying to install the 3.36.709.3 file as I already mentioned because I have problems my phone starts this way (I leave screenshot) I followed the instructions correctly. But in download mode this appears. (I leave screenshot.)

Note: I do not know which MID and CID I have. Just that I had version 3.36.709.3 installed when my m9 worked.

please help! :rolleyes:
[One (M9) General] Flippy498:
According to your screenshots the OS got deleted (indicated by the security warning). That is only possible with a custom recovery like TWRP. Since the phone is S-ON and locked I assume that it was unlocked and S-OFF in the past. It probably got bricked while setting the unlocked flag back to locked and the S-OFF flag back to S-ON. Aside from that the download mode partition seems to be damaged. That's why you can't flash the RUU. The phone is not able to boot to download mode.

Sorry, I don't know whether the phone is recoverable in that state. To be honest I highly doubt that there is a fix.
[One (M9) General] kiko_ocaña:
thanks for your answer. I am very sad. :crying: My phone has always been S-ON, is there any possibility of converting as it is in S-OFF? To be able to custom recovery like TWRP? I already contacted the service of LlabTooFeR I expect the response from them. With HTC tells me that I lost the warranty. I have a friend who has exactly the same phone all the same, there is the possibility of extracting the files of that phone, only possible solutions. :eek:
[One (M9) General] Flippy498:
I don't think that anything of the things you mentioned is possible without a working download mode.
[One (M9) General] amit_coolcampus:
I see.... How can I check the encryption key and change it manually?

I have an S-off device. Just curious to now. Issue has already been resolved though. Thanks. :o
[One (M9) General] Flippy498:
The answer to that question is already explained in my last two posts.
[One (M9) General] blueberry60:
Decryption process is handled by hosd or hboot (hosd in M9).

Hosd contains HTCs decryption key that is used to decrypt RUU while flashing it.

If you want to decrypt RUU, first of all you need to update firmware, so hosd is updated and contains proper key (0PJA Key in M9)
[One (M9) General] amit_coolcampus:
Thanks Bro.
[One (M9) General] snowfree52:
That means I go to TWRP, check the box, then restart in download mode, flash system, then flash stock recovery ? is that correct ?

The most boring thing is each time I try to install it and it fails, I have to download it again and it takes ages !!!
[One (M9) General] Nima78600:
You are right, you can't downgrade while s-on

No in sdcard method you won't have this issue

---------- Post added at 01:36 AM ---------- Previous post was at 01:33 AM ----------

No in fastboot method you don't need twrp, just try it while you're on download mode.
[One (M9) General] mattlovell90:
OK, gonna try and sd card method the .17 RUU and cross fingers.

If it doesn't work I'm going to exchange for an S6...

JK :D
[One (M9) General] Nima78600:
Don't put ruu into sdcard!!! You should have 0PJAIMG.zip for .17
[One (M9) General] mattlovell90:
Sorry I probably shouldn't have put RUU - the zip from here yeah?

http://androidruu.com/?developer=M9

Rename to 0PJAIMG.zip, put on root of SDcard, boot into downloader... voila?
[One (M9) General] Nima78600:
The RUU and 0PJAIMG.zip are different. If you could not find 0PJAIMG.zip for .17 then You can Google it to how can you extract rom.zip from an RUU.

---------- Post added at 01:53 AM ---------- Previous post was at 01:49 AM ----------

I think .17 0PJAIMG.zip is not there. Google how you can extract the rom.zip from an RUU.

Then rename......
[One (M9) General] mattlovell90:
Yeah I have just noticed its an exe rather than a zip. Will try and extract it, found how to do it.
[One (M9) General] Nima78600:
Yeah I already did that. It's not hard. But anyway if you could not do that let me know to upload it tomorrow.
[One (M9) General] snowfree52:
OK so I don't check anything in TWRP, just flash system via fastboot and flash stock recovery then OTA ?
[One (M9) General] mattlovell90:
OK... So this is a little weird.

Just because I had it downloaded already I tried to flash the .15 zip through SD card... and it worked.

Booted up, update shows up immediately.

Is this possible if I was on .17 before? All I can think is if I was on some other version ending .17? I was running ViperOneM9 version 2.0 before I tried to return to stock though.

Thanks for all your assistance regardless. Downloading .8 OTA now.
[One (M9) General] Nima78600:
You know I didn't try this method but I guess it works.

---------- Post added at 02:12 AM ---------- Previous post was at 02:09 AM ----------

Hop you can install ota without any problem

---------- Post added at 02:16 AM ---------- Previous post was at 02:12 AM ----------

It's also possible that you were on .17 custom rom but your firmware have been .15
[One (M9) General] mattlovell90:
Possibly, guess we will never know!

All updated. Phew, bit of a long winded one that. Thanks for all the assistance guys. Is there any use to xda of me creating a nandroid backup for stock 1.40.401.8? Or anything before I root again?
[One (M9) General] Nima78600:
Glad to see you succeed. It would be great if create a nand backup of that before root and share it.
[One (M9) General] mattlovell90:
Just got TWRP installed and doing a backup. I have boot, cache, system, system image, data, recovery and android secure. Which shall I backup?
[One (M9) General] Nima78600:
I think "system.emmc.win" is the file that is needed to restore for getting back to stock.
[One (M9) General] exocetdj:
Yes please we need one of those lol

Make backup (delete all user data of course) zip and upload and post link :)

Cheers mate :)
[One (M9) General] mattlovell90:
[MENTION=4366077]exocetdj[/MENTION] Can you clarify which options to select when doing a backup for it to be of any use to you?

All I have done is flashed the .15 zip, booted the phone, not logged in to any accounts or done anything and then flashed twrp. That won't have any data on right?
[One (M9) General] exocetdj:
That will do mate. As long as u haven't signed into anything the three selected in twrp will do. Boot and system are needed and data is fine if it's in a factory resetted state, I.e no personal accounts, apps, texts etc
[One (M9) General] mattlovell90:
Ok bud, just formatted and wiped data to be sure. Then will boot and redo backup. So system image is not required?
[One (M9) General] exocetdj:
Include that too I would. Just don't include ur user data lolol
[One (M9) General] drakeNas:
Hey, i need stock recovery for the firmware version 4.14.617.6 please, i can't find it
[One (M9) General] Flippy498:
[MENTION=5960199]drakeNas[/MENTION]: If it's not linked on page 1 then we don't have it.

Besides its enough if you post such request once. You don't need to ask for a recovery in every thread you can find. ;)
[One (M9) General] drakeNas:
I thought i could get a reply faster sorry ?
[One (M9) General] computerslayer:
I see that the latest security OTA (dev edition) isn't up yet, which is to be expected since it dropped this morning. It occurs to me that we might be able to help in making these available - downloading and extracting as necessary.

Sadly, I have no idea how to actually do that. But if there is a place to learn about snagging OTAs, I'd be happy to pitch in. It's be nice to be able to give back.
[One (M9) General] Flippy498:
I linked a guide on page 1 some months ago. Look for "how to extract OTAs". It's written for the HTC 10 but it got already used successfully with the M9, too. ;)
[One (M9) General] computerslayer:
Of course there's a guide! Pardon me for not checking first.

After following the instructions, I found the OTA link (4.19.617.1)! Man that was easy. Thank you!

I can't use the OTA myself right now (I've been testing the latest unofficial TWRP that works w/ HTC encryption - way to go [MENTION=1162986]Captain_Throwback[/MENTION] & [MENTION=2605798]nkk71[/MENTION]!) but maybe it'll come in handy for someone else
[One (M9) General] Captain_Throwback:
I just installed the OTA with TWRP on my M9 :).

So no reason you can't still use that OTA file...(though you will need to update to the TWRP I just posted in the TWRP thread)
[One (M9) General] computerslayer:
....I didn't know you could do that! And of course, I've since factory reset my phone! Sigh. Good to know nonetheless!
[One (M9) General] drakeNas:
Can i actually install an ota with twrp? Because i don't want to restore stock recovery?
[One (M9) General] Captain_Throwback:
Read what I posted in the TWRP thread.
[One (M9) General] Roobwz:
May be a bit off topic here.. but I'm struggling with adb/fastboot after successfully flashing a RUU. I've set up an adb environment, and it recognises thephone. But as soon as i type adb reboot download, i cannot recognise it. How should i proceed here? Cannot live without twrp lol
[One (M9) General] Flippy498:
Have you enabled the USB debugging option? Did you try other adb commands? Are they working? If yes, then you probably made a typo when you tried to reboot to download mode.

An alternative would be manually booting to download mode via the hardware keys of the M9. Shut the phone off and then press and hold the volume down key while turning it back on. Don't release the volume key until your phone booted to download mode.
[One (M9) General] fhartane:
Hello everyone,

As mentioned a couple of weeks ago, I tried flashing the 3.35.401.12 RUU, being s-on and having taken the 3.35.401.32 OTA. THe result was flashing was successful ! Which is pretty awesome and really convenient.

[MENTION=5872674]Flippy498[/MENTION] : now you have your answer ;)
[One (M9) General] Roobwz:
Did everything correct, including everything you said. After numerous downloads of different drivers and adb versions, i finally got it working again. Thanks anyway ;)
[One (M9) General] InfernalGuard:
FR problem help

i'm not sure.. i have android 5.1 ( 2.10.73.3) (restored by a backup without root, i also restored stock recovery) but when i try to ota update it starts and in the middle of the installation a red triangle with "!" appears , i found links in page 91 of this thread for francais version of the phone but i dont understand how to use them

could someone help me?
[One (M9) General] Flippy498:
Please re-read page 1. You'll notice that flashing/restoring instructions and the files you're talking about can be found there.
[One (M9) General] InfernalGuard:
yeah but the backup that i want to use is a newer android version than mine, is that going to work?
[One (M9) General] Flippy498:
No. It's not a RUU. Backups don't contain the corresponding firmware as RUUs do. If your rom version and your firmware version aren't the same* your phone will start to lag/glitch or not simply boot. That's why you can't use MM custom roms while using Lollipop firmware.

* I'm talking about the major versions like 1.x, 2.x, 3.x, etc.
[One (M9) General] blueberry60:
New latest 0PJAIMG based on 4.19.617.1 version:

0PJAIMG_HIMA_UL_N70_SENSE80_ATT_MR_NA_Gen_Unlock_4.19.617.1.zip

md5: b635841fdcc3341a3c68a2e31b8c2ac1
[One (M9) General] Flippy498:
Some might have already read the discussion about the 710 RUUs that started with this post. I'm currently investigating what went wrong.

My findings, so far:

It looks like the 1.40.710.8 RUU on my afh account got broken. I tried to download it more than 10 times, now, and everytime the MD5 checksum didn't match the desired value. I'll delete it now. Since S-ON users on firmware 1.40.710.8 are still able to use one of the newer 710 RUUs that shouldn't be a huge problem.

I'm still examining the 2.9.710.2 RUU because I thought it is more important to test the latest RUU for this SKU after I found out that the 1.40 one is broken.

The 2.9.710.5 RUU seems to be fine, though. I downloaded it 3 times and the MD5 sum matched every time. In addition, I was able to decrypt it with the decryption tool and to flash it on my phone. (From my experiences both wouldn't be possible if the RUU was broken like e.g. some of the Canadian 2.x RUUs are that can be found here on xda but not on page 1 of this thread.)

Edit: As far as I can tell it looks like the 2.9.710.2 RUU is fine, as well.
[One (M9) General] sk842018:
Does anyone have stock 3.38.502.17, actually I'm just needing stock recovery
[One (M9) General] Flippy498:
If it's not linked on page 1 then no one contributed it, yet.

Did you try to decrypt the RUU for that firmware version with the decryption tool that is linked on the first page? It will extract the system image and the firmware. Inside the firmware folder you should be able to find the recovery you need.

Since 502 is an American SKU I'm sure you'll be able to find the RUU on HTC's US website.

Edit: Oh, and please don't post one and the same request more than once.
[One (M9) General] sk842018:
My laptop crashed few days ago, I can't get the recovery that way;( wish I could, that's why I'm hoping someone has it sitting around, haven't had any luck yet
[One (M9) General] blueberry60:
recovery_3.38.502.17
[One (M9) General] sk842018:
Thank you so much..
[One (M9) General] nasirum:
reflash the RUU you used before

which one? is 708/401
[One (M9) General] Flippy498:
I don't understand your question. All files and guides how to find the correct files for your phone can be found on page 1.
[One (M9) General] nasirum:
After change cid 044 to 001 then which firmware should I flash. Is it 1.32.708 or 1.32.401. thanx.

I.e- my m9 is cid 044, s-off, unlocked bootloader,
[One (M9) General] Flippy498:
Be careful with what you're doing or you hardbrick your phone. CIDs contain 8 symbols not 3. It's HTC__044 and HTC__001 not 044 and 001.

HTC__044 belongs to SKU 708 and HTC__001 belongs to SKU 401. However, if you read page 1 you would have known that. ;) The files are sorted by SKU and the corresponding CIDs are stated right behind the SKU.

Besides both, my post you quoted for starting this conversation and the 1.32 firmware are more than one year old. If you want to convert your phone you should use a newer RUU and not such old files. The latest 401 RUU is for 3.35.401.12. By flashing it you only need to install one OTA for getting the latest 401 firmware. If you used one of the 1.32.401 RUUs you would need to install 5 or 6 OTAs for the same purpose. (The exact number depends on the 1.32.401 RUU you flash. If it's the ~8 RUU you need to install 6 OTAs. If it's the ~15 one you only need to install 5 OTAs.)
[One (M9) General] nasirum:
Thnx 4 cooperation.

I'm flashed ruu 1.32.708 firmware zip with sdcard method on my cid HTC__044 device. If i change to HTC__001 cid, can I directly re flash firmware 3.35.401.12 ruu zip via sdcard method and use custom rom?

Thanx in advance.
[One (M9) General] Flippy498:
Well, theoretically yes but if I were you I would install the 3.35.401.32 OTA after flashing the RUU and before I'd install a custom rom.

And please be aware that a RUU is more than a firmware package. The firmware is only a (small) part of the RUU.
[One (M9) General] Nima78600:
Hey guys...

Today after a while I decided to root my device again. So I flashed the latest twrp recovery and then downloaded 2.79 supersu zip file and flashed through recovery. But it stuck in boot loop for while... I reflashed stok rom via sd card method again and did the same procedure but this time I chose supersu 2.78 zip file and again the same problem...I never had this issue before...At the moment I have the latest version (3.35.401.32) .

Any idea what's the problem???
[One (M9) General] Flippy498:
As statet in the FAQ on page 1 you need to use the versions of TWRP and SuperSU that are recommended by captain_throwback. The M9 is incompatible with most of the available SuperSU versions.
[One (M9) General] Nima78600:
Thanks a lot...I was not here for a long time:) .... Now I'm going to restore my back up again (for the third time:crying:) , download those files and try again.

Thanks for replying :good::good::good:

---------- Post added at 01:58 PM ---------- Previous post was at 01:20 PM ----------

I used that twrp(recommended) and then flashed supersu(sr1) with no errors, but after booting There is no supersu app and is not rooted. I tried 2 times and the same thing :angel:
[One (M9) General] MyDailyBeef:
Hey flippy I know it's been way too long but I'm sorry I couldn't do the backup thing. I was gonna do it around Christmas time so I could get a micro sd but I dropped my phone in water a few days after and didn't get the backup. Didn't even get the sd card. Sorry man I didn't try :(
[One (M9) General] Flippy498:
Then please try version 2.65. It's the latest of the older versions that is compatible with the M9. Normally 2.79 sr1 should work just fine. I don't know what went wrong.

Edit: I just updated Q4 of the FAQ due to your issues with 2.79 SR1.

Sorry to hear that your phone went diving. :( Don't worry about the backup. It's not the end of the world if you can't provide it. ;)
[One (M9) General] Nima78600:
Thanks [MENTION=5872674]Flippy498[/MENTION]

Finally your suggestions ( 2.65 version) worked and then the su app being updated through the play store and su binary through the su app with success...:svetius:
[One (M9) General] Nima78600:
[MENTION=5872674]Flippy498[/MENTION]

As I read the "stock recovery section" on page 1, I confused. While the purpose of getting OTA update is to flash stock recovery after restoring stock backup...why we need to follow those instructions to flash stock recovery via twrp method?

I mean why we can't flash stock recovery like normal flashing via fastboot??? What's the difference between restoring stock recovery and flashing stock recovery using fastboot method???
[One (M9) General] Flippy498:
The result is the same. If you know how to do it you can use fastboot for the same purpose, as well. Be aware that you only need to flash the stock recovery if it's not already part of the backup you restore. I simply want to reduce the use of fastboot in my guides to a minimum since many users reported in the past that they can't get fastboot to work properly. In such cases it's a real hassle if you try to find the reason for the fastboot problems. From my experiences it's less time-consuming and less annoying if you recommend instructions without fastboot (although I'm using it myself without issues.)
[One (M9) General] sajads1:
i intalled twrp 3.0.2.0 using fastboot commands but everytime i reboot my phone into normal mode the white htc logo with red writings under it appears and after few seconds screen turns off.

(i can access twrp using bootloader-recovery) any advice?
[One (M9) General] Flippy498:
Did you flash anything via TWRP? It did you wipe anything? What's your current firmware version?

Edit: And please don't cross-post the same question in several threads. This makes it harder if someone wants to help you and you get different answers in the different threads since not every user reads every thread. (Not to mention that cross-posting is against the forum rules... ;))
[One (M9) General] sajads1:
my firmware version is 3.35.401.32(MM) . i didnt have root access and custom recovery so i followed steps in this thread https://xdaforums.com/one-m9/general/guide-root-install-twrp-htc-one-m9-t3061133

first i installed twrp using fastboot command then i flashed supersu.zip but after it was completed i rebooted my device and i faced the white htc logo whit red writing under it