You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AudioPluginInterface.aidl there is setCallback() method that passes a callback object to the AudioPluginInterface service.
Its corresponding service setCallback() implementation receives in_callback correctly if the client and service are the same app (e.g. aapinstrumentsample on its own PluginManagerActivity), but if they are different apps then in_callback is nullptr.
The text was updated successfully, but these errors were encountered:
After more investigation, it turned out that NdkBinder lacks android.os.Binder equivalent, and it leads to missing Stub class in the generated code.
When we bind our interface e.g. MyService in .aidl, there will be IMyService.Stub class and IMyService.Stub.Proxy class if it were Java, along with IMyServiceDefault class. aidl(.exe) with -lang=ndk generates only IMyServiceDefault which only provides interface methods stubs.
android.os.Binder seems to do a lot of work and it is not easily ported to NdkBinder land (at least the full implementation equivalent would be hard task). We need to get around it.
In
AudioPluginInterface.aidl
there issetCallback()
method that passes a callback object to theAudioPluginInterface
service.Its corresponding service
setCallback()
implementation receivesin_callback
correctly if the client and service are the same app (e.g. aapinstrumentsample on its ownPluginManagerActivity
), but if they are different apps thenin_callback
isnullptr
.The text was updated successfully, but these errors were encountered: