yashsingh1/xdaforums huggingface dataset:
[Magisk] warrencoakley:
I don't get it. All of these updates to AML, Audio Patch and Viper seems to break other things. Once one thing is addressed another is broken. Spent over an hour trying different methods etc and all still the same. Spotify broken yet again. Plays for 2 second then cuts out. Grrrr!

Can someone please tell me what version of the following they are using and confirm Spotify is working with Viper etc? With all the updates I don't know if it's the audio patcher,AML or Viper that's the issue. What a pain.
[Magisk] Golf c:
Yep. Magisk 19.0 is breaking everything
[Magisk] Zackptg5:
All of the problems is because v4a is an old app. It uses session 0 which was sort of like the global system mix but in later Android updates is being deprecated. Some apps (like Spotify) are using they're own (and sometimes a random) audio session which v4a doesn't process. There's been various hacks to try and circumvent this like acp and removing output_session_processing but these are all hacks and not ideal. The only true solution is an update to the v4a app.

I strongly encourage you to try v4a 2.7 - whatever the latest build is in the telegram. The Dewitt's have been putting lots of work into it and whenever the next build drops, it should have a solution for this problem in it.

Once that build drops, assuming no new bugs pop up, there'd be no point in me maintaining the old v4as anymore

Works fine for me
[Magisk] jcmm11:
Of course the other option is to drop Viper and use JamesDSP which, since it's under active development, doesn't need hacks but can actually be changed to improve it or fix a problem.
[Magisk] warrencoakley:
Can you post a link to this latest build you mention please. I need to try something it's getting really annoying now
[Magisk] jcmm11:
You should download it from XDA Labs. Thread is https://xdaforums.com/android/apps-games/app-viper4android-fx-2-6-0-0-t3774651
[Magisk] warrencoakley:
Thank you.

So I remove the Magisk module completely and then just install this one?

---------- Post added at 11:25 AM ---------- Previous post was at 11:23 AM ----------

So just uninstall the Magisk module of Viper and install the apk instead?

As I have DDP too do I still need the patch and AML?
[Magisk] Zackptg5:
Latest build are here in the event was labs isn't updated: [MENTION=3422711]Viper4[/MENTION]AndroidFXchannel

Try without ddp first
[Magisk] warrencoakley:
Are you sure it's not an issue with the Audio Patch or AML for processing Spotify. It seems this was the issue before.
[Magisk] Zackptg5:
Probably not but I don't maintain ACP anymore
[Magisk] warrencoakley:
Tried the new Viper apk but it's not processing. Only have ACP and AML installed. The driver is loaded but none of the toggles are working. Grrrr!
[Magisk] J32A:
It is, the same thing happen to me. I uninstalled each audio mod one by one and aml turns out to b the problem
[Magisk] gohaaron:
v2.1 is broken even though all mods are detected when installing but after u reboot there's no audio and all the mods seem to crash... Hope a fix will come soon... Definitely not Viper4Android since I tried disabling it as well

---------- Post added at 10:35 PM ---------- Previous post was at 10:25 PM ----------

Hmm maybe not... I tried reinstalling old version 1.9.4 problem still persist... Then it must be magisk 19 for sure
[Magisk] jcmm11:
And without logs and proper information we'll never know what it is.
[Magisk] gohaaron:
I checked the logs but no signs of any errors
[Magisk] Zackptg5:
Read the OP, it tells you what to do
[Magisk] gohaaron:
List of audio mods (working previously on Magisk v18)

• V4AFX (any version)

• Dolby Digital Plus 6.0 Unity

• OP6 Stereo mod

• Ainur Sauron MKIII

---------- Post added at 07:33 PM ---------- Previous post was at 07:32 PM ----------

Last working AML version: 2.1

---------- Post added at 07:40 PM ---------- Previous post was at 07:33 PM ----------

I can install AML and it detects and patches the mods. However after reboot that's where and when the issue starts. When I play video or audio there's no sound and ok YouTube the video playback stutters and no audio. So idk if it's a Magisk 19 issue or AML. I even tried the old version of AML but still same result. I am sure it has nothing to do with the mods because it worked flawlessly before the update. This is the best feedback I can give at this time. Im sure there's someone else experiencing the same issue as me too.
[Magisk] BenParz:
Are you using bluetooth by any chance?
[Magisk] gohaaron:
Nope
[Magisk] Zackptg5:
Without the files, I can't help you
[Magisk] gohaaron:
Here it is :)
[Magisk] sldig:
Is viper4android same as viper4arise? Im trying to remove viper4android from magisk and flash ARISE+Magnum+Opus+20180105+Stock+Edition.zip later but i had sauron modules combined with viper4android before which is compatible with AML. Is ARISE + Sauron compatible with AML
[Magisk] gohaaron:
ok dev i managed to find the issue... it was with the OOS Stereo Speaker Mod... i installed the OP6T version and now everything works fine again... ALL GOOD FOR NOW!

---------- Post added at 06:31 PM ---------- Previous post was at 06:29 PM ----------

found out that some mods work but some dont... so still buggy... i can confirm is not Magisk v19 because ive installed 18.1 again
[Magisk] tilasto:
I use aml 1.9.2 and bluetooth working with my OP6 and Havoc. Maybe it's working newer version aml too with this workaround, i don't tested.. Second step is different source directory than earlier mentioned solution. In "/sbin/.magisk/img/aml/system/" i don't have etc directory or xml files.

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_policy_configuration.xml file from "/system/etc" to "/sbin/.magisk/img/aml/system/vendor/etc/audio"

3. Restarted device
[Magisk] ..Cory..:
Got the Magisk 19.1 stable update today and was greeted with a bootloop :(

I made sure to disable all modules one-by-one and after 10,000 reboots, I came to the conclusion that this module will need to be updated for the new Magisk update.

Just in case anyone else runs into this after updating today!
[Magisk] Lughnasadh:
I'm having no problems with Magisk 19.1 stable and the latest version of this mod.
[Magisk] Zackptg5:
Did you update from magisk 18? It's likely that the modules didn't migrate properly. Best to delete magisk img and all modules and reflash them all.

All magisk modules now (including this one) should be using the latest magisk module template which theoretically should never need updated again - magisk manager updates the module automatically.

So the bootloop wasn't due to a bug in this module but was likely a migration issue
[Magisk] ..Cory..:
Will try after work today, thank you for the suggestions!! :good:
[Magisk] sinthemau:
Hi all,

I was using V4A and I was very satisfied with it: this was on Xiomi MI A2 Lite Android Oreo, Magisk 17 and 18.

After a while I had some trouble in updating Android version and now I have all systems updated at Android Pie 10.0.8.0. ; Magisk 19. 1, MM 7.1.2.

All is working flawlessly and decided to re install V4A FX v2.5.0.5 as a Magisk Module like before I did.

But now that is:

I have this issue: App not showing up in app drawer, so I cannot start V4A.

Any explanation or fix for this issue?

Maybe someone has a good Audio Modification Module to suggest me that works on Xiaomi MI A2 Lite or to try with good chances of working ?

Thanks so much :)
[Magisk] Zackptg5:
Remove all modules, install v4a alone and see if it shows up. Either magisk img migration issue or another mod messing with it
[Magisk] sinthemau:
Thanks for the reply, but I've already tried to install the V4A Module alone, having uninstalled the few other I had, and it's the same...pity that
[Magisk] Zackptg5:
What options did you choose? Also, I recommend you use the new 2.7 v4a instead, that zip is going to be EOL pretty soon: https://labs.xda-developers.com/store/app/com.pittvandewitt.viperfx
[Magisk] sinthemau:
I'm using V4A FX v2.5.0.5 with different options too. Thanks for the suggestion about new 2.7...I will try it as soon as I can download it. Keep up
[Magisk] sinthemau:
Thanks a lot for the raccomandation! Installed new 2.7 NOT IN MAGISK and Viper is biting again :laugh:

Thanks to Team DeWitt for the GREAT work...keep it up

BTW___ I tried Sauron and James too with Magisk and like V4A Module they seem loaded in Magisk but nothing showed up! Maybe a problem in 19.1? With older releases all worked fine.

Cheers
[Magisk] zunky.k44:
Viper keeps asking to install driver while using AML

Hi,

I have installed 2.7 v4a , Ainur Sauron and AML v2.1, but it always saying "No driver found, Do you want to install Driver?". -> press OK, rebooting and again same problem. But when i removed AML then viper works again. and i am using magsik 19.1. Any ideas how to solve this problem.

Thanks
[Magisk] MrAshuBrar:
Same case. Aml installation even breaks jdsp, it keeps on saying to install driver. After removing aml, running "dumpsys media.audio_flinger" shows library not loaded tag is empty, that's theoretically all modules are working fine without aml. Why so? Isn't aml supposed to make them work together instead of breaking them? My device mi a1 with los16
[Magisk] Zackptg5:
See troubleshooting section in the OP. Sometimes a uninstall/reinstall of aml can do the trick
[Magisk] MrAshuBrar:
Thanks for replying. I did installed/uninstalled multiple times. Even tried changing the order like sauron first then viper and vice versa. Viper still brakes. I even tried rebooting between each module install, still fails.
[Magisk] MrAshuBrar:
As per troubleshooting, here is further info.

1) Viper+Sauron installed, both latest version.

2) Installed Aml last week, so no prior version compatibility applicable.

3) (/sbin/.core/img/aml) folder is attached.

4) (/sbin/.core/img/.core/aml) there's no such folder.
[Magisk] zunky.k44:
uninstall/reinstall multiple times, even change several ROM. but no luck at all.
[Magisk] Tyakrish:
I am also facing the same problem with Magisk 19.1 and Viper4android, Sauron and AML installed..

Driver status shows Abnormal and I get the message to install driver upon opening V4A.

Run this command 'su -c killall -q audioserver' in a terminal

If still does not work then try and switch to SELinux permissive and then open the V4A app.

Unfortunately the command is not working for me (though it is reported to be working for some people), so I have to use the second option.
[Magisk] Zackptg5:
I had the old magisk 18 paths on the OP, updated them to magisk 19 paths
[Magisk] MrAshuBrar:
No problem, i attached from the updated paths.
[Magisk] Zackptg5:
What the heck, the whole system folder is missing in the module folder. That'd explain why nothing was working for you. I'll have to look into what's going on with that. Thanks!
[Magisk] MrAshuBrar:
You're welcome, sir. Thanks for AML.
[Magisk] Zackptg5:
So I can't replicate the issue your having. Can you flash this, save the recovery log, and post it? Thanks
[Magisk] MrAshuBrar:
I'm not sure if this is the correct way, but i flashed aml in twrp, then captured the logs.

Interestingly, now drivers are not broken in viper.
[Magisk] Zackptg5:
Crap, log didn't do what I wanted. But everything works now? What version of magisk are you on?

If you install aml in magisk manager, is that when things are broken?
[Magisk] MrAshuBrar:
I'm on magisk 19.1. And yes, it only breaks viper when installed through magisk. i uninstalled and reinstalled through magisk, viper breaks. I even uninstalled your test version and flashed 2.1 through twrp, viper intact, no problems. But I'm not sure if ainur sauron is working fine, understanding dumpsys media.audio_flinger output is bit hard for me and i dont know other way to test it.

Thumbs up for all the help, thank you!

Let me know if i need to post any other log as well.
[Magisk] Zackptg5:
Have you tried without sauron? Try uninstalling sauron so you only have v4a installed, then flash aml and see if you have a /data/adb/modules/aml/system folder
[Magisk] MrAshuBrar:
No, still missing.
[Magisk] Zackptg5:
The tricky part about this is that I can't replicate the issue on my end or else I'd have fixed it by now :/

Can you try this aml zip (in magisk manager) and save recovery log? I'm wondering if magisk manager isn't replacing the update-binary right or if the boot script is deleting it or something
[Magisk] MrAshuBrar:
I captured these logs on 2nd boot after aml flash and only viper installed. Tell me if immediate boot logs after flash are needed. Thank you!
[Magisk] Zackptg5:
I need immediate logs so it'll show what aml installer did. So:

Open magisk manager, flash aml, tap 'Save Logs' once it's completed, send the latest log located in your Downloads folder. Then you can reboot and see if the aml/system folder is present
[Magisk] radz_:
Damn man.

I think you're the most helpful and functional user in XDA.

Thanks alot
[Magisk] MrAshuBrar:
I forgot to boot into twrp first tym that's why i posted 2nd boot logs.

I reinstalled through magisk and here are the logs.

And yes, system folder is still missing.

Thank you.
[Magisk] MrAshuBrar:
That's correct! Can't thank him enough for the support.
[Magisk] Zackptg5:
Hmm, so according to the logs, the problem is that it's not detecting anything at /sbin/.magisk/mirror. Do you have that folder on your device?
[Magisk] MrAshuBrar:
Yes i do have one
[Magisk] Zackptg5:
AML v2.2 is here! The big change here is that bootmode (magisk manager) paths have been fixed for system as root devices so if you have one of those devices (it'll tell you in the installer) and was having issues, this should fix it.

Big thanks to [MENTION=9679207]MrAshuBrar[/MENTION] for all of the troubleshooting
[Magisk] pincopallowfs:
Maybe i missed something:) updating the module dolby and viper got messed up and stopped working... Needed to unistall everything and reinstall freshly. Thanks for the module btw:) Edit: even reinstalling none of both work:) Sincerely i didn't have problems before on my MiMix3 running xiaomi.eu 10.2 stable, maybe i shouldn't have touched anything... Solved by reinstalling clean viper, dolby, audio mod lib 2.1 and after viper drivers...
[Magisk] MrAshuBrar:
I have been around xda for quite few years, and i have never seen a dev so helpful and supportive. He worked tirelessly to resolve the issue, while all i did was literally NOTHING. Just now woke up to AML 2.2, and it works flawlessly here. Can't thank you enough for your efforts. Respect!!
[Magisk] gkornaks:
+1 Had to reinstall Ainur + V4A + AML V2.1 to get it working again. Thanks for your module anyway!
[Magisk] nadhif.nrfsw:
Could you share AML v2.1 here? I has been delete it
[Magisk] agplugged:
2.2 breaks v4a for me as well, running on Pixel 2 xl stock, magisk 19.1

Tried uninstalling all modules and reinstalling them with no luck. Attached the module and backup folders here.
[Magisk] nadhif.nrfsw:
Please share AML 2.1 here
[Magisk] pincopallowfs:
Not sure if i am allowed to do it... If i am doing anything wrong i hope the file gets deleted soon...

Magisk module*
[Magisk] nadhif.nrfsw:
Cause I used v2.2 broke my v4afx
[Magisk] Zackptg5:
It appears that vendor folder never got copied. Are you on a system as root device? If so, can you run these commands in terminal and send me the output?

su
readlink -f /sbin/.magisk/mirror/vendor
readlink -f /sbin/.magisk/mirror/system_root/vendor
readlink -f /sbin/.magisk/mirror/system_root/system/vendor
[Magisk] agplugged:
Ran those commands, that's what I got.
[Magisk] Zackptg5:
Ugh, I see where the problem lies. I'll drop a fixed build later today. Thanks!
[Magisk] agplugged:
Happy to help! Thank you again for all your work.
[Magisk] Zackptg5:
Just to make sure I have it right, can you run these commands:

readlink -f /vendor
readlink -f /system_root/vendor

find /sbin/.magisk/mirror/system_root/vendor -type f -name "*audio_effects*.conf" -o -name "*audio_effects*.xml"
find /sbin/.magisk/mirror/vendor -type f -name "*audio_effects*.conf" -o -name "*audio_effects*.xml"
[Magisk] agplugged:
Only finds the second one:
[Magisk] Zackptg5:
That doesn't make sense but whatever, thanks!
[Magisk] jcmm11:
Here's some more info (hopefully). Taken from a Pixel 3 XL.

ls -ld /sbin/.magisk/mirror/vendor
drwxr-xr-x 16 root root 4096 2009-01-01 03:00 /sbin/.magisk/mirror/vendor
readlink -f /sbin/.magisk/mirror/vendor
/sbin/.magisk/mirror/vendor

ls -ld /sbin/.magisk/mirror/system_root/vendor
drwxr-xr-x 2 root shell 4096 2009-01-01 03:00 /sbin/.magisk/mirror/system_root/vendor
readlink -f /sbin/.magisk/mirror/system_root/vendor
/sbin/.magisk/mirror/system_root/vendor

ls -ld /sbin/.magisk/mirror/system_root/system/vendor
lrw-r--r-- 1 root root 7 2009-01-01 03:00 /sbin/.magisk/mirror/system_root/system/vendor -> /vendor
readlink -f /sbin/.magisk/mirror/system_root/system/vendor
/vendor

From magisk.log

Magisk : * Mounting mirrors
Magisk : mount: /sbin/.magisk/mirror/system_root <- /sbin/.magisk/block/system_root
Magisk : link: /sbin/.magisk/mirror/system <- /sbin/.magisk/mirror/system_root/system
Magisk : mount: /sbin/.magisk/mirror/vendor <- /sbin/.magisk/block/vendor
Magisk : mount: /sbin/.magisk/mirror/data <- /sbin/.magisk/block/data
[Magisk] Zackptg5:
Updated AML to v2.3! More fixes for pesky system as root devices :/

Thanks to [MENTION=7816645]agplugged[/MENTION] for troubleshooting
[Magisk] agplugged:
After a very long boot sequence this version seems to work. Viper is installed and working. Is there any way to check if everything's in order? A command you want me to run?
[Magisk] Zackptg5:
You could check the aml module folder and make sure it's populated with system and vendor audio files. Other than that, not much. The problem was that vendor files weren't being copied cause I didn't have the right path listed. You can always check the github source to see the changes (link in OP)
[Magisk] Tyakrish:
V4A driver status appears abnormal after installing Ainur and AML

1) First, I installed V4A, driver status in V4A app was normal and running dumpsys media.audio_flinger showed V4A library as loaded

2) Next, I installed Ainur, driver status became abnormal and output of dumpsys command showed V4A libs not loaded.

3) Last, I installed AML, driver status was still abnormal, but the output of dumpsys command shows V4A libraries as loaded.

I rebooted after installing each module.

Am using Magisk 19.1 stable on Asus Zenfone Max Pro M2, Havoc OS - Pie...

Using V4A v4.2 along with Ainur Sauron MK III (03-05-2019), with AML v2.3 installed (AML installed last after installing other two modules first).

Below I attached install logs of V4A, AML and output of dumpsys media command, and screenshot of V4A driver status

Please, let me know if you need any other kind of logs...
[Magisk] Zackptg5:
Try getting rid of ainur, sounds like that was the problem
[Magisk] Tyakrish:
Yeah, you were right. I removed Ainur Sauron and then installed James DSP.

The combo of V4A and James DSP works flawlessly with AML. Both their libs are loaded and both processes audio simultaneously.

One thing I would like to mention is that when V4A, Ainur and AML were installed, the driver status in V4A app would become normal when I switch SELinux to permissive.
[Magisk] dioooi:
Hi is there any way to delete the repeated patching item when installed AML.....ex. DIRAC in the attached photo..
[Magisk] thunderteaser:
Sorry if it this is not a direct answer to you but you made me wonder... I recently upgraded AML, Auron and V4A to the respective latest versions and I wanted to test with the dumpsys command after reading your post. After upgrading V4A and Auron, the dumpsys showed V4A as loaded (but not Auron). Then I installed AML 2.3 and it patched both Auron and V4A but, after rebooting, the dumpsys command shows none of them. Fancy thing Is V4A seems to be working just ok.

Was there maybe a change in how AML is working? I'm using a Redmi Note 7 by the way.

EDIT: NOPE. Just checked that after plugging my headset in and turning master mode on (that is when V4A driver running would say Yes) it is now shown as abnormal, so I am reproducing exactly your issue. I will try downgranding AML first and Auron last.

EDIT2: AML 2.1 made Viper work again. Airun still not showing up in dumpsys, probably never had.
[Magisk] aqua_hopps:
Since you didn't select any extra effects in sauron_useroptions, Sauron won't conflict with v4a, therefore AML is technically not needed.

When encountering issues with AML not patching mods correctly, it is often fixed by completely uninstalling(re-flashng the zip) all audio mods then reinstalling with AML being the last one flashed preferably.
[Magisk] Tyakrish:
You are right I think... Ainur showing up in dumpsys might have been a placebo...

Actually I have been facing this issue since AML 2.1 and Magisk 19.1. For me upgrading to 19.1 from 18.1 started the issue.

I think maybe Sauron needs to be more compatible with 19.1... For now I am only using V4A...
[Magisk] thunderteaser:
As some users also stated here and in Sauron thread, It seems no airun library will be loaded and shown in dumpsys unless you specify which ones you like in useroptions (thus, AML is technically not needed unless we specify something in airun useroptions file). Btw, I'm still on Magisk 19.0 and i have both V4A and Airun installed (still haven't tried any option though).
[Magisk] Tyakrish:
Yeah... I rechecked old dumpsys with new... Definitely a placebo... Even I don't use the UO ...

Some other users also facing similar issues with Sauron

EDIT: Updated my earlier post having the logs....

EDIT2: So AML not needed for Sauron if I don't use UO... Then I'll install Sauron last after installing AML, so AML won't patch Sauron...

EDIT3: It works... Finally... So V4A and Sauron work fine without AML, but if AML patches Sauron then it breaks V4A... ?

But if I want use Sauron UO along with V4A, I can't...

It seems that AML breaks Sauron or maybe Sauron is not compatible with AML... Can't say...
[Magisk] danvrez:
So at the end you didn't flash AML right? if i'm not using UO i just flash v4a and then Sauron and that's it?

i'm testing v4a 2.7, tomorrow i'll reinstall the entire system (OP5T 9.0.5)
[Magisk] Tyakrish:
Yes... If using some other audio mods then patch them with AML and at last Sauron
[Magisk] Zackptg5:
Updated AML to v2.4!

Changelog: Fix for DTS osp effect
[Magisk] clodoux:
I had bootloop on s10+ with it! Idk why. I return to 2.3 and ok. Thanks for the work
[Magisk] SabinChhetri:
I have poco f1 with latest Pixel Experience Rom. I have installed Ainur Sauron mod via Magisk, but there is no sound output via bluetooth headphone. Is there anyway to fix this? Thanks.
[Magisk] Zackptg5:
This belongs on the sauron thread. Change your UO
[Magisk] Zackptg5:
This mod alone won't cause a bootloop. It's likely die to a different audio mod on your device but without logs, no one can help you
[Magisk] Mikes:
Latest V4A seems not to be detected by the AML.

_

The issue was on my end, it's working now.
[Magisk] ThaBlacMamba:
Can someone upload a system based Audio Modification Library. My device is incompatible with Magisk.
[Magisk] guest4711:
Why not download the module and extract the libraries using a good file manager like MiXplorer?
[Magisk] ThaBlacMamba:
I didn't think of that but I'm not sure how to do that properly. I'll give it a try later.
[Magisk] manpildo:
[MENTION=6037748]Zackptg5[/MENTION]

I can't uninstall AML 2.4 by reflashing the zip in Magisk Manager. It says uninstalled when it completes flashing, but after reboot it's still there and when I try to flash it again it still "uninstalls" it without actually uninstalling. The only way to remove it is to press the garbage icon in the modules list, but I'm not sure how effectively it removes it. Is it intended to work like this?

Mi A1 (Stock 8.1)

Magisk 19.2
[Magisk] KnightFal:
I can't install on my Xiaomi mix 2s with Xiaomi.eu rom. Android Pie

Magisk 19.2

See attached file