Skip to content

Commit

Permalink
Merge pull request #19981 from wordpress-mobile/fix/target-sdk-14-for…
Browse files Browse the repository at this point in the history
…eground-service-types

[Fix] Add targetSdk 34 foreground service types to our services.
  • Loading branch information
irfano authored Feb 19, 2024
2 parents c9602d9 + adf8b49 commit 621ccfb
Showing 1 changed file with 38 additions and 19 deletions.
57 changes: 38 additions & 19 deletions WordPress/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -851,88 +851,105 @@
<service
android:name=".ui.reader.services.update.ReaderUpdateService"
android:exported="false"
android:label="Reader Update Service" />
android:label="Reader Update Service"
android:foregroundServiceType="dataSync"/>
<service
android:name=".ui.reader.services.update.ReaderUpdateJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false"
android:label="Reader Update JobService" />
android:label="Reader Update JobService"
android:foregroundServiceType="dataSync"/>

<service
android:name=".ui.reader.services.discover.ReaderDiscoverService"
android:exported="false"
android:label="Reader Discover Service" />
android:label="Reader Discover Service"
android:foregroundServiceType="dataSync"/>
<service
android:name=".ui.reader.services.discover.ReaderDiscoverJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false"
android:label="Reader Discover JobService" />
android:label="Reader Discover JobService"
android:foregroundServiceType="dataSync"/>

<service
android:name=".ui.reader.services.post.ReaderPostService"
android:exported="false"
android:label="Reader Post Service" />
android:label="Reader Post Service"
android:foregroundServiceType="dataSync"/>
<service
android:name=".ui.reader.services.post.ReaderPostJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false"
android:label="Reader Post JobService" />
android:label="Reader Post JobService"
android:foregroundServiceType="dataSync"/>

<service
android:name=".ui.reader.services.search.ReaderSearchService"
android:exported="false"
android:label="Reader Search Service" />
android:label="Reader Search Service"
android:foregroundServiceType="dataSync"/>
<service
android:name=".ui.reader.services.search.ReaderSearchJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false"
android:label="Reader Search Job Service" />
android:label="Reader Search Job Service"
android:foregroundServiceType="dataSync"/>

<service
android:name=".ui.reader.services.comment.ReaderCommentService"
android:exported="false"
android:label="Reader Comment Service" />
android:label="Reader Comment Service"
android:foregroundServiceType="dataSync"/>

<service
android:name=".ui.suggestion.service.SuggestionService"
android:exported="false"
android:label="Suggestion Service" />
android:label="Suggestion Service"
android:foregroundServiceType="dataSync"/>
<service
android:name=".push.NotificationsProcessingService"
android:exported="false"
android:label="Notifications Quick Actions processing Service" />
android:label="Notifications Quick Actions processing Service"
android:foregroundServiceType="dataSync"/>

<service
android:name=".ui.notifications.services.NotificationsUpdateService"
android:exported="false"
android:label="Notifications Update Service" />
android:label="Notifications Update Service"
android:foregroundServiceType="dataSync"/>
<service
android:name=".ui.notifications.services.NotificationsUpdateJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false"
android:label="Notifications Update Job Service" />
android:label="Notifications Update Job Service"
android:foregroundServiceType="dataSync"/>

<service
android:name=".util.analytics.service.InstallationReferrerService"
android:exported="true"
android:permission="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"
android:label="Installation Referrer Service" />
android:label="Installation Referrer Service"
android:foregroundServiceType="dataSync"/>

<service
android:name=".util.analytics.service.InstallationReferrerJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false"
android:label="Installation Referrer Service" />
android:label="Installation Referrer Service"
android:foregroundServiceType="dataSync"/>

<service
android:name=".login.LoginWpcomService"
android:exported="false"
android:label="Login to WPCOM Service" />
android:label="Login to WPCOM Service"
android:foregroundServiceType="dataSync"/>

<service
android:name=".ui.sitecreation.services.SiteCreationService"
android:exported="false"
android:label="Site Creation Service" />
android:label="Site Creation Service"
android:foregroundServiceType="dataSync"/>

<!-- Samsung multiwindow support -->
<uses-library
Expand Down Expand Up @@ -1006,7 +1023,8 @@
<receiver android:name=".ui.notifications.DismissNotificationReceiver" />
<service
android:name=".ui.stats.refresh.lists.widget.WidgetService"
android:permission="android.permission.BIND_REMOTEVIEWS" />
android:permission="android.permission.BIND_REMOTEVIEWS"
android:foregroundServiceType="dataSync"/>

<activity
android:name=".ui.stats.refresh.lists.widget.views.StatsViewsWidgetConfigureActivity"
Expand Down Expand Up @@ -1066,7 +1084,8 @@

<service
android:name=".push.GCMMessageService"
android:exported="false" >
android:exported="false"
android:foregroundServiceType="dataSync">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
Expand Down

0 comments on commit 621ccfb

Please sign in to comment.