Android Q beta 1 has been released and includes a new Native MIDI API for C/C++ apps.
Resources:
Blog post (search for "Native MIDI API")
Sample app (follow its README.md to build)
File a bug report (be sure to include "native MIDI" in title)
We have a very short window during which we can consider API change requests, so please try out this new API, and let us know what you think. For specific bugs, file a bug at the link above. For general comments, you can reply to this thread.
Thank you!
Don (Developer Advocate - Android Audio)