yashsingh1/xdaforums huggingface dataset:
[Magisk] zgfg:
Thanks, good to know for the trick. Indeed, I see that your script

/data/adb/modules/service.sh

looks for .aml.sh scripts in the modules folders

/data/adb/modules/<module-name>

(but not in the AML's folder itself

/data/adb/modules/aml )

and sources/executes those .aml.sh scripts if it finds them there

If there is a syntactic error in the .aml.sh script it will be logged to

/data/adb/modules/aml/error.txt

Otherwise, all commands from the .aml.script will be logged to

/data/adb/modules/aml/debug log

(it will also prove that $MODPATH properly points to /data/adb/modules/aml )

---

Hence, @nagi_007pk can rename his volume.sh script to .aml.sh and put it eg into

/data/adb/modules/hosts

(if he uses Systemless hosts, he will have that module/folder and can 'missuse' it for his script)

He can put on top of his .aml.sh script a command like

ls -l $MODPATH/xxxxxyyyyyzzzzz

then reboot and search in the

/data/adb/modules/aml/debug log

for "xxxxx" or "yyyy" (without quotes)

He shall find there a log line saying that xxxxxyyyyyzzzzz file does not exist:

ls: /data/adb/modules/aml/xxxxxyyyyyzzz no such file or directory

and right after that he will see the logs for subsequent commands from his .aml.sh script (how his script found or not audio files and patched them - per the commands from his script)
[Magisk] kevinco1:
Hmmm....didn't know AML was not compatible with Delta, that's why it's never worked for me on multiple devices, hah
[Magisk] manhong2112:
:good::good:
[Magisk] Zackptg5:
Updated aml to 1.4.4 - Fix prop logic for prop files that have empty lines in them, Fix xml file music_helper/sa3d patching
[Magisk] satriahitam:
installing DAO from gh and viper4arise, patched by AML from magisk repo, dolby working, but v4a not processing if dolby enabled on magisk, ...
[Magisk] Zackptg5:
Run through the troubleshooting section and then post back if you still have problems with the stuff then post back with the files/folders outlined in it
[Magisk] satriahitam:
(audio mod working if install saparately)

done all the troubleshooting,

1. uninstall all magisk module, reboot

2. install DAO (DolbyAtmos_Axon7_Oreo_Unity_2.19.18)

3. instal V4Afx (ViPER4Arise_2505_Black_n_Cheese_Edition_Magisk15_Unity_20180217)

4. install AML 1.4.4 , patched successfully both dao and v4afx

5. reboot

6. DAO working, V4A still not processing

attached files needed

thanx in advanced

- - - update

i don't know about coding,

but when i edit audio system/vendor/etc/audio_effects.xml ,

<postprocess>

<stream type="music">

<apply effect="atmos"/> .... to <apply effect="v4a_fx"/>

</stream>

</postprocess>

then viper processing and dolby atmos not working....
[Magisk] Zackptg5:
The configs are all patched properly so your issue lies somewhere else. Does v4a work when you turn off Dolby? What message does v4a give you? Can you post a logcat?
[Magisk] satriahitam:
ok, so AML working properly, v4a working only if dolby disable in magisk module, no message from v4a
[Magisk] phileva:
I installed AML before and Ive never had this issue before. The screenshot describes it all. No idea what causes that. It is the latest version of AML.
[Magisk] paarthkhatri:
Reboot your phone
[Magisk] phileva:
I did reboot, many many times.
[Magisk] paarthkhatri:
Uninstall the module and re install it
[Magisk] phileva:
That worked ty paarth :)
[Magisk] layman806:
I'm getting an Error 1 while installing. And I have Dolby Atmos Oreo port by [MENTION=4445176]guitardedhero[/MENTION] installed. The app force closes every time, even. Can someone help me out?
[Magisk] Didgeridoohan:
If you can provide an installation log, sure.
[Magisk] layman806:
Here's the recovery installation log...

EDIT:

Just looked at the log. I didn't know that it needed MAGISK... Sorry for the trouble! :P
[Magisk] Zackptg5:
Pushed v1.4.5 - fixed vendor files in bootmode, added detection for more policy files
[Magisk] tropical cactus:
Hi, does anyone have 1.42 ? I updated to 1.45 and modules are not working. Thanks.
[Magisk] Zackptg5:
You could go through the troubleshooting section on the op so if there's a problem, i can fix it. Or just uninstall and reinstall aml and all audio mods which will likely fix whatever issues there were
[Magisk] tropical cactus:
Thanks. I uninstalled and reinstalled all mods. Went a bit haywire so I reflashed system. Anyway, viper, Atmos and ainur working without AML. It's just that with 1.42, the sound was the best I've ever got it.
[Magisk] kowallis.r@gmail.com:
Same problem here on axon 7
[Magisk] zgfg:
The unofficial fixed version was tested on Delta:

https://xdaforums.com/t/jamesdsp-audio-manager-mmt-ex.3607970/post-88598223
[Magisk] m0han:
AML v4.2 works for me on the last released Magisk Delta Canary. I haven't tried KernelSU.
[Magisk] Zackptg5:
It's currently only partially compatible. It's just not compatible with delta's support for extra partitions (like odm)
[Magisk] Zackptg5:
AML v5.0 is finally live! Extensive changelog include fixes and adding support for magisk delta and KernelSU. Full changelog below:

Big thanks to reiryuki @github for this update

Update to current magisk module template - minimum magisk v20.4

Context fix

Add stage_policy.conf support

Add KSU support

Add support for other partitions - requires ksu or magisk delta

Rework/simplify some scripting

Fix for disabling aml in manager
[Magisk] kevinco1:
What's the difference between AML 5.0 and 5.0_ryukimod?
[Magisk] Zackptg5:
In the end, not much. Update was largely based off of ryukimod. There are some slight differences in scripting, I cleaned some stuff up, have a remounting fix for ksu, and some other minor tweaks.
[Magisk] Zackptg5:
AML updated to v5.1! This is a small update, just a bug fix for magisk delta
[Magisk] Myhand:
Thanks for KSU support.
[Magisk] kevinco1:
There's one thing I've always seen conflicting info and want to set the record straight - should I install this module before or after the audio mods?
[Magisk] liverhook:
Hi together,

I'm almost newbie regarding these deeper mods for android.

I only want to screw the limited loudness of my Xiaomi MiMix2S (LineageOS 20) up, because I've heard, that im European versions of smartphones there a set limit to protect users not to damage their ears.

I'm not sure, but somewhere I've seen a sort of bibliothek oer single files to add to the android system and modify there values (in rooted modus), .".. mixer_path..." or similar.

I don't wnt to change other parameters, only get the limit off.

Could anyone here, who is more professional than me, give me infos or hints to my question?

That would be great.
[Magisk] Lughnasadh:
From the OP:

When do I flash this?

Unlike with older version of aml, order doesn't matter. However, it's best to flash aml FIRST. The reason for this is that an increasing number of audio mods look for aml and behave differently if it doesn't yet exist.
[Magisk] buzzywuzzy:
I just updated this and JamesDSP Manager on Android 12 and it made my phone bootloop, what gives?
[Magisk] ecompton59:
if you remove or freeze stock sound on device most dolby and vipers work im on OnePlus 8t on 13.1. i use widget to turn off and on in Dolby after a change it restarts remote client but works great
[Magisk] kevinco1:
So you uninstall stock Dolby and use different Dolby Digital Plus module?
[Magisk] ecompton59:
you can freeze it or use command line to remove i use titanium backup to freeze. i also found a magisk mod that does it to. middle of testing seems to work. heres pic
[Magisk] Schaf2023:
Hello I have a question: how to check which module is currently working or how to activate the installed sound modules? I installed it but I don't know how to activate the selected sound module? Thank you for your help
[Magisk] A.Priori:
So what is everyone using for pixel 8 pro?
[Magisk] Hello34:
U have the newest one or can You reactivate this? The file from www.themagisk.com didnt worked (cant be unpaket).
[Magisk] simpleatom7:
Yoo bro, is there any magisk mdoule/audio mod which would play multiple audio at once from different apps? Like we have this inbuilt feature in xiaomi devices but not in aosp?
[Magisk] simpleatom7:
r is there any magisk mdoule/audio mod which would play multiple audio at once from different apps?need it for aosp
[Magisk] skuppej:
So, I am using the AML 5.1 Ryuki mod here:

GitHub - reiryuki/Audio-Modification-Library-Ryuki-Mod-Magisk-Module

Contribute to reiryuki/Audio-Modification-Library-Ryuki-Mod-Magisk-Module development by creating an account on GitHub.

github.com

Seems to be working fine!
[Magisk] skuppej:
OK- I spoke too soon. Both AML 5.1 and 5.1 Ryuki mod break V4A RE 6.2 on my Pixel 7 using Magisk 27 (latest debug version) and I get an error "No driver found"

Spent the better part of the day debugging and trying out different combinations and install methods....but it doesn't seem to matter in what order I install V4A and AML. Nor does it matter whether I have any other audio mods installed. But as soon as I toggle AML off and reboot then V4A works again. Toggle AML back on and I get "No driver found".

I have not tried Magisk Kitsune/Delta yet. And V4A "Repackaged" is not an option for me since Pixel 7 is 64bit, only. Any suggestions?
[Magisk] skuppej:
I installed ACDB 0.49 (https://t.me/viperatmos) and it seems to be working and V4A-RE is not displaying any more driver issues. Is this a suitable complete replacement for AML?
[Magisk] Suavie103:
I'm having the same issue I believe. Pixel 6 pro. I have Audio Modification Library Ryuki Mod 5.1 & ViPER4Android Reverse Engineered V0.6.1. this is the error I receive. (Screenshot)
[Magisk] skuppej:
Yep..switch to ACDB. I _think_ it's working as expected?
[Magisk] Suavie103:
I switched and it's still not working for me over Bluetooth.
[Magisk] Zackptg5:
Updated aml to v1.4.6! Fixed lib directory issue with sauron

Edit: quickest update ever. Updated to v1.4.7 - added new IceWizard port
[Magisk] Zackptg5:
Can you run through the troubleshooting steps on the OP? Thanks
[Magisk] kowallis.r@gmail.com:
Will do this pm.

Thank you for taking a look.
[Magisk] kowallis.r@gmail.com:
Followed OP troubleshooting zealously-No success.

Very difficult to get back to successful combination of Sauron (latest) and Dolby Atmos Axon 7 (2/9/18) and your AML (1.42).

Zips attached of successful AML folder. Note that .core contained only the mods folder- zip attached.

Sorry, technical / grabbing problem attaching zips in XDA. Any suggestions?
[Magisk] Zackptg5:
If you can't attach the zip, use something like google drive and post the link. Also, try with the latest aml. There has been numerous fixes for dolby specifically between v1.4.2 and the current version
[Magisk] cmo220:
I hope this isn't a stupid question but I can't find anything. Where is or how do you apply the IceWizard port? Thanks.
[Magisk] kowallis.r@gmail.com:
https://drive.google.com/file/d/1zj1Xy_mTfh8l1BXwGJkmkhzrhhjDp0qY/view?usp=sharing

https://drive.google.com/file/d/1RwIgXeIClaXko8uEP99LoEudBFKH_DlK/view?usp=sharing

See if you can get these links.
[Magisk] Zackptg5:
It's currently in beta testing in a telegram group I'm in so it's not yet released
[Magisk] Zackptg5:
Is this with v1.4.2 aml or latest version? There's some interesting stuff happening there. Can you uninstall aml and then post a link to your magisk.img (it's in /data/adb). Then try it again with latest aml. Also, what versions of sauron and dolby do you have installed?
[Magisk] kowallis.r@gmail.com:
This is with the successful AML 1.42 and axon 7 Dolby 02092018 and latest Sauron.

Will get the other info later tonight hopefully.

Thank you. Appreciate your help.
[Magisk] tropical cactus:
[MENTION=6037748]Zackptg5[/MENTION] Hi, just to chime in 1.42 works well but even the latest 1.47 causes driver not installed issues in viper and Atmos not opening.

Just a side note, viper 2.5.0.5 works on Bluetooth but needs to be set up as when on phone speakers . Possible to get viper to auto change if medium is switched and continue to process? Thanks.
[Magisk] Zackptg5:
I'm assuming your talking about oreo Dolby Atmos? If you read through the Dolby thread, v4a doesn't seem to work with it so it's likely not an aml issue. If I had to guess, I'd say it's because if output_session_processing in vendor audio effect. Dolby requires to have it, v4a requires to not have it.

Older versions of aml like 1.4.2 had bugs in the output_session_processing for Dolby. Can post the stuff mentioned in the op in the troubleshooting section with aml v1.4.2 and then with v1.4.7?

Not sure what you mean with auto change but v4a uses the proper device automatically
[Magisk] jandia7381:
U r right dev. No probs here on my Kate. Thnx for ur hard work ?
[Magisk] kowallis.r@gmail.com:
https://drive.google.com/file/d/1w3B2mY3ZZOlvAfNzXN4r4Z7qO2fw_acp/view?usp=sharing

Try the above link for my magisk image.

This is AFTER I deleted aml 1.42, and leaving latest 2/26 sauron and 2/9 axon 7 Dolby atmos.

Tryed installing your 1.47 aml, and Dolby atmos fails even after clearing cache.

Let me know if I can help. Back to aml 1.42 and 2/9 Dolby atmos, which works great on Axon 7. Thank you.
[Magisk] Zackptg5:
Wait, you just deleted the aml folder? That would be why your having problems. You need to follow the instructions on the OP for install and uninstall. So if you look at the folder structure in both sauron and dolbyatmos, you can see that something went wrong during the install of them and/or aml at some point: There's a system/vendor/etc/vendor/etc folder. My suggesstion would be to uninstall aml, sauron, and dolby atmos. Then flash latest dolby atmos (2/20 I think), latest sauron, then new aml all in twrp. If you're still having issues, try uninstall greenify as that's been known to mess with v4a on occassion. Then post your magisk img again if still having problems
[Magisk] tropical cactus:
Thanks for the reply.

I have no problems with viper and Atmos working together with ainur mod. Viper is processing with change of track.

My problem is when I turn on Bluetooth. Even with viper locked on speaker, the minute I play a track, only Atmos is working. Viper not processing.

Viper doesn't process in Bluetooth mode either. But if I go through the usual set up of switching off viper, exit, clear it in recent and switch on again, I can get viper to process, together with Atmos.

I was wondering if it's possible to get the processing to continue switching between Bluetooth and phone speakers.

Thanks.
[Magisk] Zackptg5:
That'd be an app issue so there'd be nothing I can do about it. Maybe deep_buffer remover would help?
[Magisk] tropical cactus:
Thanks. I'll try that.:)
[Magisk] kowallis.r@gmail.com:
I did follow the op explicitly. Regarding aml removal, I removed the magisk module 1.42 per your instructions. Then I sent you the magisk image link.

Haven't tried the greenify removal. Would you like me to remove the module and then send a new image link?
[Magisk] Zackptg5:
Try removing it, then removing all other audio mods and reinstalling them (reinstalling aml last) and send the img link
[Magisk] whalesplaho:
Dnt know why buh only v1.4.4 works fine for me.
[Magisk] ghasdf:
Hi, can you pls send me link or file v1.4.4
[Magisk] Zackptg5:
Can you run through troubleshooting guide on op with 1.4.7?
[Magisk] whalesplaho:
Sure why not.... Atleast yhu giving us yur time for dis hardwork.

What shoud i do brov?
[Magisk] whalesplaho:
Here yhu go man....
[Magisk] Zackptg5:
I have a section in the first post of this thread that outlines what to do. It's the troubleshooting section
[Magisk] whalesplaho:
Seen.... Will go through now!

Thanks

---------- Post added at 06:45 PM ---------- Previous post was at 05:56 PM ----------

I tried copying tha aml folder tha not copying... Dnt now why!!!

I have;

V4a

Dolby Atmos

UDBR....

Tha last version dah works was 1.4.4.
[Magisk] ghasdf:
Thank you
[Magisk] Saswata Chakraborty:
Hi,

Does this module support more than 2 audio mods? Currently, I am using V4A and Dolby Atmos and the module makes it possible to use both audio mods simultaneously. However, when I tried using a third audio mod (AM3D) which I flashed through Magisk, I get a blank screen on the AM3D app. So, it appears to me that either AM3D is not working or this module doesn't support more than 2 mods. Please let me know.
[Magisk] Ashokkumar RV:
AML supports more than 2 mods.

AM3D is failed for you. (For me too)
[Magisk] Saswata Chakraborty:
Thanks for clearing my doubt. Is there any other good audio mod apart from V4A and Dolby that works well on Mi A1 (Nougat 7.1.2)?
[Magisk] M Huzaifah:
You can try JamesDSP. :)
[Magisk] Zackptg5:
Aml has been updated to v1.4.8! Changelog: Added necessary changes for udbr -> redone and rereleased as Audio Compatibility Patch

However, I won't be updated aml on the repo until the new ACP repo is up as well so users with udbr won't be stuck
[Magisk] Zackptg5:
I made a poll! Just curious as to what mods you all use :)
[Magisk] manpildo:
You left out ARISE mate. ;) Sauron+V4A here.

Question to those who have tried both JamesDSP and Viper - which one do you prefer and why?
[Magisk] Zackptg5:
I left out arise because it always installs to system, even with magisk install :)

I prefer v4a at the moment for the reverberation options but James is working on that so that may change
[Magisk] kMogs17:
I am on pixel xl android 8.1 firehound 4.3.1 and i am trying to install viper and dolby atmos and when i use this aml 1.4.8 i can get atmos to work but then viper asks for driver install. Any suggestions? Thanks

Both seem to work with aml 1.4.4. will test more later
[Magisk] Zackptg5:
Follow the troubleshooting guide in the OP. It outlines what I'll need and stuff
[Magisk] II_DiE_4:
Having problems with the new 1.4.8. Audio cracks and eventually doesn't work at all.

Same apps, V4A and Dolby, on the 1.4.7 and everything is fine. Just by deleting 1.4.8 and installing 1.4.7.

Thanks for the work BTW.
[Magisk] Zackptg5:
In terms of Dolby and v4a, literally nothing changed between v1.4.7 and 1.4.8 so it's something else on your rom/kernel. It can't hurt to uninstall and reinstall all of your audio mods though
[Magisk] II_DiE_4:
Hm.. i dont know man. I tried again and with 1.4.8 my audio goes completely crazy. Like i start playing a song and if i seek or change to another, it freezes and continue repeating the last words with cracked voice.

Immediately changing to 1.4.7 and everything is ok.
[Magisk] Zackptg5:
Can you attach the /magisk/AML folder of 1.4.7 and of 1.4.8? Thanks
[Magisk] II_DiE_4:
Here they are.
[Magisk] II_DiE_4:
Also seeing some spam in logs when it happens. Dunno how to interpret these. Here the are.
[Magisk] kMogs17:
I am trying to install v4a and dolby black and cheese editions. When i install aml (tried 1.4.4 and 1.4.8) viper stops processing audio unless i turn on compatibility mode. I am on pixel xl Android 8.1. anyone else seeing this issue?
[Magisk] kMogs17:
Ok so I am on Android 8.1 firehound 4.3.1 on pixel xl. I have attached logs and aml folders.

Heres the process i took:

In magisk 16.2:

- install V4A black and cheese edition 3.25.18

- install dolby atmos black and cheese edition 3.25.18

- install aml 1.4.8 (also tried 1.4.4 with same results)

- reboot

- at this point dolby processes but viper doesnt

- to get viper to work i have to switch fx compatibility mode to compatible, enable developer mode, disable selinux, reboot

- Now both v4a and dolby process. But would prefer not to have to take extra steps for viper

I hope the attachments are enough to figure out whats going on. Thanks for your work.
[Magisk] Zackptg5:
So the only difference between your aml 1.4.7 and 1.4.8 folders are the audio_policy.conf file. Looks like ACP is likely the culprit. Try uninstalling that and seeing what happens (did you ever need deep_buffer removed on your device?)

Actually, before you try the striked out part. With aml 1.4.8, replace the conf file in the aml folder with this one and tell me what happens
[Magisk] Zackptg5:
Unfortunately, dolby and v4a have some opposing requirements that some devices can get working while some can't. Everything is as it should be in the aml folder. The problem is that v4a won't process if there's effects being used for output_session_processing but dolby typically requires it's effect to be used as the output_session_processing one. You could try deleting the output_session_processing section in the audio_effect.conf and the 'stream type="music"' section (within the postprocess section) in the audio_effects.xml files in the aml folder and seeing what happens (you may get lucky). Also, could you post a full logcat (adb logcat -d > log.log)? The fact that they both work with selinux disabled is making me think that maybe it's a sepolicy issue in your case
[Magisk] II_DiE_4:
Yep, seems like you found the problem. Everything is fine now, with the ACP also installed.
[Magisk] Zackptg5:
Interesting. So what ACP does is change the FLAG for deep_buffer to FAST but I'm guessing that maybe your device doesn't have that capability? So I changed it to primary in the one I sent you. Guess that might be a better option going forward. Thanks!
[Magisk] kMogs17:
Thanks i will try your suggestions and try to get a full logcat when i get the chance
[Magisk] Zackptg5:
AML v1.5 has been released! Felt that there were enough changes to warrant a version upgrade from 1.4.x to 1.5 :)

Changelog: Add soundalive and dha effect removal (needed for some samsung devices), pull ACP patch from ACP mod rather than static patch (need to be on latest ACP), fine tuned osp patching
[Magisk] Quiksilver78:
Getting 'Installation Failed message when updating.

Log attached.
[Magisk] Zackptg5:
updated aml! Changelog: fixes for samsung devices
[Magisk] Zackptg5:
You need to update or remove ACP first before updating aml. There were some backend changes done there :)
[Magisk] Trupen:
After flashing latest update Dolby stops working and viper
[Magisk] Trupen:
[MENTION=6037748]Zackptg5[/MENTION]

Dolby resets itself on every boot don't know what is causing problem viper or aml
[Magisk] Zackptg5:
updated aml! Added dynamic effect removal and addition of new materialized v4a
[Magisk] yung40oz84:
I don't know if it's this or new v4a but it's not being detected to patch and then I'm being warned to install the driver. How get previous release?
[Magisk] jandia7381:
+1

Same here.
[Magisk] yung40oz84:
SO let me update the situation a little.

When using the old or original viper AML does not detect at all.

When using the new material one, AML detects but I still have to install driver in OS even though i chose driver in recovery. Also, after I installed the driver and rebooted the app completely disapeared. Gone, lol.

Lastly, when using just the app and not the zip, the drivers installed fine and the app worked but then it crashed google TTS, my stock gallery, odd.
[Magisk] TahirZX:
Same +1 using new v4A

---------- Post added at 02:13 AM ---------- Previous post was at 02:10 AM ----------

Fix new AML plz. I have broken v4A(new 2.5.0.5) (asks for drivers) cuz v4A doesn't get patched by AML only ACP(audio compatibility patch) gets patched and not v4A.
[Magisk] jandia7381:
I think the probs is from v4a coz when i use built before, latest aml detected it
[Magisk] TahirZX:
Yes confirm problem is with v4a

Tried older version 1.5.5 and it works fine. V4A 1.5.6 is not detected by latest AML
[Magisk] Zackptg5:
Sorry everyone, had a brainfart with the last release. v1.5.3 should fix v4afx issues (along with a v4a update I pushed)
[Magisk] jandia7381:
Back on tracks. All working great on my Kate. Thnx for ur hard work dev ?
[Magisk] jandia7381:
Double post, sorry
[Magisk] Amal Kunju:
Installed viper4android and aml both from magisk working perfectly. When installed dolby its FC and viper needs the driver to be installed.

I have a galaxy note 3 running RRO 8.1
[Magisk] Trupen:
[MENTION=6037748]Zackptg5[/MENTION] latest aml 1.5.3 is causing crackling sound
[Magisk] Zackptg5:
So the dynamic detection function had some issues with conf files that I'm pretty sure I got ironed out now. Updated aml with this new function, v4a will be updated shortly