yashsingh1/xdaforums huggingface dataset:
[HTC One A9] :
How do i do this ?

Should i unpack it and look in the extract-files.sh script for the files i need ?

Or is there some possibility i can do this automatically ?
[HTC One A9] :
Managed it to get the files from the latest nightly hiaeul build with these instructions:

http://xdaforums.com/android/software-hacking/how-to-conver-lollipop-dat-files-to-t2978952

Following only until step2 and mounting the image (I had to mount it to /home/ollilein/system), after that i changed in the Folder ~/android/system/device/htc/hiaeuhl and ran the "./extract-files.sh /home/ollilein" command and then it extracted the files from the /home/ollilein/system folder.

Now it started building, if something went wrong i will post again.

---------- Post added at 14:16 ---------- Previous post was at 13:21 ----------

The ninja build stops at 33% here is the error message (Think this is the part needed):

[ 33% 16680/50034] build /home/ollilein/an...ermediates/file_contexts.device.sorted.tmp
FAILED: /home/ollilein/android/system/out/target/product/hiaeuhl/obj/ETC/file_contexts.bin_intermediates/file_contexts.device.sorted.tmp
/bin/bash -c "(/home/ollilein/android/system/out/host/linux-x86/bin/checkfc -e /home/ollilein/android/system/out/target/product/hiaeuhl/obj/ETC/sepolicy_intermediates/sepolicy /home/ollilein/android/system/out/target/product/hiaeuhl/obj/ETC/file_contexts.bin_intermediates/file_contexts.device.tmp ) && (/home/ollilein/android/system/out/host/linux-x86/bin/fc_sort /home/ollilein/android/system/out/target/product/hiaeuhl/obj/ETC/file_contexts.bin_intermediates/file_contexts.device.tmp /home/ollilein/android/system/out/target/product/hiaeuhl/obj/ETC/file_contexts.bin_intermediates/file_contexts.device.sorted.tmp )"
/home/ollilein/android/system/out/target/product/hiaeuhl/obj/ETC/file_contexts.bin_intermediates/file_contexts.device.tmp: Multiple different specifications for /data/misc/perfd(/.*)? (u:object_r:mpctl_data_file:s0 and u:object_r:mpctl_socket:s0).
Error: could not load context file from /home/ollilein/android/system/out/target/product/hiaeuhl/obj/ETC/file_contexts.bin_intermediates/file_contexts.device.tmp
[ 33% 16680/50034] target C++: adbd <= system/core/adb/file_sync_service.cpp
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Fehler 1
make: Verzeichnis „/home/ollilein/android/system“ wird verlassen

#### make failed to build some targets (40:54 (mm:ss)) ####

Hope it helps.
[HTC One A9] Dragonkind:
No CM14.1 for hiaeuhlâ€¦lol

Could we edit the updater script to let hiaeul's CM14.1 install on hiaeuhl?

There has been several builds for hiaeul.

Their specs are all the same, why not to make it release?
[HTC One A9] Phone_fan:
I tried those methods. They fail with many errors. And when I successfully flash the TWRP backup that I made before wiping the original system, the phone bootloops the HTC screen.
[HTC One A9] Tommmii:
please be specific about the errors you are getting? Screenshots and/or logs are useful.
[HTC One A9] Phone_fan:
By the way, the only RUU zip I could find is of an older firmware. There is no RUU zip yet based on the original firmware of my A9..
[HTC One A9] Dragonkind:
Try "htc_fastboot", not "fastboot" in your commands.
[HTC One A9] Phone_fan:
I originally tried that and it wasn't recognized as a valid command.
[HTC One A9] Tommmii:
that's because you need to download htc_fastboot...

there's a link in this post : https://xdaforums.com/showpost.php?p=64073776&postcount=43

---------- Post added at 11:02 AM ---------- Previous post was at 10:59 AM ----------

If you are trying to flash an older firmware or rom, I don't think that will work, unless perhaps if your phone is S-Off. (but I might be wrong)
[HTC One A9] Phone_fan:
There is no zip of the RUU my A9 needs. The firmware is 2.18.617.30. I can't find an RUU zip of that firmware.
[HTC One A9] Captain_Throwback:
Sure there is, right from HTC:

http://dl3.htc.com/application/RUU_HIA_AERO_UL_N70_SENSE80GP_MR_NA_Gen_Unlock_2.18.617.30.exe
[HTC One A9] Phone_fan:
My A9 is back up and running...currently restoring the Google backup from the last time it was used. Thanks to all of you and alray.

Much appreciated.
[HTC One A9] Mbuuqw:
Restating my original question, Is LOS available on 2.x yet?
[HTC One A9] Dragonkind:
Not yet but this release seems to fix some issues about memory. If you are on 1.5x.xxx.x, I think it worth it to update.
[HTC One A9] Tommmii:
not according to https://www.cmxlog.com/14.1/hiaeul/
[HTC One A9] Ultramanoid:
Yesterday's build merged Android's latest security patch ( August ), so there's a reason to use it, instead of anything else that remains unpatched for vulnerabilities.

(๑•́ ₃ •̀๑)
[HTC One A9] Tommmii:
would it be worth downgrading to 1.5.xxxxxx and getting LOS?
[HTC One A9] Ultramanoid:
You'd have a safer, more secure device, with a worse camera, and all Lineage features, basically.

For any other bugs that may affect you check what other people have posted, but generally it's the camera that disappoints most.

And then you would have to upgrade to 2.x again when Intervigil rebases the build on the Nougat kernel, which may happen soon, whenever he has time.

( Also in a few weeks Android O is coming out, but I doubt hTC plans to support this device beyond Nougat, being two years old already and not a flagship... )
[HTC One A9] megatomic:
There's no reason that LOS maintainers couldn't make a build of LOS for the A9 based on the 2.x firmware that was currently released, right? For example, OP hasn't done anything for the OPO since Marshmallow and the OPO has a great LOS Nougat build.
[HTC One A9] Ultramanoid:
Sure. Lineage will likely have an Android O build with Nougat kernel if there are no major issues, same as we are using a Nougat build with Marshmallow firmware now.

I meant we can't expect hTC to update the device anymore, more than likely no more kernels for it.
[HTC One A9] megatomic:
I think I agree with you, when HTC released the kernel source code I think they were giving up supporting the phone themselves. No RUU updates since June 23 now.
[HTC One A9] Didusieq:
Lucky guys. For EU, last update is from February. :(
[HTC One A9] mrsubway:
Can someone please help? I want to try Lineage, but I'm on HTC Nougat Unlocked. I'm S-OFF. The problem is, all links to a 1.5 RUU are dead so I can't downgrade.
[HTC One A9] alray:
Only .exe ruu links were removed (removed form htc website). The zip versions can still be downloaded.
[HTC One A9] mrsubway:
I found it. So, I'm assuming I flash the zip in TWRP, flash Lineage, GAPPS and that's it.
[HTC One A9] alray:
ruu zip are not flashed from twrp, read the ruu thread post #2
[HTC One A9] Tommmii:
the links in the RUU collection thread are working juuuust fine.
[HTC One A9] megatomic:
With Lineage builds based on the 2.x firmware presumably just around the corner why would you want to bother with flashing old firmware? What I have done and what I am suggesting everyone else in your situation do is to install this instead: https://xdaforums.com/one-a9/development/att-dev-rom-vvm-integrated-release-4-24-t3365326. You can stay on the current firmware and this way when it's time to install LOS with the new firmware you are good to go.
[HTC One A9] alray:
no, marshmallow .exe ruu links are dead
[HTC One A9] mrsubway:
Thanks guys. I'll wait then. :)
[HTC One A9] Xtaner:
Only for: HTC One A9 (GSM International) - hiaeuhl

Status report from me to the following build:

lineage-14.1-20170816-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

- Decryption of /data with TWRP 3.1.1.0 still not working

Fixed:

- Music Player alway displaying album covers on lock screen (if you enable and disable this bug stop till you close the app) --> 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] Ultramanoid:
HDR is working fine with Open Camera, latest build.
[HTC One A9] paparansen:
where can i check if the LOS version that i can install on stock nougat

is released?
[HTC One A9] megatomic:
It should be noted here.
[HTC One A9] paparansen:
thank you.

is there a possible timeframe?
[HTC One A9] megatomic:
The A9 is not a popular device, I don't think it's a high priority to get it ported to the new kernel version. No timeframe has been announced so we should just maintain patience and wait for it to happen.
[HTC One A9] paparansen:
yeah, i was afraid of that information.
[HTC One A9] Mbuuqw:
Any news for Firmware 2.x compatibility on the US version of the A9?
[HTC One A9] Ultramanoid:
Check the changelog at Lineage. Wouldn't hurt to read the posts just immediately before yours, either.
[HTC One A9] loner.:
No not yet.
[HTC One A9] :
I'm not so sure about this argument. Granted the A9 is not a popular device. But there is a developer after all and I'd guess that most of the A9 users have upgraded to the 2.x firmware by now. By not porting to the new kernel version anytime soon wouldn't that mean that LOS would be developed for a non-audience? I can not say how much trouble it is to implement the new kernel version since I'm not a developer myself, but I'm optimistic that we'll see an LOS nightly for the A9 that supports 2.x firmware in the next couple of weeks. Let's cross our fingers :)
[HTC One A9] Ultramanoid:
If a user is interested in running Lineage, then they wouldn't upgrade to 2.x, wouldn't make sense unless they want to run stock instead. People who did peppered this thread and the RUU thread with questions on how to downgrade as soon as they realized it.

Anyone who bought this device very recently might be considering Lineage but not want to downgrade, but this device is two years old and expensive compared to what you can buy today, so that should be a really small audience.

Also, stock is not patched for vulnerabilities every time an Android patch is released, nor is it releasing updates with fixes and new features every week, so it's clear where development is active and where it is not.

Anyway, changes in hiae-common merged in the last few hours and development indeed ongoing, patience.

(^_^)b
[HTC One A9] megatomic:
I didn't mean to insinuate that we weren't going to get an update just that it's not going to happen pronto.
[HTC One A9] :
The only person to estimate when we'll see a LOS that supports 2.x firmware would be the developer himself. Everything else is just speculation. So let's hope for the best ;)
[HTC One A9] Ultramanoid:
Lineage survey :

https://www.xda-developers.com/line...frastructure-wallpapers-and-public-relations/
[HTC One A9] mrsubway:
I wouldn't mind downgrading but all the RUU exe links are dead. I have the zip, but not sure how to use it. I know I'll come off sounding like an ass, but don't even continue releasing Lineage for our device until it can be used on the 2.x kernel.
[HTC One A9] anunknwon:
For MID: 2PQ910000

cidnum: HTC__001

cidnum: HTC__034

cidnum: HTC__J15

cidnum: HTC__M27

cidnum: HTC__A07

cidnum: HTC__016

cidnum: HTC__002

1. Go to RUU mode (I called it)

fastboot oem rebootRUU

2.then flash firmware -

https://mega.nz/#!8zJgnYhb

[B]htc_fastboot[/B] flash zip 2PQ9IMG_HIA_AERO_UHL_M60-Firmware.zip

it may fail but after device reboot, go to RUU mode again and resend that command until it successful. (sometime take 2 to 3 times)

3. AFTER successful flash firmware now flash Stock (do not skip this step you will get some error with Data/Carrier and cannot load LineageOS anyway

https://www.androidfilehost.com/?fid=24457741883933257

htc_fastboot flash zip <file_name>.zip

4. Reboot to bootloader and go to Download Mode to flash recovery. (any version)

5. Reboot your phone and let it loading until Wizard setup screen comes up.

6. Reboot phone to Recovery mode and copy LineageOS + GApps (64) to your phone (In my device it will not detect SDCard (most of the time))

7. Go to Wipe > Advanced Wipe > Internal Storage

8. Go to Wipe >Format Data

9. Flash Rom and GApp

Hopefully help someone :rolleyes:

P.S. I did extract firmware from RUU so its CLEAN and safe IF these RUU's clean too :eek:
[HTC One A9] Ultramanoid:
Android is open source ( and Oreo images have just been uploaded, you can use those too ! ), Lineage is also open source, and hTC released the kernel. Nothing can stop you, really.

You can probably sit down over the weekend with all the code and just whip up a good build for 2.x firmware yourself, instead of waiting for other lazy people to do it ? ( You could even publish your build and charge some money for the work, lots of folks without the time or knowledge to do such things might buy it. Win-win for everyone ! )
[HTC One A9] Tommmii:
I think the main reason for frustration is that we have no idea what is happening with the 2.x situation... any kind of status update from our developer would ease concerns.

Right now, we can only suppose/hope/pray that development is progressing.

A short message to bring us up to speed would go a long way.

Lineage wants to be all about communicating with its users, see the recent Summer Poll... except for the HTC A9 users, who must be kept in the dark ? :eek:
[HTC One A9] intervigil:
I don't have much free time to work on things these days, nor do I frequent XDA.

I'm making my way (slowly) through cleaning up the HTC kernel and testing with the 2.18.617 libraries. Right now things don't work yet, so I haven't pushed any code anywhere.
[HTC One A9] loner.:
Thanks for the information!
[HTC One A9] mrsubway:
I never called anyone lazy. I have nothing but respect for those who develope. I don't have the necessary skills to do that myself.
[HTC One A9] Miramontes:
Any news?, I've been looking at the logs for the latest nightlies but not sure on what am I supposed to be looking for :p ...

I mean will the update in the LOG say something like "available for latest kernel"?

Can someone please help me clear this for me :D
[HTC One A9] Mbuuqw:
I'm assuming it will, the maintainer for the ROM says that he's been busy outside of maintaining the ROM so I'd doubt it's coming any time soon. Either that or the 1st ROM to support 2.x firmware is going to be LOS 15 which I feel is definitely worth the wait.
[HTC One A9] bjo81:
Oh, I see many hiae-related commits: https://www.cmxlog.com/14.1/hiaeuhl/ :)
[HTC One A9] Mbuuqw:
Where the support for 2.1x kernels at tho? :crying:
[HTC One A9] bjo81:
No new commits here https://github.com/LineageOS/android_kernel_htc_msm8952 yet.
[HTC One A9] Mbuuqw:
I get that the maintainer is also a person with a life outside of maintaining the One A9's ROMS, but waiting is hard.

(ノಠ益ಠ)ノ彡┻━┻
[HTC One A9] Tommmii:
have a look at https://www.cmxlog.com/14.1/hiaeul/

many references to 2.18.617.30 for the next nightly
[HTC One A9] :
Just a n00b-question and out of curiousity: I have the european A9 and I'm 2.17.401.2. Will my phone boot LOS once the kernel is updated? 2.17.401.2 is not 2.18.617.30 ;)
[HTC One A9] :
https://github.com/LineageOS/android_kernel_htc_msm8952/tree/htc-2.18.617.30

The new kernel is online since end of July :)
[HTC One A9] Miramontes:
Does this means latest nigthlies work on 2.18.617.30?
[HTC One A9] :
No :)
[HTC One A9] Nuroxy:
I flashed LineageOs Latest build and open gapps. I have MM 1.5x firmware but encryption unsuccessful on first boot. I flashed Ruu again. Can someone help ?
[HTC One A9] mrsubway:
No. I tried it last night. Immediate boot to bootloader.
[HTC One A9] Mbuuqw:
Is firmware 2.18.617.41 gonna be supported with the new nightly? Changelogs for next nightly look hot as hell but I, unknowing of this situation, updated to the newest firmware and now I'm stumped. Should I go back to .30 or will the new ROM work?
[HTC One A9] intervigil:
Latest build requires 2.xx firmware. 2.xx bootloader is not compatible with 1.5x boot image, and vice versa. Don't ask me why HTC completely changed the DTB version.
[HTC One A9] mrsubway:
Then I did something wrong. I'm on 2.xx. I wiped everything out in Twrp and installed the 0905. I only tried because I had screwed up my phone and had to reinstall anyway. After the flash the phone would only boot straight to bootloader mode. I just RUUed and went to bed. :D
[HTC One A9] paparansen:
i dont think that is correct.

flashed latest LOS on 2.xx firmware, results in stuck in bootloader.
[HTC One A9] paparansen:
same to me.
[HTC One A9] Dragonkind:
Uhh... I think there are many people misunderstanding.

The LOS 14.1 with firmware 2.18.617.30 will release next week, not the current latest 0905.

But I am on 2.18.617.41 now, could I use next release (firmware .30) directly with firmware .41?
[HTC One A9] paparansen:
i am on 2.17.401.2 hiaeuhl
[HTC One A9] intervigil:
It's possible the 905 build happened just before changes went in, so 905 may still be a 1.5x firmware based build.
[HTC One A9] mrsubway:
Another probably stupid question. I'm on an AT&T A9, unlocked, S-off, running. 41. Would I use hiaeul or hiaeuhl?
[HTC One A9] Nuroxy:
Anyone knows encryption unsuccessful error ? Last build 1.5x firmware.
[HTC One A9] Miramontes:
hiaeul :good:
[HTC One A9] mrsubway:
Thanks! That's what I thought. Hopefully the next nightly will be out soon. It looks promising. Getting tired of stock, though I like Sense MUCH better than Touchjizz.
[HTC One A9] Mbuuqw:
I love Sense, it's so much added on top of AOSP but still feels like how vanilla Android should regardless of the chocolate sprinkles.
[HTC One A9] Tommmii:
My phone was a htc_hiaeuhl (mid: 2PQ910000 cid: HTC__034),

I converted it to :

> ./fastboot getvar all
(bootloader) kernel: lk
(bootloader) product: htc_hiaeul
(bootloader) version: 1.0
(bootloader) max-download-size: 750400000
(bootloader) serialno: removed
(bootloader) slot-count: 0
(bootloader) current-slot:
(bootloader) imei: removed
(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: BS_US001
all:
finished. total time: 0.065s

If/when LOS becomes available for 2.18.x.x , should I flash hiaeuhl or hiaeul ?
[HTC One A9] Mbuuqw:
If it says hiaeul, go for hiaeul. Boot into downloaded mode to double-check.
[HTC One A9] eavandijk83:
I believe Vanir AOSP is now compatible with 2.1.X firmware. More here. Guess it won't take long for LOS to follow.

update:

Confirmed: vanir 0907 is working with latest htc firmware
[HTC One A9] paparansen:
i flashed it, after booting there is an permanent error which cant be closed "GestureHandler stopped".
[HTC One A9] KickMeElmo:
Found a significant bug, would like confirmation. Currently running the 2017/08/29 build, toggling airplane mode on and back off causes a hard crash of LineageOS.

On an unrelated note, anyone know if the updated firmware and build for it will include FM radio support? Kinda sad having the device but no functional driver.
[HTC One A9] :
Can confirm this with 0905 latest nightly hiaeuhl. After the reboot the airplane mode is on and can be disabled without a reboot.
[HTC One A9] daktah:
i wiped my system, data (not int sd), cache and dalvik and installed lineage 14.1, but it gives me a decryption unsuccessful error on boot and even rebooting to trwp to do a factory reset does not fix it. i never encrypted anything on my phone when it was on the old htc rom. how do i fix this?
[HTC One A9] paparansen:
as i know, twrp does not support encryption. not 100% sure.
[HTC One A9] :
https://xdaforums.com/devdb/project/?id=12708#downloads

Have you tried to install the UPDATE-A9_boot_image_patcher.zip after flashing Lineage ? It prevents the encryption of /data and removes dm-verity.
[HTC One A9] KickMeElmo:
Matches my experience exactly. Thank you for confirmation. Definitely will need to make the maintainer aware of this.

You need to find the patch somewhere in this thread to fix encryption and flash it during the same TWRP session when you wipe data. I haven't done it myself, and instead accepted the massive inconvenience of having a recovery-inaccessible data partition.
[HTC One A9] daktah:
wiped everything again including internal sd, installed lineage and the patcher, still have the error on first boot. rebooted, factory again, ran the patcher, still have the error dont even have the option to continue because the reset phone button doesnt work and i cant do anything else.
[HTC One A9] KickMeElmo:
Wait, you're saying the ROM is giving the decryption error, not TWRP? I gave you the wrong solution then, and I don't know what the right one would be.

EDIT: Check the signature on your lineage ROM, advanced wipe data, cache, dalvik/ART, and system, reflash, use the patcher as well. Flash multiple zips, don't let it reboot between them. Also make sure you have the right ROM (hiaeul vs hiaeuhl).
[HTC One A9] Dragonkind:
Just format data with TWRP, bro.

Format data (button), not wipe data (selectable option)!

After formatting once, you will get your phone with decrypted data.
[HTC One A9] mrsubway:
Same here.
[HTC One A9] loner.:
Does Magisk work on lineage-os?
[HTC One A9] Captain_Throwback:
Yes.
[HTC One A9] mrsubway:
Latest Lineage build booting on 2.xx! So far so good!
[HTC One A9] :
Unfortunately I can't confirm that. I installed hiaeuhl on my European A9 (2.17.401.2 - cidnum: HTC__034).

It does install just fine and I get to the welcome-screen and can set language and time. But as soon as it finds my carrier it goes back to boot animation for a few seconds and starts the welcome process all over again. It happens the instant it finds and connects to my carrier. So no happy using LOS for me, yet :crying:
[HTC One A9] mrsubway:
My apologies. I should have specified hiaeul.

---------- Post added at 06:00 AM ---------- Previous post was at 05:54 AM ----------

There is one bug, but it's fine. It's been a bug for my last 400 phones, multiple brands on AT&T, so it has to be them. Using ANY ROM in this galaxy and Andromeda that ISN'T stock won't allow access to the call forwarding options. It HAS to be the AT&T SIM cards. I swear it's been like this since Gingerbread! I cannot access advanced call settings.
[HTC One A9] paparansen:
i have the same phone, flashed latest LOS a few minutes ago, so far its working, still testing, will update feedback later.

UPDATE

- phone is encrypted by default

- cell / mobile data working

- phone calls / sms working

- wlan / bluetooth working

- camera working in whatsapp

- fingerprint working

- playstore & netflix working

- mtp not working ( working before with stock rom ), will try to fix with another driver.

UPDATE

after switching the usb mode in dev settings about 3626 times, mtp is working as long as the usb cable is in.

- DAC not working / disabled, which makes this rom completly useless for me.

that is sad :/
[HTC One A9] Lolli26:
Is camera working with third party apps? ( WhatsApp Messenger ecc. )
[HTC One A9] paparansen:
yes

still no luck with mtp.

any hint which driver to use for mtp?
[HTC One A9] Lolli26:
Thanks! Probably I will install the rom if the camera's bug is gone :good:

If I don't remember wrong the same problem was present with old lineage/cm builds. The only solution was to switch a few time from mtp mode to charge mode ( i know this is annoying )
[HTC One A9] paparansen:
cant get mtp to work, tried anything and any driver :crying: