Seven months passed since last time I posted about AAP 0.10 . Many good things and some bad things happened since them, and it took a while until I post the updates. Actually I started writing this in early October so there might be some outdated info, but anyway...

June: Android and Audio Plugins: State of Union at ADC26

As I mentioned in the last post, I [had a session talk about audio plugins on Android which substantially means AAP:

https://sched.co/2KCdi

The sessions slides are already uploaded:

https://speakerdeck.com/atsushieno/android-and-audio-plugins-state-of-union

Since ADC usually takes forever to publish the video recording (the organizers believe people otherwise don't join ADC), I have recorded my own "replay" of the session talk:

https://www.youtube.com/watch?v=fV35uhh58YY

As an outsider, I would say ADC26 was actually a huge success, surprisingly. There were about 300 attendees with many speakers as in programme and surprisingly a few staffs onsite. It was a lot of fun with many friends both in Japan and from outside Japan (surprisingly I turned out to have many). If you are curious more about ADC Tokyo I had another blog post in Japanese, and some other series of blog post there. I'm not going to translate mine here.

UAPMD v0.5.0 supporting all essential features on AAP

In June, I have also released UAPMD v0.5.0, which I took as a part of AAP 1.0 Preview ecosystem. It has two distinct aspects: UAPMD as a reusable general purpose sequencer, and UAPMD as a fully functional AAP host as desktop plugin formats host.

UAPMD v0.4.0 brought in the remarkable GUI support, but it did not come up with working states and presets as desktop version did. With v0.5.0, it became possible to make project edits, assign plugins, select presets, and save and load as a UAPMD project file (`.uapmdz). Since then, we could use the existing projects to test both the UAPMD features and AAP features with certain set of plugins.

Later on, we also included some sample projects that can be easily loaded and played on Android (as we distribute all those plugins by ourselves). I make full use of it for testing.

July: AAP 1.0 Preview (aap-core v0.11.0 and v0.11.1)

AAP V4 Protocol

In the previous post I wrote:

In the next development cycle, I will have to bring in some ABI incompatibility in AAP and that's going to be a big deal. But once I get all those features working on UAPMD, hopefully I will be able to move forward to the first 1.0 release cycle. There are many parts that I want to "modernize" from the API to the samples, but things now look realistic than ever.

The former half of it happened, and the latter half did not. I brought in the breaking AAP Binder protocol changes after that post as AAP V4 Protocol. Different Android Intent URI means they are different services, and former AAP V3 plugins are not discoverable on the updated V4 host, and vice versa. The former V3 protocol was not enough to handle asynchronous messaging in one-way manner, as well as plugin-initiated messaging (host callbacks).

The protocol change did not immediately improve the capability, but it finally did this month as dynamic parameters metadata updates and dynamic port changes by plugin. That it like VST3 IComponentHandler::restartComponent(). It matters when a wrapper-like plugin such as ysfx that loads an arbitrary JSFX script, or BYOD that changes the semantics of parameters based on the preset models. They work well with the latest builds.

I write the latter half of above did not happen: support for this kind of callback is actually achieved so I have nothing left for the first 1.0 releases anymore at Binder protocol level - at least at this stage. I think AAP is at almost feature complete for 1.0 stable release today.

After the migration to AAP V4 protocol, I was primarily fixing the extension functions like state and presets which benefit and suffer a lot at the same time - having these features asynchronous means we have to make them concurrent, and AAP wasn't apparently ready for that. There was a lot of engineering effort to stabilize them for that v0.11.0 release.

Stabilized states and presets API exposed other kind of issues: the parameters should be consistent across the host, the plugin DSP, and the plugin GUI. Both sides can change the parameter values, and parameter changes from plugin have to be appropriately notified to the host. There were various fixes needed too.

AAP integration tests

AAP always suffered from its complicated setup for testing. It requires both hosts and plugins that are built outside aap-core repo, and those prerequisites depend on aap-core itself. Considering the amount of extra work on setting everything up, I basically gave up testing.

But since this kind of boilerplate work can be achieved by AI coding agents, I decided to have one by letting them handle the job. They tirelessly collect every single relevant plugin and incorporate ones as tests. It is not meant to be performed very frequently (I hate to waste energy there), but can be used before big releases.

https://github.com/atsushieno/aap-integration-tests

AAP 1.0 Preview release

After all those efforts, I thought it was time to name the v0.11.0 release as our first "AAP version 1.0" Preview release. The primary purpose was to widely advertise that audio plugins on Android is possible at such a feature set, with such a lot of existing audio plugin apps working.

I spent a lot of effort to publish many AAP plugins as well as UAPMD to Play Store. If you have some experience, publishing even one single app to Play Store requires a lot of annoying processes and interactions. And it was about 10 apps for me! And the problem was not really about publishing. I will have another post about the Google Play Store problem. Anyways, the apps are there:

https://play.google.com/store/apps/developer?id=atsushieno

But since then, we have a LOT more fascinating AAP apps that will not be published soon there. They are always released at GitHub first. You can use ObtainX that can register apps from a URL list. It is the official primary release channel.

You can get my list as of posting this here: https://gist.github.com/atsushieno/82423599808d685b215a4db233979f63

I also wrote a post about AAP and UAPMD at KVR news. It did not really result good - at first I wrote two distinct post on AAP and UAPMD, but the editor asked me to merge those two into one. I found it a bit awkward but ended up the post. The news was never posted on their social feed (I check them on Bluesky) while every other news on the same day went there, yet my post itself went live on the site. I'm sure almost no one noticed about the post. I might skip KVR next time.

CLAP hosting helper

One of the awkward part in AAP for external developers was the limited API options for developing hosts - we can use aap-juce for hosting (AGPLv3), or use AAP API directly (unstable). People find CLAP as a viable alternative for hosting plugins (like on gaming platforms). So I ended up creating the hosting wrapper library - it treats AAP plugins as if they were CLAP plugins. IF one has a CLAP host, they can use the library to build AAP hosts.

https://github.com/atsushieno/aap-clap-hosting-helper

A funny fact is that those people who requested this feature actually did not bring in their host apps yet. So I don't spend much time on it (I didn't even update it until we recently introduced dynamic port support). But IF you have a working CLAP host that actually runs on Android, it should be already usable.

MIDI-CI integration in virtual AAP MIDI 2.0 devices

AAP has always exposed the instruments as the virtual MIDI devices on the platform API. We could always use MDA instruments, Sfizz, OPNplug, etc. as virtual MIDI 1.0 and 2.0 devices on Android.

On the other hand, we did not really support MIDI-CI side of things until AAP v0.11.0 while UAPMD did (in case it is not obvious, there is no one else in the world that tries to support MIDI-CI like I do). UAPMD does not support virtual device creation on Android because Android MIDI API does not support that. This mismatch was finally resolved at that AAP version. You can retrieve AllCtrlList with CtrlMapList, and ProgramList from AAP.

AAP JavaScript Controller

Manipulating apps via scripting and MCP has been important these days, and I also need such kind of features when I let those AI coding agents investigate the issues. We can use adb to control whatever Android API exposes, but AAP has its own control points and dedicated semantics too. Starting v0.11.0 we expose AAP JS Controller to let adb connect the plugin service directly and handle various features.

Expanded AAP community and project

The Discord community

I have been around Android Audio Devs Discord for a few years since it has started, and I was posting various AAP news over there (the link may expire on occasion, find the latest one on my GitHub profile page):

https://discord.com/invite/EHcdTgTpah

It was still not too many until this year and was mostly only my announcements kind of posts, but since it started looking more and more viable (especially after we got the JUCE plugin UI working) we are "talking" about AAP a lot more than before, so we ended up having a dedicated #aap channel there.

I have received a lot of feedbacks and questions there, which I will write about in a separate post. We also discuss other projects and innovations too. For example, there are people designing another audio plugin format for Android without Play Store.

Greenhouse: our mobile-first plugin host

The AAP Project has almost always been "my" project until this year, and it was almost at "not for production" state. The landscape is changing. We have a host application that is in quality production: Greenhouse:

https://github.com/meteaurestudios/greenhouse

It was announced at the Discord community in Septermber (I remember it was while I was attending to DroidKaigi), and it has been rapidly growing up to have a working recorder + sequencer.

Greenhouse fills one of the most important part in the AAP ecosystem: it is a viable mobile-first plugin host. UAPMD, my cross-platform host + sequencer library with the PoC app, does not really pay much attention to mobile UX on its demo app, but Greenhouse does a lot.

September: AAP v0.11.2 and growing plugins ecosystem

After AAP 1.0 Preview release, I was mostly focusing on UAPMD. To me UAPMD is as important as AAP because it achieves no one else does everywhere: cross-platform audio plugin host + sequencer. I won't use Android-only solution for trackmaking, even if I can build one. UAPMD should realize song projects that work everywhere, IF the plugins can be shared. This IF part still needs more work, but that keeps me busy outside AAP.

Therefore, compared to UAPMD there was not a lot of growth in AAP, but there had been some important changes.

aapval

One of the feedback I received at ADC Japan 26 was that there should be tools like auval or pluginval that can validate whether the plugin package is built as expected. I was not quite sure if I can spend time on it, but figured that I could also let coding agents handle it. Technically it is nothing difficult, just a handful of boilerplate code work. It is now part of aap-core repo. It is a single Bash script that makes use of adb and aaphostsample on the target device.

https://github.com/atsushieno/aap-core/blob/main/tools/aapval

IME support on AAP native UI

When I started getting JUCE plugin UI working, I faced a lot of blockers. The UI often caused freeze (ANR), crashes, and/or lags. I figured most of the causes of them, but there was (or maybe I should say "is") one remaining issue - IMEs didn't work on Android text input widgets, regardless of what implemented it (Jetpack Compose, JUCE, android.widget, any technology).

Supporting IMEs is an annoying work, which are usually imposed only on people in CJKV language cultures but on Android it's on every language. And on Android platform, it is first imposed on the Android platform developers. It cannot be supported by AAP unless the underlying Android platform, especially SurfaceControlViewHost, does not support it. It didn't support it, so we couldn't do anything.

But this has changed in September. When I attended to DroidKaigi in Tokyo, there was a session about Remote Compose and the Google developers were there, so I asked whether it supports text inputs. The answer was not at all yet. Bummer. But there was also a session about Japanese text inputs and the Google developers were there (actually on the Japanese developer we meet often) so I asked about the possibility to support IMEs over SCVH. His thought was that it should be the responsibility at the remote view foundation. So I investigated more and found that SCVH actually has new API for transferring the input events since API Level 35. So I brought it in to our AudioPluginViewService if the platform is Android 15 or later. That is quite high API level requirement, but better than nothing. AAP started with minSdk 29 in 2019...!

Eliminating crashers

AAP has been always trying to get more features than stabilizing things. It was therefore always super crashy to keep things running. This aspect should change, now that AAP is not just an experimental plugin format and used by Greenhouse and non-developer users.

There have been a lot of stability fixes by miscommunication between the host and the plugin, as well as the interaction between host and plugin UI (which is another Android Service). They were mostly boilerplate error handling that are now covered by lots of AI coding agents work.

SFZ and SF2 samplers

Since AAP has become a way more solid foundation for music playback, especially with UAPMD sequencer, I thought it's time to bring in SFZ and SF2 instruments. The primary annoyance is to deal with the local storage and SAF (Storage Access Framework). As far as I know, they are the only open formats that I can get both open-source hosts and free samples.

We always had SFZ support with aap-lv2-sfizz, but unlike the desktop version it had always been fixed to SplendidGrandPiano and remained as PoC. Building an Android-specific SFZ selector seemed annoying work, but (again) I let the coding agents work on the annoying parts. There are so many boring and time-consuming tasks that are yet important for the overall ecosystem, like this.

The SFZ provider supports two channels:

The providers and clients are actually not limited to aap-lv2-sfizz and I might make it more useful. But that would also need more experiences on other kind of resources and apps.

I wanted to do the same for SF2, but choosing what to do was not easy. We used to have aap-lv2-fluidsynth, but it was done when we made use of Cerbero build system from Gstreamer - it was the only decent build system that resolved various dependencies from scratch AND supported Android. My hack around Cerbero was, working, but hard to maintain. Cerbero was never meant for general consumption anyway.

So I ended up reusing my JUCE plugin that was created around TinySoundFont. TSF is not designed to build a plugin either so I made a fork (as the PR was never accepted) for desktop.

https://github.com/atsushieno/usf2plugin

Then I ported it to Android, with some additional hacks to support local SF2 folders like I did for aap-lv2-sfizz (without another Provider support). SF2 practically means that General MIDI becomes available in the AAP world.

New AAP-JUCE plugins

Other than those already mentioned, I brought in more JUCE plugins to AAP since then (copying from the release notes):

With all these SF2, SFZ, amd NAM support, AAP became fairly extensive instruments and effectors ecosystem.

October: AAP v0.12.0

dynamic parameters metadata and (dynamic) buses extension

After the 0.11.2 release, I also brought in more, especially after that I could finally implement plugin-initiated callbacks for parameter metadata updates. It is based on our improvements in handling asynchronous calls and callbacks in both AAPXS and Binder. It also led me to implement the new buses extension and dynamic configuration by plugin.

They were the major missing features in AAP. I started thinking about our "feature freeze" towards AAP 1.0 stable release. We still have a few missing features such as latency reporting and tail length, but they are relatively minor stuff. I am way more confident on making the first stable release than before.

aap-airwindows and aap-cmajor

With the new dynamic parameters metadata and stability over asynchronous messaging, there was a lot of improvements in some direct ports. aap-airwindows can now reflect the parameter updates on the default Compose activity, with appropriate audio effects applied.

And I could finally manage to get Cmajor port working on Android with their Web UI, as aap-cmajor. Cmajor uses choc Webview which does not support Android, so I had to generate one for Android WebView. And I spend non-trivial amount of time to figure out why their JIT compiler failed on the target devices (some confusing ABI mismatches in the builds). Both effects and instruments work.

aap-ara

Maybe it sounds a bit weird, but we have ARA extension for AAP: aap-ara module. The official ARA_SDK of course does not support AAP, so what this actually means is that we have ARA_API implementation as in AAP extension i.e. ARA AAPXS.

The primary reason we have aap-ara is to ensure that AAP is capable of defining third-party extensions. It is defined outside aap-core, depends on third-party library, can be dynamically queried by host, and implementable by plugins.

We have some document model demonstration in the same repo. The plugin example works on both the host example and uapmd. It is rather a feature implemented in UAPMD - unlike AAP, there are already ARA-enabled plugins on the desktop market.

ARA will be useful when we get non-realtime instruments; some vocal synthesizers resort to ARA (maybe ARA3 in the future).

soundpack-provider-for-android

After creating SFZ provider for aap-lv2-sfizz and SF2 provider for aap-juce-usf2plugin, I thought they should be commonized as a generalized sound resource provider. They are both supposed to resolve contents from registered directory, by either importing files to the internal app storage or link to a directory via the Storage Access Framework. And the same resource resolution policy applies to AAP main plugin activity which plays some demo WAV file - it should become selectable.

Therefore, I created another standalone app that does this job: soundpack-provider-for-android

https://github.com/atsushieno/soundpack-provider-for-android

It actually comes with client and service libraries, so that any custom resource types can be registered and this system can be used for any resource. The registry is grouped by each content type option e.g. *.wav can be queried either as a general sample pack content or the AAP main activity sample playback content.

AAP 0.12.0 release

After all these works, I have published AAP 0.12.0 to get in time for M3 2026 Autumn in Tokyo, where I demonstrate UAPMD and AAP on Android, as well as DroidKnights where I gave a session talk about AAP.

A new AAP release involves updates to a bunch of all the plugins on the List of AAP pluginst and hosts wiki page. It used to be quite painful job, but these days I could offload some of the jobs to AI agents (a lot of manual work is still involved).

November: towards AAP 1.0 alpha (feature freeze)

offline rendering, tail, and latency

After v0.12.0 release, I was working on offline rendering improvements in UAPMD - the rendering feature had existed, but was not really making use of offline rendering mode in each plugin format. This also affects track freezing, and it was also quite buggy and not working well. They were first fixed in UAPMD, and AAP offline-rendering extension is implemented to work with it.

After offline rendering, I went ahead and added support for tail length and latency reporting, as extensions too. They are quite similar, except that tail reporting from plugin is realtime while latency reporting is non-realtime. These 3 extensions are now released as AAP v0.12.2, and UAPMD also supports them now in v0.7.0 (the latest release).

Planning towards AAP 1.0 Stable release

I thought it became feature complete, but when I was writing the release notes I noticed that we still miss the logging extension, so there will be another release for AAP 1.0 Alpha.

After AAP 1.0 Alpha, we will have to polish the public API and feature set to reduce extraneous expectation by users and app developers. Hopefully not a lot of changes, but things usually happen.