I work on a library directly installed in the Android system, and executed by the AudioFlinger (the android system mediaserver), and build in C++ with the AOSP, not with the JNI/NDK. I need to get an event from this library in a classic java application.
Is it possible to send a system intent from my library?
I've tested am broadcast -a com.myIntent
and it works in the command line but not from inside my library.
UPDATE: it IS a permission problem, because activating the permissive mode allow the intent to be catched by my java application. cf Sending an intent from c++ to java in Android 5.0.1_r1