Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio wants access to microphone

Tags:

I received a pop up in which Android Studio requests permission to access my microphone.

For as far as I know, there are no voice command features in Android Studio.

I found this rather odd and I hope someone knows why my IDE wants to acces my microphone.

like image 921
Caspar Geerlings Avatar asked Oct 23 '18 09:10

Caspar Geerlings


People also ask

Why is Android studio using my microphone?

It's the Android emulator. The emulated phone has a microphone, so the emulator uses your computer's microphone to emulate it. Feel free to deny access to your microphone; the emulator will work fine—except for its microphone, of course.

How do I fix my microphone Access Denied?

Microphone Privacy SettingsGo to Start → Settings → Privacy → Microphone. Click Change to enable microphone access for the device in use. Under “Allow apps to access your microphone”, switch the toggle to the right to allow applications to use the microphone.

How do I grant microphone permissions?

Use Your Android device's settings menu to change camera and microphone permissions. If you've turned off camera or microphone access, you can turn on those permissions by accessing your device Settings > Apps menu.


1 Answers

It's the Android emulator. The emulated phone has a microphone, so the emulator uses your computer's microphone to emulate it.

Feel free to deny access to your microphone; the emulator will work fine—except for its microphone, of course.

EDIT: monocasa on HN explained in more detail:

It just enables the microphone at emulated device instantiation time. Easier than enabling/and disabling it at runtime.

https://android.googlesource.com/platform/external/qemu/+/a7c579bdcbe2543472535718d3b637cb864f6f36/hw/android/goldfish/audio.c#288

like image 129
Dan Fabulich Avatar answered Sep 28 '22 02:09

Dan Fabulich