Android 11对麦克风使用的限制



从Android 11开始,话筒的使用有了新的限制。Android也有一些例外。https://developer.android.com/guide/components/foreground-services bg-access-restriction-exemptions。我对最后一个感兴趣

The service is started by an app that has the START_ACTIVITIES_FROM_BACKGROUND privileged permission.

我在AndroidManifest.xml中声明了这一点,并允许列出它,但是,当应用程序在后台运行时,我仍然无法使用麦克风。以前有人遇到过这种情况吗?许可真的能帮助应用程序摆脱限制吗?由于

START_ACTIVITIES_FROM_BACKGROUND不是Android SDK的一部分。至少在Android 11上,它的protectionLevel被设置为signature|privileged|vendorPrivileged|oem|verifier。普通应用程序不能拥有此权限。

最新更新