Reputation: 1653
How do we disable the (virtual) microphone when launching the emulator?
Situation
When launching an Android Studio stock emulator device, the microphone is always enabled and listening.
Why would we want this fix
Possible Solutions (based on practicality)
-no-audio
The preferred solution
System Information:
Upvotes: 16
Views: 8305
Reputation: 781
You can try the approach from here:
When I start Android Emulator, the audio on my Mac desktop stops It just works well.
Set the values below into the config.ini from your emulator. It will never bother you again.
hw.audioInput=no
hw.audioOutput=no
Upvotes: 32
Reputation: 1653
Partial solution based on the emulator's optional arguments which disables all audio in/out from the launched emulator.
Running emulator -help-all
the commands -no-audio
and -noaudio
are available to pass.
These commands are the same and disable ALL audio, so no microphone or audio out from the emulator.
Example command
emulator -avd <name> -no-audio
Pros: Running the above command, launches the emulator with the microphone disabled. Headsets and apps like microsnitch will not detect microphone activity.
Cons: Clicking on the UI, or playing audio through the emulator will not play audio through the machine (or headset) speakers.
Upvotes: 5