yashsingh1/xdaforums huggingface dataset:
[One (M9) General] Flippy498:
Take me back to the Overview​

How to convert your M9 to a different version​

This guide is based on clsA's conversion guides (older one/newer one). I only updated some of the information so most of the credits go to him.

Prerequisites and important infos:

This is only possible with S-OFF and only owners of a GSM version should follow these instructions.

[*]Owners of a CDMA device may damage their phone unrecoverably by using these instructions. Read the RUU section if you want to know why.

A working ADB/Fastboot/HTC_Fastboot environment is mandatory.

Instructions:

Boot to download mode and look at the line with "OS" at the beginning for finding out your current firmware version.

That means: Power off the device, wait some seconds and turn it on again while you keep volume down pressed until you see a black screen with red, blue and yellow text. If you see a white screen with multicoloured text then you're facing the Bootloader mode. In that case you can navigate to "Boot to Download Mode" with the volume keys and select the option with the power button.

Download the RUU for the firmware you want to convert to from the RUU section.

For minimizing headaches, you should only use RUUs whose major version (1.x, 2.x, 3.x or 4.x) matches the one your phone is using.

Connect your phone via USB with your PC.

Open the folder that contains your ADB/fastboot/HTC_fastboot files on your PC.

Press and hold Shift on your keyboard.

Right-click into the folder that contains your ADB/fastboot/HTC_fastboot files.

Choose "open command window here".

If you're using the Win 10 Creator's update or any newer version then you need to choose "open powershell window here".

Type "start cmd" without the quotation marks and execute the command with pressing Enter on your keyboard.

Copy'n'paste the command

fastboot getvar all

and execute it with Enter on your keyboard.

Write down your CID and your MID on a piece of paper so that you know them in case you want to revert to the original firmware of your phone.

Change your MID using the command

fastboot oem writemid <enter MID of the RUU you want to flash>

and executing it with Enter. This might not be needed if your original MID already matches the one of the RUU you want to flash, later on.

Example for the Dev Edition RUU 3.35.617.12:

fastboot oem writemid 0PJA11000

Change your CID by using the command

fastboot oem writecid <enter CID of the RUU you want to flash>

and executing it with Enter.

Example for the Dev Edition RUU 3.35.617.12:

fastboot oem writecid BS_US002

Choose the option "reboot to download mode" on your phone.

Verify whether CID and MID got changed correctly by using the command

fastboot getvar all

and executing it with Enter.

Flash the RUU you downloaded before with one of the methods from the RUU section.

It doesn't matter which method you use.

Congrats! You sucessfully converted your M9 to a different version.

Take me back to the Overview​
[One (M9) General] Flippy498:
Take me back to the Overview​

Common RUU Errors​

This List is based on 5m4r7ph0n36uru's list in his HTC 10 De-branding guide. I only changed some phrasings so most credits go to him.

07 RU_CID_FAIL: Your phone’s CID doesn't match the one that the RUU expects (c.f. its android-info.txt).

10 RU_MODELID_FAIL: Your phone’s MID doesn't match the one that the RUU expects (c.f. its android-info.txt). You might be trying to flash a RUU for a completely different device if you face this problem.

12 SIGNATURE FAIL: The phone expects an HTC signature and can't find one or found a wrong one. This error occurs if you try to flash a RUU that uses a different encryption key than the one your phone is using (e.g. firmware 3.x and older vs. 4.x).

22 RU_HEADER_ERROR: Something is wrong with your *.zip. Check the MD5 sum of the downloaded file.

23 PARSING IMAGE FAIL: Something is wrong with the image(s) within the *.zip.

24 ANDROID-INFO FAIL: Something is wrong with android-info.txt within the *.zip.

32 HEADER ERROR: The *.zip couldn't be read and unzipped properly. This seems to be the same as error 22.

33 NOT KNOWN YET: This might indicate a hardware failure.

35 FAILED (remote: 35 RU_PARTITION_NOT_SUPPORT <PartitionName>): This means you can’t flash an image in Download Mode as it has to be done in Bootloader Mode.

41 WRONG MODEL ID: Seems to be the same as error 10.

42 WRONG CUSTOMER ID: Seems to be the same as error 07.

90 PRE-UPDATE FAIL: The RUU only flashed the aboot and you have to re-run the process immediately to flash all other partitions. HTC_fastboot auto-reboots on error 90.

99 RU_UNKOWN_FAIL terrible mishap: This error often occurs if you're using a broken SD card for the SD card method.

130 WRONG MODEL ID: Seems to be the same as error 10.

132 SIGNATURE ERROR: Seems to be the same as error 12.

155 INDICATES DIFFERENT THINGS:

You need to relock the bootloader on a device with S-ON. (This only applies to devices that are older than the M9!)

The RUU cannot be executed because your phone is S-ON and its Rom and/or Firmware version is newer than the one of the RUU.

170 CHECK USB: The RUU won’t run because ADB isn't working properly.

171 USB ERROR: This can happen when a RUU reboots the phone to Download Mode. For some reasons the device is losing its connection making a RUU flash virtually impossible. There is an incompatibility between USB 3/3.1 and Fastboot/ADB, as well as an issue with the Windows Device Detection on some Windows 10 builds. (According to Sneakyghost, there seems to be a fix for this, though.)

255: This error often occurs if you're using a broken SD card for the SD card method.

Take me back to the Overview​
[One (M9) General] Flippy498:
Take me back to the Overview​

Useful Links/Further Reading​

Basics about Block-based OTAs

How to "read" Firmware versions

SKU-, CID- and MID-List by Sneakyghost and Behold_this

How to "read" Serialnumbers

The Difference between Rom and Firmware

(this is an archive.org link - the original article isn't available anymore due to the Team Venom website being shut down)

Sneakyghost's Firmware Thread

This thread actually contains a lot of useful information about the firmware, CIDs, MIDs and S-OFF - you can find Full Wipe and NoWipe firmware packs in this thread, as well

Captain_Throwback's TWRP Thread

How to recover the 3 GB internal storage that get lost while getting S-OFF

Instructions are not needed if you choose to flash a RUU after getting S-OFF

My "famous" Google sheet

Recovery Flashable Radio Files

Sunshine S-OFF

If you don't own a Java Card or an XTC Clip, this is the only method for getting S-OFF at the moment!

Llabtoofer's RUU Service

The last hope if there is no publicly available RUU you could use!

Universal HTC RUU/Rom Decryption Tool

Country-/Continent-specific threads

Australia

Canada

India

Take me back to the Overview​
[One (M9) General] Flippy498:
Take me back to the Overview​

Credits (in alphabetical order)​

Contributors - many thanks to all of you

alfredomorenoperez

Alternate_DM

Artume

Asselalf

Baalzaman

barashe

BiOMeX

Black-FR

buttie

Charwinger21

clsA

computerslayer

coolberry

cporeaux

Fain11

Golv

Handy-FAQ.de

h3ct0rx

hyperair

ivendor

jamieunit

k1ll3r8e

Krocko

lama81

lazyguyMC

mattlovell90

MegaGalan

migascalp

Mutasek24

Nima78600

nkk71

osiedacz

RikuXander

sardroid

sblonci65

stjepa90

SoLdieR9312

stifilz

Team Renovate

TechnicianX

warci

xunus

YANGHY

ziand_

Special Thanks to

aestivalisakito - for providing the Recovery flashable Radio files and the guide for recovering the whole internal storage after getting S-OFF

Asselalf, Krocko & warci - for the short but fun time we've been working together and all their little tips and advices

Behold_this - for the SKU, CID and MID list

beaups & jcase - for bringing some "Sunshine" into our lives

buko_s - for reminding me of the correct key combination that's needed for entering the stock recovery

Captain_Throwback - for his informative TWRP Thread, the RUU extraction tool and the instructions for installing OTAs with TWRP

Chainfire - for SuperSU

clsA - for his conversion guides

exocetdj - for starting the original Stock File Collection thread

fhartane - for confirming that downgrading with S-ON is still possible on firmware 3.x

Golv - for the ARUWizard method

Google - for ADB and Fastboot

HTC - for their USB drivers, HTC_Fastboot and HTCdev

Inside 4ndroid - for the RUU.zip extraction Guide

lizard2k5 - for the solution for the Blue Screen error

Llabtoofer - for his informative article about serialnumbers and his RUU Service

mike1986 - for his informative article about firmware versions

Nikolay82 - for the ARUWizard method

nkk71 - for the RUU extraction tool and making it possible to install OTAs with TWRP - Rest in Peace, mate!

nleitao - for confirming that the instructions in the TWRP section I can still be used with firmware 4.x

SaHiLzZ - for maintaining the Canadian Back to Stock thread

5m4r7ph0n36uru - for the RUU error list

Sneakyghost - for his informative firmware thread, his articles and the SKU, CID and MID list

The Open GApps Project - for Open GApps

thicklizard - for his custom kernel

topjohnwu - for his OTA extraction Guide and Magisk

Take me back to the Overview​
[One (M9) General] exocetdj:
recoveries, nands and otas for worldwide cids, O2 uk and germany cids, tmobile and vodafone CIDS added to first few posts thanks to [MENTION=5075569]Asselalf[/MENTION] and the dudes mentioned above again!! :)
[One (M9) General] The Great Dane:
Brilliant - thanks for bringing this to the m9.:D
[One (M9) General] exocetdj:
Cheers mate! ;)
[One (M9) General] Mutasek24:
OTA 1.32.401.15 --> 1.40.401.8
[One (M9) General] drmoeed:
Great Work ...

Awesome ...

Reminding me of my M8 ... :)
[One (M9) General] Dangermous79:
Bit of a noob question can I flash this zip in twrp?

This is version on at moment.

C:\adb>fastboot getvar all

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) imei: ****

(bootloader) version-main: 1.32.401.15

(bootloader) boot-mode: download

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: HTC__001

all:

finished. total time: 0.016s
[One (M9) General] Nima78600:
Yes if you do a backup stock rom before root you are right, but you should use the beta twrp recovery.

Then in case you need to go back to stock you can follow this link, scroll down to post #3 and read Question 8

http://xdaforums.com/one-m9/orig-development/recovery-twrp-touch-recovery-t3066720
[One (M9) General] JohnCorleone:
I have only been able to find the TWRP 2.8.6.1 but I did read that there is a beta floating around. Where did you find it or do I have it already and they just removed the "beta" from the name? I swear I read about a 2.8.6.4 beta but I asked in the ViperROM thread and I came up empty. Thanks again for the help. A link would be greatly appreciated because I am using the new Tapatalk on my M9 and I can't find anything! Lol
[One (M9) General] Nima78600:
Yeah I had 2.8.6.4 twrp already and don't know if they removed it.

But don't worry use 2.8.6.1 twrp that is available. After backing up your system just transfer it to your pc and check it, if it includes system.emmc.win file then it's correct.
[One (M9) General] JohnCorleone:
I was able to get the 2.8.6.1-CPTB-B2.img so I think that will work. I tried to download it last night but the page was dead. Thanks for the help! I came from the M7 and things are a bit different...
[One (M9) General] Nima78600:
You can download latest twrp recovery for m9 from the link below . If you look at the archive you can see 2.8.6.4 as well.

But I am not sure which version is better at the moment.

https://basketbuild.com/devs/Captain_Throwback/One (M9)/Recovery

---------- Post added at 05:07 PM ---------- Previous post was at 05:04 PM ----------

Edit: it seems it's not possible to download them.
[One (M9) General] snowfree52:
Use the 2.8.6.1 it works just fine
[One (M9) General] Nima78600:
Yeah latest twrp 2.8.6.1 both CPTB-B1 and B2 can be downloaded from this link

http://xdaforums.com/devdb/project/?id=8915#downloads
[One (M9) General] blocka:
Hi I've gone to flash the stock NAN backup. when I select the backup to restore I only see Boot selected as the file/partition to restore. Is what I'm seeing right? I was expecting to see system as the partition to restore at a minimum. Also in the guide over here it mentions that you should mount /system as read only, I don't see anywhere where I can do this.

Cheers.
[One (M9) General] Nima78600:
Hi mate. As I already mentioned I didn't try this and at the moment I'm on stock rom with stock recovery, so that I can't guide you for this.

But as I remember when you flash beta twrp recovery it's mounted as read-only by default unless you change it.

So if you are not sure or you can't find the box you can flash the twrp recovery again and follow the tutorial you mentioned.
[One (M9) General] blocka:
I can't reflash recovery I'm back to the same error as earlier, the S -ON state. Is there an RUU .exe I can download somewhere for my hardware so I can completely restore my phone? I've got a backup of everything so it's all good.

kernel: lk

version-main: 1.32.401.15

mid: 0PJA10000

cid: HTC__001

Cheers.
[One (M9) General] Nima78600:
I flashed twrp-2.6.8.1-CPTB_B2-hima.img to my devices now to see what is it.

after flashing I checked if that box exist or no, and I found it as mentioned.

but for any reason if you would like to flash stock rom you can find your rom here.
[One (M9) General] blocka:
Thanks for the link for the TWRP img. I'm starting to think I my have the wrong version of TWRP. I followed my nose from the [RECOVERY][Hima] TWRP touch recovery page and downloaded twrp-recovery-2.8.6.4-hima.img originally. But I've noticed on their download page that version isn't available at all anymore. So the version I tried to re-flash with is twrp-2.8.6.1-hima.img from https://dl.twrp.me/hima/. Have I the right versions?

Also, I want to check that I'm looking at the correct RUU before I go to flash my device. I recall reading there is also an option to restore from 0PJAIMG zip file. I noticed there is an R1 and an R2 for my software version. I'm not exactly sure which one I should be looking at and the correct procedure to restore the file. Man this is doing my head in!
[One (M9) General] Nima78600:
Yes your link is correct and you can download latest stable twrp from there.

I think restoring stock with using 0PJAIMG.zip is easier and better, but in your case I don't know which one is suitable for you(R1 or R2).

---------- Post added at 08:43 PM ---------- Previous post was at 08:28 PM ----------

Why you don't flash 1.32.401.17?
[One (M9) General] blocka:
This one?

http://androidruu.com/getdownload.php?file=M9/RUU_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.17_Radio_01.01_U11440261_56.02.50306G_2_F_release_429340_signed_2_4.exe
[One (M9) General] Nima78600:
Yes, but if you use RUU.exe the status of bootloader remains as" modified", if use 0PJAIMG.zip the status will change to "official"

If you decide to flash 0PJAIMG.zip I can put the link to download it.
[One (M9) General] blocka:
Yeah right I can see now the 0PJAIMG.zip would be the better option. Just need to figure which is the correct file to flash, the R1 or the R2....

Found this site which has some interesting info http://www.handy-faq.de/forum/htc_one_m9_custom_roms/317884-htc_one_m9_firmware_ruus_otas_backups_stock_recoveries.html#OTA just a shame about the broken english
[One (M9) General] Nima78600:
[MENTION=5031986]blocka[/MENTION] you can use this one

0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.17_Radio_01.01_U11440261_56.02.50306G_2_F_release_429340_signed.zip

MD5 checksum:

5dbd4d7d3323d32e08197672ec735a50
[One (M9) General] warci:
Have you noticed that it's a German Forum?

So the "broken english" is perhaps simply German, with a few English terms :D :p
[One (M9) General] Tonio2000:
Help

I am new to this part of android and would like to know, when I extract a twrp backup and copy it to my phone, only 3 files are copied, the system.emmc.win doesn't copy and even going to fastboot and flashing it manually doesn't work, it flashes, but i get stuck on the htc screen which then reboots into recovery. I have a backup of 1.32.410.17 but I am trying to go back to 1.32.410.15 to get the OTA. All help appreciated.
[One (M9) General] blocka:
LOL yeah I did notice it was German....

I found a ROM that is x.x.401.8, I'm thinking given I'm trying to get back to stock to take the 401.8 OTA I should be able to flash straight to the one?
[One (M9) General] Flippy498:
The file is working fine. There's no need to reupload it.

Why do you think it's corrupted? Did you check the MD5 checksum of your downloads, as suggested in the OP? And did you read the FAQ?
[One (M9) General] dangerguest:
Hi There Flippy498

I've downloaded the files from different computers, and browsers and Internet links. I've been using Winrar 5.60 and 5.40, and it still gives me error, and the MD5 is correct.

Please help me whenever you can, I really want to flash my phone and update the firmware

Thx in Adv

Sent from my HTC One M9
[One (M9) General] Flippy498:
Please read the FAQ. What you're facing is expected behaviour.
[One (M9) General] DaveedDB:
What error exactly?
[One (M9) General] dangerguest:
Hi There PPL.

As Flippy498 instructed me, the update was a sucess. :good:

I've installed the RRU of my firmware throughout the ARUWizard method and everything went smoth as a feather . :o

I'm going to do root on the phone.

Thks a lot guys for all you patient and help. :victory:
[One (M9) General] Selorm611:
I'm curious about the difference between what the 0PJAIMG.zip and RUU methods do exactly. I flashed a custom ROM, rooted it and installed V4A(as a magisk module). I later used the 0PJAIMG.zip to return to stock for a purpose. A few weeks later, i reflashed the custom ROM and when I was reflashing viper4android, i saw a line in the log which said 'removing traces of previous install'. Does this mean that the zip method does not totally reflash all the partitions?
[One (M9) General] DaveedDB:
No that msg has nothing to do with RUU flashing firmware or roms ,that's strictly to do with v4a they were problems where people where trying to update to the new v4a and the old v4a was conflicting with the installation of the update so the dev made a script that everytime we install v4a it would search for old files and delete them so you'd have a fresh install of viper4android hopefully with no problems
[One (M9) General] Selorm611:
Thanks. I was kind of worried for a bit there, as I'd never seen that line before
[One (M9) General] mangojain:
When i plug in the phone to my pc, Windows 10, i get a 'device malfunctioned' error. So i can't run fastboot commands to change the mid /cid. Is there any other way of doing it? I read about Kali NetHunter, but am not able to install chroot manager for some reason.
[One (M9) General] Ebubemg:
hello,

is this the right RUU to flash for that M9? 3.35.401.12
[One (M9) General] Kevincarpio08:
is there any update for sku 512?

my firmware version is 2.6.512.14 :confused::(
[One (M9) General] shaqman89:
I'm not sure. According to this thread, yours is a CDMA phone. I'm not sure there are many options available to upgrade other than changing SKU. I believe [MENTION=5872674]Flippy498[/MENTION] would know more if there any other safer options or even if it is a viable options.

Just out of curiosity, are you s-off or planning to do so?
[One (M9) General] Kevincarpio08:
Still S-On but if setting it off will let me update, I sure will
[One (M9) General] EMNM:
Hi

I have m9 sprint with unlocked boot loader and s-off, is it safe to flash Verizon ruu?
[One (M9) General] kunalxda:
Anybody who knows Which stock ruu support lte network band 40(2300mhz).
[One (M9) General] rzwinston:
will be possible to flash something to M9 whats getvar shows

getvar all:

(bootloader) version:0.5

(bootloader) variant:MTP eMMC

(bootloader) secure:yes

(bootloader) version-baseband:

(bootloader) version-bootloader:

(bootloader) max-download-size: 0x20000000

(bootloader) partition-type:cache:ext4

(bootloader) partition-size:cache: 0x14000000

(bootloader) partition-type:userdata:ext4

(bootloader) partition-size:userdata: 0x5e0000000

(bootloader) partition-type:system:ext4

(bootloader) partition-size:system: 0x118000000

(bootloader) serialno:FA5BAYJ01774

I dont know the phone history maybe is Nand corrupted but sometimes I can have access just to recovery mode but when try instal I have e: footer is wrong.Thank you
[One (M9) General] keshav4777:
How to root my htc one me phone
[One (M9) General] gregsarg:
Start at page one of this thread and read ....then read it again.

Everything you need is listed in the first page....g
[One (M9) General] neb2567:
Hello, there is the possibility to update from 3.38.502.41 to 4.27.502.7?

What should I do to update?
[One (M9) General] khocha89:
HTC one M9 stock rom required

Please help to get below stock rom for below details

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) serialno: HT54XYJ02365

(bootloader) current-slot:

(bootloader) imei: 357226066883984

(bootloader) version-main: 4.17.161.11

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U114401031_124.01.70203G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: VODAPE17

all:

finished. total time: 0.006s

thanks
[One (M9) General] CyanRose:
roms ruu list https://www.leakite.com/htc-official-ruu-firmware/
[One (M9) General] badboy56:
gracias

gracias :Cíclope::Cíclope::Cíclope:
[One (M9) General] Xdavenezuela:
Hola que tal amigos? Se que mi comentario no tiene que ver con lo publicado pero necesito de su gran ayuda

Poseo un HTC ONE M9 DE SPRINT comprado en el Perú, pero lo traigo as
[One (M9) General] OpenMinded:
that seems corrupt
[One (M9) General] PRATHA:
PLEASE ANYONE REUPLOAD THIS FILE 0PJAIMG_HIMA_UHL_N70_SENSE80_MR_HTC_Europe_4.28.401.3_Radio_01.01_U114401011_117.00.61117G_2_F_release_498151_signed_2.zip I CANNOT DOWNLOAD THIS FILE FROM ANDROIDFILE HOST PLEASE HELP ME
[One (M9) General] CyanRose:
use a vpn for download this file
[One (M9) General] PRATHA:
PLEASE ANYONE HAS GOOGLE DRIVE OR ANY OTHER LINK FOR 0PJAIMG_HIMA_UHL_N70_SENSE80_MR_HTC_Europe_4.28.401.3_Radio_01.01_U114401011_117.00.61117G_2_F_release_498151_signed_2.zip BECAUSE ANDROID FILE HOST IMAGE IS CORRUPT PLEASE HELP ME
[One (M9) General] BlackTigerR:
Try to download here
[One (M9) General] mrrocketdog:
@Flippy498 , thank you for this. just got an M9 and your thread is very helpful.:good:
[One (M9) General] riddell:
Glad my post was helpful for you 😊
[One (M9) General] CyanRose:
off topic

i am find and install the fm radio in htc m9 but the app radio fm stays in bootloop so works 10 seg i test in crdroid and hima https://xdaforums.com/t/rom-11-0-0-...again-18-11-2021.4275445/page-6#post-86850187
[One (M9) General] Nima78600:
Which kind of .15 did you use? R1 or R2?and what is your cid?
[One (M9) General] mattlovell90:
Pretty sure I used R2, don't ask me why. CID is HTC__001
[One (M9) General] Nima78600:
Ok thanks, because it's a bit confusing for many users.
[One (M9) General] mattlovell90:
Good point, I'll edit the original.
[One (M9) General] Nima78600:
After flashing that, did you received 1.40.401.8 ota directly? Or first received .17 ota?
[One (M9) General] mattlovell90:
1.40 straight away. I had my phone on .17 for over 24 hours with no update, the second I got .15 installed it came through.
[One (M9) General] Nima78600:
Yes I remember you were on .17 version. I think in the UK, devices with HTC__001 CID,the latest official rom before 1.40.401.8 was .15

Am I right?
[One (M9) General] mattlovell90:
I'm honestly not sure but I guess that would make sense!
[One (M9) General] blocka:
HI, I'm looking at flashing .15 RUU and I'm unsure what one I need to flash R1 or R2? Did flashing R2 work ok for you?

I'm on HTC__001 with 1.32.401.15 and I cannot figure out what the difference is with the two different versions.