yashsingh1/xdaforums huggingface dataset:
[HTC One A9] Dragonkind:
The Method I Use To Build This ROM (hiaeul for example)

My laptop specifics

- Intel Core-i5 5200U processor (x86_64)

- 8GB RAM (4GB+4GB)

- 256GB SSD

- Windows 10 (64-bit)

Environment

- Download and install Oracle VM VirtualBox

- Download your favorite Linux image file (ex: Ubuntu 18.04 LTS)

- Place the image file where you want

- Run Oracle VM VirtualBox and set up for a new machine

- Virtual storage needs to be 150GB at least

- Any preference you want

- Start up virtual machine

Prepare The Needing Tools

- Read this but remember to change the branch name "lineage-15.1" to "cm-14.1"

- Also change the device name "hiae" to "hiaeul"

- Add this into ".profile":

# add Android SDK platform tools to path
if [ -d "$HOME/platform-tools" ] ; then
PATH="$HOME/platform-tools:$PATH"
fi

- Add this into ".bashrc":

export USE_CCACHE=1
prebuilts/misc/linux-x86/ccache/ccache -M 50G
export CCACHE_COMPRESS=1

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"

export LC_ALL=C

- If the performance of your computer isn't enough, also add this into ".bashrc":

export USE_NINJA=false

- Modify swap size with terminator:

sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1M count=8192
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show

- Do this step with another terminator window:

sudo su
echo 99999 > /proc/sys/kernel/pid_max
echo "kernel.pid_max=99999" >> /etc/sysctl.conf

- Add this into "/.repo/local_manifests/roomservice.xml":

<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" />

After Completion

- You can find the zip file under "/out/targets/products/hiaeul"
[HTC One A9] seser111:
Thank you :)
[HTC One A9] JS.zip:
Latest update working great. Thank you very much for keeping our devices updated :)
[HTC One A9] kall3:
Great Gratitude

Great job to continue development on the 7.1 HTC One A9 branch. I especially appreciate current security patches being implemented. I came from official 14.1 branch (May 2018) and did not regret to invest my time on setting up the device from scratch once again!
[HTC One A9] Girumarugt:
Hi, nice work, i have a question, can i flash it with S-ON?, my bootloader is unlocked and my device is hiaeul, thanks in advance :)
[HTC One A9] AceNik:
Hi, just wondering if this is going to go up on the official builds page such that OTA update support starts post that.

Any chance that may happen?
[HTC One A9] Saad. Mk:
Hi,

Has somebody been able to resolve the calling issue in Lineage OS 15.1?
[HTC One A9] Saad. Mk:
Great ROM everything seems to be working fine up until now, just some battery issues not getting enough standby time, when can we expect the next update?
[HTC One A9] Dragonkind:
Not sure coz my device is S-OFF. But I remember the answer is probably yes, preparing an RUU before you trying would be better.

No, I've not sent this to intervigil (our hero) yet. Actually I am doing my compulsory duty, I can only use computer on weekends. I may update this ROM monthly syncing with Android security patch as I can. Thus, I may not have enough time to talk about these with intervigil currently. If there's anyone willing to send #2 of this thread to him, he/she will be our hero too. :p

Probably no, maybe yes. Nobody has confirmed what the issue is actually caused by.

Monthly update I think. However I don't understand how to tweak kernel, the battery time may stay the same as the last 14.1 nightly ROM (180510), sorry.
[HTC One A9] Saad. Mk:
GREAT! I've been using the ROM as my daily for the past few weeks, I've been having random reboots and holding down the power button restarts my devce instead of showing the reeboot, power off etc tab...
[HTC One A9] Dragonkind:
What ROM did you use when you were getting these issue? :confused:

If it comes with this unofficial 14.1 ROM, I think it might be a hardware issue or some apps causes it, coz I've never had these bugs since we got the nightly 14.1 till the last nightly build (180510).
[HTC One A9] Saad. Mk:
I was using the latest 14.1 unofficial build, however I managed to fix the problem, it was substratum causing most of the issues when it overlayed the amdroid system. Otherwise the ROM's great, just really hoping for the dialbug issue on 15.1 to be fixed soon. I contacted the dev and according to him since he can't reproduce the issue on his device, theres no ETA on when the issue will be fixed or if it actually can be fixed
[HTC One A9] Dragonkind:
Well, have you got them before, or had you done a clean installation when you flashed this ROM?

I can understand what you report, but I never get them, also have no idea about why they happen on your device...
[HTC One A9] rrkas:
Trying to install this since I didn't manage to get the offical 14.1 to work, but Im getting the same issue here and that is that after flashing tand pressing reboot the phone wont get past this with HTC-screen with that red "this build is for development jadda jadda". It just stops there. What can I do? Can still install my old cyanogen 13 rom and get it to run, but not 14.1 :\

Edit: Im on S-on btw if that matters. Don't actually know exactly what that means, just did it because I had to when I installed viper4android before.

Edit2: Or wait, might have been some permissive thing. Is there a way to see if have this S on or off? Sorry for the confusion :)
[HTC One A9] Saad. Mk:
I can't understand this, but I went down from 71% in the night to 40% in the morning on standby even tho I had airplane mode turned on, it shows cellular consumption as the most.
[HTC One A9] Dragonkind:
It may be related to your firmware version that is under 2.18.617.30 (hiaeul) or the equivalent Nougat versions for hiaeuhl, you can check it first in Download Mode.

For S-ON or S-OFF status, you can check on the title of HBoot (just a white option screen).

I've remembered somebodies get this issue for a while and never got solved, though for me I never experienced it. Try to NOT enable airplane mode, maybe it's similar to another bug, battery draining when expanded desktop is enabled coz the device wouldn't go deep-sleep.

There's good news is, we probably skip LOS 15.1 and get LOS 16.0 directly, I've noticed some LOS 16.0 gerrits for hiae uploaded. :cool:
[HTC One A9] Saad. Mk:
Immense battery drains, 7 hours left me down form 100% to 83% with ZERO usage.....
[HTC One A9] Dragonkind:
Similar here, probably it's that the battery decays. Not sure but A9 is nearly 3-yo now.
[HTC One A9] neo_0480:
Hello,

Do you know if a release of Lineage OS 17.1 is planned soon for hiaeuhl ? It would be great ! ;)

Thanks in advance
[HTC One A9] solved:
Dude, never gonna happen. LOS 14.1 is the only usable for this phone
[HTC One A9] Cicada_3301:
I just tried the 9.0 build from e\ and it works

And can you send me the 16.0 test build ?
[HTC One A9] Cicada_3301:
I'm sure that the problems is caused by Google service framework

There were no problems when I used it without gapps
[HTC One A9] solved:
u tried which build, how u installed it, with gapps?

would be nice to have some more informations

and btw. there is no reason for double posting.
[HTC One A9] Cicada_3301:
I used the July version with opengapps nano

I flash gapps after setting up the device
[HTC One A9] solved:
After you installed gapps the problems started, or? i mean after deepsleep could you still make a call? and end it?
[HTC One A9] Cicada_3301:
Yes, It only started once I installed gapps. You have to restart after each calls. Do you think it's possible to rewrite the whole framework
[HTC One A9] micmc23000:
Thank you
[HTC One A9] Dragonkind:
I am not sure, but if there is anyone trying to install the GApps for Android 7.1.2 on Android 9.0?

Just a guess, we can actually use our A9 with Android 8 under safe mode booting, there would be no InCallUI bug, then, is it possible that something included in GApps are not compatible for A9?

Btw, long time ago, [MENTION=1815755]intervigil[/MENTION] had mentioned about that he couldn't reproduce the bug with his phone, and he used the GApps packaged by himself, not OpenGApps or any other one,
[HTC One A9] solved:
is there a build for android 9?
[HTC One A9] Dragonkind:
Not yet. Can't promise there will be or not. :p
[HTC One A9] solved:
i love a surprise .. if it ever happens ;)
[HTC One A9] onlime1:
I always use my devices without gapps (maybe this is the first reason why I flash roms to them) and I always had the "call issue" lol. It's not about gapps :( (hope it was just that)
[HTC One A9] Jahangiralambd:
HTC one A9 sprint 2pq93000 my phone so suppored your custom rom..?? Please answer me???
[HTC One A9] reelgirly:
Hello, anyone can please upload latest release again?! :/

lineage-14.1-20200523-UNOFFICIAL-hiaeuhl.zip​

No mirrors found :D

thanks in advance :)

EDIT: meanwhile the download seems to work again :) *smile*
[HTC One A9] KICK-BOXING:
wifi not working ... !
[HTC One A9] :
Hi,

I'm still using my HTC A9 with lineage-14.1 unofficial. And I'll use it until the phone breaks or the battery dies.

Now is there a way that we can get this build with the latest security patches from google? I don't care for new features, I just want the security stuff. (Or is there a tutorial on how to merge the security patches myself?)

Thanks

Andreas
[HTC One A9] AceNik:
Hey guys just FYI,

Even my phone was 3 yrs old now and I ordered a custom battery and replaced 1 month ago. It's amazing and I've been getting 18+ hours of usage with 6+ hours of screen time.

LOSONCOER 3400mAh B2PQ9100 Lithium-ion Battery for HTC One A9 Battery

https://s.click.aliexpress.com/e/bgv2GlGk
[HTC One A9] Dragonkind:
This is too crazy! Big thanks for your sharing.

But actually, if my A9 gets its ending of life, I won't fix it, I'll turn to buy a new phone.

My brother got an Samsung S9 recently, and it amazed me a lot.

For sure before A9's death, I expect I have the honor to try stable LOS 16. :fingers-crossed:
[HTC One A9] Saad. Mk:
Hi, I have a question if you're willing to help me, I'm running the stock htc one a9 dev rom tweaked for better battery and performance, so far it's really good bu I don't like the look of it plus it's Missing a crucial feature which is expanded desktop for me, however which ever immersive mode app I try, as soon as I swipe up on the navbar, it doesn't hide back, I was hoping you'd have a solution for this, I DO have root
[HTC One A9] Dragonkind:
I remember there're some tutorials for hiding/removing navbar, some use the same methods like "expanded desktop" of LOS, and some remove it directly and replace with gesture mod. Coz I've never used it, the only thing I'm sure is that you can't automatically hide navbar with a stock-based ROM like LOS does, unless the devs add something like ViperROM tweaks.
[HTC One A9] kall3:
Big thanx to Dragonkind for providing us with a fresh security patched version of LOS 14.1 for the A9! I've just updated from the previous version. Everything works fine (as before). :)
[HTC One A9] abhijeet11:
Thank you Dragonkind for supporting our device who HTC have thrown aside like a step child.... Really grateful.

Few queries and might be lineage bugs:

- whenever I search for 'ambient display' in settings I see the search result but clicking it turns out no such setting for the amoled htc a9?

- Volte seems deprovisioned and cannot turn on from *#*#4636#*#* is it a device issue? If so, how can i mitigate... Any zips to flash, vendor file, etc?

Thanks once again!
[HTC One A9] Dragonkind:
You're welcome, btw I'd like to bring something amazing, not sure if I can do that, just trying now. ;)

Ans 1. As I know, Ambient Display hasn't worked on A9 since its first nightly of CM14.1. If I have enough time, I'll see how to enable it.

Ans 2. Is VoLTE supported by stock ROM? It always downgrades to 3G when I'm in a call, with stock 6.0.1/7.0 and LOS 14.1. I think A9 doesn't support VoLTE, unless intervigil making it work. xD
[HTC One A9] adrpam:
Hello!

I have S-OFF A9 device, but I can't install this ROM under TWRP. I receive an error on installing, don't remember now which error (testings was made few weeks ago).

Can someone tell me wich firmware to install before installing this ROM? One link for it will be great! Thanks in advance!

Anyway, I managed to install another ROM with dedicated firmware:

2PQ9IMG_HIA_AERO_UHL_N70_SENSE80GP_MR_HTC_Europe_2.17.401.2_Radio_1.1.U40062.1@61209_60.00_F_release_500842_combined_signed_2

This working good in my device, but unfortunately my native language (Romanian) is not in the available language (actually, there is only few languages available). Maybe this ROM have it?

Or, someone can suggest me one International ROM Android 7 with root (to have Romanian language also)

Many, many thanks for any informations!

Best regards!
[HTC One A9] Dragonkind:
I'm not sure why you couldn't install this ROM before. Did you use the latest stock firmware then?

There's Romanian in LineageOS ROM, thus you can try it again. (Remember to choose the release for hiaeuhl)

And about TWRP, I suggest you to install the latest one, it's stable enough.
[HTC One A9] :
Will we see a Lineags OS 14.1. with the latest Security Patches for Oktober'18 from you? ;)
[HTC One A9] Dragonkind:
Yes for sure! But I moved my VM from SSD to HDD (prevent SSD lacking storage), waiting for Win 10 1809.

Thus the next releases will upload later, or skip October and build November directly (I hope I can still make October one).

A good news is, I want to play some tricks on speaker and earpiece, and I've got the preliminary success.

As I know, there's nobody else doing this, though it can make our A9 great again. :cool:
[HTC One A9] Dragonkind:
First Release of Dual-Speaker Addon

As I said, I'm playing some tricks about our speaker and earpiece.

Now it's time to introduce it to guys, but some points need to be announce here:

1. It's not useful, just for fun, or those who want their speaker louder.

2. Due to our earpiece designed as an earpiece, not a secondary speaker, it won't make A9 powerful like Samsung S9+ or such other devices which have dual-speaker with their stock firmware.

3. Earpiece plays only "left" channel. Speaker plays both "left" and "right" channels.

4. "Left" or "right" channel is not determined by rotation sensor. Rotating to 90 degrees (counter-clockwise) will get the best stereo experience.

5. If speaker plays only "right" channel, the "left" channel would be too weak. The other reason, I've not found any way to make speaker play mono channel either with "left" or "right". :p

6. Due to above reasons, I prefer the mono version, let our earpiece be just a booster.

7. Never ask me if earpiece can be louder, I'll keep trying it, but I don't expect to break anyone's earpiece. If you try to enhance the volume then break your earpiece, I'll laugh at you.

8. Use this addon with your own risks though it has been already tested ok by me.

If you wanna try, you can DOWNLOAD ADDON HERE.
[HTC One A9] Saad. Mk:
Isn't there a revert zip in case we don't have a backup?
[HTC One A9] Saad. Mk:
Additionally can anyone help me enable LTE Band 3 on my device, I've tried all the methods listed in every form regarding this with no luck, as of now I am only able to get HSPAP services. Much help is appreciated.
[HTC One A9] Saad. Mk:
These are the only bands I am able to get, I need an 1800 band 3 for LTE services in my country. I am posting this here since I am infact running latest LOS and because this has been the most active thread
[HTC One A9] Dragonkind:
Use Solid Explorer or other file managers:

Go to "/system/etc" → find "mixer_paths_wcd9330.xml" and delete it → find "mixer_paths_wcd9330.xml.bak0" and rename as "mixer_paths_wcd9330.xml".

Then you'll get the default mixer without dual-speaker.

Or if you need, just download the default mixer file below and paste it into "/system/etc".

See attachment.

But in fact, I had left this info in TWRP installation script already, so you 100% won't mess it up.

If I have enough time, I'll take it a look. Currently I have no idea about modifying RIL, maybe it needs intervigil's help.

To be frank, I never notice about which bands I use... :silly:
[HTC One A9] Saad. Mk:
Does anyone have a solution for the crap video recording ie slow fps and stuttery recorded videos in third party apps. The stock camera has the smooth 30 fps but the snapchat and instagram apps both record in very crap frames
[HTC One A9] Dragonkind:
Dual-Speaker Addon (Nov-17-2018, Updated)

Changelog

## 2018/11/17 ##

Stereo → DOWNLOAD HERE

Mono → DOWNLOAD HERE

Uninstall tool (back to default) → DOWNLOAD HERE

# Increase volume slightly
# Add mono channel version (both earpiece and speaker play all channels)
# Add uninstall tool (flash via TWRP)
[HTC One A9] seser111:
hey [MENTION=4776747]Dragonkind[/MENTION] Can you make LOS version 16 rom? Is that possible?
[HTC One A9] Dragonkind:
I feel sorry about this issue, coz I'm absolutely not able to fix this, I even have no idea about what would cause it... :crying:

Well, I also wanna know the answer.

Intervigil keeps uploading gerrits, I guess we may be the second wave of LOS 16, probably in early 2019.

Considering to my ability, the only thing I can do is to remind him enabling call recording function on default.

Before that, I will keep upload unofficial 14.1.

I know there has been November security patch released, so the new 14.1 releases for hiaeuhl and hiaeul are not too far.
[HTC One A9] Saad. Mk:
Speaker mod works great:good::good:
[HTC One A9] AceNik:
Yes it works well, thank you very much for creating the same
[HTC One A9] Dragonkind:
Also thank you all for your like, I feel satisfied! :D

Btw in my opinion, I prefer the mono version more, coz our earpiece couldn't actually bring an obvious stereo effect.

It's only a booster and unable to automatically rotate with sensor.
[HTC One A9] Dragonkind:
LineageOS 14.1 (Nov-24-2018, Updated)

Changelog

## 2018/11/24 ##

HIAEUHL → DOWNLOAD HERE

HIAEUL → DOWNLOAD HERE

# Update Android security patch (2018/11/05)
[HTC One A9] :
Thank you for providing us with the security patches. Good job :o

I just did a fresh install and everything works fine.

It also looks like there is some hope in finding the cause of the call-bug in 15.1 ;)
[HTC One A9] cuongtktphd:
Thanks!!!
[HTC One A9] Saad. Mk:
Bug report, headset mic isn't recording audio using stock camera instagram snapchat to record videos it records audio with the phones mic even with the headset plugged in, I tried multiple headsets with mics none worked.
[HTC One A9] Dragonkind:
I don't think it a bug, could you test it on other devices with stock firmware?

Coz when you take video recordings, you need better mics and not just a mic for voice call.

Anyway I may also test it if I can.
[HTC One A9] AceNik:
Hey Guys,

I've managed to setup the entire build environment for the Lineage OS 15.1 builds.

If I do generate some builds can some of the earlier devs help verify and lemme know how I can help them if required?

EDIT: I'm stuck at this error which generating final build

Ckati failed with : signal: killed

Given 4.5GB ram to the process from 5GB of the computer

Thanks
[HTC One A9] Saad. Mk:
I did and all of them are using the external headphone mic with stock and third party apps
[HTC One A9] Dragonkind:
Have you read this? #3

First I wanna know the specifics of your computer, and where did you get the error texts? Coz I don't have any impression with "Ckati".

I got the same result with IG, but with Messenger, both voice clip and video used headphone mic.

Not sure why it happened and if it had any consideration.
[HTC One A9] Saad. Mk:
Exactly but I clearly remember that the dev modified ROM for our A9 used the external mic each time the headphones were plugged in even with the bluetooth ones.
[HTC One A9] AceNik:
thanks for helping on the same, I configured a virtual machine.

Ubuntu 18.10

5.5GB RAM

109GB HDD

2.5GHz 4Core CPU

so I was not using the CCACHE since disk space is limited

I'll try disabling the NINJA flag as well.

So figure 8GB RAM will be a complete minimum requirement?

Thank You
[HTC One A9] abhijeet11:
Thanks for your revert. My submission to Answer#2: Yes, indeed the stock nougat firmware had broken VoLTE but the marshmallow 6.0.1 was definitely working on VoLTE and you will find threads on XDA where ppl had to downgrade OS to continue using service on Jio (A VoLTE only carrier in India)

Hoping there is some breakthrough in future or whenever HTC gets an urge to release a fix considering its 2018 and VoLTE is for granted in the world.
[HTC One A9] Dragonkind:
I've compare the mixer_paths files between CM13's, LOS 14.1's, LOS 15.1's and LOS 16.0's.

They are totally the same, so I have no idea about how to modify it like I enabling dual-speaker.

Maybe somebody can write email to Ethan (our dev), see if there will be any change on LOS 16.0.

Then I can try to do the same thing, making LOS 14.1 more stable.

I found two problems, first, 109GB wouldn't be enough, I gave it 170GB and it always remained 40GB-50GB only.

Second, SDD would be much better than HDD. So if you have SDD, I suggest that you can put your VM (or Linux system) there.

Then I don't think this bug can be solved on any Android 7.x ROMs. Ethan had tried to solve it on LOS 15.1, but there were more other problems.

I think we might wait for our LOS 16.0 together... :p
[HTC One A9] Dragonkind:
Dual-Speaker Addon (Dec-04-2018, Updated)

Changelog

## 2018/12/04 ##

Mono → DOWNLOAD HERE

Stereo → DOWNLOAD HERE

Uninstall tool (back to default) → DOWNLOAD HERE

# Adjust sound to a clearer quality
# Less buzz signal for some music with stronger rhythm
[HTC One A9] AceNik:
Point taken, thanks for your guidance by pointing me to the right thread, I increased the open PID limit, also made swap partition and the execution worked fine no memory errors but then exactly like you said the disk space landed up being 100 GB without swap so the entire environment failed since storage ran out.

Also I ignored the document to change lineage to CM14.1 during initializing the repo.

So I guess need to setup a new machine with >170GB disk space. I'll do that maybe in 2 weeks.

Thank you
[HTC One A9] Dragonkind:
Wait, as I remember, you want to build 15.1 right?

Your selected branch should be lineage-15.1, and the codename is "hiae", not "hiaeuhl" nor "hiaeul".
[HTC One A9] AceNik:
Yes meant exactly that I followed the original lineageS wiki and your thread for optimizations

Thanks will take out some time to build a new machine with more disk space. PS: digitalocean virtual machine with 320GB disk space n ssd with 16GB costs $80 approx per month. Was tempted but it's expensive as a running cost. But it's a superb powerful fast machine.
[HTC One A9] Saad. Mk:
Hello, upon further testing, I've found a problem with the camera app.

When I tap to focus, the image focuses for one second and then goes completely out of focus for close up shots, I was trying to take pictures of text from close up and as soon as I touched to focus, the camera went out of focus and would focus back until I restarted the app.

---------- Post added at 09:29 AM ---------- Previous post was at 09:23 AM ----------

I was able to reproduce the bug almost each time. https://drive.google.com/file/d/1vwSYQRtQhVW8Krjyh5YtlLMDQ8mErQ22/view?usp=drivesdk
[HTC One A9] Dragonkind:
I think it's not software issue, try to not take pictures under 6 cm between camera and objects.
[HTC One A9] Saad. Mk:
The issues persists even for objects at a further distance than 6 cm.