ist in the folder ~/Library/LaunchAgents/ with the following content: To have a permanent fix to affect all your virtual devices do the following:Ĭreate a. Sounds while the emulator is running, you might find it useful to add If you have some Bluetooth headphones and notice a strange hissing
Kudos for the script solution to MartinCR who proposed it here. Now, Android Studio will run your script that will run the original binary with the addtitional parameters to disable emulator's audio. Set the newly created script permissions with chmod +x emulator.Rename the emulator binary to emulator-original.Ĭreate a bash script text file with the name emulator that contains: If you want to start the emulator with disabled audio directly from Android studio, you should replace the emulator file with a script that will run emulator with additional parameters:Īndroid Studio by default uses the binary $ANDROID_SDK/emulator/emulatorwhich is located in: ~/Library/Android/sdk/emulator/ There are two options to start the emulator with disabled audio:Įmulator -avd Pixel_2_API_27 -qemu -no-audio
To fix the issue you should start the emulator with disabled audio. This happens even if you disable access to the microphone for Android studio in Security settings. When the emulator is started with enabled audio, sometimes it overrides the audio channel of the Mac machine.