Android App Locking Camera

2020-04-07 12:23发布

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.

1条回答
姐就是有狂的资本
2楼-- · 2020-04-07 13:03

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.

查看更多
登录 后发表回答