Skip to content

Instantly share code, notes, and snippets.

@sandboiii
Created February 12, 2025 13:31
Show Gist options
  • Save sandboiii/814df77cdc66a2659df4215797e8203e to your computer and use it in GitHub Desktop.
Save sandboiii/814df77cdc66a2659df4215797e8203e to your computer and use it in GitHub Desktop.
Disable audio input for Android Studio Emulator

Disable audio input for Android Studio Emulator

When using Bluetooth headphones, you may encounter the problem running an emulator in Android Studio, the sound in the headphones switches to low quality.

This is due to the fact that the Android emulator starts using your headphones as a microphone so that you can enter voice commands into Android.

In the vast majority of cases, no one uses voice input on the Android emulator, so it can be disabled through the emulator config file.:

  • Open the /.android/ folder on your computer (~/.android/ for Linux, /Users/{user_name}/.android/ for Mac and Windows)
  • Next, open the folder for the emulator you need (/avd/{emulator_name}/)
  • Edit the file config.ini and replace the item hw.audioInput=yes with hw.audioInput=no
  • Make a cold reboot of the emulator in order to apply the emulator configuration changes

Now you can safely listen to music with Bluetooth headphones while working with the emulator in Android Studio!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment