Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I'm writing a VOIP app for phones and there is an important question about it's security: can other apps access microphone while I'm in a call? I mean if some background app can access it, then it can record the call and that is a security leak...

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 13-Jan-16 10:39am    
Of course. Think about it: how anything can muffle the sound which physically exists?
And if you have malware application recording your speech, it would record everything, no matter if one uses your program or not.
The question makes no sense.
—SA
dtoth2 13-Jan-16 11:00am    
I think you misunderstood the question. I don't want to muffle sound, I just want to be sure that the OS won't let to any other app to use the mic at the same time while my app uses it for calls. Is this implemented in the os? Is there any API to find out how many apps want to use the mic at the same time, etc...? E.g. if you try to use win sound recorder while you are in call, it will record only silence :)
Sergey Alexandrovich Kryukov 13-Jan-16 11:05am    
No, I understood it. I don't mean that you want to muffle sound, I mean that you cannot muffle it, no matter if you want it or not. I was just a hint. Think logically. If you use a sound recorder, it will always record sound if microphone is physically available. How else?
—SA
dtoth2 13-Jan-16 11:19am    
So the OS will let a background process to record independently the voice despite the mic is used by another app? If I think logically, I would say that OS has to revoke permission from one of the apps which want to use mic at the same time. It would be the safe mechanism.
Sergey Alexandrovich Kryukov 13-Jan-16 11:38am    
Sorry, I did not explain myself clearly. I'm not sure that a microphone can be enabled/disabled per application, never heard of that. If I was sure, I would post a formal answer. I'm talking about different thing.

I tried to bring to your attention a purely practical aspect, about safety. Why trying to take care of such things in your application? Imagine that you have some software which records (detects, transmits) some of the customer voice without explicit customer's consent. But this is nothing but malicious activity. Imagine that you even found a way to block such activity in your application. But what's the use? The malicious process will still spy on the customer when your application is not used. The problem is reduced to the problem of malicious applications in general.

—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900