如何检测其他应用程序的权限访问? [英] How to detect permission access of other apps?
问题描述
我正在寻找一种检测其他应用程序权限使用情况的方法.关键思想是检测其他应用何时访问媒体或传感器(例如麦克风).
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.
有人知道该怎么做吗?我已经发现,我可以使用PackageManager读取应用程序的所有授予的权限,但是我对真正的"权限用法更感兴趣.
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.
提前谢谢!
推荐答案
我认为以这种方式无法检测到许可请求.由于Android 6重新布置了权限系统,因此没有兴趣进行此调查.
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.
这篇关于如何检测其他应用程序的权限访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!