yashsingh1/xdaforums huggingface dataset:
[One (M9) Android Development] Sneakyghost:
Not sure why you'd get a signature error if your device is S-OFF.

try to additionally set it to superCID.

Also you could try to flash the RUU again now, because it might have been a decryption issue stemming from old Aboot/HOSD/Hboot not knowing the current decryption key.

Now, since you flashed the decrypted firmware solo, thus having updated hboot/aboot/hosd to latest manually, it could well be possible that that same RUU now flashes without a hiccup.

Just guessing though. I can't even remember if the M9 was already Aboot/Hosd based or still the old Hboot lol.

Currently working in my flat. Can't go boot that thing and go check stuff out. No time for that old stuff. Sorry.

Maybe others have better advice.
[One (M9) Android Development] nkk71:
Decryption keys were changed between 3.xx.xxx.x and 4.xx.xxx.x on the M9 (hosd based by the way) ;)

M9

1.xx.xxx.xx -> Not encrypted

2.xx.xxx.xx -> 0PJA_keyfile_2.bin

3.xx.xxx.xx -> ^^ same

4.xx.xxx.xx -> 0PJA_keyfile_4.14.617.6.bin

flashing an encrypted RUU on a device with a different decryption key, does not work, you'll first need to flash unencrypted firmware, then you can RUU
[One (M9) Android Development] Sneakyghost:
tp_SYN3708.img flash fail

Hey guys, since it has happened a few times now, I'll leave this note here. If people come with the tp_SYN image not flashing, direct them to this post (if I'm not around myself. Thanks.

Some people have lately encountered flash fails due to tp_SYN3708.img not flashing. Please be aware that that is NOT due to my modified firmware packs. This also happens with a RUU. A RUU might just show a different error. My current theory is, that the touch controller from synaptics is one of those cheapo chips HTC sometimes likes to buy to save money. All reports I have gotten so far where final. No recovery. Means, hardware broken. If you, or anyone you are in contact with, has managed to recover that Synaptics controller (a.k.a make it flashable again), let me know. So far, nobody I spoke to has managed. In my humble opinion, this is a warranty case.

But before you go bug HTC, you can also decide to let it be. Why? Because the write-operation fails, yet the controller remains fully functional. Means, it cannot be updated anymore but it does its job. Since the touch panel receives only very few updates anyway, and those usually around the first few months of a new phone's lifecycle, a now-failing update pretty much doesn't matter.

If you encounter these flash fails, open the firmware.zip with 7zip (or a program you KNOW can do proper, flashable zips), and simply remove tp_SYN3708.img. Then click save and flash the resulting zip. It will now go through without an error.
[One (M9) Android Development] :
I want quick answer

If i have at&t variant and my bootloader is unlocked and have s-off , then should i download the AT&T version firmware or the Unlocked version firmware ???

Do i have to relock my bootloader before flashing RUU ??

If I Flash The NoWipe TWRP Flashable ZIP having android marshmallow , then will i be able to clean flash VENOM ROM after that as it requires stock marshmallow firmware pre-installed ???
[One (M9) Android Development] xunholyx:
#1: It's up to you. If you are superCID you can flash either. Both will work.

#2: No you don't. S-Off allows you to bypass the need to re-lock

#3: Yes. And if you are already using ViperOneM9 you should just dirty flash it. If you are planning to clean flash, you could also use the wipe version since a clean flash will wipe your phone anyway
[One (M9) Android Development] :
Thanks Man :good:

I am new to HTC devices so i asked noob questions like that in many forums . And finally i found a detailed answer here .

.

.

One Question :- If i change my device to developer edition from at&t and my phone is s-off and unlocked , will i be able to flash a full stock ruu from htc website or will i have to flash any unsigned zip ???

See this Thread also .
[One (M9) Android Development] xunholyx:
You can use either. Since you are planning on clean flashing the ROM, I would use the official RUU (it will wipe your phone)

Also, I see you were asking about the "no red text" firmware from the thread you linked. Don't use that. Besides the one offered there in the OP being very old firmware, flashing a hex edited aboot can be dangerous and lead to a brick. Read here for more information on that (scroll down to "Red Text Removal" at the bottom of that post)
[One (M9) Android Development] :
Okay .

Then I Am Going To Clean Flashi A Full Original RUU With Red Text . Just Want To Update To Marshmallow Firmware In Order To Install Venom ROM .
[One (M9) Android Development] Shmichaelman:
Can i pay one of you guys to help me? lol

I have a HTC one m9. It is s/off. All I want to do is return my phone to stock so I can update the software.

My current software is : 3.35.401.12

CID: 11111111

I think the bootloader is locked too. I honestly have been trying to update my phone for months. I bought my phone off of eBay. I have spent many hours reading thread after thread trying to understand how to update using the command prompt. I'm at a complete loss. I can use the command prompt and what not just fine but I am afraid I'm going to screw my phone up somehow. I can follow instruction but dam I'm confused. Any help would be much appreciated. Thanks

MIKE
[One (M9) Android Development] Sneakyghost:
Please provide the output of the command "fastboot getvar all" run in download mode.

It'll help people determine what is wrong and what to do to update.

Note: please remove IMEI and serial from that output prior to posting it here.
[One (M9) Android Development] XsaucerX:
i need to have the stock recovery to flash the full wipe firmware pack? the thread says

"Full Stock WIPE ZIPs:

Nothing removed - Everything stock! This type of zip also re-flashes the /data partition with HTC’s DZDATA files (meaning you loose everything on your internal SDCARD). Also replaces the Kernel, Ramdisk, recovery and Splash1 with latest stock images! The /system partition will not be touched. (Else this would be a RUU.zip). It also includes the “Apppreload.img” with all the carrier-bloatware.

Be sure to put a ROM onto your EXTERNAL SD before proceeding with a Full WIPE ZIP! Else you can also ADB push a ROM in recovery mode after fastboot reflashing a recovery. The newer TWRP variants also support a normal MTP connection and might support USB mass storage at a later stage."

does that means that i lose the twrp recovery(thats what i want anyways) or i need to flash stock recovery before i flash the firmware pack?
[One (M9) Android Development] shpitz461:
if you get a stock ZIP and it doesn't say it has TWRP, then it will flash stock recovery. You can also flash TWRP separately afterwards.

the ZIp that says full wipe will also wipe your internal SD card to be stock, and you'll lose everything you had on the internal SD (pictures/videos/documents, app data, etc...)
[One (M9) Android Development] Shmichaelman:
I can't seem to figure out how to post a picture of the getvar. I have tried to use the app too. Any help would be much appreciated. Also, I am serious about paying someone to walk me through the process of getting these phones back to stock so I can update through AT&T. I have two phones that are exactly the same. HTC One M9, LOCKED, S-Off

Thanks again. I apologize for my lack of skills

---------- Post added at 06:20 PM ---------- Previous post was at 05:59 PM ----------

[IMG="getvar"]https://ibb.co/kztLkG[/IMG]

https://ibb.co/kztLkG

hopefully this link works
[One (M9) Android Development] Twero:
can some tell. can i still recover my phone

i have done many things.

i forgot im on S-ON

what i see on my bootloader is

rom MODIFIED

then

UNLOCKED

then.

S-ON

when i tried to flash s-off firmware nowipe

this shows

C:\Android\com>htc_fastboot flash zip M9_3.38.502.12_NoWipe_TWRP3020.zip

htc_fastboot v3.0.9.2 (2015-05-29)

target reported max download size of 800000000 bytes

sending 'zip' (65805 KB)...

OKAY [ 4.756s]

writing 'zip'...

(bootloader) HOSD CL#682052

(bootloader) GPT is up-to-dated. [17408]

(bootloader) Perform pre-update

(bootloader) ERR ZIP signature checking failed...

(bootloader) ERR [SD_UPDATE_ERR] Not allow flash image except boot/recov

(bootloader) ery/system

(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 14

(bootloader) ERR Update zip file failed.

(bootloader) Update zip file OK

(bootloader) ERR ZIP ERROR CODE, 14

(bootloader) end@Done

FAILED (remote: 14 RU_ZIP_INFO_ERROR android-info missing or malformed )

finished. total time: 8.570s

htc_fastboot finished. total time: 9.454s

can some tell. can i still recover my phone T_T

badly needed. this isnt mine.
[One (M9) Android Development] Black-FR:
As you are s-on, you are here in the wrong thread and can't use any of the files, which are provided in the thread here.

But with the information and files from this thread, you should be able to recover the device:

https://xdaforums.com/one-m9/general/stock-nand-backup-ota-update-collection-t3132698/post64299771
[One (M9) Android Development] Twero:
Thank you very much.
[One (M9) Android Development] Mostick_13:
Hi every one! I am from Ukraine and sorry for my english :)

I tried flash my M9 using a instruction from the first post of this thread.

And after step 3 ("fastboot flash zip Firmware_xx.zip") in console i received a message:

"

PS D:\fastboot_adb(1.0.39)_190417_r26.0_rc1> fastboot oem rebootRUU

...

OKAY [ 0.057s]

finished. total time: 0.058s

PS D:\fastboot_adb(1.0.39)_190417_r26.0_rc1> fastboot flash zip Firmware.zip

target reported max download size of 800000000 bytes

Invalid sparse file format at header magi

error: write_sparse_skip_chunk: don't care size 2164446778 is not a multiple of the block size 4096

sending sparse 'zip' 1/1 (0 KB)...

error: write_sparse_skip_chunk: don't care size 2164446778 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 2164446778 is not a multiple of the block size 4096

OKAY [ 1.011s]

writing 'zip' 1/1...

(bootloader) HOSD CL#671758

(bootloader) ERR lzipv1_init : Cannot read header len bytes

(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_m

(bootloader) 69zhF

"

And on the screen of my phone i see full progress bar and a red message "Security warning If you flash this phone...".

I was waiting few minutes and then i went to search information about this.

I checked thirty post with "Error handlers" and dont found match.

Then i tried reboot my phone (hold power button), but i have no result.

Currently my phone is hot and a dont know how reboot him. That is brick? : о
[One (M9) Android Development] Sneakyghost:
Use correct fastboot.

You can use the fastboot from my batch tool in post 4.
[One (M9) Android Development] Mostick_13:
Thanks for the answer.

But how can I to do this if fastboot dont see my phone? And my computer dont see the phone.

I pressed VolumeUp and Power, and now I see that:
[One (M9) Android Development] milos78:
Where are links to download.

For example I need:

M9_4.28.401.3_WWE_TWRP3100_NoWipe\

I see that as test on the first page, but can't find link
[One (M9) Android Development] xunholyx:
https://docs.google.com/spreadsheets/d/1ZaiJ3F_f76sVa4daU5H62OYi5Bj23LEBBv4xDTQ8y-M/pubhtml
[One (M9) Android Development] milos78:
I have a problem with my HTC m9.

For no reason it started to indefinitely reboot.

I didn’t flash any firmware recently and I was at last stock.

So at first I wanted to flash via SD Card, but problem is that I cannot get to download mode.

All I can go into is bootloader mode, if I choose to restart in download mode or in recovery mode, I am in the loop again.

Firstly I wanted to flash ROM with the Rom Update Utility. But for some reason it sees that my phone battery is under 30%, and won’t run, and I have charged it to 100%.

So then I have installed the BatchTool_1.3.2_M9.exe, to try with it but I don’t know how to flash and what to flash.

I have prepared 3 files for my phone:

M9_4.28.401.3_FullStock_wipe.zip

M9_4.28.401.3_NoWipe_TWRP3100.zip

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_2.zip

Problem is that when I type the command fastboot, cmd window just closes and nothing happens.

Then I was experimenting with the options, so I have choose [10] Fastboot flash kernel, Erase Cache optional

I found the boot_signed.img in the M9_4.28.401.3_FullStock_wipe.zip, copied it to C:\Android\partitions and run option [10]

It went well, then I deleted the cache… now phone is not in the loop, it is just stuck at white HTC logo.

I need to press all 3 buttons to get back to bootloader mode…

Anyway I want to flash all ROM if possible.

What command I need to type and where?

I was trying at the main Window but cmd just exists.

Then I was experimenting with options 3 and 4, but then I type fastboot – command is not recognized.
[One (M9) Android Development] milos78:
Finally I found out that I need to type htc_fastboot and not just the fastboot.

But the error message is :

Flash zip not support in BL, please go download mode

I was trying to flash all 3 files above, the same message about DL mode which I can not enter so I was trying to flash like this..
[One (M9) Android Development] milos78:
Anyone with some idea? Or it is a hardware problem?
[One (M9) Android Development] Sneakyghost:
DL mode = flash zips

BL mode = flash images

To fix broken DL mode, try to find the respective guide, its something like flashing the HOSD image (that is the download mode) manually in BL mode, something like "htc_fastboot flash hosd hosd.img" - not sure how exactly. Also, that image needs a second image from the RUU to go with it, some security related image, or else you risk a brick.

You really need to search for a good guide as tinkering with this fragmented, incomplete information can ultimately kill your device. I'm just pointing you towards the correct search terms.

If nkk71 was still alive, I'd quickly have asked him since he knew all that stuff by heart, but alas! The great Lebanese is no more. Rest in peace, brother.
[One (M9) Android Development] milos78:
Thanks, just one more think to make clear.

When you say flash zips or flash images, this all is in zip but I guess images are inside, so that is why it doesn;t work.

Any why is that strange with battery, where it says that it is under 30%, and it is at 100%.
[One (M9) Android Development] Sneakyghost:
DL mode = flash the zip that contains the images.

BL mode = flash (most) of the images from inside a firmware.zip separately, eg: recovery.img or boot.img or hosd.img....

I have no idea about your battery issue. Maybe your device is badly damaged. Maybe the phone can't access the partition where the Battery stats are being saved. Maybe it's just broken software all over the place, but i'd rather think your device has a broken NAND chip, which means it's ready for the trash can.
[One (M9) Android Development] milos78:
Thanks... Yes maybe it is broken, but I want to try it.

So to fix a download mode I need to find a corresponding hosd image.

This is the ROM for my phone:

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_2.zip

Is it possible to extract that somehow?

---------- Post added at 06:38 PM ---------- Previous post was at 05:54 PM ----------

I have done it.

htc_fastboot flash hosd hosd_signed.img

I found the hosd_signed.img from the M9_4.28.401.3_FullStock_wipe.zip

But nothing is changed.

When I choose DL mode I only see a black background and flashing HTC logo...

Can I flash all of this from M9_4.28.401.3_FullStock_wipe.zip and how to do so?

---------- Post added at 06:51 PM ---------- Previous post was at 06:38 PM ----------

I have flashed all I could

htc_fastboot flash hosd hosd_signed.img

htc_fastboot flash boot boot_signed.img

htc_fastboot reboot-bootloader

htc_fastboot flash recovery recovery_signed.img

Still the same, no DL mode...
[One (M9) Android Development] Sneakyghost:
Try also flash Aboot/Hboot, whichever applies (forgot whether the M9 uses Aboot or Hboot). But be aware that if that fails, it'll kill your phone too.
[One (M9) Android Development] milos78:
I have done all I could.

Flashing went well...

For some it didn't work as it say there is no such partition names.

So since all is the same, I can not enter DL more or Recovery mode, does this means that there is a hardware problem and that I don't need to try anything else.

This is what I did:

htc_fastboot flash aboot aboot_signed.img

htc_fastboot flash adsp adsp.img

htc_fastboot flash apppreload apppreload.img

htc_fastboot flash boot boot_signed.img

htc_fastboot flash bootlocker bootlocker.img

FAILED (remote: partition [bootlocker] doesn't exists)

htc_fastboot flash cir cir.img

FAILED (remote: partition [cir] doesn't exists)

htc_fastboot flash cmnlib32 cmnlib32.img

FAILED (remote: partition [cmnlib32] doesn't exists)

htc_fastboot flash cmnlib64 cmnlib64.img

htc_fastboot flash cota cota.img

htc_fastboot flash cpe cpe.img

htc_fastboot flash dzdata_16g dzdata_16g.hdr

FAILED

htc_fastboot flash dzdata_16g dzdata_16g.img

FAILED

htc_fastboot flash dzdata_32g dzdata_32g.hdr

FAILED

htc_fastboot flash dzdata_32g dzdata_32g.img

FAILED

htc_fastboot flash dzdata_64g dzdata_64g.hdr

FAILED

htc_fastboot flash dzdata_64g dzdata_64g.img

FAILED

htc_fastboot flash gpt_main_32g gpt_main_32g.img

FAILED

htc_fastboot flash gpt_main_64g gpt_main_64g.img

FAILED

htc_fastboot flash hosd hosd_signed.img

htc_fastboot flash hyp hyp-8994-1.img

htc_fastboot flash keymaster keymaster.img

FAILED

htc_fastboot flash modem_st1 modem_st1.img

htc_fastboot flash modem_st2 modem_st2.img

-htc_fastboot flash persist persist.img

htc_fastboot flash pg2fs pg2fs_ship_signkey.img

htc_fastboot flash pmic pmic-8994-1.img

htc_fastboot flash radio radio.img

htc_fastboot flash rcdata rcdata.img

htc_fastboot flash recovery recovery_signed.img

htc_fastboot flash rpm rpm-8994-1.img

htc_fastboot flash sbl1 sbl1-8994-1.img

htc_fastboot flash sdi sdi.img

htc_fastboot flash sensor_hub sensor_hub.img

htc_fastboot flash tp_MXM11876 tp_MXM11876.img

FAILED

htc_fastboot flash tp_SYN3351 tp_SYN3351.img

FAILED

htc_fastboot flash tz tz-8994-1.img
[One (M9) Android Development] Sneakyghost:
You're asking for a definite answer, which I can't give. I even couldn't tell if it was my own device. I'd probably send it in for warranty as long as I have any, or if warranty isn't possible, search for eBay repair shops that offer to fix such issues.

Or maybe just trash it, be angry for a week or so and then buy a new phone.
[One (M9) Android Development] vizzy:
Is Nkk71 the same as NikHill or something that used to make there own ROMs for devices like HTC Incredible S? As that was my first time! Thanks
[One (M9) Android Development] Sneakyghost:
No. Nkk71 was a great mind who contributed a lot more than many others, particularly hard to solve problems were often solved by him, but he's mainly been working in the background, being in touch with most of the relevant developers, but as far as I know he's not really released his own ROM (but don't quote me on that). Please do refer to the obituary on the XDA portal for details on his projects.
[One (M9) Android Development] vizzy:
Will do, sorry to hear for him. Thoughts are with him and his family. Thanks
[One (M9) Android Development] arif9m9:
I just bought a brand new HTC One M9. Unfortunately, it's an AT&T model, and I can't update the firmware because I live in the UK. Its current firmware version is 2.11.502.18. Would it be okay to flash the newest international firmware (4.28.401.3), or should I flash every international firmware bit my bit? I intend to install a custom ROM after flashing the international firmware.
[One (M9) Android Development] lucyr03:
If you're s-on you can't convert it or flash any custom ruu or firmware.

You can flash only at&t signed ruu.
[One (M9) Android Development] arif9m9:
I'm already S-OFF
[One (M9) Android Development] Sneakyghost:
Also, the M9 ATT variant had some issues with upgrading from 1.xx to 2.xx to 3.xx to 4.xx somewhere along those major updates.

A full conversion to a WWE model should technically be possible (don't think ATTs radio is different from the EU radios) by first setting the phone S-OFF, then use just any WWE RUU (latest preferred) and update from there on.

However, this is beyond the scope of this thread.

The requester may please refer to the respective conversion threads.

Then follow my above advice.
[One (M9) Android Development] lmcmil:
Sneakyghost sorry to bother, any special process to downgrade from 4.30.617.2 to 4.28.401.3 or since i'm already on 4.xx just need to flash the 4.28.401.3 zip file?

Thanks in advance
[One (M9) Android Development] Unoath:
I'm new to the M9 and need to know what fw I need to update it from the one I have on it now which is the "No Red Warning 3.35.401.12 FW". Do I choose the 4.28.401.3 No Wipe International in the first section? Should I update TWRP first then flash fw and flash a new ROM?
[One (M9) Android Development] Sneakyghost:
Sell that piece of junk. [emoji16]

Just set it S-OFF and then flash that newer firmware. You don't need to update TWRP first, as it gets replaced by the new firmware anyway.

You can use firmware which has TWRP integrated (my no-wipe packages do) or the full wipe package, which includes stock recovery.

Since my packages are quite old by now, I'd suspect TWRP to be available in a much newer version today, so, no matter what package type you choose, you'll end up updating recovery after the firmware flash anyway...
[One (M9) Android Development] Unoath:
Thank you very much! Yeah I am getting the new Note 9 I just wanted to get this up to date lol.
[One (M9) Android Development] rapboy23:
ı have htc m9 download mode nope htc logo bootloop stock recovery and twrp ınstalling but internal storage 0mb

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot getvar all

(bootloader) version:0.5

(bootloader) ramdump-mode:false

(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:HT57JYJ04789

all:

finished. total time: 0.161s

---------- Post added at 04:47 PM ---------- Previous post was at 04:44 PM ----------

my device unlocked and s-off
[One (M9) Android Development] Tecardo:
What you mean by storage 0mb?
[One (M9) Android Development] tahadluffy:
help !!!!!

i have S-OFF, htc_himaulatt, CID-11111111

C:\platform-tools> fastboot flash zip rom.zip

Invalid sparse file format at header magic

error: write_sparse_skip_chunk: don't care size 1397934669 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 597936717 is not a multiple of the block size 4096

Sending sparse 'zip' 1/3 (781248 KB) error: write_sparse_skip_chunk: don't care size 1397934669 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 1397934669 is not a multiple of the block size 4096

OKAY [ 54.408s]

Writing sparse 'zip' 1/3 (bootloader) HOSD CL#682500

(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_j

(bootloader) w4yuu

(bootloader) ERR [SD_UPDATE_ERR] update_fb_ZIP_buf: can not find ZIP hea

(bootloader) der

(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 22

(bootloader) ERR Update zip file failed.

(bootloader) ERR ZIP ERROR, exit read zip loop

(bootloader) Update zip file OK

(bootloader) ERR ZIP ERROR CODE, 22

(bootloader) end@Done

FAILED (remote: '22 RU_HEADER_ERROR ')

Finished. Total time: 193.654s

im tired helppppp
[One (M9) Android Development] gregsarg:
Something is wrong with your .zip file.

Check your md5 sum for corruption of the download....g