Reputation: 101
Starting from Android 11, there are new restrictions introduced for microphone use. There are some exemptions given by Android. https://developer.android.com/guide/components/foreground-services#bg-access-restriction-exemptions. I'm interested in the last one -
The service is started by an app that has the START_ACTIVITIES_FROM_BACKGROUND privileged permission.
I declared this in the AndroidManifest.xml and allow-listed it, however, I'm still not able to use microphone when the app is running in background. Has anyone run into this before? Does the permission really help apps to escape from the restrictions? Thanks
Upvotes: 2
Views: 1254
Reputation: 1006674
START_ACTIVITIES_FROM_BACKGROUND
is not part of the Android SDK. And its protectionLevel
is set to signature|privileged|vendorPrivileged|oem|verifier
, at least on Android 11. Ordinary apps cannot hold this permission.
Upvotes: 2