M66B / XPrivacy

XPrivacy - The ultimate, yet easy to use, privacy manager
http://forum.xda-developers.com/xposed/modules/xprivacy-ultimate-android-privacy-app-t2320783
GNU General Public License v3.0
2.08k stars 527 forks source link

Prevent facebook messenger from using microphone #2252

Open zuxewi opened 9 years ago

zuxewi commented 9 years ago

Hello i have restricted all entrys in audio/video/photo category but messenger can always access my microphone

define commented 9 years ago

The same story with the Skype on HTC 5.1

M66B commented 9 years ago

Unfortunately I have no idea how the microphone is being accessed.

M66B commented 9 years ago

The media restrictions are defined here: https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/Meta.java#L269

Audio.startRecording, MediaRecorder.start or MediaRecorder.setOutputFile should prevent recording of audio, video, etc.

Record.Audio.permission should prevent audio recording by revoking the permissions (full application restart needed).

What I am missing in this issue is the steps to reproduce. How is the microphone being used?

M66B commented 9 years ago

Note that applications can circumvent these restrictions by using a native library (that is why they are marked unsafe). Using Record.Audio.permission will prevent recording of audio even for native libraries, however.

define commented 9 years ago

I just called to echo123 on skype, said something after beep and then I've heard recorded message.

define commented 9 years ago

On-demand restricting was enabled but dialog wasn't shown

define commented 9 years ago

I will try to check it on another device & ROM.

define commented 9 years ago

Sony 4.3 JB - the same issue.

thomaswhite-cz commented 9 years ago

Hello guys, i think Yoy have look deeper in system, i remeber article about backdoor for gov. to listen mic remotely on many different cellphones.. (iknow i know, may be is just conpiratons theory but these cases happened)

M66B commented 9 years ago

@thomaswhite-cz how do you imagine "looking deeper in system"? Can you contribute something?

uchagani commented 8 years ago

@M66B when whatsapp accesses the microphone, the following permissions get used:

storage/OpenAssetFileDescriptor
internet/connect
internet/InetAddress.getAllByName
storage/open

If i disable access to storage, it blocks the microphone permissions but it also blocks anything to do with the storage (as expected). If only there was a way to block microphone alone without storage permissions.

digitalkram commented 8 years ago

Strange thing is that blocking mic access for WhatsApp was actually working before. No rom nor xprivacy / xposed update meanwhile. But probably an WhatsApp update.. Mic access blocking works generally for a couple of other apps.