[Android] Add the foregroundServiceType to the services in the manifest
Nicolas Pomepuy
git at videolan.org
Fri Jan 6 07:36:53 UTC 2023
vlc-android | branch: 3.5.x | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jan 3 13:22:35 2023 +0100| [095751d6d5937423bf86d9c82815c6867981d436] | committer: Nicolas Pomepuy
Add the foregroundServiceType to the services in the manifest
(cherry picked from commit 89c2deb5fd4983dd64e0e55bc5ab8e559612c9d9)
> https://code.videolan.org/videolan/vlc-android/commit/095751d6d5937423bf86d9c82815c6867981d436
---
application/vlc-android/AndroidManifest.xml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/application/vlc-android/AndroidManifest.xml b/application/vlc-android/AndroidManifest.xml
index da2648b663..6ee3bf5e33 100644
--- a/application/vlc-android/AndroidManifest.xml
+++ b/application/vlc-android/AndroidManifest.xml
@@ -1037,13 +1037,17 @@
</activity>
<service android:name=".extensions.ExtensionManagerService"/>
- <service android:name=".PlaybackService"
- android:exported="true">
+ <service
+ android:name=".PlaybackService"
+ android:exported="true"
+ android:foregroundServiceType="mediaPlayback">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService"/>
</intent-filter>
</service>
- <service android:name=".MediaParsingService"/>
+ <service
+ android:name=".MediaParsingService"
+ android:foregroundServiceType="mediaProjection" />
<receiver
android:name=".widget.VLCAppWidgetProviderWhite"
More information about the Android
mailing list