yashsingh1/xdaforums huggingface dataset:
[HTC One A9] Kauser Ahmed:
I recommend that you downgrade to 1.27.707.XX. The ruu and firmware doesnt always work in case of the Indian model. Please follow the instructions in post#2. Downgrade first and keep updating from the phone. This will solve the problems.
[HTC One A9] megatomic:
[MENTION=4654136]alray[/MENTION], my phone is S-Off and boot loader unlocked running the latest HTC USA unlocked ROM. I have downloaded the last Marshmallow ROM for my phone from your Android Filehost site, it's in zip format and on my SD Card. When I go to flash that file to get my firmware reverted to Marshmallow so I can install LOS it fails with the error message that signature verification failed. Which is what I'd get if I just tried to run the RUU I suppose. For the life of me I can't figure out how to get the firmware extracted from the zip so I can flash it and move on. Can you give me some pointers? Thanks in advance, sir.
[HTC One A9] alray:
Use this tool to decrypt the ruu

https://xdaforums.com/chef-central/android/tool-universal-htc-ruu-rom-decryption-t3382928

Once done you'll have a folder named "firmware". Zip all the files contained in this folder together (do not zip the folder itself) and name your zip file "firmware.zip". Then flash the firmware on your phone.
[HTC One A9] megatomic:
Unfortunately I get the same signature verification failure after following your procedure [MENTION=4654136]alray[/MENTION]. This is so frustrating.
[HTC One A9] alray:
Your phone is S-OFF right? What is your CID and MID?
[HTC One A9] megatomic:
[MENTION=4654136]alray[/MENTION]:

CID is BS_US001

MID is 2PQ912000

Yes the phone is S-Off and bootloader is unlocked.

---------- Post added at 11:01 PM ---------- Previous post was at 10:26 PM ----------

So I've really messed it up now. I flashed twrp to the phone so I could try to use that recovery to install the firmware file. That failed. Now I can't replace that recovery file with the latest as the RUU decrypt tool doesn't decrypt the latest RUU file, says it's missing the key. Now my phone is basically worthless. Ugh.

Phone has recovery.img file from 6.0.1 and firmware from 7.0 and bootloops constantly unless I interrupt the cycle by entering download mode. Download/Bootloader/Recovery mode all seem to work okay. What should I do guys?
[HTC One A9] alray:
The key for A9 Nougat ruu is available in the ruu decrypt tool thread, it's in there first page (the first post from captainthrowback after nkk71 examples)
[HTC One A9] megatomic:
Ok, so I should be able to get the latest recovery.img. Thanks for that. Once I get the recovery back though since I can't seem to be able to get a working firmware.zip file to flash back to 1.5x.x I won't really gain myself much. Should I just put the phone in a drawer and wait for HTC to release the source code and the LOS maintainers can build for it?
[HTC One A9] alray:
I can't understand why it is not working for you :( we must have missed something. Is it the same when trying to flash with fastboot in ruu mode?
[HTC One A9] megatomic:
I am not sure I did that. What would I be doing exactly? I apologize for my ignorance, doing this on my Oneplus One was so much easier...
[HTC One A9] alray:
reboot in download mode then

fastboot oem rebootRUU
fastboot flash zip firmware.zip
fastboot flash zip firmware.zip
[HTC One A9] megatomic:
This worked! Or it seems like it worked. I reflashed TWRP, now should I install LOS and OpenGapps or do I have to do something else in between yet?
[HTC One A9] alray:
Nice to hear :highfive:

I don't see any reason to flash something else before flashing your TWRP/LOS/Gapps

At this point flashing the ruu will only update your system partition which isn't really needed since you'll flash LOS on it.
[HTC One A9] RJC82:
Hello,

I'm new to the HTC phones. I got one from a friend, that doesn't seem to be working any more. It is stuck in boot loop, after the official Nougat OTA update. I can get into Download mode and recovery. I tried installing firmware and 2.17.401.2 RUU , but still stuck in bootloop. Have no clue what the CID is, since I got it this way and I don't think USB debugging was ever on.

In HTC Sync I get the info that I'm on 2.17.401.2 (in download mode), but no Android or Sense version. Already did factory reset before and after.

Any help is appreciated.
[HTC One A9] alray:
USB debugging doesn't matters, it's only needed if using adb once booted in the OS, not required for fastboot commands neither for adb commands in custom recovery.

The RUU installed fine or it gave some errors?

You can check your cid with "fastboot getvar cid" and your mid with "fastboot getvar mid".

Is the phone s-off or s-on? Bootloader is unlocked or locked?
[HTC One A9] RJC82:
Thanks for the reply. I got the fastboot working and did the getvar all command, it's CID HTC 034 and MID 2PQ910000. Also 'version main: 2.17.401.2' and baseband from the RUU I flashed from the opening post here.

I renamed the file to 2PQ9IMG.zip and as soon as I got into download mode, it asked to flash (vol up to flash, vol. down to cancel). One reboot and all the files were processed to 100%. No errors, as far as I have seen.

Download mode tells me htc_hiaeuhl PVT S-On and *** LOCKED***

I contacted HTC, but they don't have a clue what to do. It was after their official OTA that it went bad, but they don't want to help, it seems.
[HTC One A9] alray:
If the ruu flashed fine and it's still bootlooping it might indicate an hardware problem... :(

Is it still under warranty?
[HTC One A9] :
I think this might be a kind of a n00b question. When I bought my HTC A9 about 9 month ago I immediately installed Cyanogenmod and was happy with it ever since, never bothered to take a backup of the original android.

Now I'm on the 2.17.401.2 RUU since my phone is cidnum: HTC__034 living in europe/germany. I'm just wondering: If I let the phone search for updates it always says that the phone is up to date and there are no updates available. As I understand it, HTC still only offers Nougat 7.0 but shouldn't it provide me with security patches? The security patch level is still on February 1st, 2017.
[HTC One A9] RJC82:
It says DONE in the end, but still boot loop. I can't unlock the boot loader like this or install TWRP, right?

Hardware problem as in flash memory breaking down or something? Cause it sometimes boots a little further, but not into Android until now.
[HTC One A9] anunknwon:
US - New update just out 2.18.617.21 - 485.22MB a big file.
[HTC One A9] megatomic:
Maybe I'm confused but I think this firmware has been out since April. HTC One A9 Updates & Downloads
[HTC One A9] gaurav tandel:
Please..can anyone upload firmware for HIA_AERO_UL usa unlock of marshmallow??

Thread has ruu not firmware..please upload it!!

I want to downgrade my phone so need to dow grade my firmware first.
[HTC One A9] alray:
you can extract it from the ruu using the ruu decryption tool. Will give you an unsigned firmware (s-off required).
[HTC One A9] gaurav tandel:
Sir,im bootloader locked no root.

And i did decrypt that exe and get firmware folder.but unexpactadly it's 675 MB.normally its about to 100-200 MB!! So sir,what to do next?

Its a folder not a zip sir!
[HTC One A9] alray:
Bootloader locked or unlocked doesn't matters, root neither. You need S-OFF.

zip the files
[HTC One A9] gaurav tandel:
So with s-on i can not do anything?
[HTC One A9] alray:
You need to find a signed firmware, decrypted firmware only works when s-off.
[HTC One A9] st40611:
2.18.617.30 is now available: http://www.htc.com/us/support/htc-one-a9/news/
[HTC One A9] nogloww:
firmware ok but ruu won't flash

I am able to flash the latest firmware for the HIA_AERO_UL. When I flash the ruu or try to run the .exe file I get errors that send it into a bootloop. The first time I flashed the firmware I got this error:

FAILED (remote: 90 hboot pre-update! please flush image again immediately )

so I flashed it again and it worked fine. But the rom won't flash. It says:

C:\adb>htc_fastboot flash zip ruu.zip

htc_fastboot v3.0.9.2 (2015-05-29)

target rom version: 2.18.617.1

found large-zip header, file count: 23

processing file 1/23...

sending 'zip' (128630 KB)...

OKAY [ 6.190s]

writing 'zip'...

(bootloader) HOSD CL#861328

(bootloader) ERR CID not matched

(bootloader) ERR [SD_UPDATE_ERR] CID NOT ALLOWED

(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 7

(bootloader) ERR Update zip file failed.

(bootloader) Update zip file OK

(bootloader) ERR ZIP ERROR CODE, 7

(bootloader) end@Done

FAILED (remote: 7 RU_CID_FAIL cid in android-info mismatched )

finished. total time: 9.349s

htc_fastboot finished. total time: 13.366s

C:\adb>fastboot getvar all

(bootloader) kernel: lk

(bootloader) product: htc_hiaeul

(bootloader) version: 1.0

(bootloader) max-download-size: 1164800000

(bootloader) serialno:

(bootloader) slot-count: 0

(bootloader) current-slot:

(bootloader) imei: 352637070569184

(bootloader) version-main: 2.18.617.10

(bootloader) boot-mode: download

(bootloader) version-baseband: 1.1.U40062.1@61214

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 2PQ912000

(bootloader) cid: CWS__001

It just bootloops and sometimes I get the "this build for development purposes only" before it bootloops again. Sometimes it tells me my devices is encrypted then when I enter the password it tells me it has to factory reset, but then just bootloops again. What can I do to get the ruu to work too?
[HTC One A9] Dragonkind:
Try changing this to BS_US001?
[HTC One A9] nogloww:
That's exactly what was wrong, thanks!
[HTC One A9] abumaha:
what mm rom takes for thi smobile to download
[HTC One A9] StarSage:
So, How Do I Update Firmware (Marshmallow to Nougat) ?

I've read the initial posts for this section.. and understand I can't just flash an RUU if my device has factory stock firmware (v 1.2 here). And I've stared at #4 on the list (until I was cross-eyed!). But how the heck do I update just firmware alone?

If I search outside of XDA the known universe refers to all ROMs as 'firmware'. I suppose if this were easy everyone would do it... I'd like to think I'm not too far behind (if I can set up dual boot with Windows 10 & Ubuntu!). But, is there simply a file I can just download and copy onto my SD card.. and load into Recovery Mode? Do I seriously need to have the periodic table of elements memorized just to get my handset to cough up another year or two of usefulness?:eek:
[HTC One A9] alray:
You can flash a 1.xx.xxx.x ruu but you can't flash a 2.x.xxx.x (Nougat) RUU because of the new encryption key implemented in that version. The key is in the hosd.img part of the firmware. When flashing the firmware, the new hosd.img will be flashed to your hosd partition and your phone will have the correct key to decrypt newer RUU. Normally that process is done automatically when updating from an OTA update, but if you're here I suppose you can't update it with an OTA update for some reason... and must use a RUU.

You can update the firmware the same way you would flash a ruu.zip.

You can read the definition of "firmware" "software" "operating system" on google and see why it's wrong to call a rom *which is an OS" a firmware.

When speaking about htc phones:

A rom is typically only the /system partition (the OS) and the /boot partition (kernel)

A RUU = A factory image that will reset all your phone partitions back to stock

A firmware: A factory image that will reset some of your partition, excluding the /system partition. i.e: The bootloader, recovery, radio, kernel, touch drivers, hosd etc...

The firmware is flashed using fastboot in ruu mode not from recovery. Hard to say which firmware file you need without knowing any info about your phone (S-on/S-off? version-main? CID? MID?)
[HTC One A9] StarSage:
Forgive me, I was not aware the CID & MID can only be retrieved via Fastboot. I'll have to attempt to access this once I'm home tonight. I'm hoping to install Lineage OS, but how can I update the firmware using an RUU in fastboot mode.. if the RUU.exe requires a higher firmware than my handset already has? (v 1.2)
[HTC One A9] alray:
You will not upgrade the firmware using a ruu but using a firmware.zip file.
[HTC One A9] StarSage:
I have S Off and bootloader unlocked. My CID: CWS_001 My MID: 2PQ912000

The last time I tried updating my firmware using a zip was via TWRP and I received an error about Meta-Inf

I read that this refers to the updater-script file. I followed the instructions for modifying that but still could not make any progress. Is there another process I should be following?
[HTC One A9] alray:
You can't flash a firmware.zip using TWRP recovery. Firmware.zip must be flashed using fastboot in RUU mode or using the sd card method (see FAQ).

CWS__001 is at&t, I don't think at&t ever updated their A9 to Nougat... Since your phone is S-OFF, you could change your CID to BS_US001 and update your firmware using the US Unlocked Nougat firmware (2.18.617.30) and then the latest US Unlocked RUU (2.18.617.30). After the conversion from at&t to US Unlocked you'll be able to install future ota updates for the US Unlocked version.

To change your CID reboot in download mode then:

fastboot oem writecid BS_US001

Then flash the firmware using instructions from the FAQ and finally flash the RUU using the same instructions.

I'll add the 2.18.617.30 RUU.exe and firmware.zip to the OP in a few minutes.
[HTC One A9] StarSage:
Thank you so much for your help! I know that; since at&t has discontinued sales of HTC, they likely won't be offering future OTA updates. But being unlocked I could get those from HTC? I was considering loading Lineage in order to get another year or two out of my handset
[HTC One A9] alray:
If you do the conversion from the at&t version to the US Unlocked version you'll get official updates form HTC (until they drop support for the A9).

I'll add the firmware and ruu files to the op in a moment, my main hard drive failed this morning after posting my last message and I wasn't able to upload anything... At least my RAID 1 config saved my life (all my files) :victory:

Edit: files added to post #1
[HTC One A9] StarSage:
Yikes! Glad you had a backup. And now my A9 is being pissy. I can issue reboot commands from terminal but once it's in boot mode I get 'old for device' from adb terminal :(
[HTC One A9] alray:
If adb works fine when the phone is booted in the OS but you can't use fastboot command once in download mode it's a driver problem. You can check if your phone is correctly recognized by your computer when it's in download mode by going in your device manager. Make sure you have the lastest driver from HTC. You can install the latest driver by installing HTC sync manager. I would recommend to uninstall HTC Sync right after the installation but do not uninstall the HTC Driver installer nor HTC BMP driver
[HTC One A9] StarSage:
okay.. resolved the driver issue. now after I've rebooted the handset into download mode and changed my CID.. my terminal window errors during firmware flashing.. says the file is to large.
[HTC One A9] StarSage:
Tried again and it worked. But now I'm stuck on the HTC boot screen when I reboot. I've gone into recovery and have done the Wipe Data and the Wipe Cache. Still stuck in boot. Help?
[HTC One A9] StarSage:
Ran RUU.exe and it fixed my firmware too.. whoa! Now I've got Nougat :D A million thank yous!
[HTC One A9] Don Mike:
Just a little help, can someone tell me wich file do i have to flash in first time to downgrade to android 6 im currently on 7 (2.18.617.30) and i want the higest version on 6, i read the first post but there is a whole o files and ruu and i dont want made a mistake i have s-off, bootloader unlock. thanks
[HTC One A9] M.Ned:
I have a Europe S-On Unlocked Bootloader A9 with Nougat right now. I changed the main-version to 1.10.401.7 but it fails when I try to flash RUU.zip. It gives 12_ZIP error. Do I need to flash firmware file first? If so where can I find the firmware zip for 1.10.401.7?
[HTC One A9] alray:
flash the 1.57.617.60 firmware first then the 1.57.617.60 ruu.

The firmware can be extracted from the ruu using the "ruu decryption tool" <---- google search is your friend.
[HTC One A9] jaypeg123:
It works, but I changed cid to us cid, but no updates sofar..
[HTC One A9] jureca:
Ok Thanks!

Enviado desde mi HTC One A9 mediante Tapatalk
[HTC One A9] Ivanovic:
The last update for the US unlocked is the 1.12 bringing over some fixes and two more display modes. 6.0.1 is about to arrive in a week or two

Στάλθηκε από το HTC One A9 μου χρησιμοποιώντας Tapatalk
[HTC One A9] alray:
The program in question is a legit tool used in custom recovery for the One M7. What it does is changing the MID number by writing it directly in the MFG partition. Nothing suspicious but you are 100% right saying you shouldn't flash something you don't know. Using this tool on your A9 could brick it simply because the MFG partition is probably not located at the same place on the emmc, this could result with data being written on the wrong partition possibly bricking the phone forever. There is no interest of a similar tool for the A9 if the "fastboot oem wrtitemid" command isn't blocked like it was the case on the M7 for example (yes it was blocked even with S-OFF, only writecid worked).
[HTC One A9] jaypeg123:
Yes I thought so to, I have a m7 to and have a hunch that I have been on that road before with that one, this was easy peasy, it sounded to good to be true.
[HTC One A9] djmouse:
On the HTC website there's a update,been there for days 1.27. Something,it's a .exe I tried using HTC sync and the update wixard,wouldn't go.I ve been stuck on 1.10.503 , no updates .So I took either captian,or Jolly's 1.12.617.6 stock system boot .zip un zipped it ,fast boot flashed each .img seperatly and It booted so I'm on 1.12.617.6 now.

It was his twrp backup but I don't have twrp installed.
[HTC One A9] jureca:
Anyone can download RUU Asia?, Thanks

Enviado desde mi HTC One A9 mediante Tapatalk
[HTC One A9] alray:
Did you read what I said earlier? If yes then you have 3 possibilities like explained at post 61. Re-asking for the ruu will not make it magically appears, we will need some money to get it. We can either team-up to gather the required 15$ US or wait. If you want to pay the 15$ alone and download the file yourself, PM me and I'll give you the link to that paid website.
[HTC One A9] AntikerTa:
1.12.617.6 Sense 7GP Android 6.0 - Signed RUU.zip (thanks to [MENTION=5002400]tomkins0752[/MENTION] for extracting it from the RUU.exe and uploading)

HTC USA Unlocked

modelid: 2PQ912000

cidnum: BS_US001

Download: https://www.androidfilehost.com/?fid=24269982087008238

md5: 2a8c51ced68c6751abb35021df9d1f73

Is this Zip flashable via Fastboot? I got this Message from Terminal
[HTC One A9] Ivanovic:
You can always flash it using the sdcard method but I would go for the RUU.exe

Στάλθηκε από το HTC One A9 μου χρησιμοποιώντας Tapatalk
[HTC One A9] alray:
you need to use htc_fastboot.exe, not the "normal" fastboot from the android sdk, it can't handle file as large as these RUU. Anyway like before my post, the sdcard method should work easily.
[HTC One A9] AntikerTa:
Thank you. If i want to install it via TWRP from Sdcard i get the Error Message. "E:Could not find META-INF/com/google/android/update-binary in the Zip file" :confused:

Edit: Have find it out. Have now renamed the zip File in 2PQ91IMG.zip and copied it to the root of the Ex-SDCard. Than i have start the Phone in Download Mode an now i can install the zip.
[HTC One A9] AntikerTa:
Hello. I am coming from 1.10.4017, too. I have installed 1.12.617.6 . To get the German Language you have to copy All Files from System/customize/CID (default.xml, HTC_001.xml, etc) from 1.10.4017 . After you have installed 1.12.617.6 you have to paste these Files into the same path. After this you have to do a factory Reset. Now you can choose the German Language after Reboot. :good:
[HTC One A9] ouioui01:
Hello,

There's a a new RUU for ATT&Cricket HTC One A9 in USA's HTC site:	1.27.502.5

- Battery improvements

- Camera improvements

Some one already installed it ?

link: http://www.htc.com/us/support/htc-one-a9-att/news/

Cheers
[HTC One A9] JochenP:
i installed this and great: 4G with german congstar prepaid :) (usually only 3G)

thanks to AntikerTa - changes language successfully with xml-copy
[HTC One A9] joshzdad2013:
Yes, did the sdcard method and works great.
[HTC One A9] djmouse:
What's SD card method? Renaming the .exe to .zip ?that shouldn't work if anyone has extracted the .zip from the RUU please post.
[HTC One A9] joshzdad2013:
i used the exe setup program to the point where it asked me to plug my phone into it. Then i searched my Windows 7 laptop for rom.zip in the temp folder the .exe makes. after i found the rom.zip i moved it to my phones external sd card i put in it, then renamed it to 2PQ9IMG.zip And rebooted phone into download mode. it will then ask you yes or no to update. works like a charm for me.
[HTC One A9] djmouse:
Yea I could not get the install wizard to do anything,had my phone connected to HTC sync manager opened the .exe RUU and it ran I agreed clicked next ,nothing ever happened after that.
[HTC One A9] JochenP:
possible the best way to install ROM.

no problem if the power fails or the USB connection makes crazy while the update is running...
[HTC One A9] alray:
Yes, all explained in the FAQ.

Since your phone is S-ON, you'll need to find a signed firmware.zip (not extracted from a ruu). You can extract a signed firmware.zip from an ota update zip. So you need to find a 1.xx.401.x ota update or a 1.xx.401.x signed firmware.zip, you might have luck finding one on androidfilehost.com

Otherwise you'll need to s-off and do as explained in my previous post (extract the firmware from the RUU which will give you an unsigned firmware for s-off phones)
[HTC One A9] M.Ned:
I found 1.56.401.70 OTA and just extracted the firmware found in the zip. Tried to flash it first but it gave me security error but tried sd card method and it downgraded succesfully. And then, just used the same version's ruu zip with sd card method and now I'm on marshmallow.

Long story short, downgraded succesfully with S-On thanks to your guide ?
[HTC One A9] alray:
You're welcome, glad it worked.
[HTC One A9] gaurav tandel:
Sir,can you explain after flashing firmware,can i boot up device,and then again go to download mode and flash sigend zip??(because same name zip can not be store at once) Sorry for bad english but hope you got wht i wanna say.

Thannk you.
[HTC One A9] ViJitH VkS:
Did any one have a nandroid backup of 2.17.708.2 rom...or a ruu? [MENTION=4654136]alray[/MENTION]
[HTC One A9] alray:
https://easy-firmware.com/index.php...1@61209_60.00_F_release_500633_signed_2_4.zip
[HTC One A9] ViJitH VkS:
Of course I saw that.. Only available for prime membership.. But a xda friend provided me this file through google drive.. But unfortunately it was not working for me.. Yesterday I saw htc one x thread providing nandroid back ups for all cids with diferent versions. Thats why I requested for the nandroid back up. Why dont this thread not directly including the nougat ruu for cid 622 asia_hk? [MENTION=4654136]alray[/MENTION] please sir it is a request..
[HTC One A9] M.Ned:
First downgrade your version-main. Then flash firmware with sd card. Turn off your phone. Delete the firmware from sd card by using a computer and copy the RUU file and rename it. Put sd card on the device and boot into download mode. That's it.
[HTC One A9] DakshFella:
Nice work

Thank you bro
[HTC One A9] alray:
I think you dont understand how this thread work. Its not a "request your RUU" thread. If your RUU isnt in the collection its your responsibility as a user of this thread to find one and share it with us. My responsibility in this thread is to maintain the OP with the RUU provided by the community. If I cant access a RUU for free it will not be added to the OP.
[HTC One A9] ViJitH VkS:
Ok.. My fault..
[HTC One A9] blkomg:
HELP !!!!!!!

I`ve lost everything on my phone when the OTA failed.................i`m looking for o2_UK file 2.16.206.5 ruu
[HTC One A9] alray:
Also available on easy-firmware.com. Please share the file with us if you download