yashsingh1/xdaforums huggingface dataset:
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
DAP v6.5 (old) vs DDP 6.5 (new) vs V4A output volume

Let me preface, I'm not the type who blows out speakers or sacrifices quality for loudness. These tests are simply to be used for comparison and baseline.

I did a controlled test between the two Dolby versions vs stock. Both versions output 5db louder than stock with 'Volume Leveling' disabled. With 'Volume Leveling' enabled though, the old version of DAP outputs another 7-8db louder (12-13db total louder than stock) while the new version of DDP doesn't output any louder (5db total louder than stock).

I installed V4A by itself and recorded some values as well. With all gain/loudness settings maxed out, it outputs at 11-12db louder than stock. Just a db lower than old DAP.

Here's the good news.. V4A (2.5.0.5 at least) plays nicely with the slimmed down headphone patch AND DDPv6.5. I installed DDP, V4A then headphone fix. When V4A and DDP are set to their respective "max volume" settings, it squeezes out another 1db (13-14db higher than stock), but of course running through DDP you'll get instant gratification sound quality boost.

I did not test db values through headphones, but I imagine they'll be the same differences.

So if a 5db boost is enough for you, DDPv6.5 is great by itself. If you need more volume, install V4A afterwards. The headphone fix should always be flashed last.

Something to note, even when the headphone related entries are added to audio_devices.xml in the build, I believe we'll still need to use the flashable headphone fix at times.
[Fire HD 8 and HD 10 Original Android Development] peterli99:
I confirmed that all the following files can be deleted from /vendor/etc, and the speaker, headset, and Dolby Atoms work fine without them:

audio_device.xml audio_effects.conf audio_em.xml audio_policy.conf

BTW, /vendor/etc/custom.conf contains the following strange line that I would comment out:

browser.UAProfileURL = http://218.249.47.94/Xianghe/MTK_Phone_KK_UAprofile.xml
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
I totally agree the headphone fix can be trimmed down. I found it came down to just one file that made the difference. /system/etc/audio_device.xml. I re-rolled the flashable zip with just that one file and posted the new file to my github. Here is the diff from stock fireos to cm14.1 for that file. // new karnak_LOS141_headphonefix-556.zip

That line in vendor/etc/custom.conf is peculiar but it appears to be standard for android_kernel_alcatel_mt6582m.
[Fire HD 8 and HD 10 Original Android Development] deathblade200:
I'm pretty sure the User Agent Profile is just meant to provide info about the features and capabilities of a device but I commented it out regardless
[Fire HD 8 and HD 10 Original Android Development] AJS1986:
Hi,

Pardon my ignorance on this but am I right in thinking that the headphone fix just needs to be installed via TWRP along with GAPPS and the ROM itself?

Also would this fix also work on 12.1 for Suez?

Thanks
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Good news, Xposed 89 works fine with this ROM
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
- Correct, flash via TWRP. Re-flash with TWRP if you ever lose headphones after installing any sound related app like V4A or Dolby.

- As far as suez, I just got my hd10 last night and will be testing today.
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Guys, this ROM is only for Karnak! Fire HD 1p is only written because XDA combines this two devices as main threads! Do not flash this on Suez
[Fire HD 8 and HD 10 Original Android Development] AJS1986:
So to clarify, if I was to flash the headphone fix zip on its own onto a Suez tablet it wouldn't work?
[Fire HD 8 and HD 10 Original Android Development] Xinto:
I don't think it'll work
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
Thank you for looking out [MENTION=7958411]Xinto[/MENTION]. For sure this specific patch will NOT work on any suez, nor will it work for LOS16 karnak. It is specifically for 14.1 karnak.
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Does anyone else have issue with encoders? I can't export video neither via PowerDirector or kinemaster, perhaps libraries are missing?!
[Fire HD 8 and HD 10 Original Android Development] marky2006:
I need a little bit of help here.... I'm a bit of a noob, but I've managed to root and install lineage all by myself, but have fallen here at the final hurdle. I've followed the instructions above, booted into TWRP, run adb shell, mounted system but when I try to mount vendor I get a failed to mount /etc/fstab error. Checking in the TWRP GUI, I don't actually have a vendor partition, so this is probably the cause? I guess my question is, can I just carry on with the instructions above or will it fail, or even worse mess things up a bit.... Any advice would be greatly appreciated!
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
My dude, there is a TWRP flashable version of peterli99's headphone fix. Read further into this thread, the most recent version is comment 566. It's common in these forums for the initial fix or patch to have a manual process, and further into the thread it's refined and/or made flashable. Be sure to browse further into threads once you find a solution before attempting them, because it might save you a headache.
[Fire HD 8 and HD 10 Original Android Development] marky2006:
Now I feel stupid! Thanks for the pointer! Just flashed it and it's working great! Next time I'll search the thread a bit more thoroughly :)
[Fire HD 8 and HD 10 Original Android Development] peterli99:
More info on phone jack fix

Some more info regarding audio_device.xml

The said file here has been correct:

https://github.com/mt8163/android_device_amazon_mt8163_common/tree/master/configs

However, the files here (under etc and vendor/etc) are different and overwrite the correct version during build:

https://github.com/mt8163/android_vendor_amazon_karnak/tree/cm-14.1/proprietary

BTW, are the following patches applied in the v1.9 build?

https://github.com/mt8163/android_device_amazon_karnak/blob/cm-14.1/patches/

I see apply-patches.sh and check-patches.sh have wrong paths in them.

Thank you.
[Fire HD 8 and HD 10 Original Android Development] ruffmeister:
Hello awesome work

Question - will applying this rom allow the fire HD get app notification from the ring app at all. By default the fire os doesn't give ring and other app notifications.
[Fire HD 8 and HD 10 Original Android Development] Tailborn:
Yup you get all the notifications from all the apps that send them :o
[Fire HD 8 and HD 10 Original Android Development] markbnj:
https://xdaforums.com/hd8-hd10/general/tut-root-hd82018-via-magisk-t3906554OK. I've done everything except magisk.

a) do I want the latest magisk? or v18? as in the post here?

---> I will update magisk later...

b) My install is a fresh out of the box 3.0.0.1 system.

Here's my question.

Once I do Magisk, do I then want to install LineageOS (or let it hang for a few days?) I see that Lineageos v14 is stable, and v16 is in alpha/beta.

To help with the answer, I've had a HD8 previously, and put Gapp stuff on it.

really need to get rid of bloatware, etc.

b1) I should be able to go back to stock, in case I need it, but didn't see where in lineage14 karnak thread.

suggestions? answers?

sitting at TWRP prompt to try and decide (need to download magisk to the /sdcard/00 directory now)

So here's my status. system booted, with magisk ok

because I now have twrp installed, I presume I will be able to back out once I get a new image (if it dies that is), so am going to install 14.1 today...

NOTE: when I got to the GAPP site, I only saw ARM64 Gapps. Since reloaded, and see ARM also

Giving this the old 'college' try...

NONE of the 2 ARM packages (full or mini) worked. I needed to search 7.1.2 arm gapps and then found files on android filehost. Sigh

downloaded, and I get ..Google play

I will volunteer to help make these instructions more bullet-proofed for newbies!

hope these thoughts will help someone else.
[Fire HD 8 and HD 10 Original Android Development] Reverse-anastomosis:
Page 40 is arbitrary. I was referencing the op of the thread I linked.

Edit, I should say that there have been multiple changes since I posted that and I'm not sure what is now current
[Fire HD 8 and HD 10 Original Android Development] mattpenfold:
Recommended Patches?

I have installed Linneage 15.1 to my Fire HD 8 (2018), and headphone fix and Dolby app. Are there any other fixes or patches I am recommended to install?
[Fire HD 8 and HD 10 Original Android Development] Xinto:
No, everything else works flawlessly
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
I am unsure when TARGET_LD_SHIM_LIBS was introduced, it might not be available on nougat.

I think it was introduced in oreo.

Please try instead adding this to init.mt8163.rc:

on init
export LD_SHIM_LIBS "/system/lib/libasp.so|libshim_asp.so"

If that doesn't work either, add this to init.mt8163.rc:

on init
export LD_PRELOAD libshim_asp.so
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Thanks for your help! I will try that:fingers-crossed:

I will let you know what happens.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
hello there i have attached a logcat below. it seems like there is progress! what it seems to Failed to open IDME file /proc/idme/miccal.0. and i checked if it is there its not.

P.S thanks for your help!

*****************************EDIT******************************

- I tried to replace the audio policy service libraries it boots but still no audio and there's no errors

6-06 23:13:55.660 264 3499 E NuPlayer: received error(0x80000000) from audio decoder, flushing(0), now shutting down
06-06 23:13:56.195 264 3513 W Utils : track of type 'audio/vorbis' does not publish channel mask, channel count 1
06-06 23:13:56.198 264 3513 W Utils : track of type 'audio/vorbis' does not publish channel mask, channel count 1
06-06 23:13:56.204 264 3522 E ACodec : Unable to instantiate a decoder for type 'audio/vorbis' with err 0xfffffffe.
06-06 23:13:56.204 264 3521 E NuPlayerDecoder: Failed to create audio/vorbis decoder

- I grepped that from the logcat
[Fire HD 8 and HD 10 Original Android Development] k4y0z:
This seems to be your error now:

So it's crashing in libaudiopolicymanagerdefault
[Fire HD 8 and HD 10 Original Android Development] MojUk:
This is great! Can I use it on my HD8 2017?
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
No since it doesn't have an unlocked BL.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
I have replaced it with Amazon's but there is no sound coming out. I'm using Tapatalk to reply here but here's the link to the logcat https://drive.google.com/file/d/1-2bOrNKYk8wtb4kmL42_ibWuqQg6Zg8Z/view?usp=drivesdk
[Fire HD 8 and HD 10 Original Android Development] GuyInDogSuit:
Wait, is this for HD10? The OP mentioned the HD10. Pretty sure it's not.
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
No. It's for fire hd8 2018.

Enviado desde mi SM-G965F mediante Tapatalk
[Fire HD 8 and HD 10 Original Android Development] joyey:
hi

any news about audio and video fix?
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
Not yet really. I'm trying to find some patches to make it work. When I used libshims and replaced some audio libs from lineage to stock amazon one it was not playing any audio. The YouTube videos doesn't play but the one on the chrome does
[Fire HD 8 and HD 10 Original Android Development] Kctucka:
https://liliputing.com/2019/06/now-you-can-install-custom-roms-on-the-amazon-fire-hd-8-2018.html/amp

Congrats, you guys are famous
[Fire HD 8 and HD 10 Original Android Development] hudsonbra:
i wanna to try this rom so bad

but the unlock bootloader method using linux is too hard for me

anyone knows a easy way to do it? Thank you!
[Fire HD 8 and HD 10 Original Android Development] DB126:
If there was an "easy way" it clearly would have been called out. The unlock process is not horribly difficult if you carefully follow directions and double check each step.
[Fire HD 8 and HD 10 Original Android Development] GuyInDogSuit:
Make a LiveLinux USB stick, boot from that, and follow the directions. Ubuntu works as well as Mint.
[Fire HD 8 and HD 10 Original Android Development] hudsonbra:
I Appreciate your suggestion.

I´m gonna try ou this.

Have you suceed unlocking the bootloader? can you, please, help me step by step?
[Fire HD 8 and HD 10 Original Android Development] troy_77:
Super excited to see this!

I've just ordered a new HD 8 so I can try this out

Thank You!!!
[Fire HD 8 and HD 10 Original Android Development] GuyInDogSuit:
I can try to the best of my ability, yes.
[Fire HD 8 and HD 10 Original Android Development] hudsonbra:
That´s very nice of you!

So the way you are gonna do this is up to you. Maybe add me here and send me instructions or upload a video on youtube...
[Fire HD 8 and HD 10 Original Android Development] Rortiz2:
Please, for unlock questions use the Unlock thread...

Thanks.
[Fire HD 8 and HD 10 Original Android Development] mattpenfold:
Thanks Xinto. Good work on getting it all to work!
[Fire HD 8 and HD 10 Original Android Development] mattpenfold:
Uncertified device

I am having problems with getting the Google Play store to allow me to install certain apps (Sky Go, Paypal, Netflix and some others). I am pretty sure that this is down the device fingerprint, and that I can change that using Magisk and a module. I have that setup, but what should I do to create a fingerprint that allows me access to those apps? Is there a stock one in the module I can use, and if so what one?
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Use Samsung tablets or Nexus ones
[Fire HD 8 and HD 10 Original Android Development] mattpenfold:
Thanks. Love the quick replies!
[Fire HD 8 and HD 10 Original Android Development] rigmort:
I have this exact issue too, which makes the ROM unusable for my purposes. Would love to see this fixed as it seems to be a pretty killer problem.
[Fire HD 8 and HD 10 Original Android Development] lfom:
As a workaround , maybe, try using WiFi Connection Manager app from PlayStore (free). I've seen it fixing connection issues in many cases.

PS: I am not affiliated with the app's developer in any way...

https://play.google.com/store/apps/details?id=com.roamingsoft.manager
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
I disabled "wifi and BT scanning" in settings which may have helped. I never determined it was BT that was the issue, but it makes sense that it would be, as I would need to turn airplane mode on and off to get wifi reconnected. I'm hoping that means if I just leave BT off it won't be an issue, but just disabling scanning *may* be doing the trick. Worth turning wifi+bt scanning off for a few days to see if it fixes it for you.
[Fire HD 8 and HD 10 Original Android Development] DB126:
Both of those scanning options offer few benefits while consuming power and often delaying/preventing deep sleep. One of the first things I disable on every Android gizmo - rooted or not.
[Fire HD 8 and HD 10 Original Android Development] ppog:
Can you explain how you did this? I'm not very experienced with magisk modules like this. Which module and how to set up?

Thanks,
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Use Magisk props module inside Magisk downloads section
[Fire HD 8 and HD 10 Original Android Development] :
Substratum seems to be broken on this ROM. No errors, just doesn't show up in the manager section after building and restarting. And ideas?
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Maybe because of Android N?
[Fire HD 8 and HD 10 Original Android Development] :
It works on my other Android N devices.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
Hello, I will be pausing development until I finish my finals for like until December 14th and I will continue to fix issues and bugs after I am done.
[Fire HD 8 and HD 10 Original Android Development] aashish.exclusive:
Thank you for the guide and software

Thanks to everyone for this guide and the software! I bought a fire HD 8 for 45 GBP in sale and installed Lineage 14.1 with GApps. Yet to install fixes for headphones etc, though. Everything works as great as I could expect!

Thanks,

Aashish
[Fire HD 8 and HD 10 Original Android Development] Drunkpilot:
I'm really loving this rom. So snappy compared to the 6.3.0.1 I've been using. I just was waiting for the headphones. Great work. I'm also using Magisk and Xposed.
[Fire HD 8 and HD 10 Original Android Development] ro-76:
Hi

This ROM is really great in general.

I'm also having this problem with the fingerprint and have tried different fingerprints from Samsung tab A to Xiaomi Pocophone. I still cannot download certain apps from the playstore.

What specific fingerprint works best?

Thanks
[Fire HD 8 and HD 10 Original Android Development] Xinto:
I have set mine to Galaxy Tab s3, it passes safetynet
[Fire HD 8 and HD 10 Original Android Development] ro-76:
Hi Thanks for the reply.

I set mine to that also and it passes safetynet test, but I still cannot download Netflix or other such apps like paypal, sky go etc.

I'm missing something, but not sure what.

What Magisk modules do you have? I have Busybox for Android SDK and MagiskHide Props Config

thanks.
[Fire HD 8 and HD 10 Original Android Development] Xinto:
i have same modules, and try downloading them via apkmirror.com, it's a trusted site
[Fire HD 8 and HD 10 Original Android Development] nujak:
I don't know if it'll work any better, but you could try setting the fingerprint as Walmart Onn tablet. If you do just get the apks from another source, they will update in Google play. Also, as I was reminded in another thread, be sure to clear data and cache on Google play after making the changes. That could be the root of it not looking any different with various fingerprints.
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
onn/ONA19TB002/ONA19TB002:9/PPR1.180610.011/1550913871:user/release-keys

I have an ONN 8 and pulled the fingerprint and gave it a try, but additional simulation props are needed to convince play store and to pass safetynet. You'd have to enter some or all of the 'device simulation' props as custom props one by one (which I did and still couldn't make it work.) It would need additional trial and error, plus you'll have to clear data and cache for play store and reboot after each change. You might be better off just using one of the tested ones.

Galaxy S3 Tab is what I'm running, but it also takes device simulation to do the trick. You might not need all of these, but I'm using every one but ro.build.version.incremental and ro.build.version.sdk.
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Hi, i might be asking a really dumb question, but is there a way to change CPU instructions from 32 bit to 64 bit? Since mt8163 is a ARMv8 CPU, but is set to work with armeabi and armeabi-v7a binaries. I'm curious because some of new apps require ARMv8 instructions to be set. Does it really depend on Firmware rather than ROM? or is it a hardware limitation? Thanks.
[Fire HD 8 and HD 10 Original Android Development] Nafis-ul-Islam:
So I have up and running LOS 14.1 with GApps and Magisk, but once I flashed the Dolby Atmos Plus zip, there isn't any difference in sound quality... The Dolby app does open and the settings can be toggled, but there is no difference in it being off or on :(... Can anyone help in this regard?
[Fire HD 8 and HD 10 Original Android Development] Xinto:
disable AudioFX
[Fire HD 8 and HD 10 Original Android Development] Nafis-ul-Islam:
Got it working, thanks! Feels great to be free from Amazon's shackles at last :D
[Fire HD 8 and HD 10 Original Android Development] DB126:
Kernel controls most hardware interactions. To the best of my knowledge all of the custom ROM packages for contemporary Amazon packages leverage the stock kernel. The latter is tough to tweak as Amazon does not document the kernel or hardware interfaces (nor are they required to do so).
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
Just curious, what Dolby did you flash? DAP 6.5 or DDP 6.5 (repey6 edit), or something else?
[Fire HD 8 and HD 10 Original Android Development] Xinto:
From what you just said, I'm assuming it IS possible to run CPU with 64 bit instructions set, just needs kernel workaround? Thanks for the answer
[Fire HD 8 and HD 10 Original Android Development] DB126:
I think the best answer falls into the "possible but not practical" domain. We're talking a kernel rewrite vs workarounds. While not exceptionally difficult such work requires time, patience and skills that are typically not forthcoming given likely rewards (copious thanks and perhaps a few cups of donated Joe). Especially given lack of documentation and a low-end platform that makes limited use of 64-bit capabilities. Akin to installing Win x64 on a machine with 4GB RAM.
[Fire HD 8 and HD 10 Original Android Development] Nafis-ul-Islam:
Apologies for the late response, I had installed DAP 6.5.
[Fire HD 8 and HD 10 Original Android Development] Dtt9412:
WiFi bug

Anyone have a fix for the WiFi not working after the device sleeping for a certain amount of time with Bluetooth on? Only thing that restores it for me is to restart the device
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
Turn Bluetooth off momentarily until wifi re-authenticates then turn it back on. Alternate way (faster imo) is to turn airplane mode on and off. Airplane mode can be toggled faster than Bluetooth in my experience.

Edit: Though not a fix, I found that turning 'Wifi Scanning' and 'Bluetooth Scanning' off helped but didn't entirely prevent the wifi issue with Bluetooth on.
[Fire HD 8 and HD 10 Original Android Development] Kaijones23:
:) NEW RELEASE IS OUT

Updated the OP for the latest release. now instead of uploading files to GitHub, I'm currently using AndroidFileHost
[Fire HD 8 and HD 10 Original Android Development] Dtt9412:
This is a dumb question but how does one update without erasing the files and apps on the device?
[Fire HD 8 and HD 10 Original Android Development] newnewcomputer:
thank YOU for a very very good ROM, OP! u are also the 1st to incorporate the headphone fix!! :)

will try it out tonight....one question: u mentioned in the LOS 16 thread way back in Oct about installing Dolby Digital Plus as a fix for low sound volume. i found only the TWRP version would work n the default AudioFX must be disabled. there were posts on that topic here.

just wondering if the AudioFX package can be replaced with DPP in the ROM itself. that way the sound volume can be adjusted w/o having to install DPP.
[Fire HD 8 and HD 10 Original Android Development] spelcheck:
You don't necessarily need to disable the AudioFX app itself, you can just turn it off for each output within the afx gui (only have to do it once when on a particular output). Additionally, before installing DDP go into AudioFX and under 'custom' drag your finger up on each of the bars until they are at or near the top and then test volume and quality. For some, that will work just fine. I'll be taking a look at speaker gain levels to see if we can give it a boost either way. Even with DDP and V4A I would like a little more volume at times.
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Hey Kai, thanks for making an update, can you confirm which gapps release did you use? Because December 17 gapps seems to go in infinite boot

EDIT: it looks like Magisk was the issue, here's the tip: Don't flash Magisk right after gapps, instead wait for the first boot and flash Magisk, in this way you will have a proper installation
[Fire HD 8 and HD 10 Original Android Development] deathblade200:
while the performance is a bit better and even shows in emulators the one problem I have found is that Opera browser now closes all the time after this update even after cleaning Dalvik Cache
[Fire HD 8 and HD 10 Original Android Development] Xinto:
Here is one issue, some apps crash at startup, like Gboard and tapatalk, Facebook was crashing too but I fixed it. Here is a logcat