yashsingh1/xdaforums huggingface dataset:
[Android Software Development] RisingNoob:
I did all of those steps for testing and got nothing, I really thin that's something to do with my ROM since I'm running Leanage 15 on my One M8.

When I start playing music the V4A's driver status shows

Driver Version: 2.5.0.4

NEON Enabled: No

Enabled: No

Status: Abnormal

Audio Format: Unsupported

Processing: No

Sampling Rate: 0

Also tested Dolby Atmos from Axon 7 and Le Max 3, both crashed. AM3D Zirene worked the app but couldn't enable the effects nor the equaliser.
[Android Software Development] Kastilo:
~~Wait, question, if I don't have the Audio Modification Library installed (the v2.0 Magisk from the repo) can I still install AM3D and VIPER4Android FX, since I read the AML stops them from messing with each other or did I read something wrong?~~ (please ignore)

Anyways, your mods are amazing work Mr. Ahrion! They make even the worst earphones into high quality ones (Samsung On5, Marshmallow 6.0.1, MetroPCS USA)
[Android Software Development] Zackptg5:
New aml/unity is out! Lots of under the hood changes including magisk 14.5 support. The magisk util_functions will now be used if present for better future compatibility. See OP for full changelog
[Android Software Development] papzi57:
DownloadLink for 2.3?
[Android Software Development] kongacute:
Is already updated in OP
[Android Software Development] kowallis.r@gmail.com:
Can't get link to udbl video. 3.3 to work. Is their a back door?
[Android Software Development] Daniel_Lechu:
Thanks for the work, but I've noticed that sounds horrible on my Z3... The bass is like a subwoofer (bad bass), the treble is very low and the sound distort a lot... For now I think that standalone viper4android version is much better.

I got the same problems with Zirene, so looks like a problem of base module (AML).
[Android Software Development] slimcyril:
[MENTION=5357345]ahrion[/MENTION] [MENTION=6037748]Zackptg5[/MENTION] I already have the latest audmodlib associated with V4a, Dolby, Dirac, Arkamys & Sauron installed, is it possible to get just the Core from Arise Magnum Opus installed over the above without having to break things by replacing audio_effects?

Will the audmodlib do it's magic at the instant?
[Android Software Development] Zackptg5:
Non audmodlib audio mods are of course not supported because we can't always predict what will happen. If you want arise though, you'd want to install it before any audmodlib modules and even then, no promises. If you're using sauron though, you don't want to use arise core system. You'd want to use one or the other :)
[Android Software Development] slimcyril:
Arise Sound system reboots device and unroots Verizon S7 Nougat systemless Supersu few seconds or a minute after flashed. I have used Arise & Sauron on S4 lollipop system Supersu & sound was amazing, I really want the Arise Core on this device?

Are there any work around?

Note: with April security patch on S7 stock Nougat, Arise gave no problem but later patch causes the reboot and loss of root after flashed Opus!
[Android Software Development] Zackptg5:
I have no idea, you'd probably want to bring that up in the arise thread to see if any users have found a way
[Android Software Development] Zackptg5:
So in the mass updates, I missed the fact that the mount_partitions function wasn't added to magisk until v 14.1. This lead to 14.0 users to have an error be unable to install. This has been fixed with v2.4. Sorry!
[Android Software Development] mimo.aridi:
Hahaha thats bs actually. I have a z2. This app is the best one I've seen. I've tried dolby dds and atmos, viper4fx, viper4arise and used professional profiles, as well as arkamys, icesound and dirac and am3d beats them all why? Because it gives the best quality of each frequency and u can here it all equally. Too much treble is noise and high frequencies are harmful and disturbing. And the basss dependa on what external output u chose. Cheers.
[Android Software Development] psychoela:
aml v2.3 including latest dax v3.4, new one aml v2.4, need i remove one?
[Android Software Development] Zackptg5:
I can tell u didn't read the OP. This is a dev thread for anyone who wants to make their own AML or unity module. The zip is a template, not a standalone mod so you'd want to remove that
[Android Software Development] psychoela:
oh my bad:p thnks
[Android Software Development] GizmoTheGreen:
does this work on android 8.1 yet`?
[Android Software Development] Zackptg5:
v2.5 is finally out! Check the OP for changelog, logs of fixes, improvements, and some new logic for oreo [MENTION=2653065]GizmoTheGreen[/MENTION]

Remember that this is a template for building your own mods, not a mod in itself
[Android Software Development] GizmoTheGreen:
I thought it provides a base for audio mods to hook into. Since audio mods are broken/not loaded unless you delete/edit a file on android 8 and up that's why I thought it had to be fixed here not in the individual mods. Sorry.

(On my Moto g I had to use 7.1 ROM to use audio mods cause of this but want to try it on my pixel XL eventually)
[Android Software Development] Zackptg5:
If you build your audio mod with this template, then yes. The OP has a list of current audio mods that use this template (v4a, Dolby, etc)
[Android Software Development] GizmoTheGreen:
And they didn't work on 8.0 last time I tried. They did nothing.

So that's why I asked. (I'm on 8.1 now though).

Edit: actually Magisk doesn't even show Audio Mod Library in the downloads on 8.0/8.1 I guess because of this.

It shows on 7.1 and under.
[Android Software Development] Zackptg5:
This update adds Oreo support for those mods so if you flash them (except Dolby). So flash them and not this framework
[Android Software Development] GizmoTheGreen:
Tried viper (the one that mentions aml) and it doesn't work. Says driver is not active and status abnormal.

Tried messing with control and nothing happens to the audio.
[Android Software Development] Zackptg5:
PSA: aml is not compatible with magisk 14.6. magiskbin and the magisk.img have both been moved from /data to /data/adb. The repos have been updated to reflect this but I'm still waiting on topjohnwu to drop the new module template so I can see if any other changes need to be made before the next release
[Android Software Development] Zackptg5:
Merry Christmas everyone! AML/Unity has been updated for magisk 15. Note that this means that it will no longer work on any older versions of magisk like 14.x

Edit: quick bug fix release v2.7 - see op for changelog
[Android Software Development] Zackptg5:
v2.8 has been dropped. Just another small bugfix release, hopefully the last of them
[Android Software Development] LuoTW:
Uh...Excuse me

I use Magisk(15.2)Install Dolby(ZTE Axom 7)+ViperFX

But Dolby working normally

ViperFX working not?...How to deal with it...

I'm have install Audio modification Library Module.

My device Redmi note3Pro+NOS 7.1.2

Forgive me bad English，Thanks.
[Android Software Development] Zackptg5:
new aml/unity is live! see op for changelog
[Android Software Development] vibrantliker:
do I just flash this first before downloading modules in magisk?
[Android Software Development] slimcyril:
I have V2.1 installed, how to update to V2.9?
[Android Software Development] OsistemX:
AML is only for dev, if you want update AML install the lastest magisk module like Viper or Dolby they already have it.
[Android Software Development] slimcyril:
Already installed viper & atmos, tried flashing icesound & Am3d but when flashfire loads it's recovery, there's something about AML on screen that needs update & as a result none of the above were installed

However initially installed Arise Core system before AML, viper & atmos, is it safe to install Arise icesound over the above?
[Android Software Development] ronyscomparim:
does not work in Oreo after update 1/12/2018
[Android Software Development] OsistemX:
Why you use Arise with AML it' useless, you can install all of this modules from Arise by editing the Arise prop in your internal storage
[Android Software Development] slimcyril:
I m aware that those modules could be installed from Arise but someone hinted earlier it was safer installing arise components before AML & it's modules, it isn't useless, I have Arise Core, Sauron, & AML here, just asking to know if it's safe to install icesound from Arise since installation fails with icesound port from [MENTION=6366997]UltraM8[/MENTION]
[Android Software Development] OsistemX:
So try your own
[Android Software Development] Zackptg5:
2.1 is super old. The upgrade process is only supported for v2.3 and newer. So you'll need to use the original zips to uninstall all of the mods, then flash the new ones (aml is included in each mod so you don't have to worry about it specifically)
[Android Software Development] slimcyril:
The last time tried to uninstall and upgrade AML, Dolby ended on crashes for reasons don't know why, I have Arise Core system, Sauron, Dolby & since AML version is super old & won't install icesound(AML), is it safe to get that Arise Sound system?
[Android Software Development] toastyp:
The latest AML (2.9) breaks processing for v4a on the LG v20. It mounts vendor/etc/audio_effects.conf, which prevents v4a from processing. Attempting to delete it throws an error that the resource is busy and currently in use. Attempted to use multiple root explorers (total commander and fx file manager). As soon as AML is uninstalled, I am able to once again modify and remove the audio_effects.conf from the vendor/etc folder. The old 2.8 version did not have this problem. If there is something I am missing please let me know.
[Android Software Development] NiTrOwow:
I have kind of the same problem effecting other applications I need so I uninstalled AML.. I like AML but it has a problem.

It seems other applications can no longer mount /system/etc and read/write conf file for example in Card Emulator I get the following error : Device or resource busy. The application no longer works with AML enabled. When I disable AML it all seems to work fine.
[Android Software Development] MohdAhmed:
I installed this am3d mod and rebooted my device, and then opened the am3d app, then i see blank screen, so i uninstalled the mod from MAGISK, and rebooted, then i saw a this mod audio modification library installed (i didn't install it, it came out of nowhere) so i uninstalled this to.

So now when i use my device for anything, like YouTube or even watching offline videos saved in my phone, the phone starts heating as hell..

I think then the installation and uninstallationof am3d mod and the audio modification library mod is causing it. Any ideas or tips are welcome, a solution would be great.

Thank you in advance
[Android Software Development] Zackptg5:
If you uninstalled the mods, they're gone. Something else is causing your problem. I suggest you look at the logcat to see what's happening and battery usage to see if any apps are causing problems (like Facebook)
[Android Software Development] MohdAhmed:
Can you help me, I have no clue where to find these log cats?
[Android Software Development] Zackptg5:
Okay everyone. The last month or so we've been working on and off on completely redoing aml and unity and the time for there rebirth has finally come! The big change is that aml and unity are now separate entities. You can see the reasoning for why in the new aml thread (https://xdaforums.com/apps/magisk/mod-audio-modification-library-t3745466). Long story short, this thread will now be for Unity installer only. So this is for anyone who wants to make their own mod (we made it easy for you hopefully).

The nice thing about this is that the new unity (un)installer is now much simpler, leaner, faster, and won't need updated much other than for a magisk module template update or some crazy bug that somehow snuck by us. All old aml mods will be updated to this new unity template within 24 hours (hopefully).
[Android Software Development] Zackptg5:
Minor update released. Only file that was changed is the update-binary so a simple copy paste will keep your mod up to date :)
[Android Software Development] Nedalhardy:
reply

Thank you for this post , but for ads how its going to work ?
[Android Software Development] Zackptg5:
Unity template updated to 1.2. See op for changelog
[Android Software Development] kingbri:
I'm getting a error when I try to install my mod, it is "please install magisk " and I have the proper version installed
[Android Software Development] Zackptg5:
unity updated to v1.3 - see op for changelog
[Android Software Development] OldMid:
Is the install.sh script run again when upgrading a module? Just tested it and its only run on initial install:good:
[Android Software Development] Zackptg5:
So how it works is that when a newer version of the mod is detected, it does the upgrade process. In this case, the uninstall.sh is run, the regular uninstall process occurs, the install.sh script runs, then the regular install process runs. If you pm me you're mod, I can take a look at it to see what's going on
[Android Software Development] Zackptg5:
Unity has been updated to v1.4! See OP for changelog
[Android Software Development] Zackptg5:
unity has been updated to v1.4.1! See OP for changelog
[Android Software Development] Zackptg5:
Since some users have been inquiring about the volume key logic I use in some of the mods I work on, I made a thread on it :)

Hopefully others will have better solutions they can share or improve it or something but if any of you want to use it, here it is: https://xdaforums.com/android/software/guide-volume-key-selection-flashable-zip-t3773410

It's linked in the OP of this thread too
[Android Software Development] Zackptg5:
Updated unity to v1.5!!! Lots of changes and stuff so see the OP for changelog

Edit: updated again to v1.5.1 -_-
[Android Software Development] Zackptg5:
Updated to unity v1.5.2. Should be the last update for a while
[Android Software Development] Zackptg5:
Unity has been updated to v1.5.3! I didn't like the sysoverride stuff so I redid a bunch of it. Should be pretty flawless now :)
[Android Software Development] Wolfcity:
I´m runnig a Moto G5+ (potter) with 7.0 stock rom, rooted with magisk 16.

I recognized an error when opening a terminal emulator or using adb from a windows PC and just typing the command 'getprop' from terminal emulator or 'adb shell getprop' from PC the output is 'stack corruption detected'.

I disabled all my magisk modules and found out that the Audio Modification Library causes this issue. Viper and/or Dolby Atmos alone don't but as expected need the AML to run properly.

Attached a log taken when typing 'getprop' to a terminal emulator and a screenshot of the same procedure.
[Android Software Development] Zackptg5:
Firstly, this is unity template thread, not aml thread :) (used to be aml long ago). Secondly, aml is just a collection of audio files so it doesn't make sense that it would cause this, you can look at the mod files and see for yourself. Try removing all audio mods, then reinstalling them (installing aml last). It's possible that dolby and viper together are causing the problem. You can try uninstalling one of those and rebooting while keeping aml and seeing what happens.
[Android Software Development] Wolfcity:
Sorry for posting in the wrong thread, got it from ahrion's signature.

Nevertheless thanks for your feedback.

I should have mentioned that I only disabled the modules as the installation is a mess on my device, it takes several attempts and a lot of trial and error to get everything working.

So when only disabling modules:

Viper alone doesn't cause the mentioned issue, Viper and Dolby together (without AML) and Viper ,Dolby+Ainur Sauron (without AML) don't cause it too. But to have clear results I will have to uninstall them. Will check that out when the next ROM flash is needed.
[Android Software Development] Zackptg5:
Unity has been updated to v1.5.4! Changelog: updated scripts for compatibility with new init.d injector logic
[Android Software Development] Maximaro:
[MENTION=5357345]ahrion[/MENTION] iam using the tissot device with Pixel Expirence to Ainur Audio mod.

And while Installing it say that it fails because of missing Audio Modification Libary, so instelled your´s and now it is working.

But one thing maka non logic to me:

https://github.com/therealahrion/Audio-Modification-Library/releases

this is also the libary mod but i can´t instal this =(

Is your´s based on this, mean is it the same or something similar because it is version 2.9 and you have 1.5.4

Thank you and Cheer´s =)
[Android Software Development] Zackptg5:
You need to read my friend. The readme for that repo clearly says that its an old version only kept for reference. Go to the aml thread for latest aml (just google it)
[Android Software Development] OldMid:
Just a quick suggestion [MENTION=6037748]Zackptg5[/MENTION], would it be possible to add an update script that works during an update? Similar as to how the install and uninstall custom scripts work, it would replace them running when a changed version number is detected, instead of running both install and uninstall scripts. Just wanted to or this out there as the way it currently is, it doesn't support the keycheck binary being used in both scripts as far as I'm aware. Some variables are set and parameters passed in the uninstall script that it prevents the install script from working correctly. Any chance of this becoming a thing?
[Android Software Development] Zackptg5:
The uninstall.sh is blank by default so any conflicts present between it and install.sh can be fixed by the module dev. I tried the update thing originally but there were too many variables that couldn't be addressed (like users upgrading from much older versions). The keycheck binary (and any other binary for that matter) can work whereever you want it to be. You just need to move the chmod and all of that stuff from install.sh to config.sh where it'll be picked up by both install and uninstall scripts. In terms of conflicts with variables from unity in general, that's something I want to address in a future release (busy with school at the moment but it's on my to do list) through the use of local variables and such
[Android Software Development] OldMid:
Awesome stuff, forgot about the config.sh functions and variables lol, that should fix my problem, Thanks!
[Android Software Development] Zackptg5:
After sitting on this for a couple months, Unity v1.5.5 is finally here! The reason it took so long is cause I had literally nothing that needed done/fixed with it other than a 1 line fix where the prop file wouldn't be removed on uninstall on system installs (a truely minor bug).

Now that magisk 16.6 has been released, I made a few tweaks based on the changes in it and used some local variables where possible.

Long story short, this isn't anything huge and the only files you'll need to replace with the new zip are the update-binary and util_functions.sh :)
[Android Software Development] Zackptg5:
Okay everybody. In updating unity, I forgot to change back the system mounting line from ro to rw so that broke all system installs for all unity mods. Pushed a rerelease. Only file changed is util_functions.sh
[Android Software Development] Zackptg5:
Although the utility for this is almost 0, there are 2 mods I work on that use this so I figured I'd make an official template for the few that would be interested.

There's now a special edition of unity: Unity-AK2-Edition which has anykernel2 by [MENTION=4544860]osm0sis[/MENTION] bundled into it. I added the additional instructions to the OP.
[Android Software Development] Zackptg5:
After working on some other mods, I came to realize that there's no point for Unity-AK2 edition. It's too complicated for typical use since the only thing any unity mod would need to modify would be the ramdisk. So in unity v1.6, I added ramdisk patching through the use of magisk binaries to the main unity branch. Just follow the directions in the OP and config.sh for setting it up (it's super easy).

Also, I added a debug feature which is handy for any devs running test/beta builds. Either set DEBUG to true in the config.sh (if it's a test zip for example) or add DEBUG to the zipname (for a non-debug build that you want the debug log from)
[Android Software Development] Jman420:
Any details on what output we get with the DEBUG flag set? I know that I've had a hell of a time debugging flashable zips due to lack of error output, often needing to pepper in print statements to figure out where failures occur.
[Android Software Development] Zackptg5:
It basically sets "set -x"

So every command run starting at unity_custom to the end of the flash
[Android Software Development] Jman420:
Ah! That's great! Going to be very useful for us devs... Thanks bud!
[Android Software Development] Zackptg5:
Reuploaded unity v1.6 - quick hotfix in common/unityfiles/util_functions.sh
[Android Software Development] Zackptg5:
Dropped a big unity update and hopefully the last for a while. Changelog:

* Fix/improve cp_ch functions. Combine cp_ch, cp_ch_nb, and check_bak into cp_ch function - see OP on xda for how it works

* Improve how unity handles ramdisk stuff

* Modify install_script function so it can be used by devs - see OP on xda for details

* Need busybox for ramdisk stuff - note that since busybox is now bundled into unity, you can use it with any of your mods (it replaces sbin in path like magisk does so you can call it like any binary)

* Compress unity tools to save space (cut size in ~half)

* Fix debug in magisk manager

* Misc bug fixes and improvements

The big changes for any devs here is the overhaul of the cp_ch function, the changes to install_script so that you can use it in your mod, and the addition of busybox (osm0sis's latest stable - v1.29.2) which is automatically setup by unity so you can use it with your mod without the need of setting aliases or anything goofy like that.

Only exception to that is that if it's being flashed in magisk manager, the busybox included with the current magisk install will be used (works the same way though)

I updated the OP instructions with the new stuff (spoiler, it makes life easier for you)
[Android Software Development] Zackptg5:
New magisk module template dropped! Good news is one of the misc changes in the last unity release was making a minor adjustment for magisk 16.8 snapshot.

Edit: there's some more changes I missed before, I'll need to change some stuff
[Android Software Development] Zackptg5:
Updated unity to v1.7! I figured it magisk had a major bump, why not unity? Changelog in OP but to sum it up: bug fixes, fully updated for magisk 17.1. Note that minMagisk is 17000 so you'll need magisk 17 or newer (or non-magisk) for it to work. You can always change this back to 1530 in the module.prop though cause it works fine still on those versions of magisk as far as I can tell (only tested on 16.7 and 17.1)
[Android Software Development] Zackptg5:
Updated Unity to v1.7.1! Just a 1 line fix in the update-binary for ramdisk patching. This will be the last unity update for a long while assuming no other bugs or magisk module template changes occur

Edit: Found a bug in unityfiles. Reuploaded fixed version
[Android Software Development] Zackptg5:
Updated unity to v1.7.2! Changelog:

* Fix dynamicoreo for lib64

* Update magisk binaries to 17.3 for pixel 3 support

* Fix bug with ramdisk uninstall
[Android Software Development] Dreamer(3MF):
If We Flash The Module Thru TWRP Recovery & The Used Magisk Is v14.0/15.0/16.0, How Magisk Will Deal With Module Template v17000? And What Will MAGISK Variable Return?
[Android Software Development] Zackptg5:
MAGISK variable is a Boolean one (true if magisk detected, false otherwise). In config.sh, there's a variable called minMagisk and that's dependent on the magisk version. It's set to 17000 in unity because that's the current recommendation by topjohnwu which means that it won't install on any magisk version older than 17.0 (installation will abort).

However, unity is compatible all the way back to magisk v15.3 so you could change that to 1530 (topjohnwu changed the numbering scheme, hence the change in 0's)