Search code examples
androidsecuritymicrophone

Exclusive access to the microphone in Android


Is it possible to get exclusive access to Android microphone from an application ?

I am trying to extend CSipSimple application and my goal is to improve it's security. One of the goals, which I have no idea how to approach, is to block other applications to record my conversations.

I have downloaded an app from PlayStore, Call Recorder it's called, and it gets automatically on when I dial a phone number and it is recording my phone conversation. That is what I need to avoid.

So, can I stop any application from recording my voice while I am on call ?


Solution

  • I don't know much about android, but if gaining exclusive access to the mic is not possible, one path you can tread is monitor apps with mic permissions, if they exist, and close them using root. Or when your app is running, you could remove the broadcast listeners of such apps, like some autorun managers do.