I'm searching for a way to detect permission usage of other apps. The key idea is to detect, when other apps are accessing media or sensors (e.g. microphone).
I want to implement a service, which is looking for any permission usages, so that the service can inform the user, once any app is accessing the microphone or camera.
Does anybody know how to do this? I already found out, that I can read all granted permission of an app using the PackageManager, but I'm more interested in "real" permission usage.
Thanks in advance!
I think detecting permission requests isn't possible in that way. Since Android 6 rearranges permission system, there is no interest in proceeding this investigation.
来源:https://stackoverflow.com/questions/27835839/how-to-detect-permission-access-of-other-apps