yashsingh1/xdaforums huggingface dataset:
[One (M9) General] phen0m2016:
Hi Flippy498,

Ok, thanks for the reply! I already extracted the Stock Recovery for Android 7.0 (Nougat) (4.14.401.7), just waiting for the Developer Status on my AFH account to upload the file. Will post it when that happens.

A quick question. Any idea why TWRP v3.0.3-0_UNOFFICIAL's size is 19,5 MB and the Stock Recovery's size for this Android version is 64,0 MB? Is this kind of size difference normal?
[One (M9) General] Captain_Throwback:
I'll take this one.

That's not the actual size of the recovery image. That's the size of the recovery partition. When TWRP makes a backup of an image, it essentially just copies the entire block of space that's allocated for that partition, even if it's not completely full. So the 64MB represents the entire recovery partition - the image itself as well as the blank space following the image. If you were to unpack the recovery backup (using a tool like Android Image Kitchen), and then repack it, the size would end up being similar to the TWRP image size.
[One (M9) General] blocka:
Thanks Flippy, I did have a read through the RUU section, but it would appear I skimmed the 'important' info.
[One (M9) General] Daniyaltahir:
Just want to say thank you very much flippy your thread is very helpful for people. I got my phone back to stock
[One (M9) General] MAX 404:
Hi

I am flashing RUU GSM 4.14.401.7 to my M9

S-0ff

Unlock bootloader

CID HTC__102

Flashed firmware 4.14.401.7 before

SD card method , renamed RUU to 0PJAIMG.zip

At the end got this message

22 RU_HEADER_ERROR

22 RU_HEADER_ERROR

FAIL 22 RU_HEADER_ERROR

PRESS POWER TO CONTINUE
[One (M9) General] mattlovell90:
:eek:

Ok so include data in the backup but just before anything of mine is put on the phone right?

And sorry for the tirade of questions, but once backed up do you need the folder zipped or the individual files within zipped?

:highfive:
[One (M9) General] exocetdj:
Correct and just the folder containing the files zipped
[One (M9) General] mattlovell90:
Just about to zip, the folder pre-compression is nearly 10GB, the system image file is 4 alone, sure you want it included?
[One (M9) General] exocetdj:
Hold fire dude.....
[One (M9) General] exocetdj:
Have u done the backup yet? Just took a look at one and should look like this
[One (M9) General] mattlovell90:
Yeah I've done it man, got loads more than that in! Will remove the unnecessary and zip it up.
[One (M9) General] exocetdj:
Delete the unnecessary crap and zip in the folder made by twrp, best make sure boot and system md5s are in there too. Cheers dude!
[One (M9) General] mattlovell90:
Just uploading to dropbox now unless any better ideas? Slow upload reckons 2 hours :(
[One (M9) General] Sameh mohamed:
i restored backup and downloaded OTA and when i try to flash it it gives me this error

E:missing bitmap oem_unlock_bg

(Code -1)

E:missing bitmap oem_unlock_bg_yes

(Code -1)

E:missing bitmap oem_unlock_bg_no

(Code -1)

E:Find no match PARTITION: for package path @/cache/recovery/block.map

Finding update package...

Opening update package...

Verifying update package...

Installing update...

L50QCT.01.104.020

Verifying current system...

/dev/block/bootdevice/by-name/system has been remounted R/W

reflash device to enable OTA updates

E:Error in @/cache/recovery/block.map

(Status 7)

Installation aborted.
[One (M9) General] mattlovell90:
Sounds like the problem snowfree was having in that the OTA detects your system has been mounted from when you were rooted or has twrp installed before. What firmware version are you on currently?
[One (M9) General] Sameh mohamed:
---------- Post added at 09:24 PM ---------- Previous post was at 09:23 PM ----------

1.32.401.17
[One (M9) General] exocetdj:
Mega is probably better mate but if u are almost there I will upload it to mega for u as drop box deletes or disables links if file is downloaded too many times. :good:
[One (M9) General] mattlovell90:
If you don't mind losing your data I would recommend trying what I did (assuming your phone is International European Unlocked variant?):

NOTE: I used the Radio 2 version on .15 firmware. My CID is HTC__001

1. Download the .15 zip from here

2. Rename it to 0PJAIMG.zip

3. Put it on SD card (formatted to FAT32)

4. Boot into download mode and install it from there

Reboot phone and retry OTA.

I was on .17 and didnt get any OTA notification until I installed that.

In theory it shouldn't work as it shouldn't let you downgrade but it did for me so no harm trying! :good:

OR you could just try downloading the .17 exe RUU from there and running it if you have got OTA on that firmware already.
[One (M9) General] kakanjac:
With S-on or S-off?
[One (M9) General] baddevil2:
Is it normal, if ota failes that I have to reload it completly after reboot? -.-"
[One (M9) General] mattlovell90:
I'm S-On and it worked for me.

Yeah unfortunately.
[One (M9) General] baddevil2:
omg -.-" With my super fast internet connection ... Its not my day :/ Thanks
[One (M9) General] Sameh mohamed:
actually i got the OTA notification and downloaded it from mobile
[One (M9) General] mattlovell90:
Yeah I gathered that, the solution I posted was to try and fix the fact that the OTA is detecting your system has been mounted to make it read/write. Flashing the zip update should reset everything to stock - at least it seemed to work for me.
[One (M9) General] exocetdj:
There is a way to grab the update file but it requires root.

It downloads to /data/data/com.htc.updater/files so u will need to use something like root explorer to grab the file. Saves downloading it each time it fails but u will need to unroot to apply it by restoring a fresh backup each time
[One (M9) General] Antiiika:
will this lead me direct to original factory defaults ?

When I'm using the exe file, it says failed to update rom !
[One (M9) General] Flippy498:
[MENTION=4830053]MAX 404[/MENTION]: Do your MID and your CID match the ones of the RUU? Did you verify that the downloaded files has the same MD5 checksum as the one that is posted on page 1? Did you verify that your current firmware version is 4.14.401.7?

[MENTION=8103025]Antiiika[/MENTION]: Let get my crystal ball so that I can help you better... (It's impossible to help you with absolutely no information.)

Which RUU.exe did you try to flash? What's your current firmware version? What kind of error did you face? Did you read the RUU section? There you'll find all information that are needed for finding the correct RUU and for flashing it. As explained there, you won't get much support for flashing RUU.exe files in this thread. However, I guess that your problem isn't the *.exe but the fact that you chose the wrong RUU version.
[One (M9) General] MAX 404:
Hi mate

Everything checked , twice......but i think I found the problem

Trying to get the phone to work i tried to flash a custom rom (Viper) after I installed (again) the firmware no wipe with TWRP from Sneakyghost thread ( went fine, no problem , every time).....first time I attempted flashing the rom from the SD card (external) error again..CORRUPTED FILE...it made me think and i flashed it again this time from the internal memory......and it work !!

I got a really cheap SD card from Ebay ( 6 USD 32GB..no brand :( ) I think that is my problem...every thing i flash from there gave me errors...I will get a better SD card and try again....let you know later

With latest firmware what is the maximum size allowed? I have a 64GB card......also exfat would be ok right?
[One (M9) General] Flippy498:
The answer is explained in the RUU section. ;)

Some additional sidenotes: It wasn't actually the size that caused the problem on lower firmware versions (although I wrote that on the first page). The problem was the format. The M9 didn't recognize any other format than fat32 before firmware 3.x.

However, it's been easier to say it's the size than explaining it's the format and why bigger SD cards shouldn't get formatted to fat32 unless people know what they're doing. :p
[One (M9) General] MAX 404:
Go it mate , that info helps .

I will try again with a better , branded SD Card , I got a Sandisk 64GB next weekend i will give it a try again...I am sure it will work this time. If it does not .....I will let you know

Thanks for the support and the thread , keep up the good work
[One (M9) General] Antiiika:
How can I choose the right RUU ?

[MENTION=5872674]Flippy498[/MENTION] How can I choose the right RUU? I have HTC ONE M9, Mobile Software number: 3.35.401.12, When checking updates it says there is an update with number: 3.35.401.32 ,and then after installing the update and after the self restart, it opens normally with no messages, but when i double check the software number of the device, it is still the same old software number (3.35.401.12), When I Power On the device with Volume Down Button: unlocked, bootloader mode: Software-Status: modified, S-ON

---------- Post added at 09:28 AM ---------- Previous post was at 09:20 AM ----------

[MENTION=5872674]Flippy498[/MENTION] and actually when trying RUU_HIMA_UL_M60_SENSE70_ATT_MR_Cingular_US_3.38.502.41.exe and RUU_HIMA_UL_M60_SENSE70_ATT_MR_Cingular_US_3.38.502.17.exe it fails; "ERROR[155]: UNKNOWN ERROR; the ROM Update Utility cannot update your android phone. Please get the correct ROM update utility and try again!

---------- Post added at 09:34 AM ---------- Previous post was at 09:28 AM ----------

[MENTION=5872674]Flippy498[/MENTION]

and my bootscreen

HTC download mode

*** UNLOCKED ***

htc_himauh1 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.12

Dec 16 2015,15:37:25(671758)
[One (M9) General] stjepa90:
That number .401. in software revision number Is your SKU number. When searching for the right RUU file,search for right SKU number. If SKU numbers mismatch,it's not possible to install RUU.
[One (M9) General] Antiiika:
[MENTION=5872674]Flippy498[/MENTION]

I checked logs:

ERROR [155~159]: IMAGE ERROR

One of these error messages will appear when you use the incorrect RUU to update and the image file size is larger than the Flash ROM size. In this case, download the correct RUU version and try again.

so now I have to know how can i get the right RUU
[One (M9) General] Flippy498:
Why don't you do what I already told you in my first message? Read the RUU section. This is a ReadMe thread. It requires people to read (the first page).
[One (M9) General] ITheLivingProof:
Any new AU, Asia software available?
[One (M9) General] DSeg95:
Hi Flippy, do you remember me? I had a problem a year ago and you resolved it, even i donate you, if you dont remember the problem was https://xdaforums.com/one-m9/help/help-to-upload-ota-htc-one-m9-t3408967/post67555641#post67555641.. So, you resolved the problem and i could install the Marshmellow OTA update, since then i dont touch any sistem configuration, i dont root, anything, the problem come back with Nougat OTA update, when the update is in 25%, red triangle and reboot. I hope that you can help me again.
[One (M9) General] Flippy498:
[MENTION=4865751]DSeg95[/MENTION]: Can you post the output of fastboot getvar all here? (Remove the IMEI and your serial number before you post it.) And please take a look at the bottom backside of your phone. There should be a small engraving. Can you post the MID that is stated there, as well? (C.f. Q12 for the engraving.)
[One (M9) General] DSeg95:
I dont have Download Mode, I think that it is my problem. This is what happen when I hold Volume Down and Power, then i choose boot to download mode but it boot in to same screen.

Could be that?

PD: The image isnt my phone.

PD2: I say that because i know the Download Mode of other way, but if that is Download Mode, when I apply fastboot getvar all, it dont recognize my phone.
[One (M9) General] Flippy498:
That is the download mode. The marked option is for re-booting it. Did you try the advices in the FAQ section which explain what to do if fastboot doesn't work as expected?

What OS version is stated on your phone while it's booted to that mode?

And how about the engraving?

Edit: And the download mode always looked like that on the M9. I don't know what kind of mode you remembered but it definitely wasn't the download mode.
[One (M9) General] Antiiika:
[MENTION=5872674]Flippy498[/MENTION], Downloading the below softwares are always corrupted, specially 3.35.401.12 and 4.14.401.7 .... Do you have the 4.14.401.7 for HTC__J15 hima_uhl Mid 0PJA10000 working version ?

GSM RUUs

codename: hima_uhl - MID: 0PJA10000

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

1.32.401.8

1.32.401.15

1.40.401.8

2.10.401.1

3.35.401.12

4.14.401.7 (MD5: 148A8AF99EBDC7B26B4B14C09179D6E0)
[One (M9) General] Flippy498:
What do you mean with "corrupted"? Both files work just fine. I've already used them myself.

Edit: Oh, and please don't tell me that you tried to unzip them. I even explained in the FAQ that you can't unzip those files.

Edit2: Not to forget that the RUU section clearly explains why you can't use the 4.x RUU.
[One (M9) General] DSeg95:
Fastboot

SO

3.50.710.1

Engraving

Model: OPJA100

PD: This is the Download Mode that i remember
[One (M9) General] Flippy498:
Well, HTC is not Samsung. :p Of course their download modes don't look the same. That isn't an Android specific mode but an OEM specific one. HTC didn't even have one before the M9 got released. ;)

Your MID and your CID are correct. Therefore, the only solution that I can see for this problem would be re-flashing the system. I can't tell you why this happens every time you try to install an OTA, sorry.

Unfortunately, no one contributed a stock backup or a RUU for your firmware, yet. That means you would need to get S-OFF if you want to use one of the older RUUs (which means you would need to install all OTAs that got distributed since the release of the RUU's firmware, again) or you would need to contact Llabtoofer's RUU service or (this is the unlikeliest solution since most users with you SKU will probably already be using the newer firmware) someone would need to provide a stock TWRP backup for your current firmware that you can restore.

Sorry, that I don't have any better news...
[One (M9) General] DSeg95:
I'm not going to pay, so there is another way to install the official update and that I don't give me problems?
[One (M9) General] Flippy498:
Not as long as there is something wrong with your system partition. Flashing the OTA manually will probably fail just as the software update function did.
[One (M9) General] DSeg95:
What do you recommend if I want to have android nougat?
[One (M9) General] Flippy498:
If you want it now: Getting S-OFF or contacting Llabtoofer

If you can wait: Hope that someone provides a TWRP backup

Edit: The main problem is that (unfortunately) many people don't care about contributing to xda. The file collection on page 1 is a community project but most of the files got contributed by a very small number of users. A lot of these users (like me) don't have the time for contributing, anymore. And if no one else contributes any new files then it's not possible to help users like you (which use a newer firmware than the ones that are supported on page 1) without the Sunshine app or the RUU service.
[One (M9) General] Antiiika:
I re downloaded it, and after two trails, it worked (Y) ... Thanks .

Now i'm checking how to upgrade it to Nougat . note my S-ON
[One (M9) General] blocka:
ARGH nevermind!

Hi is there something I've missed? Just updated to 4.14.401.7. I've always been S-On.

D:\Phone>adb\fastboot flash recovery .\Recoveries\twrp-3.0.3-1_UNOFFICIAL-hima.img

target reported max download size of 536870912 bytes

sending 'recovery' (20052 KB)...

OKAY [ 0.457s]

writing 'recovery'...

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

finished. total time: 0.485s
[One (M9) General] Antiiika:
After a couple of updates, Now I'm 4.14.401.7 yeeehaaaaaa
[One (M9) General] blocka:
Hi have you flashed a custom recovery? I just tried and I'm getting S-On error.
[One (M9) General] Flippy498:
Then your phone is booted to the wrong mode. ;)
[One (M9) General] paolocorpo:
Dear Flippy498, all

SOme months ago I modded my HTC M9 unlocking bootloader, installing TWRP and a custom ROM

Later I was obligated to come back to stock because my company asked to me to upgrade the phone introducing the crypting and I was not able to do being modded

WELL ... no probem but:

few days ago I tried to update to Nougat 7

After the download I try to install it but after 3/4% the decice reboots and remain on Android 6 (like before)

These temptatives were done with the bootlader UNLOCKED

Later I locked the bootloader and right now the bootloader is: RELOCKED

I have not tried more ... Coul I have more lucky being RELOCKED ?

Thanks

Paolo
[One (M9) General] Flippy498:
Not really. The state of the bootloader doesn't matter at all (as explained on page 1). Flash a RUU of your current firmware version and try to install the OTA, again. If there is none available or if that doesn't help then re-unlock your phone, re-flash TWRP and restore a stock backup for your current firmware with the instructions of page 1.
[One (M9) General] paolocorpo:
Firstable many thans for your prompt reply ;)

Flashing a RUU of my corrent firmware will wipe/reset my phone ?
[One (M9) General] Flippy498:
Correct. And so does restoring a backup if you follow the instructions on page one.

Edit: Many thanks to [MENTION=5236196]Baalzaman[/MENTION] for contributing the 3.50.710.1 RUU.

Edit2 [MENTION=4865751]DSeg95[/MENTION]: That new file should be able to solve your problem.
[One (M9) General] Hack64:
Hi [MENTION=5872674]Flippy498[/MENTION], is there any way to do a twrp backup of my vodafone nougat rom even if i've already rooted it with magisk?

Thanks :)
[One (M9) General] Flippy498:
You can always backup your current rom. ;) But I guess you meant a backup that can be used for getting back to a (completely) stock state.

The answer partially depends on whether you booted to TWRP via fastboot or flashed it and whether you kept your system partition as read-only or mounted it as read/write. However, one thing is for sure: You can't backup the stock boot.img, anymore, since magisk modifies the boot.img. Fortunately, OTAs don't check whether the boot.img got modified or not. Therefore, this wouldn't be a big issue.
[One (M9) General] Hack64:
Thanks for the answer, my TWRP was flashed when I installed the ota, is there any way to check if I ever mounted the system as R/W? :)
[One (M9) General] Flippy498:
Did you swipe the slider when you booted to TWRP for the first time? If you did then your system is mounted as read/write.

Take a look at the "mount" menu, if you can't remember. There is an option for mounting the system as read-only. It's either activated or not. Be aware that the checksum of your system changes as soon as it gets mounted as read/write. In addition, the checksum won't get restored to its original state by re-activating the option. That's what RUUs or stock backups are needed for.

If you flashed TWRP then you won't be able to backup the stock recovery, anymore. Therefore, I personally don't see any benefit in backing up your system for "getting back to stock" purposes, anymore, even if your system partition has never been mounted as read/write.
[One (M9) General] Hack64:
I guess that I have mounted it as r/w then. If you say that there isn't any benefit then I am not as worried as I was before! Do you know if Sku 161 RUU has been released? I can't find it!

Thanks for your patience, i'm a really big noob :highfive:
[One (M9) General] Flippy498:
If you mounted the system as read/write then there's absolutely no use for a backup of your system in regard to reverting to a stock state.

However, please don't get me wrong. Until now, no one contributed a RUU or a backup for the latest 161 firmware, yet. That means you would need to contact Llabtoofer's RUU service unless your phone is S-OFF and can therefore get downgraded with one of the older RUUs on page 1.

And as explained on page 1, there isn't always a RUU for non-US firmware versions since those RUUs get leaked and not distributed officially.
[One (M9) General] Hack64:
Oh, thanks, didn't see that..

My phone is still S-ON, so I'll better do a backup even if it isn't in "stock conditions" in order to have a chance to let this phone survive

Thanks for the help!
[One (M9) General] Flippy498:
It's always good to have a backup of your current setup at hand. ;)
[One (M9) General] Roobwz:
Recently got the nougat notification. Do you think there will be any problems when using the OTA?
[One (M9) General] Flippy498:
The worst thing that might happen is that the OTA aborts. In that case you should re-flash the RUU and try to install the OTA, again. If that still doesn't work you could restore the stock backup for your current firmware and then try to install the OTA, again.
[One (M9) General] kemoli:
hi, i have some problems with codename: hima_ul - MID: 0PJA11000 SKU: 617 - CID: BS_US001 or BS_US002 4.23.617.1

first question i have a developer edition, can i flash this zip with twrp?

second one, when i try to flash it, it says zip corrupt file

any help?
[One (M9) General] Flippy498:
That depends on your current firmware version. The reason why you can't flash 4.x RUUs on firmware 3.x and lower is explained in the same post in which you found the file.

Well, it's not meant to be flashed via TWRP. And the flashing instructions are located directly above the download links. I don't know why you didn't read/follow them...
[One (M9) General] kemoli:
so sorry i didn´t understand that part, i have already read it better...it just even when i put the stock recovery, when i tried to update via ota, it says an error due to change read and write permission. i think i have to do the NoWipe/Full-Wipe Firmware Pack, but i am not sure if will let me update after via ota.

thanks for the response
[One (M9) General] Flippy498:
And the reason for that is explained on page 1 (c.f. the Stock Recovery and the OTA section), as well. You need to restore an untouched system image.

No it won't. Those firmware packs don't contain a rom. Therefore, they can't be used for restoring an untouched system image that would be needed for installing an OTA. They only need to get flashed if you want to flash a 4.x RUU and are currently using a 3.x or lower firmware.
[One (M9) General] Frug01:
Anyone get the RUU 4.16.709.3???

Enviado desde mi Pixel XL mediante Tapatalk
[One (M9) General] Flippy498:
All contributed files can be found on page 1. If it's not there, then no one contributed it (yet).

Many thanks, once more, [MENTION=5236196]Baalzaman[/MENTION] for contributing a 4.23.710.1 stock backup! :D
[One (M9) General] vizslak:
Hi please can someone help me? I cannot install the ota update 4.17.161.11, phone is m9, locked and S-ON, current version 3.35.161.12, never rooted or anything. Done through settings, system update the OTA downloads but on install sticks at 25% and gives the red triangle, pressing power and tapping volume up gives me nothing, no error log or anything. Downloading the OTA file manually and using SD card method gives me an error 7 'system partition has unexpected contents' I'm at my wits end with the thing, ready to throw it out the window!
[One (M9) General] Flippy498:
In other words: your system partition isn't untouched.

Flash the RUU for your current firmware version and re-try installing the OTA. Be aware that the RUU will wipe your personal data so backup everything you don't want to lose.
[One (M9) General] vizslak:
Thank you, I will try that now. Is a backup through sync manager adequate?

Is there a reason why my system partition is 'not untouched' when I've never done a thing to the phone? Should I be concerned by this?

edit..also is SD card data safe when flashing a full RUU? Sorry may sound like a stupid question!
[One (M9) General] Flippy498:
I personally prefer myphoneexplorer for backing up personal stuff.

The external SD card is safe.

To be honest, I can't tell you why the partition is modified if you say you didn't do anything... If you're unlucky this might be a precursor of the NAND death that seems to be quite common during the last month.