manifest: add foregroundServiceType="microphone"

Peter Cai created

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

src/main/AndroidManifest.xml 🔗

@@ -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>