We have a native client process that we want to be able to call bindService in to bind to a java service that we don't want running all the time if not being used. Bound services allows us to utilize lazy starting so we aren't up and running constantly and will manage refcount so that the service will clean itself up when no more clients are using it.
There doesn't seem to be any aidl calls we can use that allow us to call bindService. Just getService, checkService, etc. what's exposed through ServiceManager or ActivityManager on native. Is there another way to get around this or an alternative solution that solves this problem? Thanks.