Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: Android 应用程序锁定相机
可以检查是否正在使用相机。但是我们能否进一步了解哪个应用程序正在使用它?
不,没有标准的 API 可以做到这一点。您将需要 root 权限才能尝试类似的操作。您可以在此处检查 CyanogenMod 的控制此服务的实现:
相机服务.cpp