The goal of the script is to fix common Bluetooth issue when running Android Emulator on macOS. Script modifies emulator configs in batch, so you don't have to do it manually, one by one.
Simply call the script from the repo. Before calling the script make sure that emulator is closed.
./fix-android-emulator-audio # Sample output 🔊 Processing emulators from: /Users/<USERNAME>/.android/avd 🔊 Processing - Pixel_5_API_31.avd ✅ Done - Pixel_5_API_31.avd 🔊 Processing - 4.7_WXGA_API_27.avd ✅ Done - 4.7_WXGA_API_27.avd
By default script will look on emulators located at
~/.android/avd. Script accepts argument with custom
avd directory localization
When running emulator for the first time after applying the fix make sure that data is wiped and emulator is started with Cold Boot option.
How does it works
Script modifiy emulator config and disable audio input and output by specyfing
- Credits goes to Matt McKenna (himattm) for publishing article Android Emulators vs Bluetooth Headphones
Contributions and contact
All pull requests are welcomed. You can contact me on Twitter at @moczul