Android 11绕过“仅在使用应用程序时允许”的权限

发布于 2025-01-13 09:52:10 字数 204 浏览 2 评论 0原文

我正在尝试开发一个可以在后台拍照的应用程序。这个应用程序可以防止手机被盗。如果被盗,手机会发回照片和位置。 我启动了一个 android 服务来接收用户的命令。该服务可以调用android-camera2来拍照。 但我写的应用程序不起作用,只能在使用时允许。一旦Activity进入后台,就无法拍照。我该如何解决这个问题?我可以修改android系统的ROM。那么有什么技巧可以提供吗? 谢谢。

I trying to develop an app that can take photos in the background. This app can prevent mobile phones from being stolen. If be stolen, the phone will send back photos and location.
I started an android service to receive the command from the user. The service can call android-camera2 to take pictures.
But the app I wrote doesn't work that It can only be allowed when it is used. Once the activity enters the background, it can't take photos. How can I solve this problem? I can modify the ROM of the android system. So are there any tips that can be provided?
thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文