Android应用程序锁定相机 [英] Android App Locking Camera

查看:180
本文介绍了Android应用程序锁定相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能获得应用程序/进程当前锁定的摄像头,在Android设备上的Andr​​oid应用程序(进程ID或包名称或其他)?这是很容易来看看它的使用锁定 Camera.open() - 但我想找出它有它的进程

Is it possible to get the android app (process ID or package name or whatever) of the app/process that is currently locking the camera on an Android device? It's easy enough to see if it's locked using Camera.open() - but I want to find out the process which has it.

感谢。

推荐答案

该CameraService负责锁定摄像装置。这不是NDK的,因此不能访问过你的应用程序的一部分。看到这个相关讨论

The CameraService is responsible for locking the camera device. This isn't a part of the NDK and hence not accessible through your app. See this related discussion.

您可能需要使用一些非标准的方式,比如获得root权限,然后直接与底层的Andr​​oid系统进行交互。

You may have to use some non-standard way, like gaining root privileges, and then interacting with the underlying Android system directly.

这篇关于Android应用程序锁定相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆