Is there a way for Tasker to notify me when a background app is using the voice recorder or the camera?
I'm trying to find out which app is accessing the voice recorder in the background. Sometimes when I use the video recorder, I get a message saying the voice recorder is being used by another app.
media.camera
would show the PID of the process currently using the camera (front/rear individually). The servicemedia.player
would give you the PID of the process currently recording voice from microphone and saving it into a file. It doesn't seem to mention a process if the latter is not saving the input in a file. I may be wrong though.media_router
may also come handy. All of them can be accessed usingdumpsys
command. E.g.dumpsys media.camera
.