yashsingh1/xdaforums huggingface dataset:
[Magisk] shouk_1987:
Hello [MENTION=6037748]Zackptg5[/MENTION]

Many thanks for your update

I have a main issue and I would like to share it with you as you are really a super experienced sound giant

I have Pocophone F1 with custom pie aosp rom

I am using viper 2.7 apk with latest AML

The rom and most aosp roms now have built in Dirac sound mod which kicks in headphones only however I am closing its radio button since I am using viper

Also i have debloated audiofx apk from system

I have modified aml audio configuration policy xml file in sbin/.magisk/img/aml/system/vendor/etc/audio by copying the one from system/etc from magisk folder as well to override blutooth audio issue and it is working fine

Now my main issue is that whatsapp voice notes are stuettring / cracking when it is playing and you put whatspp in background by any method but only on speaker and headphones while it doesnot do this on bluetooth audio

Without sound mods ( viper and aml ) it doesnot stutter at all

And aml fixed the bluetooth path so probably or logical thinking says that AML can fix it or have a way for it

I can provide any logs if needed

I am sorry for the long description but.thought to share the whole story to be able to troubleshoot

Any user can assist if they want

Many thanks in advance
[Magisk] slimshouki:
+1
[Magisk] Zackptg5:
So first thing is to not replace the etc/audio file with the system one. When you did that, you replaced the one designed for your device with the generic stock aosp one which isn't what you want so I recommend you restore the original.

Have you tried installing audio compatibility patch? It can help with some of those problems. Ideally, v4a shouldn't even process whatsapp. I forget if the v4a 2.7 still has this or if it was removed but notification_helper remover was included in it and that can cause the problems you're having so if you still have the problems with ACP, open the audio_effects files in system/vendor/etc of the v4a magisk mod folder and make sure that notification_helper is not commented out
[Magisk] shouk_1987:
Thanks for your reply

Really appreciate it, Ok replacing of the file in vendor/etc/audio by the one from system/etc fixes bluetooth audio streaming

Without replacing it, BT audio is dead unless AML is disabled or uninstalled

ACP do nothing for this issue

Not helper removal magisk module fixes the distortion of any notification / alarm / ringtone etc via choosing vol down which removes listen library , I have skipped it and renamed the .so file myslef in vendor/lib/soundfx manually from recovery as some friend advised that it is better from the not helper magisk module

Also when I was using the Not helper module earlier it didnot affect or fix the whatsapp issue in other words doesnot make a difference

Now finally your specified path vendor/etc of v4a magisk mod folder is empty there are no files in it

I have the feelinh that we are near from the root cause for a final fix , thx in advance
[Magisk] slimshouki:
Dear [MENTION=6037748]Zackptg5[/MENTION]

Attached is audio effects files in v4a magisk img folder after applying ACP

I can see that notification_ helper do exist in xml and conf files and not commented out.

Can you confirm since I cannot fully comprehend your meaning?

I have same issue with [MENTION=4717631]shouk_1987[/MENTION]
[Magisk] Zackptg5:
Yup, notification_helper is not commented out so that's fine.

Come to think of it, I've been seeing reports like this for a while but have been unable to replicate it on my end.

Just keep doing whatever works for you for now. I'll be giving aml a rewrite whenever the new magisk module template drops and will figure all of this stuff out then
[Magisk] slimshouki:
Gd luck

Keep up the gd work

Really appreciate your efforts
[Magisk] jcmm11:
Instead of looking in /system/vendor/ of v4a look in AML.

AML moves those files to it's own folders after massaging them.
[Magisk] slimshouki:
Looked in .img/aml/system/vendor/etc/ audio effects.conf and audio effects.xml for notification helper and it is not commented out.
[Magisk] darkjake:
Magisk 18.1 and Xiaomi mi 8 EU rom I am unable to use the mod it kills sound entirely (removed other audio Mods and with just this it has the issue) worked prior on 18.0
[Magisk] karimmhany:
Hello, I can't seem to get aml working with V4AFX. I tried it with acl and failed. It keeps asking for driver reinstall.

And then I tried with only aml and V4AFX.

I am using magisk 18.0 and AEX 7.1.2

Here is a copy aml folder in magisk
[Magisk] warrencoakley:
When you get that error you have to make sure you install in this order.

Audio Patch,

Reboot,

Dolby Digital Plus (optional)

Reboot,

V4A,

Reboot,

AML,

Reboot.

Open DD first then configure Viper
[Magisk] karimmhany:
I followed that same order, but I am still prompted with driver reinstall. Am I missing anything else?
[Magisk] warrencoakley:
No. That's the order I went in and all was fine. Try original Viper instead if materialised and system user
[Magisk] Soumy1234:
I have DDP, V4A 2.7.0.0, ACP and NHR. I directly upgraded AML from 1.9.2 to 1.9.3 in Magisk and it didn't detect any mods. After rebooting, DDP kept crashing. Will stick with 1.9.2 for now.

Edit: i uninstalled everything and reinstalled and it's ok now, but I think when upgrading AML, it shouldn't remove files and make a clean install...
[Magisk] Zackptg5:
Updated AML to v1.9.4! Finally got to the bottom of the uninstall/install issues:

The problem was that with magisk 18, the boot process was altered so post-fs-data.d scripts now ran before magisk mount (with prior magisk versions it was after). This broke that boot script so that it wouldn't detect the aml mod folder and would then go through the uninstall process. Part of this process was to restore the original files to their respective mods which of course failed since they weren't yet mounted. So the end result of this was that aml would delete all of the original mod files on that first boot.

This is now fixed with v1.9.4 however, since this bug occurred on the first boot after installing aml, this means that you'll need to uninstall and reinstall all audio mods affected by aml. Least this one wasn't on me :/
[Magisk] slimshouki:
Thank you for your efforts

Whatsapp voice note stuttering issue still therr
[Magisk] kunaldas65:
every aml after 1.9.2 bootloop for me i use it with dolby build latest by sonopbilos because that gave me best sound
[Magisk] Zackptg5:
Did you try uninstalling and reinstalling all audio mods? There was some issues in past aml versions. If you're only using Dolby, you don't need aml btw
[Magisk] jcmm11:
[MENTION=6037748]Zackptg5[/MENTION]

Is any of this problematic? (aml.sh does exist in service.d)

- Installing Audio Modification Library
Searching for supported audio mods...
Found JamesDSP! Patching...
Found Ainur Sauron! Patching...
sed: bad option in substitution expression
sed: bad option in substitution expression
tail: can't open '/data/adb/post-fs-data.d/aml.sh': No such file or directory
tail: no files
- Setting permissions
------Log Ends--------
[Magisk] Zackptg5:
Ya, it shouldn't be throwing any errors. Can you send me the full log?
[Magisk] jcmm11:
Here you go.

Looks like XDA's giving me a hard time so I'll drop it inline. It's short.

Archive: /data/user/0/com.topjohnwu.magisk/cache/install.zip
inflating: .gitattributes
inflating: .gitignore
creating: META-INF/
creating: META-INF/com/
creating: META-INF/com/google/
creating: META-INF/com/google/android/
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: README.md
creating: common/
inflating: common/AudioModificationLibrary.sh
inflating: common/aml.sh
inflating: common/post-fs-data.sh
inflating: common/service.sh
inflating: common/system.prop
inflating: config.sh
inflating: module.prop
creating: system/
inflating: system/placeholder
- Copying zip to temp directory
- Installing Audio_Modification_Library-v1.9.4.zip
- Current boot slot: _a
- Mounting /system, /vendor
*******************************
Audio Modification Library
(Zackptg5, Ahrion)
*******************************
******************************
Powered by Magisk (@topjohnwu)
******************************
- Installing Audio Modification Library
Searching for supported audio mods...
Found JamesDSP! Patching...
Found Ainur Sauron! Patching...
sed: bad option in substitution expression
sed: bad option in substitution expression
tail: can't open '/data/adb/post-fs-data.d/aml.sh': No such file or directory
tail: no files
- Setting permissions

only reason it caught my eye and I saved it was because it ended rather abruptly with "setting permissions"

This install was via Canary Magisk.
[Magisk] Zackptg5:
Oh, that was from sauron script, not aml. Cool. Also, I haven't tested v1.9.4 with the canarys. However, the github (mine, not magisk modules repo) has been updated for canaries if you want to zip it up. I'm just waiting on the new template
[Magisk] kunaldas65:
yup i tried.... it's still bootlooping in 1.9.3 and 1.9.4....sonophilos dolby fc without aml
[Magisk] surya_27895:
Latest aml update make my v4a broke on lineage 16 (android 9), i've already for many combination step installing aml, ainur sauron and v4a without v4a working so far
[Magisk] Zackptg5:
https://xdaforums.com/showpost.php?p=79009870&postcount=532
[Magisk] castrum_doloris:
As it seems, aml 1.9.4 breaks my bluetooth connection.

It connects though, but I can't play any audio at all or only the speakers of the phone react spontaneously at a very high volume.

Oneplus 6, Liquid Remix 10.0.5 (android 9)

I have installed:

V4A 2.6

Ainur Sauron

ACP

Notification Helper

Aml 1.9.4

I removed all of the mods and tested them one for one. But with the installation of aml (1.9.4) I experience this bug.

I tried to catch a log, but Matlog simply stays completely black (and the logs empty) if I activate Bluetooth... no matter what I do.

I think I have tracked down this to aml 1.9.4.

But I'd be glad, if someone could offer me the version 1.9.3 and 1.9.2 as there was everything working and I can test it.
[Magisk] castrum_doloris:
EDIT:

Somehow, Matlog worked now :confused:

Just tell me, if smth is missing. (And I'd still be glad about previous versions of aml. I can't find them on github)

And XDA Labs seems to have a problem to upload the aml folder as *.zip. I'll add it as soon as I have acess to a computer
[Magisk] Zackptg5:
Have you tried each one of these mods individually to see if it's one of them breaking Bluetooth? Aml only applies the patches of those mods
[Magisk] castrum_doloris:
Yes, I did. I don't understand this strange behaviour too, because of the way how aml works.

But I didn't understand either, why some Sauron options broke my WiFi oder DoubleTap2Wake^_^

It's absolutely possible that the cause of this lies elsewhere. It was just my first guess.

First I deactivated one module after another. Never worked until I disabled aml.

Then I tested every Module by activating each module for itself (so that only one module was running at once)

What I didn't try:

Just to activate aml without any mods. And I could try to uninstall all mods, not just deactivate it.

I don't use Bluetooth very often... but 1-2 months ago everything was working (same setup).

So I'd like to test, if aml 1.9.3 and 1.9.2 would still be working :)

Do you maybe still have the zips somewhere to share?

Furthermore I switched my ROM yesterday. I'll test this all again with the new Rom

EDIT:

A bit offtopic, but maybe you (or someone else) know this too

My phone (system media scanner) doesn't recognize a quite amount of audio files. And always whole albums, almost never a single file. I encoded everything in opus avb 128 kb/s. Everything is correct tagged and named(UTF-8).
[Magisk] Zackptg5:
Well aml moves all audio effect, policy, and mixer files from all audio mods to another folder where they're not used so only aml contains the audio files. In order to test each mod, you'll need to uninstall aml, then disable all but one and go through each. My guess would be acp or sauron but who knows.

Don't know about the media scanning issue
[Magisk] ErickG233:
Will you create a method to remove effects which are already existed?
[Magisk] agplugged:
Is it normal for the AML folder with all of the mods still in it still exist in /data/adb even after uninstalling aml and all the corresponding mods through magisk?
[Magisk] Zackptg5:
Maybe but removing existing effects is just a simple see statement so I don't really see a need for it

Nope, it should restore all files in it and then delete the folder on the next reboot. Did you reboot after removing through magisk manager?
[Magisk] castrum_doloris:
It's me again ^_^ (

I tracked down where the issue of the not-working-bluetooth comes from. And I still have to say, somehow aml is responsible.

I tested all modules one for one. Everything worked as excpected. But as soon as I flashed aml, the bluetooth stopped working. It even occures if aml is the only mod installed.

What shall I do now? Which logs/folder could you need? (Of course only if you can and want to look into this :))
[Magisk] thf1973:
Look here:

https://xdaforums.com/apps/magisk/mod-audio-modification-library-t3745466/post78678007

I posted this workaround in January. Maybe it's also working for you...
[Magisk] NickosD:
So after the update of havoc, aml causes constant Bluetooth crashes. Any ideas?

If, and when, the dev responses with bt changes, I'll post them.
[Magisk] VincentJoshuaET:
Does this work already with Magisk 19?
[Magisk] DanGLES3:
It's working just fine here on 19.0,all modules that work on 18.1 should still work perfectly fine on 19.0
[Magisk] Zackptg5:
Updated AML to new magisk template! Note that it's compatible with magisk 18+ now (19 fixes issues with most problem devices anyways)
[Magisk] fapajohn1993:
Where is the version 2.0. Cant see from magisk and website!
[Magisk] RagingHarry:
Shows just perfect for me
[Magisk] jcmm11:
[MENTION=6037748]Zackptg5[/MENTION]

I can download it from Magisk but clicking the download link from the website (via the OP) takes me to https://zackptg5.com/android.php
[Magisk] Mervingio:
From website?
[Magisk] TheKerevas:
Where is the new version 2.0 ? D:
[Magisk] warrencoakley:
It's in magisk.
[Magisk] TheKerevas:
It does not appear to me.

Magisk 18.1

Magisk Manager 7.1.0
[Magisk] warrencoakley:
There for me.
[Magisk] TheKerevas:
What version of Magisk and the launcher do you have ?
[Magisk] warrencoakley:
I'm on stock and Canary.
[Magisk] TheKerevas:
I also Android 9 stock, I updated Magisk to version 19 but I still can't see Audio Modification Library. Can you give me the zip file please?
[Magisk] warrencoakley:
No idea chief

---------- Post added at 12:53 AM ---------- Previous post was at 12:51 AM ----------

Here you go

https://app.box.com/s/exez0maagu53yvc8g2w2f0ub8jmnpf42
[Magisk] TheKerevas:
So it worked, thanks for the file
[Magisk] RagingHarry:
Magisk next version by ianmacd, why need for website if you can instal them from within magisk?
[Magisk] firozpatel:
Mines not showing up to in the manager, I'm on magisk 19 beta
[Magisk] :
No AML omg I'm gonna die. ? I'm sure it will be back soon. Probably a server issue. I'm saving a copy when it does come back. This has become a regular part of my setup and I appreciate your work op and everyone who does these awesome things to our beloved Androids. Cheers. :cowboy:
[Magisk] Zackptg5:
Try clearing repo cache, it's in there
[Magisk] Joyjo:
I have same issue clearing repo cache but nothing module is missing for me in magisk 18.1 and magisk 19.
[Magisk] Zackptg5:
Not sure what the issue is then
[Magisk] ngshixuan:
May I know what theme are you using?
[Magisk] Zackptg5:
Valerie substratum theme - select Glass Backgrounds and Cyan for Android System overlay

I have Neolines live wallpaper
[Magisk] Tyakrish:
Hey... This is an absolutely awesome mod... I found Air Audio Magisk Module (System Audio mode) not working along with V4aFX... Could you pls add it to the library ?

Thanks :)
[Magisk] D1stRU3T0R:
Cleared the cache and still didn't appeared, same with WiFi bonding :/
[Magisk] Zackptg5:
Did you update magisk manager to latest version? You can always grab the zip from the download link on the OP
[Magisk] zampryox:
yes, i know,, but the v1.2 detcted by playstore scure,, the previous version working more stable n hidden, i guess,,

thnks by the way,,
[Magisk] SignetSphere:
version 1.4.1 is making all the mods I have installed useless (Viper and Dolby Atmos). Uninstalling it makes them work again.
[Magisk] Zackptg5:
Can you flash aml, get recovery log, and post that along with your aml folder?
[Magisk] xxxreyxxx:
what are your install order?
[Magisk] SignetSphere:
Where do i find this recovery log? Is it the one from TWRP?

EDIT:

Reverted back to version 1.2 of AML and everything works fine. Using a Samsung Galaxy S4 (GT-9500) here with RR 5.8.5 (7.1.2) as my ROM, rooted of course with Magisk 15.3.
[Magisk] Zackptg5:
Updated aml to v1.4.2. OSP is now definitely fixed. Took way to many attempts haha. So any dolby users with no sound processing, this should fix it [MENTION=5146570]SignetSphere[/MENTION]
[Magisk] Zerikwan:
Confirm worked with latest v4a, Dolby and AM3D
[Magisk] SignetSphere:
Can confirm it's working here as well. Thanks a lot for the fix. Great job :)
[Magisk] lakshya dahiya:
Help installation failed error 1

---------- Post added at 11:08 AM ---------- Previous post was at 11:07 AM ----------

Using sauron 8.2.18 fix 2 and jdsp 1.3 couldn't flash am 1.4.2

---------- Post added at 11:08 AM ---------- Previous post was at 11:08 AM ----------

[MENTION=6037748]Zackptg5[/MENTION]
[Magisk] Zackptg5:
Updated aml to v1.4.3. Another minor update that should fix issues any htc users were having with no sound processing (and any other devices with a weird audio effect cfg setup)
[Magisk] Trupen:
Aml is not allowing viper to work smoothly
[Magisk] SenseSei:
The update from 1.4.2 to 1.4.3 broke Atmos (Axon7) for me again. Using OnePlus 3T (RR Zenity 7.1.2) and clean installed all related Mods (aml, ainur, Atmos, viper)

I'll try to get logs later, maybe I'm not the only one. Thanks for your awesome work, best Audio mod available :)

Edit: which logs could be useful? The recovery log after flashing all audio mods and the magisk log after boot and Dolby force closing?
[Magisk] Didgeridoohan:
That's a very generic statement that makes it hard to know if you actually want help with something or if you're just stating a fact.

If you need help you need to bring more to the table, details and logs are two useful pieces of information when troubleshooting. But there's also other things that might be useful. Take a look through this thread and the V4A thread to see what others have been asked to provide when troubleshooting.

If you're just stating a fact, it's unfortunately not entirely accurate, since there are plenty of cases where AML and V4A works perfectly fine together...
[Magisk] Trupen:
Till version 1.1 and 1.2 it's working fine but after that all versions are not allowing viper to work smoothly

---------- Post added at 07:18 AM ---------- Previous post was at 07:16 AM ----------

With verion 1.2 it works fine but with 1.4.2 it stutters , crackling sound.

Also using Dolby atmos
[Magisk] jandia7381:
All working just fine here on my Kate running latest Atomic OS 8.1 :cool:
[Magisk] Zackptg5:
Can you both post your magisk/aml folders?
[Magisk] Trupen:
Pls find attachment
[Magisk] Zackptg5:
Nothing attached but a screenshot
[Magisk] Didgeridoohan:
Clarification: you need to send over the actual folder, not a screenshot. It's the contents of the files that are interesting... Package in a zip and post.
[Magisk] SenseSei:
After clean installing everything again (aml, ainur, viper, Atmos in this oder) everything seems to work now. But I definitely had Atmos force closing and viper had the crackling sound effects.

Here's still my aml folder and the recovery log. Copying the aml folder from magisk to internal SD gave an error and the vendor path is missing.

If you want I'll try to reproduce the error and flash again in a different order like I did before.
[Magisk] warrencoakley:
Here you go.

https://app.box.com/s/exez0maagu53yvc8g2w2f0ub8jmnpf42
[Magisk] D1stRU3T0R:
Yes, 7.1.0 afaik
[Magisk] D1stRU3T0R:
Link doesn't redirect anywhere...
[Magisk] Zackptg5:
Read bro, click on the aml button and click download
[Magisk] D1stRU3T0R:
Doesn't work mate :) when i press the download it redirects me to the main page

(nwm ainur audio have it included?)
[Magisk] Zackptg5:
Fixed, sorry bout that
[Magisk] D1stRU3T0R:
Ainur Sauron need AML or it has integrated it?
[Magisk] Zackptg5:
Aml is a separate mod, it's not integrated into sauron or anything else so you'll need both. Sauron still needs updated for magisk 19 though
[Magisk] harshkumar07:
For those who are not able to see Audio Modification Library in Downloads, update the Magisk Manager to this exact version, 7.1.1(203). I was also having this issue until I updated it.
[Magisk] harshkumar07:
[MENTION=1925116]

Zackptg5, when Externel Dac is connected to my phone, Viper4Android effects work that of the settings under HEADSET tab & not under the tab USB/DOCK. Why is that so ?
[Magisk] Syamsyung:
I can't open Ainur JamesDSP app after installing AML
[Magisk] DvLAx3l:
[MENTION=6037748]Zackptg5[/MENTION]

Latest update on my device mute all audio after a notification sound, I need to close the app (Spotify or YouTube for example) and open it again or go through the settings and touch the volume of the notifications to get it back. What log/files do you need to trubleshoot? I've tried to uninstall every module and install one by one to test if was ainur or jamesdsp, the issue start after I install AML with both mods or just one of the two installed.

AUDIO MOD: Ainur + JamesDSP + AML

PHONE: Pixel 3 XL april update with magisk 18.1
[Magisk] Zackptg5:
That's not an aml problem, it's a problem with one of those mods. You'll need to figure out which one, and then post on it's thread (my guess would be ainur)
[Magisk] DvLAx3l:
I was thinking the same thing, but I've tried also to use only James DSP + AML, everytime I install AML happens this issue, that's why I asked directly to you.
[Magisk] Zackptg5:
Can you follow the troubleshooting guide in the OP? It'll tell you what I need
[Magisk] DvLAx3l:
Ok my bad I've tried again, tested one by one all the modules, the culprit seems only JameDSP, I'm sorry for the post here, I'll look something in the correct thread. Thanks for your time like always

EDIT: With the april update seems something it's broken with every audio mod on the Pixel 3... Issue randomly appear also on viper 2.7, I need to investigate ?
[Magisk] RagingHarry:
Oooohhhhhhmmmmmm....

Oké back to Sen.

To be honest I actually don't know where to start properly.

So I start explaining from here, before the latest magisk (beta/ianmacd) upgrade, viperfx Ainur Sauron and aml ran perfectly together.

With latest versions, cleaning all and reinstalling worked after reboot on OP6 latest beta.

But reboots are highly unpredictable in result of working or not, 90% of my reboots end in a not working and processing viperfx.

10% of the reboots result in a working combination of aml viperfx and Ainur Sauron.

But it seems totally random.

Could you adcice me at what logs you need/ want, so I won't post.. Euhh.... You really don't need, but I can do the opposite ?
[Magisk] Zackptg5:
Updated aml to v2.1! Fixed uninstall issues in TWRP
[Magisk] Zackptg5:
It's not a v4a issue so it's likely related to sauron. Best to bring it up on the thread
[Magisk] castrum_doloris:
Thanks, but this ends in a bootloop :(

Maybe I missed smth?

In step 2, the file in "sbin/.magisk/img/aml/system/etc" is already named "audio_policy_configuration.xml"

To which name should it be renamed? (I didn't rename it, because it has already the name of the xml.bak file)

Does someone else have an Idea, why aml is breaking bluetooth? It seems so random to me