yashsingh1/xdaforums huggingface dataset:
[Magisk] Zackptg5:
1.9.2 is fine. Just uninstall and reinstall all audio mods and then flash aml. A lot changed under the hood to bring it up to speed with magisk 18
[Magisk] gohaaron:
ok i did that and its working again... thx for the tip
[Magisk] stashcat:
Upon installing AML any time I connect to bluetooth the audio plays through my phone speaker only. Since I can't post links yet, I've sent you an e-mail with the magisk/aml folder, however there is no sbin/.core/img/.core/aml folder on my device.

My installed mods are Audio Compatibility Patch, Notification_Helper Remover, Viper4AndroidFX and this.
[Magisk] Zackptg5:
Which method did you choose for audio compatibility patch? It looks like those patches didn't apply but that shouldn't cause the problem described. Does this problem occur with only v4a installed? Try removing notification_helper remover and see if that fixes the problem
[Magisk] stashcat:
I've always installed everything via Magisk Manager. Removing Notification_Helper Remover did not change anything, however with only V4A installed everything works fine. It used to crackle like hell without the other audio mods but that somehow fixed itself now.

I've now completely reinstalled all modules in this order: Notification_Helper Remover, ACP, V4A and AML, and it's still not playing via BT, only speaker.
[Magisk] Zackptg5:
Try with only v4a and aml and see if the problem is still there
[Magisk] dot64:
Hello, I am running the latest audio modification library with Dolby Atmos Oreo (guitardedhero's port) with Viper4Android FX via Magisk 18. I am experiencing an issue with Viper4Android FX where on bluetooth processing says no during playback. I tried some troubleshooting and noticed that if I only install Viper4Android FX without the AML or Dolby, bluetooth processing is yes during playback, works fine. I am suspecting it has something to do with the AML but don't know what more to try to troubleshoot to fix this. Thoughts?
[Magisk] Zackptg5:
Dolby doesn't work well with v4a. It's a well known problem. You'll need to choose one or the other
[Magisk] dot64:
Yeah I was starting to come to that conclusion. Thanks for the info. By any chance are there any other audio mods that are known to work ok with Dolby Atmos in Oreo?
[Magisk] Zackptg5:
If it isn't a dsp like app, it'll probably be fine. V4A doesn't work well with oreo dolby because dolby requires an output_session_processing effect for it which breaks v4a and other dsp apps
[Magisk] kunaldas65:
For me it is working super fine thanks to aml
[Magisk] Homeboy76:
What, you have V4A working with oreo dolby with aml?
[Magisk] kunaldas65:
Yup my boi
[Magisk] Homeboy76:
So your Oreo Dolby came from this thread: [MM-P][6.0-9.0][Magisk]Dolby for Pie-20181127 by repey6
[Magisk] kunaldas65:
Nope i use dolby and viper both by sonophilos with aml
[Magisk] dot64:
Do you by any chance experience failure of audio processing when switching between outputs like speakers to bluetooth in Viper4Android? I too was able to get Viper4Android & Dolby Atmos working together but it seems more now that Viper4Android is more of the issue.
[Magisk] kunaldas65:
Sorry i don't have bluetooth audio accessories
[Magisk] stashcat:
Sorry for the long delay - I have installed Viper and AML right after, audio still plays through speaker and not bluetooth. The volume still changes to what it was the last time I was connected to my bluetooth system - everything displays that I'm connected and it's playing through it but alas it does not.
[Magisk] thf1973:
I have the same problem as [MENTION=8720693]stashcat[/MENTION]: Audio isn't playing through bluetooth as soon as I install AML 1.9.2. The audio only plays through the phone speaker. I also don't have a sbin/.core/img/.core/aml folder.

Device: OnePlus 6

ROM: OmniRom TreskMod (Pie)

Installed mods: Ainur Sauron MKIII, Audio Compatibility Patch 1.5.5, Audio Modification Library 1.9.2

Thank you for your time.
[Magisk] halloarno:
I also have a oneplus6, but running OOS (openbeta 10). Modules: Ainor Sauron, AML, Viper4android fx and notification-helper-remover.

No problem with audio through bluetooth.
[Magisk] thf1973:
I don't have a problem with OOS. The problem exists with every non oos rom I try. I just did a clean install of Havoc-OS 2.0, no audio through bluetooth. I tested 3 different bluetooth devices just to be sure.
[Magisk] thf1973:
Does anyone have an idea what to try next? I tested *every* rom I could find but unfortunately no dice. If the rom is not OOS based and as soon as AML is installed there is no audio from *any* bluetooth device. If the bluetooth device is deactivated and reactivated audio plays from the speaker not the bluetooth device itself. I also tested every possible combination of audio mods and the order they are installed. I even installed a canary build of Magisk v18...

Log when playing an audio file connected to a bluetooth device:

01-07 19:57:52.730 E/audio_hw_primary(1686): start_output_stream: A2DP profile is not ready, return error
01-07 19:57:52.781 D/audio_hw_primary(1686): start_output_stream: enter: stream(0xf3ee8000)usecase(1: low-latency-playback) devices(0x80)
01-07 19:57:52.781 D/audio_hw_primary(1686): out_standby: enter: stream (0xf477b800) usecase(0: deep-buffer-playback)
01-07 19:57:52.781 D/audio_hw_primary(1686): out_standby: exit

The error "A2DP profile is not ready" appears only if AML is installed :confused:
[Magisk] Zackptg5:
When that happens, try running this in terminal:

su -c killall audioserver

then open/close v4a with 3 dot menu in top right of app. Then open it again and it should hopefully catch Bluetooth
[Magisk] thf1973:
Thank you for your help :good:

I tried what you suggested. As soon as the audio server is terminated the music plays through the phone speaker. No audio playing through the bluetooth device until the phone is restarted and AML is deactivated or uninstalled.

---------- Post added at 10:10 PM ---------- Previous post was at 09:18 PM ----------

@Zackptg5: Could the problem be the missing folder (and files) in sbin/.core/img/.core/aml? The folder is completely missing after the installation of AML.
[Magisk] jcmm11:
Looks like that folder's been moved to /data/adb/aml/
[Magisk] AndroMani:
Hi [MENTION=6037748]Zackptg5[/MENTION],

I have been trying to use both V4A and Dolby Atmos (both Magisk modules) with your latest AML. However, for some reason, I am not able to use them both. That is, they get installed alright without any FC. But, when I play sound thru' the headset, only one of them is actually working. I tried different order of installation but the result was the same. However, when I installed only one of them, both worked alright.

Can you please help me out with this? The following is my set up.

Moto G2 4G LTE running a custom ROM - Lineage OS 15.1 (Oreo 8.1.0) with a Permissive Kernel.

Rooted with latest Magisk version (18) and Magisk Manager (6.1.0). I have disabled the default Audio FX.

Let me know if you need any additional details OR if I should check something in the installation folders of these 3 modules to rule out any installation issues. If the Kernel being permissive could be a problem?

BTW, I also installed Ahrion's ACP (Audio Compatibility Patch) magisk module if that could help (Because, earlier, I had successfully used his Deep Buffer Remover - which is ACP now - when I had to use multiple sound mods). But no luck.

Thanks for all the great sound mods you have been working on for the community.
[Magisk] Zackptg5:
Due to dolby atmos oreo requring output session processing, they usually don't work together. OSP breaks v4a and other dsp apps like it
[Magisk] Zackptg5:
The /sbin/.core/img/.core/aml folder isn't a part of aml. That just contains the original files from all of the audio mods aml took in (it's the backup basically). When aml is uninstalled, those files are restored to the original mods. With magisk 18, /sbin/.core/img/.core has been removed cause it's confusing (a symlink for it still remains for backwards compatibility but that'll likely be gone in magisk 18.1 so that stuff has been moved to /data/adb.

I've been unable to replicate the problem on my end so my suggestion would be to try just ACP and V4A (or JDSP) and see if you can replicate the error (my guess is that it's actually an ACP problem since AML itself doesn't do anything - just incorporate patches from other mods). If you're using notification_helper remover, get rid of that mod as it could potentially cause something like this too
[Magisk] thf1973:
Hi Zackptg5,

I installed only V4A and ACP. You were absolutely right and I was able to replicate the problem. I attached a copy of the img folder and a log playing music using a bluetooth speaker.

Thank you again for your time :good:
[Magisk] Zackptg5:
ACP is kind of a hack so keep that in mind. Try the remove method instead of the patch method. If you still have those issues, then just don't use ACP since getting rid of deep_buffer and raw breaks bluetooth for you
[Magisk] thf1973:
OK, so I got V4A and ACP working with the remove method! BUT: If I install AML in the next step the problem reappears :eek: Next thing I tried was to remove all audio mods and install only AML... and again there is no audio from bluetooth speakers :silly: Is this even possible, if AML itself doesn't do anything? I again attached the img folder. Another question: Is AML mandatory if I install more than one audio mod (V4A, ACP and Ainur)?
[Magisk] Zackptg5:
Looks like deep_buffer wasn't removed. I'll look into ACP to see what's up with that. You only need AML if you have audio mods that modify the same files. Any mod that I work on will tell you if that's the case.

So in your case, ACP modifies audio policy files, V4A modifies audio effect files, and sauron modifies all of them (potentially). So it depends on what mods you use
[Magisk] thf1973:
OK, but I didn't install ACP. I installed *only* AML and bluetooth streaming is dead. Yesterday I did a clean install of the rom with Magisk v18 and *only* AML. Again there is no audio output from any bluetooth device. So AML has to do *something* to the system. What can I do to help you debug? Maybe I could try to manually edit the relevant files? Thank you :)
[Magisk] Zackptg5:
Hmm. Well you could post the aml magisk module folder. Then to get the originals, grab a copy of every file in the aml folder from /sbin/.core/mirror/system
[Magisk] thf1973:
Sorry, first I had to do a clean flash... again :p I attached the magisk folder and the original files from /mirror/system. Please let me know if you need anything else.
[Magisk] Zackptg5:
No idea what would be causing the problem. As you can see here, the files are all identical except audio_effects.xml. The only difference here is that music_helper was removed from output_session_processing. That's done because it breaks pretty much every audio mod.

Your aml folder also has those 2 files on the top that aren't in your system folder. I'm assuming you forgot to add those?

You can try deleting audio_effects.xml from aml and rebooting but I really don't see anything that could break bluetooth here
[Magisk] thf1973:
Yeah, I forgot the 2 files :( Next try, this time I flashed a rom based on OmniROM. I deleted audio_effects.xml from the aml folder but unfortunately it didn't work.
[Magisk] thf1973:
OK, I have some interesting new findings. The one and only problematic file is "audio_policy_configuration.xml" in \system\vendor\etc\audio. As soon as the file is deleted from the aml folder bluetooth streaming works as intended. I did a comparison between this file and "audio_policy_configuration_omni.xml" in \system\etc. There are clearly some differences mainly regarding bluetooth and AD2P. I copied "audio_policy_configuration_omni.xml" to \system\vendor\etc\audio, renamed it to "audio_policy_configuration.xml" and restarted the device.

Boom, bluetooth streaming works again :eek: Could you help me understand what possibly could be the problem here?
[Magisk] Zackptg5:
The thing is, that file wasn't modified at all by aml - it was identical to your device one. So I really have no idea why that's happening. ACP modifies that file btw.

That'd be a question for the rom maintainer since aml didn't move any files around (kept them in their original locations)
[Magisk] thf1973:
I have all audio modifications (AML, ACP, Ainur and V4A) installed with the exchanged file and it's working. I will do some more testing. Thank you again for your help :laugh:
[Magisk] Edozullo:
Work for me.

Thank you
[Magisk] AndroMani:
Hi Zackptg5,

Thank you for your response. I have seen others in this forum post messages saying they were able to get both Dolby Atmos and V4A work on a Oreo ROM with your AML. So, I wonder what could be causing it not to work for me.

Is it because I am using a Lineage OS Oreo ROM with SELinux in Permissive mode? OR

is it due to the Dolby Atmos Magisk module (Dolby-Atmos-Axon7-Oreo_12.23.2018.zip) that I am using?

Is there any other magisk Dolby atmos mod that I can try if that is what is causing the issue OR is there any manual editing of audio config OR effect files that I should do? I wish there might be some fix for the issue.

As the Android version got updated from Nougat to Pie, there is limited OR no ported rom support for these beautiful audio mods (like AM3D Zirene, Dolby Atmos and V4A) and that is a pity. Until Marshmallow there are no issues with all these 3 sound mods working together.

Thanks again for your support.
[Magisk] Zackptg5:
That's the right dolby oreo and it doesn't work well with other dsp apps like v4a on most devices because it requires and output_session_processing effect which breaks sound processing in other apps. It's really just a hit or miss there.

Dolby digital plus works with pie, just google it and you'll find the xda threads for it.

Honestly though, if you set up v4a right, you don't need any other dsp/eq app (or you can use jdsp instead of v4a).

You just need to find a ddc for your headset, then pick a convolver and/or adjust the other settings to your preference
[Magisk] dpryor88:
So that's the only fix you've come across? I'm on a OnePlus 6t and aml breaks Bluetooth audio for me also. I just dont want to edit/delete system files if I don't have to..
[Magisk] thf1973:
I tried every possible combination of deleting and editing files in the aml folder "/sbin/.magisk/img/aml" and this is the only working solution. I renamed the file, so it can easily be restored if needed. Also I didn't change a system file directly, only the corresponding file in the *aml installation folder*.

This is exactly what I did:

1. Renamed "audio_policy_configuration.xml" in "/sbin/.magisk/img/aml/system/vendor/etc/audio" to "audio_policy_configuration.xml.bak".

2. Copied the audio configuration xml file from "/sbin/.magisk/img/aml/system/etc" to "/sbin/.magisk/img/aml/system/vendor/etc/audio" and renamed it.

3. Restarted the device.

I really hope it works for you, too :)
[Magisk] dpryor88:
I'll try this after work later. Thanks so much for explaining the steps. I appreciate it!
[Magisk] Dr_Djekyl:
Perfect it works. I ve searched for a while, too. Thanks for the tips!

V4a and ainur are activating in my bluetooth soundbar :)
[Magisk] omargamalxx:
Finally working thank you
[Magisk] AndroMani:
Hi Zackptg5,

Thanks for your response. Since you have said it's a hit or a miss if both Dolby Atmos and V4A work for someone in a Oreo ROM, could it be due to the Kernel being used in the ROM OR the device itself

(like MotoG2) in my case?

I was just wondering if editing the audio policy configuration xml file in the AML folder of Magisk installation will be of any help in my case as few have done it recently to fix audio not playing thru Bluetooth issue that was reported here. Or can I try some other tweaks?

Thanks again for your support.
[Magisk] Sandepp:
Tried this, bluetooth audio works perfectly now .Thanks a lot.
[Magisk] AndroMani:
Hi Zackptg5,

I tried Ahrion's latest v4a with the Aroma installer along with Oreo Dolby Atmos and to my surprise, v4a worked for a few seconds and then the processing stopped. But Dolby Atmos worked alight.

Do you know what could have caused v4a to momentarily work and then stop. Can I make it permanent?

Please guide me in this as I think I am close to finding a solution to this issue.

Thanks again for your continued support.
[Magisk] Donavonn:
When trying to flash the AML, I get an error message saying: "process ended with error 1". I read around and I'm pretty sure it's because I'm using a modified boot.img (disable dm verify and disable force encryption). Is there a way around this so I can flash it without having to revert back to the stock boot.img?
[Magisk] tangkije:
Hei, my notification and ringtone sound broke with this module, latest version, using ViPER4Android, any solution for that?
[Magisk] exquisite.nish:
(After redirection from Magisk General Support/ Discussion Thread).

Phone Info - Mi A1

Rom - Resurrection Remix v6.XX OS-8.1.0 November Patch

Magisk v18 stable (used successfully 2 days after updating Magisk from v16 stable with no problem anywhere).

Modules - v4a, aml, dolby, selinux changer, busybox, MiA1 stock cam.

While updating "AML", screen got freezed for more than 5 min so i had to shutdown forcefully. But after restart i lost all installed apps and everything., from everything i mean

both internal and external got formated

. But that's not only the case. My device Mi A1 keep restarting automatically after few min of starting (it's not bootloop as device restarts to homescreen but freezes and restarts after few sec.). Sorry that i can't provide logcat as everything already formated.

Why this happened after all, I'm unable to find any valid reason?
[Magisk] Edozullo:
This is the only way to use james dsp and sauron together in OnePlus 6 with Havoc OS.

Many thanks dude.
[Magisk] najabi:
Hello Zackptg5. I am an advanced used but I am confused about installing and combining Ainur, AudioModificationLibrary, Viper4AndroidFX, Viper4AudioUnity,Dolby Atmos, Magisk and TWRP.

I have Xiaomi Mi 8 in Android Pie, custom kernel with Sound Control enabled. Ainur does nothing for me, Viper4Android worked when installing AudioModificationLibrary but phone calls sound completely distorted (Plain and Whatsapp ones) and Kernel Sound Control Gain doesn't work anymore.

What is the correct way to install and what is the best mod for my system? I just want an equilizer to work systemwide.
[Magisk] Curiousn00b:
Every update, I just reinstall everything. Based on my use, Audio Modification Library is always installed last, otherwise(for me anyways) you get the driver not installed from V4A.

I have Ainur Audio working fine with V4A and Audio Modification Library, but I no longer use Dolby because of Pie. Maybe try disabling Dolby and reinstalling V4A with AML?
[Magisk] SharjilAbdullah:
Hi.. I am unable to use this.. i have already flashed it through magisk then i installed dolby and v4a but as i reboot to apply these all sound mods my reboot screen got stuck in Lineage 3 dots logo.. so i have to reflashed it to uninstall and to successfully reboot again.!!

Any suggestions on how could i use dolby and other sound mod

Currently i am running on LOS 16 UNOFFICIAL.
[Magisk] Chocolatetrain:
On Magisk 18.1 it no longer detects any sound mods that are installed on installation, what log can I provide?
[Magisk] halloarno:
It's the new magisk manager app. The previous app + 18.1 = ok
[Magisk] Chocolatetrain:
Hold on a fresh reinstall of everything made it work fine :)
[Magisk] Zackptg5:
Good to hear. I already had aml ready for 18.1 so there shouldn't be any issues :)
[Magisk] warrencoakley:
Does anyone have a link to AML 1.91 please?

---------- Post added at 08:21 PM ---------- Previous post was at 08:20 PM ----------

It seems v1.92 breaks the patch for Spotify. It does not work properly anymore
[Magisk] warrencoakley:
Can you please fix support for Spotify. It seems to be broken. Thanks
[Magisk] shouk_1987:
Can anyone assist me please

when using any audio Mod the below happens ( i have asked in the specific audio mod thread )

so though to ask here in AML as well in case anyone can help me

Whatsapp voice notes audio is crackling / stuttering if whatsapp is minmized by any mean ( pressing recents , home or locking the screen )

it must be in the foreground to work properly ( and it works properly when minimized without the MOD )
[Magisk] warrencoakley:
Anyone? Patch Spotify please?
[Magisk] elandroido:
Notification Helper Remover Magisk Module might fix this.
[Magisk] shouk_1987:
Tried it with both options vol up and down and issue still exist
[Magisk] warrencoakley:
Can anyone please let h Spotify as mids will not work in it. It was working but something has broken. Thanks
[Magisk] warrencoakley:
Seems it's an issue with Viper 3.4 Just reverted back to 3.3 and all is working again
[Magisk] Joyjo:
When install a.m.l. my volume ringtone and notification sometimes it does not work and i have to restart the phone for fix this problem. Solution please i need the module for viper fx.
[Magisk] warrencoakley:
Revert back to 3.3 V4A There are bugs with 3.4
[Magisk] Joyjo:
Thanks you have link for 3.3?
[Magisk] warrencoakley:
https://drive.google.com/file/d/1GmKWJcVFWdqDWFQ_r3MP5A7ppoRe42tH/view?usp=drivesdk
[Magisk] Joyjo:
Thanks bro!
[Magisk] Never_Sm1le:
Does this work with the V4A version here (https://xdaforums.com/android/apps-games/app-viper4android-fx-2-6-0-0-t3774651) or only the version in the Magisk repo?
[Magisk] jcmm11:
It should work. You want the version found in XDA Labs (apk not zip, zip is for rootless devices) Try it and see, worst case you uninstall (I'm running JamesDSP + Sauron myself)
[Magisk] Never_Sm1le:
Thank you, I'm a liitle nervous since the last time I install it with Dolby Oreo, my Mi A1 can't boot and have to removed using Magisk manager in recovery.

Edit: sadly it won't, because in the FAQ they said that AudioModLib won't work with this.
[Magisk] neekless:
[MENTION=6037748]Zackptg5[/MENTION] have you experimented with the recent magisk canary builds? The deprecation of magisk.img might have broke aml.
[Magisk] Zackptg5:
I've been keeping an eye on the code;)

There's going to be tons of changes for the next magisk release and likely tons of changes on the module template side as well. Whenever it's released officially, I'll be overhauling AML with the changes
[Magisk] erad1:
Maybe someone can help me figure out a Bluetooth issue? On my Op6 running Omni 9.0.x,

With 2.7 ViPER and Dolby and AML modules everything works fine but no output to any Bluetooth client device. If I only install either module alone then I have output. But they won't work together without AML so I'm at a loss, here's a log:

https://del.dog/soxoguyiga.cc
[Magisk] Zackptg5:
Updated AML to v1.9.3. This is just a small bug fix (thanks to [MENTION=6815443]JohnFawkes[/MENTION] for pointing it out). Maybe this will fix things for you, maybe it won't. But regardless, it's literally a 1 line fix so if weird stuff arises, you know the drill: completely uninstall aml and audio mods, then reinstall them (reinstall aml last preferably)
[Magisk] erad1:
Flashed and working fine but didn't fix my bt issue, found a possible fix but involves renaming an audio xml file in /vendor/etc but my file browser won't let me do that, any ideas?
[Magisk] meiax93:
What error you had? Did you change mount R/W to R/O? Try using Root Explorer
[Magisk] erad1:
Yeah the error is "failed to rename" that's it, I know how to do it but renaming is not working, mounted as r/w is set, I can move the XML file anywhere I want but can't rename the original to bak
[Magisk] Zackptg5:
You need to do it in the magisk module folder (/sbin/.core/img/aml)