In my Service I have a list of listeners (RemoteCallbackList) and I'm broadcasting some messages. Not every process is supposed to get the broadcast, so I'd like to filter them out. Is there a way to get PID of listening process from Listener itself?
Currently in my registerNewListener method I get callingPid and save it in a cookie stored by RemoteCallbackList, but between registration of a Listener, and broadcast, this could change and I have no way of knowing that...