yashsingh1/xdaforums huggingface dataset:
[Fire HD 8 and HD 10 Original Android Development] digitalTARDIS:
Feedback on LineageOS 16 ROM

I installed the new LineageOS 16 ROM last night and have been testing it off and on since. Here is everything I've found so far:

Bluetooth keeps stopping (doesn't work at all)

Wi-Fi spontaneously disconnects

V-Sync is slightly glitch

HotSpot doesn't work at all (says error)

Some GApps do not open and crash until updated

Screen freezes requiring force shut down and restart

Videos do not play (not even on YouTube)

Pixel Launcher keeps stopping (doesn't work at all)

Music playback works

Magnetic screen lock (lid opening/closing) works

Expansion SD card storage works

Other than Bluetooth and the very annoying pop up saying that "Bluetooth keeps stoping", there seems to be something with the screen freezing after a while of continuous use, say 30-40 minutes?

I wonder if Bluetooth needs something simple like the driver updated, because according to Google, Bluetooth not working on LineageOS 16 is not very uncommon. I wonder if it is possible to reuse the old Bluetooth driver from LOS 14.1 (or would the API change prevent that from being possible?) or is it something else deeper in the code need to be adjusted? Most things aside from the screen freezing, bluetooth, and codecs are doable for a time as there are work around.

Great job to everyone involved in this as it looks and feels amazing. I highly recommend everyone try it out if you have a spare tablet or don't mind the bugs.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
Thanks for testing it out! [MENTION=5749760]ggow[/MENTION], what is the proper way to fix the wifi from going off when the device is asleep? I had that problem too. Would it be the kernel side or the software side. Somehow the graphics tend to crash it has happened to me before. The hotspot will be fixed with the kernel side because amazon hasn't implemented that yet. For the Bluetooth the workaround is to disable is pm disable com.android.bluetooth. In this time I have school and when I finish I will be able to work on it today. So ggow, the Bluetooth path for idme is /proc/device-tree/idme/bt_addr/*. For nvram one is /data/nvram/APCFG/APRDEB/BT_Addr. Do I have to set it though build.prop or the file for Bluetooth lib in hardware/interfaces. It errors out "no Bluetooth address found!". The codecs are still not working also except other stuff like sound and screen recording. Somehow it crashes surface flinger.
[Fire HD 8 and HD 10 Original Android Development] breakfastofsecrets:
Supporting HD8 2017 / gen7 / douglas?

Now that [MENTION=7104332]k4y0z[/MENTION] managed to get the bootloader unlocked on douglas / HD8 gen7 devices, what would be involved in also building ROMs to support this device? The hardware looks identical, but I'm sure the devil will be in the details. Any ideas on where to start?
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
I don't see that link :/. Can you share it?

Thanks.
[Fire HD 8 and HD 10 Original Android Development] breakfastofsecrets:
I'll leave it to [MENTION=7104332]k4y0z[/MENTION] make an announcement. But can confirm that it worked flawlessly for me.
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Yeah he pm'ed me too. But I tought he already published the thread.

This ROM can be ported to 7th gen but will need kernel patches.
[Fire HD 8 and HD 10 Original Android Development] EvilWayz:
Ok, does anyone else have a problem with mm recovery working? I ended up switching to Lineage just to get magisk props to work so I could pass a cts check, and it does but I still cant get mm recovery to work and soetimes when I install a module for hte hell of it I get stuck in a boot liip and I have to restore a backup. Magisk recovery would be easier.
[Fire HD 8 and HD 10 Original Android Development] digitalTARDIS:
Can you provide a link to TWRP 3.3.1-0 please?
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
https://lmgtfy.com/?q=TWRP+3.3.1-0+Fire+HD8+2018+(karnak)
[Fire HD 8 and HD 10 Original Android Development] MrHomebrew:
Pie will be amazing to see. Really hoping for a stable release. Many features I would like to get working specifically on Pie.

OP/ORIGINAL DEVELOPER how is the next update coming along? What is your specific focus?
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
[MENTION=5234347]Leonidas87[/MENTION] The GitHub repos are in the OP. Here are the recent commits to the active branches:

https://github.com/mt8163/android_device_amazon_karnak/commits/staging-lineage-16.0

https://github.com/mt8163/android_device_amazon_karnak/commits/lineage-17.0

If you read the commits and his notes you'll see that he made some public commits to 16.0 with attempts to correct the camera and bluetooth issues, but is still unsuccessful. The current status is that it is actively being looked into, and he'll make a post here when necessary. If you are interested in regular updates, the best place to keep an eye on would be GitHub.

You'll also see that some time has been spent more recently on testing 17.0, also mainly focusing on those issues related to our hardware. I would say that his specific focus is to get us a new build ASAP, and that we should give him some time to get that done. He mentioned earlier that school just started for him, and that he also maintains a job, so we should respect that and understand that he won't be able to work on the ROM as often or post here as often. I'm not trying to suggest that you aren't respecting that; it's just a reminder.
[Fire HD 8 and HD 10 Original Android Development] MrHomebrew:
Thanks for the info, I have spoken directly with the developer. I never expect an ETA or anything like that, life gets busy for all of us. You are correct tho the github page is the best place to see what is currently being worked on along with commits for changes and fixes.

Overall I appreciate the work that has been put in, Lineage for the Amazon Fire HD 8 has brought life back to the device, I have 2 myself. I'm planning on getting some info up with some modding steps that can be done to achieve some cool features on the device itself. Just waiting for pie as that will be where most things will continue. Not to mention pie up has capabilities well rooted that nougat and below just not are capable of.
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
Looks like [MENTION=9605864]Kaijones23[/MENTION] has been hard at work on a new custom kernel for us! Looking forward to seeing it come to fruition
[Fire HD 8 and HD 10 Original Android Development] jonpjingleheimler:
This tablet was barely tolerable for me and it's actually for my daughter who is five. she had games freezing and was getting pretty ticked at it (thank the heavens for the glass screen protector and nerf-like case). with LOS on the tablet, I have noticed a lot less exasperation for both of us. She loves taking videos and pictures and I explained that there is a man working on it and we should be patient, she's okay with that and uses my Pixel XL when she needs to video record or take a picture, which has an amazing camera I must say. I'm trying not to be longwinded however I want folks messing with this thing to know we are grateful you are out there giving your time and efforts for rather little in return. Thanks a ton.
[Fire HD 8 and HD 10 Original Android Development] sadgreenfrog:
Can I backup my tab using TWRP?

In case I do not like this rom or in case I mess up.

A bit non-related tho.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
Progress

Hey everyone good news. The codecs on pie are kind of working lately I fixed the codecs that it can stream regular videos but the YouTube videos doesn't play. [MENTION=5749760]ggow[/MENTION] do you mind helping me with headphone jack and Bluetooth issues ? I'm currently working on my kernel with performance improvements and better Battery life. I'm currently working on the issue that it crashes the kernel for some reason. What mostly issue I'm focusing on is the software side now .
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Good luck mate, you are the hero that never wore a cape (maybe)
[Fire HD 8 and HD 10 Original Android Development] Reverse-anastomosis:
I have this device, as well ad the Thor hdx device. I appreciate what our developers are doing to allow these devices to be used to their full potential. I know that ggow has a lot on their plate already and I'm not sure how much support we will get on this device from them.

[MENTION=9605864]Kaijones23[/MENTION] I am not a developer and cannot help with this project in any technical capacity. That being said I would rather have a 14.1 release that functions appropriately and gets security patches vs 16.0. Honestly, if you could get [MENTION=5749760]ggow[/MENTION] to help with a 100% ( or reasonably close)stable 14.1 build I think that would be time better spent than ggow helping with 16.0. Personal opinion, but for a tablet device I am perfectly happy with 14.1. Anyone else have thoughts?
[Fire HD 8 and HD 10 Original Android Development] hudsonbra:
Totally agree with you

But is up to him to decide it. I'm thankful either way.
[Fire HD 8 and HD 10 Original Android Development] maxleebo:
Thank you for the sharing! This work turns my $50 e-trash to a loverly tablet! BTW, is there any plan to make it work on HD10?
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
Announcement:

I have updated the op for a new release of nougat.:good:

Let me know if there are any issues that may need to be fixed. If you have an sdcard issue please let me know.
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
[MENTION=9605864]Kaijones23[/MENTION] Were you working with 16/17 to backport certain things, or are you still planning a 16 or 17 release as well? If you are still planning a 16/17 release, how do they compare to each other and how do they compare to 14? I assume you have 14 more stable, but for things that are stable on 16/17, are there any performance improvements with the newer source and kernel? Of course, I'm asking in regard to this device and your test builds.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
I'm still working on 16 because of the Bluetooth still tends to crash. The codecs are not working right now. But camera works except for recording.

The Kernel features are

* Allowed zram lz4 algorithm

* Enabled sdcardfs

* Improved the performance for the network and etc

* Increase battery life. I have tested it for like 3 days without any use it drained down to 34%.

* Added early mount support for pie and Q.

* Added wifi sleep driver.

Also in 17.0. The graphics has changed since pie. It's too new and I'm going to have to wait for an fix on q.

* Also in 16.0 I have added features that will help Better usage in pie. In nougat I just added security updates and made some changes to codecs side in the source code to fix the crashing. It would be working normally.
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
[MENTION=9605864]Kaijones23[/MENTION] Thank you for the detailed response! The new features you're working on for 16 sound excellent! Looking forward to when it's ready for testing
[Fire HD 8 and HD 10 Original Android Development] glate:
Saw a note late in this thread about a new release and went to find it and was a bit confused. Thought I'd point out a couple (very minor) issues that can (hopefully) quickly be fixed to help others.

1. Post #1 says "Beta Release Date: 2019-07-19" and should say "Beta Release Date: 2019-09-22"

2. Post #2 says "[09-22-19]" and should read "[09-22-19] Beta 1.8"
[Fire HD 8 and HD 10 Original Android Development] skola28:
Newbie to Fire HD ROMs, some feedback:

1. Specify the specific GAPPS package to use in the installation instructions - Nano, ARM, 7.1

2. Super confusing that this thread is in General instead of Original Android Development - and its not listed in the ROM tab
[Fire HD 8 and HD 10 Original Android Development] ldeveraux:
Not sure if this belongs here, but how do you disable the startup sound from the tablet? That annoying da-dink?
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
So far as I know you can't. I'm not sure where it resides, probably the same place as the amazon logo, in one of the partitions. Maybe in proinfo or misc. Its not in the framework I don't think.
[Fire HD 8 and HD 10 Original Android Development] JiGGa:
Hello all,

I recently flashed LOS 14.1 coming from fireos 6.3.1.2.

Everything went smoothly except now when I run kodi or the Jellyfin(standalone) app I run into buffering and the "source is too slow" warning. This pops up also while running kodi for plex, plex kodi connect, and jellyfinforkodi add-ons. I've also had some crashes (reboots) while starting some videos as well. Previously with fireos I had no problems playing my remuxes over my local network. A very odd circumstance.

Is this what is meant by "Almost working" on the OP? Any insights will be greatly appreciated. If there's any other info required please let me know.

Thanks for any help and also thanks for this cool project!
[Fire HD 8 and HD 10 Original Android Development] grimez:
Loving your work on this ROM, thanks so much! Any chance we could work in the DT2W from herehttps://xdaforums.com/hd8-hd10/help/fire-hd8-10-tap-to-wake-functionality-t3968324?
[Fire HD 8 and HD 10 Original Android Development] ldeveraux:
I have major issues with restarting, how's the memory management on this ROM? Or maybe video issues? When I start up PAD the Fire soft restarts back to the Amazon screen. I initially thought it was because I had moved to external SD, but recently moved it back internal and still restarting. Is there a way to downgrade video per app with this ROM, or maybe better memory management? I have this working perfectly on my Fire 7" which has much worse specs.:confused:
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
I don't think this is possible. In the past I was playing with that sound and the sound is embedded into Bootloader.
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
Probably the same spot where the Amazon logo is.
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Wrong.

Amazon grey logo is located in /LOGO and it's editable tought LogoBuilder.

The piano sound, is located in the bootloader (U-BOOT) /lk.

End of OT.

Thanks.
[Fire HD 8 and HD 10 Original Android Development] DragonFire1024:
On the HD 10 we don't have a /logo
[Fire HD 8 and HD 10 Original Android Development] karendar:
Glad to see this thread! As someone else mentioned, super confused as to why this is in general instead of android development though. Keep up the good work! Hope to see a stable build of Pie soon
[Fire HD 8 and HD 10 Original Android Development] KIIIPro:
could you please port this rom to the fire hd 8 2017 (douglas)?

ty :)
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Does the title says douglas or something? NO.

Please this is not the proper thread for discuss about porting.

You have Lineage-12.1:

https://xdaforums.com/hd8-hd10/orig-development/rom-lineage-12-1-amazon-fire-hd8-2017-t3967537

I do not plan to upgrade to LOS 14.1 in douglas. I'm trying to build a stable LOS-12.1.

End of OT.

Thanks.
[Fire HD 8 and HD 10 Original Android Development] Reverse-anastomosis:
Finally had a chance to test the latest nougat build. I could not get Netflix working at all. The app just keeps crashing. I tried several older builds, as well as the legacy build from Netflix without success. I reverted to the July build for now. When I can pry it away from the child again I'll try installing again and grab some logs.
[Fire HD 8 and HD 10 Original Android Development] kirin0ichiban:
Yeah, same. I can't get any video apps to work right now. Hulu, twitch and Netflix give me errors.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
If you have issues. Please report them here. https://github.com/mt8163/android_device_amazon_karnak/issues/new

In pie Netflix launched fine but I can't play videos currently but I will have to rework the drm shim. And will for the drm level L3 to L1. The drm info app says l1 but it'd being confused.

The progress on pie the graphics are getting smoother and but it still crashes after few seconds of use. In Nougat there is something wrong with the chrome and I will try to fix it but in pie chrome is currently stable for alternative you can use fire fox. Did anyone have the kernel panic issues after use? I will have to debug this kernel for a while since it's having issues. On the progress on the Bluetooth in pie its almost working but it crashes wifi and Bluetooth driver. I will release it in few weeks. It's so much work out here getting this thing really stable as nougat. I will have to fix wifi tethering and new features. It's out of whack that pie is almost done ! [MENTION=5749760]ggow[/MENTION] this is kind of OT. Have you ever had any graphic issues with hdx on oreo where it can crash after few seconds of use?

If so is there any solution. It tends to spit out the error

Abort message: 'Failed to set damage region on surface 0xe52d8c00, error=EGL_BAD_ACCESS'.
[Fire HD 8 and HD 10 Original Android Development] ggow:
Never had such issues with hdx on Oreo.
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
[MENTION=9605864]Kaijones23[/MENTION] My issue still persists with the following app:

https://play.google.com/store/apps/details?id=com.rivafarabi.deckboard

<uses-feature android:name="android.permission.CAMERA" android:required="false"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Is working OK here:
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
Thank you for testing! I'll go back to stock and try again.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
To mention. It's working fine in pie. So it will be released in few weeks.
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
Are you saying that [MENTION=8978978]Rortiz2[/MENTION] was using the 1.7 Pie build rather than the 1.8 Nougat build, or that it is also working in Pie?
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
I was running a test on the pie release and that screenshots were from pie also. It's just the unreleased build that's is almost done.
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
[MENTION=9605864]Kaijones23[/MENTION] I'm reviewing your build scripts and I have a quick question. I see that your make at the end is for bacon; for what reason do you need to lunch lineage_karnak-X and then make bacon, rather than just brunch lineage_karnak-X?
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
for a reason that i can lunch it early so i can process other scripts like building the kernel and then it will copy it to the device tree and will use mka bacon
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
Just to mention I have fixed the Decker board on nougat too. You may have to download the apk version instead of the play store
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
[MENTION=9605864]Kaijones23[/MENTION] I'm having a consistent error when attempting to build, which I have tested from two different devices. I'm using Arch. Here's the error which occurs during mka:

[ 70% 45744/64598] //vendor/lineage/build/soong:generated_kernel_includes generate
FAILED: /home/MYUSERNAME/android/lineage/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
/home/MYUSERNAME/android/lineage/out/soong/host/linux-x86/bin/sbox --sandbox-path /home/MYUSERNAME/android/lineage/out/soong/.temp --output-root /home/MYUSERNAME/android/lineage/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen --copy-all-output -c 'make -j CFLAGS_MODULE="-fno-pic" -C O=__SBOX_OUT_DIR__ ARCH=arm CROSS_COMPILE=" arm-linux-androidkernel-" headers_install' && touch /home/MYUSERNAME/android/lineage/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
make: *** O=/home/MYUSERNAME/android/lineage/out/soong/.temp/sbox018126191: No such file or directory. Stop.
sbox command (make -j CFLAGS_MODULE="-fno-pic" -C O=/home/MYUSERNAME/android/lineage/out/soong/.temp/sbox018126191 ARCH=arm CROSS_COMPILE=" arm-linux-androidkernel-" headers_install) failed with err "exit status 2"

[ 70% 45753/64598] //art/dex2oat:dex2oatd clang++ dex2oat_options.cc [linux_glibc]
ninja: build stopped: subcommand failed.
05:39:01 ninja failed with: exit status 1

I'm using the following procedure:

mkdir -p ~/android/lineage
cd ~/android/lineage
repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
repo sync -j8 -c

git clone https://github.com/mt8163/android_device_amazon_karnak device/amazon/karnak
git clone https://github.com/mt8163/android_kernel_amazon_karnak kernel/amazon/karnak
git clone https://github.com/mt8163/android_vendor_amazon_karnak vendor/amazon/karnak
git clone https://github.com/488315/android_vendor_amazon_mt8163 vendor/amazon/mt8163
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 kernel/aarch64-linux-android-4.9

export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx8G"

cd kernel/amazon
rm -rf KERNEL_OUT
mkdir -p KERNEL_OUT
make -C karnak O=../KERNEL_OUT/ ARCH=arm64 CROSS_COMPILE=../../aarch64-linux-android-4.9/bin/aarch64-linux-android- karnak_defconfig
make -C karnak O=../KERNEL_OUT/ ARCH=arm64 CROSS_COMPILE=../../aarch64-linux-android-4.9/bin/aarch64-linux-android- -j10
mkdir ../../device/amazon/prebuilts/
cp -rv KERNEL_OUT/arch/arm64/boot/Image.gz-dtb ../../device/amazon/prebuilts/kernel
cd ~/android/lineage

var=userdebug
device=karnak
source build/envsetup.sh
lunch lineage_karnak-userdebug
mka bacon -j10

Based on that, do you have any insight regarding what I'm doing incorrectly?
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
What went wrong is that there is a change on the tinycompress is depending on the generated kernel headers. Which its not needed. So you may have to go to external/tinycompress and then git revert fbe2bd5c3d670234c3c92f875986acc148e6d792

And then build
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
Excellent, thank you for the quick response! I'll let you know how it goes!

PS: In regard to the new commit for 14.1, what part is related to the Deckboard issue? Were the missing WifiRTT functions preventing the check network state cap?

Edit: Yup, reverting that fixed it and my build is now resuming.
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
My build compiled. TWRP, wipe, install ROM and 9.0 pico ARM GApps. After reboot, it does LineageOS boot animation, and then eventually reboots back to TWRP. I assume I've made a stupid mistake, but have you experienced such an issue?
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Check kmsg or ramoops.

Regards.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
It needs some patches for Mediatek. And make sure to check last_kmsg and send me the logs
[Fire HD 8 and HD 10 Original Android Development] peterli99:
Thank you for the great work. I tried this version and saw two problems: (1) After I played an mp4 file off an external sdcard, files on the sdcard became inaccessible, until I ejected and re-inserted the sdcard. (2) Earphone still did not work.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
We're you able to get adb? If you do send logcat too.
[Fire HD 8 and HD 10 Original Android Development] jibgilmon:
Unfortunately, no. Turned off tablet, started adb logcat on computer, plugged in tablet. It has been doing the LineageOS boot animation for about 10 minutes now, and the adb status is still "- waiting for device -". I have adb in TWRP, of course, but I wont be able to do a live dump