Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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? 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.

like image 267
Greg Avatar asked Nov 03 '22 07:11

Greg


1 Answers

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.

like image 198
amrav Avatar answered Nov 11 '22 11:11

amrav