gpt4 book ai didi

android - 如何在 Android 后台监控应用程序的传感器使用情况?

转载 作者:行者123 更新时间:2023-11-30 04:58:28 27 4
gpt4 key购买 nike

Android 系统告诉应用程序的方式是在后台使用 GPS。
例如,我怎样才能以编程方式让一个应用程序告诉我除我以外的另一个应用程序正在使用麦克风或陀螺仪?该应用程序的目的是向用户展示一些关于后台应用程序/服务使用传感器的统计数据。

最佳答案

回答:没有root就不行

You could write an app to try and monitor what's happening on the device, but it would require elevated permissions for your app like running as System or requesting a large set of permissions, so that you could query the appropriate services and access system resources to guess at what other apps are doing. The packagemanager exposes api calls for determining the installed applications and even examining their permissions, At best though like mentioned in the earlier answer all apps run in their own instance of the dalvik vm.

来源: https://security.stackexchange.com/questions/40284/how-can-i-detect-which-background-application-is-using-the-camera-microphone-or

关于android - 如何在 Android 后台监控应用程序的传感器使用情况?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58723941/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com