yashsingh1/xdaforums huggingface dataset:
[HTC One A9] b2d:
Hi guys ... HTC A9 One UHL ... after installing LOS phone never boots .. to OS .. just bootloader . After that cant even enter recovery (TWRP-3.1.1.0)... Any Ideas ?
[HTC One A9] :
What firmware version do you have?
[HTC One A9] b2d:
I had 2.16 ... Mr CaptainThrowback told me that I need to flash 1.56/1.57 which I successfully did .. now I get Decryption Unsuccessfull whenever I boot LOS.. "Password you entered is correct but unfortunately your data is corrupt" .. :confused:

Any Ideas ?
[HTC One A9] :
Hmm. I've never seen that issue personally. Hopefully one of these other fine people can help you.

But I had a similar problem months ago: I flashed 2.16 and decided I wanted to go back so I could use Lineage. I tried flashing it but nothing I did would change the firmware. So I had to stick with stock. I hope it is possible to go back for your sake but I was unsuccessful.
[HTC One A9] Ultramanoid:
TWRP does not support encryption with Lineage on the A9. Not for lack of trying... Captain Throwback has posted about it both in this thread and the TWRP one. You can either keep your device encrypted, or use the boot patcher available to stop Lineage from enforcing encryption, in which case you have to flash the boot patcher every time after flashing a new Lineage build.
[HTC One A9] Captain_Throwback:
Or just root with the latest Magisk Beta...
[HTC One A9] Ultramanoid:
Actually, reading again, not sure this has anything to do with TWRP... Decryption fails booting to Lineage, not recovery ? I have not seen that error before either, in any Lineage encrypted device.
[HTC One A9] Xtaner:
Only for: HTC One A9 (GSM International) - hiaeuhl

Status report from me to the following build:

lineage-14.1-20170627-nightly-hiaeuhl-signed.zip

Carrier: German Telekom

SU addon enabled

Recovery: twrp-3.1.1-0-hiae.img	2017-05-17

Phone

htc_hiaeuhl PVT S-ON
LK-1.0.0.0000
RADIO-1.1.U00036.1@60204
OpenDSP-7.8.2.00197-8952-1228
OS-1.62.161.2

Bugs I've spotted in the build:

- Camera is not working correctly in HDR mode

- Text to speech (Pico TTS) is broken, wired sounds in every language (since a long time, forgot to report it)

- Music Player alway displaying album covers on lock screen (if you enable and disable this bug stop till you close the app)

- Decryption of /data with TWRP 3.1.1.0 still not working

Fixed:

- Carrier is not detected automatically (you've to selected manually after every reboot and every time you've switch from flight mod back to normal) --> FIXED

- Email notification is not working --> FIXED Select PUSH mode

- LiveDisplay does work sometimes and sometimes not (kind of strange) --> FIXED

- No translation for the new GPS menu --> FIXED

- Notification LED is not working for apps that are active if screen is locked (sms/mms is working) --> FIXED

- Personal encryption password is not working (if you enter one, lineage does not detect any carrier)--> Haven't tested it with this build. Because I'm not able to do a full backup (/data decryption not working), I'm not willing to wipe the phone for the test --> FIXED

- WLAN only working in 5 GHZ mode, no 2.4 GHZ mode --> FIXED
[HTC One A9] Dragonkind:
For me:

- The camera function of Facebook Messenger is still not working, but for WhatsApp it works normally.

- HDR capture still won't synthesis the higher and lower exposure images, it would save two image files directly.
[HTC One A9] b2d:
OK. Latest update : I have managed to setup Lineage OS latest. 21Jun17 version. What I did:

Twrp -> Wipe -> Format Data + Format Internal Storage -> Reboot

All data on Int Storage lost : after boot LOS encrypted internal storage .. Password is not known, but a works for me now.

Hope that helps.
[HTC One A9] :
I'm glad that you resolved it yourself. But as Ultramanoid suggested, I'd recommend you use the patcher to prevent Lineage from encrypting because that still seems to be problematic on this device.

But if it works for you, good job!
[HTC One A9] :
Is there any word from HTC as to when they will release the source code for nougat? I'm on 2.17.401.2 RUU and waiting for Lineage OS to support it.

Or on the other hand, where do I get a signed 1.56.401.70 (cidnum: HTC__034) firmware from so I can perform a downgrade with S-ON?
[HTC One A9] Ultramanoid:
If you check the last few posts here, you'll see they just replied to Captain Throwback on Twitter, they said "soon"... I hope that means a few days / weeks.

For the firmware, check the first post of the RUU thread, ask there if you can't find it :

https://xdaforums.com/one-a9/general/wip-ruu-htc-one-a9-t3240344
[HTC One A9] Mbuuqw:
Hopefully by August Nougat users can flash LOS. I still haven't found a way to downgrade or flash TWRP without it formatting my internal storage so I'm sticking to the Dev Unlock ROM.

---------- Post added at 08:12 PM ---------- Previous post was at 07:35 PM ----------

How do I downgrade to 1.5x firmware? I get the 12 RUU ERROR thing because of the whole Nougat update key deal. I've read that I need to flash a 1.x firmware to downgrade to 1.x, but how the balls am I supposed to do that when I can't flash the firmware in the first place? I'm trying to get the most out of this phone until I can upgrade to the OnePlus 5 or HTC U11 later this year. I love the feeling of stock Android with minimal BS, Sense ticks those boxes but it's just not "stock" enough imho. I feel Lineage should tickle my fancy .(as it has twice around with the OnePlus One and Galaxy SIII, which were uber easy to flash)
[HTC One A9] Ultramanoid:
Given that hTC has committed to releasing it "soon", whatever that means, I wouldn't go through the hassle of changing firmware now and then later again, and just wait at least a couple of weeks.

However, note that data became incompatible with newer versions of Lineage recently and it was necessary to format to upgrade, so you may have to do that anyway. There are a few posts about it in the thread.
[HTC One A9] Moosesev:
I need help, every time I install Lineage it reboots into bootloader only. Am I doing something wrong? I unlocked the bootloader and installed TWRP but still nothing works every time the phone reboots into bootloader please help me
[HTC One A9] Ultramanoid:
Did you upgrade to Nougat firmware ( 2.x ) before installing Lineage ? Lineage works only on Marshmallow firmware ( 1.5x ) for now. You could downgrade your firmware or wait until hTC releases Nougat kernel source, then the Lineage build for the A9 will like be rebased on that and run fine.
[HTC One A9] b2d:
Hi I have discussed it earlier what you need is :

S-OFF to downgrade to 1.56-1.58 firmware

Then falsh LoS and !!! FORMAT DATA PARTITION

you should be fine after that
[HTC One A9] Xtaner:
You've been right!

Never used HDR mode before.

I've added to the list.

Anyway, I've no problems to accessing the camera with apps, maybe because of the firmware.
[HTC One A9] twingo_man:
hi,

I have the same problem, can you give me the right firmware please? I don't find it

HTC Europe

odelid: 2PQ910000

cidnum: HTC__034

thank you
[HTC One A9] Ultramanoid:
Check in the RUU thread.
[HTC One A9] twingo_man:
I did it. I downloaded the full rom, extracted with ruu_decryptor but without any success
[HTC One A9] caspian154:
In TWRP did you go Wipe > Format Data?? OR Wipe > Advanced Wipe > Data (checkbox)?

I was having the same issue until I did Wipe > Format Data. I also ended up flashing the firmware from RUU and then running the RUU exe aftward, so that might have fixed my issues.
[HTC One A9] twingo_man:
hi,

i did it, but I'll try again

thank you for your advice
[HTC One A9] twingo_man:
hello,

for the moment, I use without any problem the official version 2.17.401.2.

when I want to see the cid, here is the result:

C:\adb>fastboot.exe getvar cid

cid:

finished. total time: 0.006s

and I can't reisntall an old official rom

can it be the problem to install lineage?
[HTC One A9] Ultramanoid:
Please search before asking, it has all been answered already. Also answered in several replies to your posts.

Lineage won't run yet with Nougat firmware ( 2.x ), if you want Lineage now you have to downgrade to 1.5x firmware. Now, how to do that is best discussed in the RUU thread, where they can also help you if you ask, and provide firmware as that is where it is listed and where you should look.
[HTC One A9] twingo_man:
I already tried to install a firmware 1.5 but it doesn't work.

the only rom ok is the official Nougat
[HTC One A9] Ultramanoid:
Why do you keep posting about it here instead of asking in the firmware thread, which is for firmware issues ?

Go to the RUU thread, say you want to downgrade your firmware from 2.x to 1.5x, but you can't. Give information about your device, explain how you're trying to do it, ask for help.
[HTC One A9] Dragonkind:
I was using 1.58.709.3 (Asia-TW). Perhaps it was related to it. Thank you for maintaining LineageOS of A9! :D
[HTC One A9] Ultramanoid:
Maintainer for this device is Intervigil.
[HTC One A9] b2d:
So what I did . i have Downloaded OTAhttps://www.androidfilehost.com/?w=file-thanks&fid=24421527759885224&mid=97&download_id=mifeebiolq3m46lqtqu2q9v1l7&tid=1498571826&hc=57d84a37f1a826e5a634bffccca3dfe52e4b8b065e4566e351bd4e42e32ece3a

and extracted firmaware from it with zip.
[HTC One A9] twingo_man:
thank you. i will test it.
[HTC One A9] Xtaner:
Thats to mutch honor for me :p

I'm just trying to give people that want to switch to lineage a overview what is working and what is not working.

But anyway, I would do it, if i had any idea what to do.

Sadly theres no wiki or "how to do" tutorial.
[HTC One A9] Ultramanoid:
Ethan Chen ( Intervigil here at XDA ) has been maintaining hTC devices for years； with CM, now Lineage. Get in touch with him if you want to help or join the Lineage team.
[HTC One A9] b2d:
Sorry for spam if I'm missing something but I cannot update LOS.

After download of Lastes	https://mirrorbits.lineageos.org/full/hiaeuhl/20170627/lineage-14.1-20170627-nightly-hiaeuhl-signed.zip

Device says that cannot reboot in recovery mode. I have TWRP 3.1.1.0. If I reboot into recovery I get My storage Encrypted so can't mount it. Is there any way I can decrypt it or find password ?
[HTC One A9] Ultramanoid:
I'm not sure I understand the problem. TWRP does not support encryption on the A9 with Lineage right now, it has been discussed here and in the TWRP thread.

If your device is already encrypted, then you can use it encrypted. If you prefer to format data and prevent encryption being enforced, search this thread or TWRP's thread to see what options you have. Boot patcher, etc.
[HTC One A9] b2d:
So which Recovery is better to use with LoS to have automatic updates working from the box on the encrypted device ?
[HTC One A9] Ultramanoid:
To be honest there's not much of a choice. TWRP is the best, but encryption support does not work well on all devices. Case in point, the A9. Other than that Lineage comes with its own recovery, but it doesn't have much functionality, in that case you're probably better off sideloading Lineage updates via adb.
[HTC One A9] StarSage:
I'm running off of the stock at&t Marshmallow ROM and HTC's boot just laughs at me after trying to load Lineage. Handset will freeze up. No go
[HTC One A9] Ultramanoid:
Which firmware ? It may be too old, 1.2x maybe ? Lineage requires 1.5x at least.
[HTC One A9] StarSage:
1.2 how does one update firmware if there isn't an OTA?
[HTC One A9] Ultramanoid:
You only have two options. Wait until AT&T releases one ( good luck with that ), or pay for S-Off.
[HTC One A9] StarSage:
Already paid for S Off. So, how do I update?
[HTC One A9] b2d:
Read my post on the previous page. OTA + firmware.

I have tried both to flash via adb .. and update from USB stick.. failed for me. had to flush my phone and do fresh install .
[HTC One A9] twingo_man:
hi,

1- download the full rom 1.56 of your device

2- extract the firmware with ruu decrypt

3- install twrp

4- install your rom from twrp
[HTC One A9] Mbuuqw:
Try This
[HTC One A9] StarSage:
Is this known to work on the at&t version of the HTC One A9? The last time I installed anything from TWRP it caused my handset to be stuck with the infamous 'red lettered' HTC splash screen.. developer mode. And the device could not boot to Android:eek:
[HTC One A9] Mbuuqw:
Flash 1.5x Dev Unlock if you're S-OFF, I'm waiting for the 2.x source to come out so I can update myself, so refrain from going past 1.5x
[HTC One A9] StarSage:
Where does one get this 1.5 firmware? My device will not accept a Nougat RUU file and most boards I've read say you cannot flash firmware via TWRP on an HTC. All Nougat downloads I've been able to locate result in me extracting a firmware.zip file that TWRP errors out with 'corrupt file'

---------- Post added at 12:38 PM ---------- Previous post was at 12:33 PM ----------

Is the RUU Decrypt you speak of different than the HTC Sync Manager? I've tried just running the Nougat RUU for the One A9 and it errors saying it's the wrong version for my handset. I've also read one cannot simply flash firmware via TWRP for HTC products
[HTC One A9] Ultramanoid:
Updating or downgrading firmware is not done with TWRP. Head over to the A9 RUU thread with a list of firmware available in the first post and instructions to use it.

If you have trouble or can't install a 1.5x firmware RUU, ask for help in that thread, the OP is extremely helpful. This thread is for Lineage support.
[HTC One A9] Matthew98405:
Came back to check the status of LineageOS; does Google Camera work, yet?
[HTC One A9] Xtaner:
I had a wired behavior of my phone today.

I picked it up from the table and it only displays the clock and the battery (in big letters only with dots).

Could it be possible that this was a buggy behavior of the flipcover feature?

Can someone post a picture of the display with active flipcover so I can confirm it?
[HTC One A9] M.Ned:
I installed the latest nightly, here are the issues:

-I can't get the Google Play Services to work. It's a general problem I suppose. (Btw I tried WebView thing.)

-Camera is awful, even worse than my older M8 or G2's camera.

-Can't scroll smoothly in an app. Scrolls perfectly fine on homescreen but not in settings or another app.
[HTC One A9] Fudgehog:
Can anyone confirm if the previous calling issue is fixed in future builds? I am still running 5-9 build. Some users said it was only with ATT whilst having an LTE signal, however not receiving calls at any time is useless. Would rather not flash a new version and have to revert anyhow.
[HTC One A9] loner.:
They don't appear to be in much of a hurry. Thanks for trying!
[HTC One A9] Captain_Throwback:
The more people that bother them about it, the more likely they are to do it. So I suggest you also Tweet at them, rather than just relying on my single periodic tweets.
[HTC One A9] jjakajonas:
Will there com Boomsound support in lineage?
[HTC One A9] GalalMoustafa:
is there any free way to downgrade to marshmallow without paying 25$ in sunshine or a cheaper way ??
[HTC One A9] 65vdub:
https://www.xda-developers.com/htc-10-htc-one-a9-nougat-kernel-source/

Patience worth it.
[HTC One A9] :
This is awesome. They finally released the source code. I'm so excited to have lineage os on my A9 soon :)
[HTC One A9] fk2106:
What changes now that the kernel has been released? I get that the current Nougat Lineage OS build is based on the Marshmallow kernel but what will be the difference
[HTC One A9] Miramontes:
How could we know if next nightly already supports 2.18.617.3 ?
[HTC One A9] megatomic:
https://www.cmxlog.com/14.1/hiaeul/ - I'm sure there'll be listings there pertaining to it.
[HTC One A9] Dragonkind:
You've got it, the current camera performance on LOS 14.1 is like a tragedy, and far from the quality of stock or stock-based ROM. Until the camera performance improved a lot, I'll try LOS 14.1 again! At least, the HDR bug must be fixed first.
[HTC One A9] b2d:
Yeah. Camera usage is a tragedy in LOS. Battery performance is also not CM style... I'm still on it only because of 7.1.2 and shiny..icons on the top. Does anybody know how to make them look so on stock ROM?
[HTC One A9] loner.:
That is probably a question for the maintainer, providing we still have one.

This is also vacation time for a lot of folks.
[HTC One A9] Mbuuqw:
Quick question, I was looking at cmxlogs and it shows a nightly was released 7 hours ago (obv in my time zone) Does this in fact add the fabled support for the new 2.x kernels dropped by HTC?
[HTC One A9] :
Can't find anything of that sort in the changelog. Give the devs a bit more time ;)
[HTC One A9] Magnum_Enforcer:
Thread cleaned.

On that note, keep in mind this is a development forum. Please post in accordance with the forum rules.

Cheers,

Magnum_Enforcer
[HTC One A9] Phone_fan:
HTC One A9 not restoring

I have a US Unlocked A9. I unlocked the bootloader and flashed TWRP recovery. I then did a backup of the system, including system image.

I wiped the system and installed the latest LineageOS Nightly and a GAPPs package. However, the system won't boot. It keeps booting to bootloader.

I tried to restore the original system that I backed up, but it still just boots to bootloader.

Correction: The restore process gets about halfway done and the A9 reboots to bootloader.
[HTC One A9] alray:
Did you made a backup of your stock kernel (boot)? Restore your stock kernel. What is your "fastboot getvar version-main"?
[HTC One A9] Phone_fan:
The only backup I did was in TWRP. I didn't see any listing for the kernel by itself. And this A9 doesnt have a Fasboot. It just has a download mode.

---------- Post added at 11:03 PM ---------- Previous post was at 10:58 PM ----------

I have the downloaded firmware zip and inside that zip is a boot image. I flashed it just now. At least the A9 isn't booting back to bootloader. It isn't doing much of anything, but at least I may have a clue as to what I need to do.

---------- Post added at 11:13 PM ---------- Previous post was at 11:03 PM ----------

Well, I don't know what to do. I can't get my A9 to power off. It's been on the HTC screen all this time and holding the power button down doesn't power it off.
[HTC One A9] alray:
And what about the "boot" option to backup the /boot partition/kernel ?

All devices are capable of fastboot commands. It can be rebooted in download or bootloader mode. I was asking your "fastboot getvar version-main" because afaik the rom wasn't updated yet with the new kernel source code for nougat firmware (to be confirmed by someone else, i'm not following the developpement of this rom) which mean if you flashed this rom on a 2.xx.xxx.x firmware, it won't boot.

hold power and vol - ?

Go back in twrp, wipe, restore your /system partition and flash the stock /boot.

Or use a RUU.
[HTC One A9] Phone_fan:
The original firmware is 2.18.617.30 which is Android 7.0. The LineageOS ROM is based on Android 7.1.2.

The backup in TWRP that I did as much as I remember had "Boot", "System", "System Image" and "Data". I did a backup of all four of those and then did a separate backup of "System Image" because I vaguely remember somewhere some article saying that you have to reflash the system image when you do a system wipe on the HTC 10. I figured the A9 might be the same and I thought I was playing it safe.

I'm going to try to factory restore with the OEM RUU file. Not sure it'll work, but worth a try since this A9 is basically now useless.

---------- Post added at 12:42 AM ---------- Previous post was at 12:32 AM ----------

RUU didn't work. Error message 158. Wiping and restoring in TWRP doesn't work because the phone reboots at about halfway through the restore process...every time.

Unless there is some other way to fix it, I have no clue what to do.

---------- Post added at 01:17 AM ---------- Previous post was at 12:42 AM ----------

How can I restore the system partition when the phone keeps rebooting halfway through the restore process?
[HTC One A9] Tommmii:
what about flashing 2.18.617.30 using fastboot ?

fastboot oem rebootRUU
htc_fastboot flash zip <file_name>.zip

or the SDcard method, it's described here :

https://xdaforums.com/one-a9/general/wip-ruu-htc-one-a9-t3240344
[HTC One A9] :
No, i will try it later, thanks for the hint.

It says:"repo: error: no such option: -f"
[HTC One A9] :
And there is no other 14.1 Branch, i will try again an post the error here.

*EDIT*

I use only the command "breakfast cm_hiaeuhl-userdebug", then it shows this error:

breakfast cm_hiaeul-userdebug
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:245: *** Can not locate config makefile for product "cm_hiaeul". Schluss.
Device hiaeul not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_htc_hiaeul
Default revision: cm-14.1
Checking branch info
Checking if device/htc/hiaeul is fetched from android_device_htc_hiaeul
Adding dependency: CyanogenMod/android_device_htc_hiaeul -> device/htc/hiaeul
Using default branch for android_device_htc_hiaeul
Syncing repository to retrieve project.
sh: repo: Kommando nicht gefunden.
Repository synced!
Looking for dependencies in device/htc/hiaeul
Dependencies file not found, bailing out.
Done
build/core/product_config.mk:245: *** Can not locate config makefile for product "cm_hiaeul". Schluss.
build/core/product_config.mk:245: *** Can not locate config makefile for product "cm_hiaeul". Schluss.

** Don't have a product spec for: 'cm_hiaeul'
** Do you have the right repo manifest?

Hehe, it didn't find the repo command, so i went as root to /usr/bin and made a "ln -sfv /home/XXX/bin/repo" now it works :)
[HTC One A9] scott8281:
The sound is back to were it was on the earlier cm13 builds for this device (low volume). This can fixed by going into lib/hw and deleting the amplifiermsm8952.so file (it forces the audio to default settings). This problem was fixed or at least improved on later cm13 builds.
[HTC One A9] megatomic:
Ok so this old CM13 problem is back. Are there any other gotchas with CM14.1 on the A9? CM14.1 on my OPO is amazing, everything works and it would be awesome if this were the case for the A9.
[HTC One A9] jc8bit:
Hello friends,

Can u confirm CM14.1 (clean install) supports SIM card???

Thanks in advance
[HTC One A9] The_scam:
Yes, read the posts it has been supported as of 12/05
[HTC One A9] loner.:
I had already deleted that file before I made the post and no change.

Then I just remembered that I did not reboot after deleting the file.

Volume level is much better now after reboot.
[HTC One A9] megatomic:
Volume is back to being good but what about sound quality? Does CM14.1 for the A9 have the Dolby enhancements?
[HTC One A9] jc8bit:
Thanks, I will test 12/06
[HTC One A9] Behzad.hotknife:
sim card worked on 12/06 ?
[HTC One A9] loner.:
Yes, just don't dirty flash from 13.1 to 14.1 a factory wipe is needed.

Its never a good idea to dirty flash when upgrading to a whole new version.
[HTC One A9] scott8281:
I haven't flashed 12/6. But I can confirm that 12/5 works
[HTC One A9] Ultramanoid:
Did you manage to build 14.1 for the hiaeuhl ? Does it work ?

I hope it's built by Jenkins eventually.
[HTC One A9] :
No, it didn't work, there is an error about missing lib(g)cryptm.so (As far as i remember, actually i am logged in under Windows, so i can't look for it) in the hieuhl vendor files. Looks like there is something wrong, and my knowledge about that part is not good, sure i could compile lib(g)cryptm.so it is part of libssh, but i don't know anything about it's dependencys and arch.

I think we have to wait until the developers solved the Problem, or if anyone could give me more information about it, i could try it again.
[HTC One A9] Ultramanoid:
Thank you so much for taking the time to try and for posting about it with the errors.

Ethan Chen, the CM maintainer, looks over the thread every so often, and hopefully he can check this out when he has time. Looking forward to use a CM 14 hiaeuhl build myself.
[HTC One A9] intervigil:
You can pull the blobs from the cm-14.1 hiaeul build.

hiaeuhl is slated to build 14.1 nightlies, but the nightly builds seem to be seeing quite a bit of churn recently.