yashsingh1/xdaforums huggingface dataset:
[Magisk] ISoreo:
try to remove all of module about audio Module and Wipe Dalvik Cache and Cache Partition and reboot your device after boot finish turn off your device and remove your battery 30 sec. and put them back then turn your device on and Flash V4A in Magisk and Dolby Atmos Classic Lenovo A7000 from Zackptg5 after flash all of this complete reboot your device again and flash Audio Compatibility Patch and Flash Audio Modification Library to fix Audio Mods after flash this reboot and try to play the video or audio. if seem doesn't work ask in this topic Again.

Feel free to ask
[Magisk] Abhishek phenom:
Thank you so very much it did work for me.

Have a good day.
[Magisk] ISoreo:
Read My Quote #358 or this Quote and follow my step if Bluetooth Mode not process try to ask in this thread again

Feel Free to asks.
[Magisk] BadToThePhone:
Still having the same issue. I followed everything here. Headphones and speakphone work fine with Viper. It's just bluetooth. Initially Bluetooth works on the first try of the setup and then if I turn off the bluetooth and turn it back on it won't process. The only way to make it process is by making a call while connected to Bluetooth and then it kicks in after the call is hung up. It's the system determining that it's a Bluetooth music track and not phone audio that is the main issue.
[Magisk] ISoreo:
SInce i try to search your problem in Google almost all user of LG V20 have a problem with Bluetooth i don't know why V4A not process on Bluetooth someone said in XDA Try to Clean Flash Rom or try this.
[Magisk] Infy_AsiX:
There's an old Nougat Dolby that still works with Viper4A on 8.1. It originally had an old Pixel XL2 8.1 guide that was found to work on Axon 7 8.1 recently too. I created thread in depth about usage and preferred benefits over the Oreo Dolby version too. See here https://xdaforums.com/axon-7/themes/info-n-dolby-port-v4a-setup-custom-8-1-t3824475
[Magisk] chrisaw:
Can't fix

Hi there!

I'm trying to convert a Stereo speaker mod over to AML and am having problems:

https://github.com/cawilliamson/OP6-Stereo-Magisk

The mod works great without AML but once I install AML it stops working immediately. I've spent a few hours on this and could use a bit of guidance if anyone can help!

Cheers!
[Magisk] Zackptg5:
Hmm. In the aml script, I'd get rid of the CD command and instead set a variable equal to $MODPATH/system/vendor/etc/mixer_paths_tavil.xml

So you won't have to type out the full path every time. that's probably what's messing stuff up. Alternatively, you could save the current directory to a variable before the CD command, then CD back to the original/variable at the end of the script.

Have you checked the recovery log and looked at the files after flashing? That might be able to help confirm if this is the problem causer or not
[Magisk] jcmm11:
Here's how I did it for a different phone (Nexus 5X). https://xdaforums.com/apps/magisk/mod-audio-modification-library-t3745466/post77126716

I used a separate patch file rather than placing the patch inline. File being modified is /system/etc/mixer_paths.xml
[Magisk] Saswata Chakraborty:
Probably the best module on Magisk. It makes it possible for me to combine Viper+Dolby and get heavenly sound.
[Magisk] jcmm11:
Ok I just changed mine to use an inline patch. The script I'm running now is as follows:

RUNONCE=true
Patchlog='/data/local/patch.log'
Patcherr='/data/local/patch-error.log'
#
for FILE in ${FILES}
do
NAME=$(echo "$FILE" |sed "s|$MOD|system|")
case $NAME in
*mixer_paths*.xml)
busybox patch $MODPATH/$NAME >$Patchlog 2>$Patcherr << 'END_PATCH'
--- old/mixer_paths.xml
+++ new/mixer_paths.xml
@@ -1621,10 +1621,18 @@

<path name="speaker">
<ctl name="SLIM RX1 MUX" value="AIF1_PB" />
- <ctl name="SLIM_0_RX Channels" value="One" />
+ <ctl name="SLIM RX2 MUX" value="AIF1_PB" />
+ <ctl name="SLIM_0_RX Channels" value="Two" />
+ <ctl name="RX1 MIX1 INP1" value="RX1" />
+ <ctl name="RX1 MIX1 INP2" value="RX2" />
<ctl name="RX7 MIX1 INP1" value="RX1" />
- <path name="speaker-gain-default" />
+ <ctl name="RX7 MIX1 INP2" value="RX2" />
+ <ctl name="CLASS_H_DSM MUX" value="DSM_HPHL_RX1" />
+ <ctl name="DAC1 Switch" value="1" />
<ctl name="COMP0 Switch" value="1" />
+ <ctl name="HPHL DAC Switch" value="1" />
+ <ctl name="RX1 Digital Volume" value="87" />
+ <ctl name="RX7 Digital Volume" value="84" />
</path>

<path name="speaker-liquid">
END_PATCH
;;
esac
done

Note that this script actually patches a copy of the file (/system/etc/mixer_paths.xml in this case) that aml keeps. What I did was place a copy of the mixer_paths file within my module. Forget the install.sh stuff. Just place a copy of the file in $INSTALLER$SYSTEM/vendor/etc/ This will serve as a pointer to aml (the contents don't really matter, just the name. Although you should keep a valid file there just in case).

You can then just use the same script I have replacing my patch with yours. You have to use the BusyBox version of patch in order to be able to specify the file that's being patched on the command line.
[Magisk] chrisaw:
Thanks guys - got it working flawlessly at this point! :)

Thanks for all of the help and guidance - much appreciated!
[Magisk] Ramadhanarya728:
Working

Working flawlessly on my device
[Magisk] YaroslavZ:
so I came here just to report that on all previous versions of aml I had no issues at all on my S7 G930F Superman OS , Android 7.0, but on aml 1.8 it just makes sound in games automatically maxed out and ignores the sound bar completely, can't reduce it by any means, only uninstall of 1.8 helped, now will try to find how I can install any of the older ones safely and with no errors

///

I screwed up, apparently 1.71 version I installed through twrp is affected too at least right now for me, uninstalling it via same zip did not helped as the library is still somewhere on the phone since viper is still working and sound is still maxed out, installing 1.8 through magisk and then uninstalling it gives same result, and the only thing I can do now to restore volume control is to either Disable checkbox of library in magisk - it works unlike deleting, but then I have no library and no viper obviously, or to throw in my ~February full phone backup, or to somehow find and delete the hidden library in phone and wait for some new version which will not be affected
[Magisk] Zackptg5:
That's not an aml issue but likely an issue with one of the audio mods you have installed. What audio mods do you have installed?
[Magisk] YaroslavZ:
let me list them here, i did had them installed before too and didn't added any new ones, but at times did updates so that could lead to this, i'm not exactly skilled to tell which audio modes i should list so i will just list all the audio related ones

Android Mic Fix v3.2.4

Audio Compatibility Patch v1.4.6

Audio Modification Library v1.8 (keeping disabled atm to have control over the volume)

TheSoundMod S7 Dual Lv3 (N 7.0) v19

ViPER4Android FX for Magisk v15 version 6.1.2

VoEnabler v1.2

Volume Steps Increase v14.0.0

from what i remember, only 2 of them being patched by aml, which is ACP and Viper, i just deleted all of these except just Audio Modification Library v1.8 , done reboot, enabled aml, done reboot again, there was no issues just as you said, installed same viper ver rebooted and no issues either, so i guess one of these just got updated at some point and made that mess with volume control, i'm gonna assume that it's either VSI v14 or TSM S7 Dual v19 , but i will try to check them 1 by 1 right now and will report here for you, thank you for your help as you saved me many time

///

it's VSI v14, it also is no longer available in the magisk download section, i guess that's for the good, hopefully my experience also may be helpful to someone who may end up thinking that the aml was the case of the issue which i experienced, anyways, that makes aml rock solid on Galaxy S7 G930F on all the versions which i used so far :) thank you for that :)
[Magisk] Zackptg5:
Not a problem, now others will know :)
[Magisk] matssa:
Hey all, I can't seem to make this work with my earphones. I can have the system sounds passing through, however no music using Spotify or YouTube.

I had Ainur with AML and V4A. V4A alone works fine. AML with V4A stops working. I'll try AML alone and see what happens.

EDIT/// AML alone doesn't work. What can I do to help? I'm on OP5 AICP (Oreo 8.1) using Magisk 16.7
[Magisk] Lughnasadh:
To get V4A processing on streaming apps such as Spotify or YouTube, try flashing the ACP zip.
[Magisk] matssa:
ACP? Can you explain a bit more please? :)

///EDIT: Nvm found it on the download website.
[Magisk] abrahamrhs:
Hi, i just installed this module to use Dolby+Viper but now both just disappeared, I already searched in this thread and no one has to be this issue, what should I do?
[Magisk] Zackptg5:
Updated aml to v1.8.1! Changelog: Updated to magisk module 17000 template for full magisk 17+ compatibility. However, I maintained backwards compatibility with magisk version 15.3+ so users on older versions of magisk having issues with 17 don't need to worry :)
[Magisk] folderx:
don't work on my xiaomi redmi 4x (santoni) with pixysOS (android 9.0)

After installing AML and any supported sound mod asks me to restart, after rebooting it stays in bootloop and I end up sending it to the recovery, and I have to uninstall magisk :/

PD (I understand that it is also too early to install audio mods on Android 9)
[Magisk] Zerikwan:
Hi [MENTION=6037748]Zackptg5[/MENTION]

can you give me v1.2 please?

because this v1.3 makes Dolby fc, AM3D is blank, and viper asking for driver. But not in v1.2.

Xperia Z LOS 14.1

Magisk 15.3

The module is installed through magisk

Edit: got it already

Let me know if you need some file regarding aml v1.3
[Magisk] 煉獄阿飄:
V1.2
[Magisk] Zerikwan:
thank you so much :D
[Magisk] zertyuiop:
AML 1.3 doesn't work with JamesDSP for me, 1.2 works well.
[Magisk] whalesplaho:
Yeap... 1.3 fc dolby and v4a keeps asking drivers on 7.1.1 Xperia Z5!!!

Guess 1.3 is for Oreo cos tha changelog shows oreo fix majorly!
[Magisk] Zackptg5:
Released v1.4. Fixed stupid error with osp logic
[Magisk] Zerikwan:
Thanks for the fix.

I don't know where to say this but,

v1.4 indeed working.. for AM3D only.

Dolby Atmos classic has no effect at all. Viper show driver status processing is no.
[Magisk] Zackptg5:
Can you post your aml folder? If you check the configs in it look for entries for am3d, dax, and v4a
[Magisk] Zerikwan:
Honestly, I don't know how to check it, but.. here the folder
[Magisk] Zackptg5:
Updated aml again...anyways, fixed osp for REAL this time, added removal of sa3d for samsung devices

Try removing the output_session_processing section from your vendor config
[Magisk] Zerikwan:
removed, and WORKED.. thanks :laugh:
[Magisk] Zackptg5:
Interesting, so GH's dolby atmos oreo is the only one that needs osp, all older dolby mods are broken by it. I'll need to test it more and I'll push updates to address that in the coming days. Thanks!
[Magisk] abhi021:
Where to find this?
[Magisk] nokia5700black:
Mi5_stereo_mode(double_mono)

latest version where work - 3.9

pls add this module to aml

stereo speakers for xiaomi mi5 vs oreo 8.1 vendor xml location fix

after new aml - only 1 speaker work(
[Magisk] Zerikwan:
/magisk/aml/vendor/etc

the audio_effects.conf should be there

edit it, find output_session_processing (should be at the bottom part of the lines), remove this line, save and reboot
[Magisk] Zackptg5:
Unfortunately, this mod doesn't do any patches, it just replaces files so I can't add it into aml
[Magisk] nokia5700black:
how I can replace this files with aml?

aml change directory or symlink?

they both didn't work now, on version 3.9 and older - work fine( pls help
[Magisk] zampryox:
hai zack, could you give me the 1.1 n 1.0 vrsion,?

coz the 1.3 ver, make the viper rquest to install drivr, but it can't installd,, and the atmos, couldn't open,,

The 1.4 ver, both viper n atmos appear, but doesn't process the sound equalizing,,
[Magisk] Trupen:
Latest version 1.4.1 working fine

Dolby and viper both are working
[Magisk] Zerikwan:
There is a solution provided by zack in this thread several post before yours.

Or simply you can uninstall v1.4, then install v1.2. Someone posted it around this thread.
[Magisk] Dreamer(3MF):
In-Case Of Facing A Bootloop/Bootscreen Issue Due To Flashing A Module, Download CoreOnlyMode4Magisk From This Thread https://xdaforums.com/apps/magisk/module-core-mode-bootloop-solver-modules-t3817366 Then Flash It Thru TWRP Recovery.
[Magisk] shohabmsk:
Can you add xtreme music in this too? There are a lot of users using this mod. Aml just patches Dirac from this mod

https://plus.google.com/communities/116847867081135234251
[Magisk] Zackptg5:
Nope. It doesn't meet the first requirement in the OP: it's not an original mod. Rather, it's a collection of other mods. Furthermore, that user was banned from xda for stealing other peoples work, claiming it as his own, and then charging people for it. See the mod notes here and here. Much of what's in that "mod" is being used without permission of the original devs. Anything by androidexpert35 will not be supported here
[Magisk] shohabmsk:
Got it. OK.
[Magisk] YaroslavZ:
hi just a question :), aml together with viper 2.5.0.5 makes build-in xiaomi miui headphones profiles and equalizer settings to not work yes? because that's how it is at least in my case, but asking because i'm not sure about that thing because running custom kernel,, pocophone f1

viper 2.5.0.5 itself together with 2.3.4.0 super quality one(different magisk file, just so that way can use 2.5.0.5 without aml) but without aml still have build-in miui headphones settings working so that's also why i'm asking to confirm >///<
[Magisk] Noru29:
Don't recommanded to use AML with Redmi3 or Redmi4... you loose headphone optimizations.

I had this issues too...

Now I use ViPer4Android XHiFi or ViPER4Android FX without installing AML before and headphones optimizations works as ViPer
[Magisk] Ananaqil12:
[MENTION=6037748]Zackptg5[/MENTION]

Can you add this audio mod to support AML?

https://xdaforums.com/crossdevice-d...t-sony-xperia-xz2-sound-enhancements-t3772758
[Magisk] Zackptg5:
Hmmmm, I'll look into it this coming week. One problem with this Sony mod is that it doesn't patch your effect files, it replaces them. Looking them over real quick, making a patch should be easy though. No promises but if everything checks out, I'll add it in.

Some other problems with it though is that it replaces several audio libs and it adds musicfx apk which could interfere with other audio mods. These are things you could bring up in that thread if you want (I don't know his reasoning for it so they may be needed for that mod, they may not). It looks like there's some unneeded stuff in there though at first glance
[Magisk] Emu:
Question: Which one of these simply provides bit perfect audio? I have an LG V30 with Hi-Fi Quad DAC. I don't want any audio processing. The only thing I want is for sound to return to me as accurately as possible.
[Magisk] Zackptg5:
AML v1.8.2 is here! The original changelog was the addition of Sony Xperia XZ2 Sound System (@Ananaqil12), but after further testing, I found some old bugs and things to improve upon:

* Bug fixes for pre_processing patches

* Added capability for multiple pre/post processing patches (See documentation on support thread for usage)

* Proxy entries must include it's own uuid now - allows for custom UUIDs (See documentation on support thread for usage)

* Added Sony Xperia XZ2

Any devs using a custom .aml script should notice points 1-3. Point 1 is self-explanatory.

For point 2, you can now add an effect to multiple pre or post_processing entries. For example, if you want this a 'ZNR' effect added to 'mic' and 'camcorder' in pre_processing so it looks like this:

pre_processing {
mic {
ZNR {
}
}
camcorder {
ZNR {
}
}
}

The command would be:

patch_cfgs -qle mic,camcorder ZNR b8a031e0-6bbf-11e5-b9ef-0002a5d5c51b znrwrapper $LIBDIR/libznrwrapper.so

This key takeaway her is to comma separate (no spaces!) the sections you want the effect under.

For points 3, if you're adding a proxy effect, nothing changes except that you need to add the proxy uuid after the proxy effect name. So for example:

patch_cfgs -pl sonyeffect af8da7e0-2ca1-11e3-b71d-0002a5d5c51b sonyeffect_sw 50786e95-da76-4557-976b-7981bdf6feb9 $LIBDIR/libsonysweffect.so sonyeffect_hw f9ed8ae0-1b9c-11e4-8900-0002a5d5c51b $LIBDIR/libsonypostprocbundle.so

Note the af8 UUID (proxy uuid) after the 'sonyeffect' (proxy name).

So in the case above, it'd look like this:

sonyeffect {
library proxy
uuid af8da7e0-2ca1-11e3-b71d-0002a5d5c51b

libsw {
library sonyeffect_sw
uuid 50786e95-da76-4557-976b-7981bdf6feb9
}

libhw {
library sonyeffect_hw
uuid f9ed8ae0-1b9c-11e4-8900-0002a5d5c51b
}
}

:good:
[Magisk] 煉獄阿飄:
Hi, [MENTION=6037748]Zackptg5[/MENTION], can patch_cfg use with flag -p only? And how to use?

it's ok?

patchcfgs -p [proxy effect name][uuid][sw effect name][sw uuid][hw effect name][hw uuid]

For ex.

patch_cfgs -p soundalive 05227ea0-50bb-11e3-ac69-0002a5d5c51b soundalive_sec cf65eb39-ce2f-48a8-a903-ceb818c06745 offload 0b2dbc60-50bb-11e3-988b-0002a5d5c51b

For flag -r, if effect dose't exist and I use flag -r, patch will add to file or not?

Thanks for your help:laugh:.
[Magisk] Zackptg5:
It's currently set up so you have to use -p and -l flags together so you'd need to add the libraries in there like in the OP example. The proxy effect won't work without the libraries. The code looks good minus the lack of libraries.

Patch_cfgs will always add to file, -r will still add to file if it doesn't exist.

This brings up a good point though, I'll remove the requirement for libraries with proxies in the next version so you can just use -p by itself

Edit: I was wrong with the above, I forgot how my own stuff works lol. You can use it by itself:

patch_cfgs -p <proxy_effect_name> <proxy_UUID> <sw_library_name> <sw_UUID> <hw_library_name> <hw_UUID>

Compared to using -pl:

patch_cfgs -pl <proxy_effect_name> <proxy_UUID> <sw_library_name> <sw_UUID> <sw_library_path> <hw_library_name> <hw_UUID> <hw_library_path>

The difference is that you don't add the library paths, I'll update the OP with this info
[Magisk] Soumy1234:
I tried many times to get viper and Dolby (both BnC 1001) to work together, but viper always say "no processing". They seem to work alone so maybe AML is the issue.
[Magisk] Zackptg5:
If you'd search the dolby and v4a threads, you'd find that this was brought up numerous times. The problem is that dolby doesn't work well with v4a due to it's use of output_session_processing. There's nothing anyone can do about that
[Magisk] Zackptg5:
[MENTION=4931201]煉獄阿飄[/MENTION]

Just want to let you know that I edited my last post (I mispoke)
[Magisk] Soumy1234:
Damn, I thought that was fixed in the latest update :(

Thanks anyways, I finally got an answer :good:
[Magisk] Zackptg5:
Edit: reverted
[Magisk] neekless:
[MENTION=6037748]Zackptg5[/MENTION] I noticed you have a notification_helper remover module. Do I need to also install aml module to use it? I currently only have v4a and acp.
[Magisk] Zackptg5:
Yup. It modifies the cfgs like v4a so you'll need aml
[Magisk] Zackptg5:
v1.8.3 has been reverted. Turns out that JDSP needs audio_effect path to point to lib regardless
[Magisk] ISoreo:
Before i update V4A and Dolby are work fine but after i update to latest version V4A and Dolby are not process i try to flash older version it seem not working was going wrong? anyone can help me pls.
[Magisk] ngshixuan:
Can anyone get Sony Xperia xz2 sound mod installed and working side by side with v4a and ainur sauron?. Aml installed of course. Cuz mine is not working.
[Magisk] Zerikwan:
Me, but only with V4A.
[Magisk] ngshixuan:
What device are you using?
[Magisk] Zerikwan:
Xperia Z, LOS 14.1

EDIT:

Sorry, mate. Just realizing something.

The XZ2 soundmod is indeed installed but not working alongside viper. There is no audible sound change when I change something in the musicFX settings, but ViperFX settings work. AML is also installed.
[Magisk] Zackptg5:
Updated AML to v1.8.3!

It came to my attention that there may be the situation in which a user may disable one audio mod rather than uninstall it. In this case, AML would do nothing and so all of the patches/props would still be present for that mod. So with this update, I fixed that.

Changelog: Have AML remove patches/props for disabled mods and have it not patch disabled mods in the first place

So now you can disable/enable audio mods and aml will compensate for that
[Magisk] Zackptg5:
Updated AML to v1.8.4. Minor update - just added support for audio_platform_info xml files
[Magisk] neekless:
Just fyi the changelog lists 1.8.3 twice
[Magisk] bontxa:
Hi,

Can this module solve low audio with video recordings?

I have Samsung j320-fn with lineage 14.1

Thanks in Advance
[Magisk] kunaldas65:
Nope
[Magisk] Zackptg5:
Fixed, thanks!
[Magisk] Zackptg5:
Updated AML to v1.8.5!

Changelog: Added usb fix patches for apps like v4a
[Magisk] eelsid:
This is breaking the Dolby module from the thread below for me on P2XL, causing FC. Downgrading resolves.

https://xdaforums.com/android/software/mm-p-dolby-digital-plus-arise-20181115-t3868192
[Magisk] Zackptg5:
Logs? Patching usb policy shouldn't cause a bootloop
[Magisk] Zackptg5:
Updated aml to v1.9!

Changleog: updated for magisk 18 while maintaining backwards compatibility for problem devices
[Magisk] dennisbednarz:
The latest update seems to not detect any other modules for me.
[Magisk] Zackptg5:
Try uninstalling aml and all audio mods and reinstalling them. There's a lot of under the hood changes with this one
[Magisk] Lughnasadh:
Yeah, I had to uninstall AML, wipe /cache & /dalvik, and then reinstall for it to recognize the other mods and patch them. I didn't have to uninstall the other audio mods though.
[Magisk] Zackptg5:
And I just figured out why. Some variables for file paths are defined at the beginning. This works fine for install or uninstall but when there's an upgrade, it uninstalls and then installs without reinitializing the variables which is intended except that the uninstall redefines some of those variables which then breaks the for the install. Easy fix was to just make those vars local in uninstall.

So v1.9.1 is already here lol - upgrade bug fixed (this has been an outstanding issue for a while so I'm glad that this is finally squashed)
[Magisk] diimaan:
Is there anyway to download a previous version of the module? Or from the github? I can only download the latest version from http://zackptg5.com/android.php
[Magisk] ngshixuan:
Bro I only got v1.8.4 and 1.8.5 https://drive.google.com/folderview?id=1vGAbn1krTJ8x-YqQccJz_d8c_Eo2Njbo Hope that help.
[Magisk] diimaan:
I pm'ed you! Didn't want to divert the topic much here.
[Magisk] Zackptg5:
Try aml 1.9.2 and see if it fixes stuff for you.

Released aml 1.9.2! Changelog: removed USB policy patching since it was causing issues for some people, misc bug fixes
[Magisk] EmRav:
Any reason why running pie, Viper4Android FX and Dolby (Oreo-Pie Dolby+Digital+Plus-ARISE UNiTY_Light_by_repey6) with this module would work great for phone speaker but output no audio to Bluetooth devices?

It works great in this case besides the Bluetooth.

Running a OnePlus 6 on Havoc OS, Android Pie, Magisk 18.
[Magisk] PSZ97:
I have v4a running just fine, but after installing Audio mod library via Magisk the bluetooth playback have no sound at all, wired headset and phone speaker work normally. Anyone have a similar problem and know how to fix the issue?

I only have v4a as sound mod.
[Magisk] Zackptg5:
Can you both post the folders specified in the OP under troubleshooting?
[Magisk] EmRav:
Sorry, I'm busy but I'll try get it to you shortly
[Magisk] justjr:
Yey! Since USB stuff was stripped out of the audio modules I get no more crackling sounds on the speaker, finally can enable ViperFX for all system without messing with that (using V4FX, ACP and AML). Thanks devs, great accomplishment.
[Magisk] gohaaron:
Just updated to 1.9.2... can't detect my other mods except for V4A... Please fix dev... Thanks in advance... Do you have archive to older versions? I hope so.