Is There Any Provision In Android To Know Which User Application Is Using Which System Service
Is there any provision in android or ndk by to know which user application is using which system service? OR another way by using pid:- Suppose i have an application which uses mic
Solution 1:
If you are the implementer of the system service -- such as via creating your own fork of the Android OS -- there should be ways to do this via the Binder IPC protocol. SDK apps that implement a service that uses the binding pattern can find out who call them, via calls on their Binder
object. If an SDK app has the ability to get that information, one imagines that the system service could get the same information from its C/C++ Binder
equivalent.
If you not the implementer of the system service, then no, communications between apps and system services are private to those processes.
Post a Comment for "Is There Any Provision In Android To Know Which User Application Is Using Which System Service"