manifest: add foregroundServiceType="microphone"
Peter Cai
created 3 years ago
needed on targetSDK >= 30 for microphone access. Without this, we cannot
access the microphone in dialer integration mode since we are not the
foreground app.
Change summary
src/main/AndroidManifest.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Detailed changes
@@ -74,7 +74,7 @@
android:name="com.google.android.gms.car.application"
android:resource="@xml/automotive_app_desc" />
- <service android:name=".services.XmppConnectionService" />
+ <service android:name=".services.XmppConnectionService" android:foregroundServiceType="microphone" />
<receiver android:name=".services.EventReceiver">
<intent-filter>