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.
Thanks.
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.
You may have to use some non-standard way, like gaining root privileges, and then interacting with the underlying Android system directly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With