yashsingh1/xdaforums huggingface dataset:
[One (M9) General] JoshDaWhite:
[MENTION=5872674]Flippy498[/MENTION] ,I need your help.Last year I rooted my brother s htc one m9 ,and sim-unlocked it.I left twrp installed,and the bootloader unlocked.And then,HTC released android 6.0.1 .The phone is vodafone uk.I tried lots of ways...TWRP backups of android Marshmallow fail to restore (system image is split in 3 pieces,I think my twrp 3.0.0 fails to realise that!?).I restored a android 5.1.1 twrp backup from this thread,But I think it is a backup of a international version.Then,I relocked the bootloader(Stil have the unlock token and my pictures and stuff is on my pc),and tried flashing ruus.error 99 also ("invalid header magi ...????")Handy faq has a vodafone zip ruu MM,but the file is broken,i tried downloading it like 4 times...So now I am asking you:How will I get the phone to stock?I don t cre wich way,I dont care about android version,I want to be able to flash official OTAs.I intend to use these instruction to modify firmware status :https://dottech.org/180988/how-to-restore-htc-one-m9-to-stock-android-software-guide/ .Also I will try restoring one of your twrp mm version throught fastboot using this guide:"For the start, power off your One M9 handset;

Press and hold both Volume Down+ Power button until you see download mode;

Connect the phone to your computer by using the original USB cable;

Create a folder onem9r on C drive on your PC;

Move the backup file, system.emmc.win, to this folder;

Open the command prompt (CMD) windowl

In CMD, type: fastboot flash system C:\onem9r\system.emmc.win;

Now, hit Enter;

When done, reboot One M9 by typing fastboot reboot;

Hit the Enter key once again and that was all! "Do you think it will work,since system image is split in 3?Will flash them one after another?Please answer,I am sick of failing... Thanks and cheers :)
[One (M9) General] Flippy498:
The RUU you can download from Handy FAQ isn't broken. I've already used it several times. It's not meant to be unzipped since it's encrypted. Winrar can't handle the encryption and therefore states it's broken. Even 7-zip is only able to open it if you use the "open > #" method.

Since I'm sure you read the OP you already know where to look for the needed instructions. ;) You will need an unlocked bootloader if you choose the TWRP method. The guide you linked is outdated and I wouldn't recommend using it.

Btw, the system image isn't split in 3 pieces. Those are 3 different partitions that are all needed for returning to stock.
[One (M9) General] JoshDaWhite:
tHANK YOU VERY MUCH.lATER THIS DAY i WILL ATTACH A SCREENIE OF CMD WHILE TRYING TO FLASH MM VODAFONE UK ZIP.sorry about caps look I am excited a proffesional is looking my way.I am usually hacking samsung phones , I m new to HTC.phew.Thanks again I will try when he returns from work.:)

I want to make sure he can get otas and never will hack his phone...What does error 99 mean ?
[One (M9) General] Flippy498:
Sneakyghost has a list with the most common cmd errors and their meanings in his firmware thread (located in the development section). I don't recommend using fastboot for flashing a RUU. My last post was meant to be a hint for this part of the OP -> "Please take a look at my google sheet if you want to get back to stock and don't know how to flash a RUU or how to correctly restore a TWRP backup. (Believe me, most of you don't. Things you might know from your previous HTC phone don't apply to the M9 due to the block-based OTAs.)". There are so many reasons why fastboot flashing a RUU can fail. (Just to name a few: missing USB drivers, wrong USB ports, wrong fastboot version, etc.) That's the reason why only the SD card method is explained in my sheet.
[One (M9) General] JoshDaWhite:
I won t use fastboot to flash ruu. Here I attach some screenies with phone info.Please guide me in the right direction (which ruu to get) . Thanks [MENTION=5872674]Flippy498[/MENTION]
[One (M9) General] exocetdj:
im not sure mate, wouldn't that format the remaining data? im pretty sure the doenload mode will pick up the RUU on the 10GB bit though. best backup ur data if things go tits up (but ur wise enough to do that anyway lol) ;)

let me know how u get on mate
[One (M9) General] mattlovell90:
Yeah it appears to partition it I will need to wipe it. :rolleyes:

See you in 2 weeks once backup completes
[One (M9) General] Nima78600:
If you have problem with your sd card try fastboot method : by this command "fastboot flash zip 0PJAIMG.zip"
[One (M9) General] exocetdj:
added 1.40.401.8 recovery thanks to [MENTION=4860093]SoLdieR9312[/MENTION] and the renovate boys

do you guys have a nand for the 1.40.401.8 base i can link?
[One (M9) General] Nima78600:
You need first this command" fastboot oem rebootRUU"
[One (M9) General] mattlovell90:
Thanks, just tried that and I get it into the silver HTC RUU update mode with rebootRUU command but then...

E:\One_M7_All-In-One_Kit_v1.0\Data>fastboot flash zip 0PJAIMG.zip

load_file: could not allocate -2105694021 bytes

error: cannot load '0PJAIMG.zip'
[One (M9) General] snowfree52:
alright,

the method doesn't work, error is still the same : system has been remounted R/W !
[One (M9) General] mattlovell90:
Do you get this when installing the OTA? Mind if I ask your CID and firmware number? .15?
[One (M9) General] Nima78600:
I think that's because of old fastboot and adb folder.

But anyway as I mentioned already it might be the case that in your region the new update comes from .15 rom version. So you can try .15 ruu as well.
[One (M9) General] exocetdj:
The ota will need to be in the same folder on your PC as your adb and fast boot stuff.
[One (M9) General] Nima78600:
Which method?
[One (M9) General] mattlovell90:
Yeah it's in there. I think the error is something to do with "could not allocate..."?

Edit: found why.

http://highonandroid.com/android-sm...re-error-could-not-allocate-1778070480-bytes/
[One (M9) General] snowfree52:
restored stock system image via TWRP

then flashed back stock recovery

then tried to install the OTA

still fails with the same error
[One (M9) General] Nima78600:
I guess that's because of large size of file. It didn't for me as well and I used sccard method.
[One (M9) General] exocetdj:
Does the ota file name say signed on the end?
[One (M9) General] snowfree52:
the OTA is from my phone, not from the internet
[One (M9) General] Nima78600:
Did you check the "Mount system as read-only" box in the Mount menu before flashing system back up?
[One (M9) General] snowfree52:
I tried but if I check it, twrp refuses to restore system saying "system canno't be restored because it's read only"
[One (M9) General] Nima78600:
Try to flash it via fastboot..." fastboot flash system system.emmc.win"

If you have this kind of system image in your back up folder. And then flash stock recovery
[One (M9) General] mattlovell90:
Yeah, from some reading it sounds like fastboot can only handle just under 800mb files.

If I use SDcard method I will get the same error? Also as I am on .17 and S-On I don't think I can flash back to .15 or am I mistaken?
[One (M9) General] Flippy498:
Please read the google sheet. All you need to know is already explained.
[One (M9) General] JoshDaWhite:
I know but I am so frustrated I just want to make sure I won t hard brick his device.I will look but please help me. Thank you
[One (M9) General] Flippy498:
If you do what the sheet is telling you then there is absolutely no risk of hardbricking. ;)
[One (M9) General] JoshDaWhite:
Ok dude. Thank you for your professional advice. I will try tonight. I hope I will fix it.Htc desire were so much easier to hack...
[One (M9) General] DSeg95:
Hi, i have a problem and is as follows:

Months ago i root my HTC with Android 5.0.1, so I unlock the bootloader and do all steps for root. Days ago it was enable the update of marshmallows, when I try to install the update, TWRP cant let me update, so i unroot and install my recovery stock (i think, i do some research and i learn that my cid is OPTUS001, so I install my correspondent recovery stock) and nothing, i relock the bootloader and nothing, appears the red triangle, so im scare, i dont know what to do. I want marshmallows and the next updates. :crying:

PD: Im noob, and my strong language isnt english. Also i read about S-OFF, and i dont want pay nothing.

Any solution? Please :(
[One (M9) General] Flippy498:
That triangle is the stock recovery. Restoring it isn't enough if you want to be able to install M9 OTAs, again. But there is no need for paying to get S-OFF.

You need to re-unlock and follow the instructions located in the TWRP Backup Tab of my google sheet. If I'm not wrong the CID OPTUS001 belongs to the SKU 710.
[One (M9) General] JoshDaWhite:
Ok so I got a Vodafone UK.I am downloading the marshmallow ruu. I have a 32 gb sdcard formatted fat32,locked bootloader,so it should work,right?@Flippy498
[One (M9) General] JoshDaWhite:
I get this error :( what will I do??? [MENTION=5872674]Flippy498[/MENTION]

Edit.Also tried with a 4 gb sdcard,which was fat32 too.Any ideas???
[One (M9) General] Flippy498:
Please be aware that I'm not a Service Hotline nor a Service Chat. :p I have a real life, too, and xda is only a hobby. Therefore I answer when I have time and not as soon as someone quotes me/mentions me. There is no need to send me a PM because I didn't answer immediately. ;)

What's your current firmware? As said before I've already used that RUU without any problems and according to it's size and MD5 checksum the one on my PC and the one you can download from AFH are identical. Did you check whether it got corrupted during the download (in other words: does the MD5 checksum match)? Sidenote: As written in the OP the status of the bootloader (locked/unlocked/relocked) doesn't matter if you use the SD card method.

Another solution for your situation would be using a TWRP Backup but you need an unlocked bootloader if you want to use TWRP.
[One (M9) General] JoshDaWhite:
Lol I gave up.My brother took the phone at a repairing shop, thank you for answering,through.

Edit.That dude was clueless...I contacted Llab ruu and they fix it tomorrow.
[One (M9) General] DSeg95:
Hi Flippy, I follow the instructions and all right, but when I going to install the update, the phone get in boatloader menu and dont install nothing, after that i relock the boatloader as a "solution" and the same: the phone get in boatloader menu. Help :(
[One (M9) General] Flippy498:
What's your current firmware version? Did you maybe forget to remount the system partition as read-only? (Because it sounds like you did.) And please re-unlock. A re-locked bootloader doesn't help at all since OTAs don't care whether the bootloader is locked/re-locked or not. (If they would the developer edition wouldn't be able to receive/install a single update.) It's actually harder to solve your problems if you re-lock the phone.
[One (M9) General] JoshDaWhite:
In the end, llabtoofer guys solved my problem.They have a tool leaked from HTC that makes the process much easier.
[One (M9) General] Flippy498:
Of course llabtoofer's RUU service is the easiest solution. (I even linked it on page one and in my sheet.) The thing is that it's not for free and the purpose of my sheet is to help people without the need of paying. ;)
[One (M9) General] DSeg95:
I suppose that is 2.9.710.5 and my problem is that i cant update to 2.10.710.200 and then update to Android 6. When I restore backup, i only check the box read-only and no more, check the box and i go to menu again.

PD: i think that i dont have the developer edition.
[One (M9) General] Flippy498:
So you don't know the firmware version of your phone and only picked the backup which you thought might be the correct one? (I have to ask because English isn't my mother tongue and as far as I know "to suppose" is not the same as "to know".) If so please check the firmware version in the Download Mode of your phone (as stated in my sheet) and restore the corresponding backup. Otherwise it's no miracle that the update fails because the OTA isn't compatible with the currently installed firmware.
[One (M9) General] DSeg95:
I put suppose because in settings say "software version", and I go to download mode and i dont see that. And the backup, I don't pick for lucky, I pick my number version that is 2.9.710.5 in HTC Australia box.
[One (M9) General] JoshDaWhite:
Of course.My phone was Vodafone UK.They flashed europa ruu.Weird.Like I said,they have a tool leaked from HTC(I wont post it online).

I gave you a bunch of thanks,flippy.My phone is stock now no need to be subscribed here.Cheers
[One (M9) General] Flippy498:
[MENTION=4865751]DSeg95[/MENTION]: As written in my sheet you need to look at the line with "OS" at the beginning. ;) The number in "settings > about" isn't always the same as your actual firmware version. For example if you restore a backup with a different version or flash a custom rom the number in "settings > about" changes whereas the one in Download Mode always represents your actual firmware.

However your current firmware is 2.9.710.5. Therefore I would suggest you to reflash TWRP and retry restoring the backup the way I described in my sheet. I can only assume what went wrong since I tested that backup before I uploaded it.

If that doesn't work then you could try flashing the 2.9.710.5 RUU which can be found in that sheet, too.

[MENTION=6651577]JoshDaWhite[/MENTION]: Nice to hear that everything is working now but I have one last question. Didn't you check your firmware version before you downloaded the RUU? The sheet clearly states that you should look at the line with "OS" at the beginning which can be found in Download Mode.
[One (M9) General] zzzer51:
Hi all!

Here's my phone info:

(bootloader) kernel: lk

(bootloader) product: htc_himaulatt

(bootloader) version: 1.0

(bootloader) imei: ************

(bootloader) version-main: 3.38.666.2

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U11440801_96.01.51207G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA11000

(bootloader) cid: BM___001

It is S-ON and BM is for Bell Mobility (Canada)

Unfortunately I can't find a RUU / backup with version 3.38.666.2 so everything I have tried failed.

Any help would be greatly appreciated!

Thanks! :cowboy:
[One (M9) General] Flippy498:
All files that got contributed can be found on page 1. There is a thread for Canadian M9 users here in the general section. Maybe you can find one of the needed files over there. Otherwise you'll need to get S-OFF since flashing an older RUU isn't possible with S-ON.
[One (M9) General] zzzer51:
Thanks for you reply.

I have checked most of the M9 Canadian thread, with no luck.

I guess I'll have to S-OFF indeed!
[One (M9) General] Flippy498:
Depending on the place you live at you may want to contact efrant (one of the xda mods). He has java card and he already helped others to get S-OFF.
[One (M9) General] stifilz:
Tahdah :D

https://www.androidfilehost.com/?fid=24591023225177907

Anyone needs anything else just mention [MENTION=4428363]stifilz[/MENTION] in this thread :)

I have a ton of files to upload :)

see my AFH here

https://www.androidfilehost.com/?w=devices&uid=24269982087012461
[One (M9) General] zzzer51:
Wow, you're a boss!

Thanks a lot! :good::cowboy:
[One (M9) General] Flippy498:
Are there any volunteers with S-ON who want to try out whether these two RUUs are working? I don't have the time to test them at the moment...

3.36.709.3 (tested and reported to be working by doomscooter)

3.35.111.14 (tested and reported to be working by a Handy-FAQ user)

[MENTION=4428363]stifilz[/MENTION]: Am I allowed to add a direct linkt to your M9 RUU collection to post #6 of this thread?
[One (M9) General] doomscooter:
This 3.36.709.3 its taiwan region mm 6.0 or 6.01?
[One (M9) General] Flippy498:
Both are for android 6.0. HTC hasn't released any newer version for the M9 yet.
[One (M9) General] doomscooter:
Tia, sir.
[One (M9) General] stifilz:
Please do. Feel free to as my AFH to OP as well. Can pretty much get any FW and add to it. Just need to know what people need
[One (M9) General] Asselalf:
Can you get RUUs for german SKUs (111,161,206)?

Gesendet von meinem Nexus 6P mit Tapatalk
[One (M9) General] doomscooter:
Any one have create no red text for RUU/FW 3.36.709.3 / htc taiwan region?

I need no red text for this FW. Tia
[One (M9) General] Flippy498:
This is not the right place to ask this question. This is a Stock File collection and a modified aboot is definitely not a stock file. :p

Edit: So almost 10 persons downloaded the 709 RUU and no one of them is willing to report back whether it is working? :confused:
[One (M9) General] doomscooter:
Ahhh im apologize if modified request.

Im already flash FW 3.36.709.3 my friend will make no red text for FW 3.36.709.3.

FW 3.36.709.3 working in my m9u (opja10000)
[One (M9) General] doomscooter:
This no red for FW htc m9 3.36.709.3

This no red text work perfect.
[One (M9) General] Flippy498:
Please create a new thread for that modified aboot and remove the link from your post in this STOCK file collection.
[One (M9) General] stifilz:
Not my links, but found these for ya

3.35.111.14

https://www.androidfilehost.com/?fid=24591000424942551

3.35.161.12

https://www.androidfilehost.com/?fid=24438995911969361

3.35.206.13

https://www.androidfilehost.com/?fid=24438995911968685
[One (M9) General] Asselalf:
Yes i know ;) i use this AFH account with [MENTION=5872674]Flippy498[/MENTION] and 2 other guys. Do you have access for other devices? Maybe M8, M4 and so on
[One (M9) General] doomscooter:
Why FW ota from OP in

FW 3.38.710.7 and FW 3.42.708.3 espesially radio.img not function?

My M9 is gsm only M9u opja10000

Its weird radio from 3.38.710.7 and 3.42.708.3 make my m9 lost signal.

But radio from FW ota OP likes 401, 617, 709 abd 771 working well.

Any solution?
[One (M9) General] Kratos90:
Hi, is it possible you have access to Telstra .841 RUU, would appreciate it if you did. Thanks in advance either way :good:
[One (M9) General] Derekjjm:
EE UK RUU Htc one M9

Hi Everyone,

I have recently bought a HTC One M9 locked to EE, however trying to root it, it is now stuck in bootloop and as it is currently S-on I was wondering if anyone had the Marshmallow Rom for below?

version-main: 3.35.61.14

version-baseband: 01.01_U11440792_95.00.51130G_F

version-bootloader: 1.0.0.0000

mid: 0PJA10000

cid: ORANG001

Even just the boot.img might help

Thanks!
[One (M9) General] Warlock5822:
Thank you. Been searching for ages for these files... hopefully they'll help in my never ending quest to return my phone baxk to stock, only to realise that I want to root again sometime in the future xD
[One (M9) General] pol saret:
I like it
[One (M9) General] HC4Life:
I had the same issue with last superSU, now phone doesn't boot, which is the last RUU for cid BS_US002?

Thx.
[One (M9) General] teddy0209:
Supersu creates a backup of boot.img in /data.

You have start clean to be able to flash/use supersu after 2.65 on the M9...
[One (M9) General] HC4Life:
But i don't have OS installed...:(
[One (M9) General] teddy0209:
Don't know how you ended up without an OS, but don't you have a nandroid backup or something?... Aside from ruu's, you can also restore using twrp backups that matches your firmware...
[One (M9) General] HC4Life:
I tried the twrp backup and still doesn't work...Where is the RUU for cid BS_US002 with 3.35.617.12 firmware?
[One (M9) General] HC4Life:
I tried this RUU:

RUU_HIMA_UL_M60_SENSE70_ATT_MR_NA_Gen_Unlock_3.35.617.12

but it doesn't work on my pc running W10 pro, it doesn't start...:(

I need the RUU.zip of this stock rom.

Edit: Hey stifilz...can you get me this one?

Thx.
[One (M9) General] HC4Life:
I already solved it!

Thx anyway :)
[One (M9) General] Flippy498:
The Hima_WHL (Sprint Version) isn't supported here. There is a dedicated forum for the Sprint One M9 which can be found with the device search function. Besides HTC provides RUUs for its US carrier devices on its own website so you may want to take a look at that site, too.

Edit: And please don't cross-post the same question in several threads. That's considered as rude behavior on xda. (Not to mention that cross-posts clutter up the forum...)
[One (M9) General] ITheLivingProof:
#1031

Good morning, I'd like to know if you can help me get the correct RUU for my device please. Thanks in advance

Kernel: lk

product: htc_himauhl

version: 1.0

version-main: 2.9.719.5

boot-mode: download

version-baseband: 01.04_U11440601_71.02.50709G_F

version-bootloader: 1.0.0.0000

mid: 0PJA10000

cid: OPTUS001
[One (M9) General] Flippy498:
I doubt that this is your real firmware version since your CID belongs to the SKU 710 and as far as I know 719 doesn't even exist. ;)

As written in the OP you might want to take a look at my google sheet. There you will find the information and the RUU you need.
[One (M9) General] ITheLivingProof:
I made a mistake it's 710
[One (M9) General] jackblk:
Flippy, i have one question through. I have Sprint 3.41.651.13 (before this version), i know it's sprint. The OTA hit me up just few days ago and i tried to update it while rooted and xposed (stupid me). Now i'm having a 3.35.401.12 firmware which is international. I'm trying to install LeeDroid ROM but i get no cell service (probably firmware problem).

I looked up your spreadsheet and see that my device is 0PJA20000 which is CDMA, but i was using GSM the whole time OK with my local SIM card. What should i do to get my device to work? I want to install LeeDroid ROM through, but it just doesn't work to me. Any work to make it work?

Thanks for your help
[One (M9) General] Flippy498:
I don't support sprint firmware since this is the international forum of the M9 and there is a dedicated sprint M9 forum here on xda.

I'm not 100 % sure but as far as I know GSM firm- and software is not compatible with CDMA hardware and vice versa. Therefore I don't know whether you can actually recover your phone. I assume it's a paperweight right now. (Sidenote: Did you really flash the international firmware or are you confusing the rom base with the currently installed firmware version. Look at the RUU tab of my google sheet to learn the difference between those two if you don't know it already.)

The spreadsheet with the CIDs, SKUs and MIDs isn't mine. It's sneakyghost's and behold_this work.

Since I'm from Europe I never had to deal with CDMA phones. As far as I know you can use them on GSM networks but they don't support LTE or 3g. But this knowledge is based on information I found on the internet and not based on experiences. Therefore I could be wrong.

The loss of the imei and the mobile reception happens on custom roms that have a lower base version than your phone. There is a custom kernel that can solve that issue on any 3.x firmware which is not 3.35.x. However that kernel won't be able to recover your phone if you flashed an incompatible firmware.
[One (M9) General] jackblk:
Hey there, thanks for your answer. I just ran RUU from HTC official RUU downloads, Sprint version of course. It now detects my IMEI, probably works fine by now. Thing is, my phone WAS unlocked, but now it's Simlock Enabled. Why is that and is there any fix?

Thanks again :D
[One (M9) General] Flippy498:
In that case you probably did not flash the international firmware and only confused rom base and installed firmware. You could've used the kernel I mentioned earlier, too.

There are two different unlocks. The bootloader unlock and the sim unlock. Unlocking the bootloader doesn't mean that you unlocked the sim lock and vice versa. Many people have/had problems with those terms since HTC sells sim unlocked phones - like the international M9 - and the dev edition which is bootloader unlocked.

I never owned a sim locked phone and therefore can't help much. But as far as I know those locks are connected with your IMEI and not your firm- or software. In other words if it's sim locked now it never was sim unlocked before. However I'm not an expert and you might better contact sprint's support and/or request an unlock code.