{"id":15374109,"url":"https://github.com/mrmike/fix-android-emulator-audio","last_synced_at":"2025-10-14T13:11:03.938Z","repository":{"id":44674124,"uuid":"440233956","full_name":"mrmike/fix-android-emulator-audio","owner":"mrmike","description":"🔊 Script for fixing Bluetooth issue when running Android Emulator on macOS","archived":false,"fork":false,"pushed_at":"2022-01-31T20:01:10.000Z","size":14,"stargazers_count":60,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T14:11:21.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrmike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-20T16:21:24.000Z","updated_at":"2024-11-02T16:11:03.000Z","dependencies_parsed_at":"2022-09-18T16:02:22.346Z","dependency_job_id":null,"html_url":"https://github.com/mrmike/fix-android-emulator-audio","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mrmike/fix-android-emulator-audio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmike%2Ffix-android-emulator-audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmike%2Ffix-android-emulator-audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmike%2Ffix-android-emulator-audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmike%2Ffix-android-emulator-audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrmike","download_url":"https://codeload.github.com/mrmike/fix-android-emulator-audio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmike%2Ffix-android-emulator-audio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018702,"owners_count":26086604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T13:57:17.064Z","updated_at":"2025-10-14T13:11:03.904Z","avatar_url":"https://github.com/mrmike.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fix-android-emulator-audio\n\nThe 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.\n\n## Installation\nThere're a few options to get and run the script.\n1. git clone\n```\ngit clone git@github.com:mrmike/fix-android-emulator-audio.git\n# and call ./fix-android-emulator-audio inside repo directory\n```\n2. Homebrew\n```\nbrew tap mrmike/homebrew-fix-android-emulator-audio\nbrew install fix-android-emulator-audio\n# and call fix-android-emulator-audio from any location \n```\n3. curl - you can use curl to get and run the script\n```\ncurl -s https://raw.githubusercontent.com/mrmike/fix-android-emulator-audio/main/fix-android-emulator-audio | bash /dev/stdin\n```\n\n## Usage\nBefore calling the script make sure that emulator is closed.\n```bash\n fix-android-emulator-audio\n\n# Sample output\n🔊 Processing emulators from: /Users/\u003cUSERNAME\u003e/.android/avd\n🔊 Processing - Pixel_5_API_31.avd\n✅ Done - Pixel_5_API_31.avd\n🔊 Processing - 4.7_WXGA_API_27.avd\n✅ Done - 4.7_WXGA_API_27.avd\n```\n\nBy default script will look on emulators located at `~/.android/avd`. Script accepts argument with custom `avd` directory localization\n```bash\nfix-android-emulator-audio path/to/your/avd/directory\n```\n\nOptionally you can pass `--wipe` option to wipe emulator's data so you don't have to do it manually via Android Studio. Script removes following files and directories:\n```\n* snapshots/\n* userdata.img\n* userdata-qemu.img\n```\n\nWhen running emulator for the first time after applying the fix make sure that data is wiped and emulator is started with Cold Boot option.\n\u003cp align=\"center\"\u003e\n \u003cimg width=\"449\" alt=\"coldboot\" src=\"https://user-images.githubusercontent.com/529635/146804992-07182ed9-b195-4b0a-90fe-6adc3c79f2ec.png\"\u003e\n\u003c/p\u003e\n\n## How does it works\nScript modifiy emulator config and disable audio input and output by specyfing\n```\nhw.audioInput=no\nhw.audioOutput=no\n```\n\n## Credits\n* Credits goes to Matt McKenna ([himattm](https://twitter.com/himattm)) for publishing article [Android Emulators vs Bluetooth Headphones](https://blog.mmckenna.me/android-emulators-vs-bluetooth-headphones)\n\n## Contributions and contact\nAll pull requests are welcomed. You can contact me on Twitter at [@moczul](https://twitter.com/moczul)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmike%2Ffix-android-emulator-audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrmike%2Ffix-android-emulator-audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmike%2Ffix-android-emulator-audio/lists"}