[HTC One A9] codiflow:
Hey there,

I can tell you - it was a veeeeery long way to go (I spent round about 20 hours on flashing a CustomROM which actually WORKS). I've never had a device being similarly annoying like this HTC One A9 is :crying:

So for me the message is clear -

I will never ever buy another HTC anymore

;) But enough hatespeech for now :D On with the tutorial:

Initial situation:

Device: HTC One A9

Codename: hiaeuhl

version-main: 1.56.206.70

version-baseband: 1.1.U00018.1@60122.4

version-bootloader: 1.0.0.0000

MID: 2PQ910000

CID: O2___102

Beforehand:

Updating from firmware 1.56.206.70 to firmware 2.16.401.3 and also installing the StockROM worked like a charm. But after flashing a custom recovery the system

was not booting anymore

. So unfortunately this tutorial is still for firmware 1.56.206.70.

Prerequisites:

You will need to have an unlocked bootloader and possibly S-OFF on your device (if you want to install any StockROM).

For getting S-OFF I refer to

http://theroot.ninja

, for unlocking the bootloader please follow this thread

http://www.htcdev.com/bootloader

WARNING: This procedure will

WIPE ALL OF YOUR DATA

on the device (except the data from external_sdcard). So think about what you are doing!

TUTORIAL

Boot into the StockROM (for me it was Android 6.0.1 i guess as I haven't checkes this at this point) to have the data partition initialized

Reboot to Download Mode (Power down device and afterwards press Volume Up and Power)

Check your firmware version and CID by entering

adb getvar all

- See Tutorial for Firmware Update / Downgrade below

fastboot flash recovery twrp-3.1.0-0-hiae.img

Start into Recovery after switching into Bootloader

In TWRP move the slider to allow modifications

Click on "Wipe" and click "Format Data"

Enter the letters "yes" and confirm this by clicking on Enter

It depends on your data encryption key if you get some warnings or not - but afterwards its necessary to reboot your device and enter recovery again

In TWRP move the slider to allow modifications

Click on "Wipe" and click "Format Data" again

Enter the letters "yes" and confirm this by clicking on Enter again

Now there should be no more warnings in the log

Now click on "Install" and push the image on your device using adb

adb push MK60.1-hiaeuhl-170328-RELEASE.zip /sdcard/

After transfer has completed swipe to "Wipe dalvic/cache" and reboot device

Voila - it worked like a charm ;)

Flashing Firmware / RUU

Boot into RUU Download Mode:

fastboot oem rebootRUU

Flash Firmware / ZIP with the following command:

fastboot flash zip 2PQ9IMG-firmware-1.56.401.70-DECRYPTED.zip

NOTICE: You have to flash the corresponding firmware file before flashing the RUU - otherwise there will be a ZIP_ERROR.

NOTICE: All thread-relevant files are marked in bold

All possibly necessary files:

(I uploaded them seperately to Yandex.Disk as a lot of sources at the relevant threads were DOWN during my research which made me really mad...:mad::mad:)

StockROM O2 Firmware 1.56.206.70 (from RUU thread at xda-dev) [Filename: 2PQ9IMG_HIA_AERO_UHL_M60_SENSE7GP_MR_O2_UK_1.56.206.70_Radio_1.1.U00018.1@60122.4_43.05_F_release_469274_signed.zip] => http://www.yadi.sk/d/wnoCfoo_3GaGZM

StockROM HTC Europe Firmware 2.16.401.3 (from RUU thread at xda-dev) [Filename: 2PQ9IMG_HIA_AERO_UHL_N70_SENSE80GP_MR_HTC_Europe_2.16.401.3_Radio_1.1.U40062.1@61209_60.00_F_release_492789_signed_2_4.zip] => http://yadi.sk/d/FXt8HuS33Ga9bs

Firmware 1.56.206.70 [Filename: 2PQ9IMG-firmware-1.56.401.70-DECRYPTED.zip] => http://yadi.sk/d/gRO2hFfA3Ga9UK

Firmware 2.16.401.3 [Filename: firmware2.16.401.3.zip] => http://yadi.sk/d/Ex1NzLSi3Ga9y2

CM13 Universal [Filename: cm-13.0-20160114-Universal.zip] => http://yadi.sk/d/Ywzb5U3a3Ga9sA

CM13 NIGHTLY [Filename: cm-13.0-20160204-NIGHTLY-hiaeuhl.zip] => http://yadi.sk/d/W41ZMvf43Ga9vf

CM14 NIGHTLY [Filename: cm-14.1-20161225-NIGHTLY-hiaeuhl.zip] => http://yadi.sk/d/DZxSyyuf3GaQWb

HTCs special fastboot linux binary [Filename: fastboot] => http://yadi.sk/d/oalTiOUM3GaQJd

LineageOS 14.1 [Filename: lineage-14.1-20170212-UNOFFICIAL-hiaeuhl-image-from-xdadev-thread.zip] => http://yadi.sk/d/MMRX9oV-3GaQSH

Magisk Root [Filename: Magisk-v11.6.zip] => http://yadi.sk/d/ewpbd6pQ3GaQYA

Mokee ROM Marshmallow Android 6.0.1 [Filename: MK60.1-hiaeuhl-170328-RELEASE.zip] => http://yadi.sk/d/zfHpEOA73Ga9kr

Resurrection Remix ROM (NOT google-free!!!) [Filename: RR-N-v5.8.2-20170220-hiaeuhl-Unofficial.zip] => http://yadi.sk/d/jS21Bl6X3Ga9pZ

TWRP 2.8.7.0 [Filename: twrp-2.8.7.0_CPTB-B9-hiae.img] => http://yadi.sk/d/CoUC9rgs3Ga9zt

TWRP 3.0.3-0 [Filename: twrp-3.0.3-0_UNOFFICIAL-hiae.img] => http://yadi.sk/d/NxLm1T_O3GaA47

TWRP 3.0.3-5 [Filename: twrp-3.0.3-5_CPTB-TEST1-hiae.img] => http://yadi.sk/d/x9ItAVxs3GaA67

TWRP 3.0.3-6 [Filename: twrp-3.0.3-6_CPTB-TEST1-hiae.img] => http://yadi.sk/d/HbK_9tnb3GaA83

TWRP 3.1.0-0 [Filename: twrp-3.1.0-0-hiae.img] => http://yadi.sk/d/Chk-fG_t3GaQUP

Boot Image Patcher (don't really understand whats its really necessary for as it also worked without it) [Filename: UPDATE-A9_boot_image_patcher.zip] => http://yadi.sk/d/zfAVSAHg3GaGfY

Fixing the "stuck in airplane-mode" problem:

I walked into an issue while using CM13 / CM14 / LineageOS with the firmware 1.56.401.70 (switching to firmware 2.16.401.3 was not possible - see initial statement). I couldn't switch airplane mode consecutively as it got stuck then and no mobile phone connection was possible anymore until I rebooted the phone. On MoskeeROM I found a solution for this - maybe it works on the other ROMs too: Just switch to "Mobile networks" under "Settings" and click on "Network operators". Now it takes some time after he found all available providers. "Click on your provider" in the list and afterwards click on "Select automatically". Now the problem is fixed until the next reboot. I couldn't find a cause for this issue through my investigations in logcat - so maybe some other guy will be more successfull. For me this is a workaround I can live with.

Regards

ChrisDeChef

UPDATE 05. MAY:

At the end of may :rolleyes: LineageOS finally released their rom for the hiaeuhl device: https://download.lineageos.org/hiaeuhl

I've not tested this rom yet but I'm sure its worth a try ;)