Android Studio 想要使用麦克风

Android Studio wants access to microphone

我收到一个弹出窗口,其中 Android Studio 请求访问我的麦克风的权限。

据我所知,Android Studio 中没有语音命令功能。

我觉得这很奇怪,我希望有人知道为什么我的 IDE 想要访问我的麦克风。

这是 Android 模拟器。模拟的 phone 有一个 microphone,因此模拟器使用您计算机的 microphone 来模拟它。

随时拒绝访问您的微博phone;模拟器可以正常工作——当然,除了它的 microphone。

编辑:monocasa on HN 更详细的解释:

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