简体   繁体   English

Android App锁定相机

[英]Android App Locking Camera

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? 是否有可能获得当前在Android设备上锁定相机的应用/进程的Android应用(进程ID或包名称或其他)? It's easy enough to see if it's locked using Camera.open() - but I want to find out the process which has it. 很容易看到它是否使用Camera.open()锁定 - 但我想找出有它的过程。

Thanks. 谢谢。

The CameraService is responsible for locking the camera device. CameraService负责锁定摄像头设备。 This isn't a part of the NDK and hence not accessible through your app. 这不是NDK的一部分,因此无法通过您的应用访问。 See this related discussion . 请参阅此相关讨论

You may have to use some non-standard way, like gaining root privileges, and then interacting with the underlying Android system directly. 您可能必须使用某种非标准方式,例如获得root权限,然后直接与底层Android系统交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM