Closed Bug 1903569 Opened 1 year ago Closed 1 year ago

Asses impact of the new Data sync foreground service timeout behavior when targeting Android 15

Categories

(Firefox for Android :: Downloads, task, P1)

All
Android
task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: mcarare, Assigned: mcarare)

References

Details

(Whiteboard: [fxdroid][group1])

Attachments

(1 file)

https://developer.android.com/about/versions/15/behavior-changes-15

Data sync foreground services are allowed to run only 6 hours per 24 h period.
This would apply to our downloads service.

An alternative would be migrating to an alternative API: https://developer.android.com/about/versions/15/changes/datasync-migration

Whiteboard: [fxdroid][group1]
Priority: -- → P1

The Bugbug bot thinks this bug should belong to the 'Fenix::Accounts and Sync' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Accounts and Sync
Component: Accounts and Sync → Downloads

This note points to this potentially not being an issue for the downloads service, the only one with dataSync service type in our apps:

Note: The 6-hour time limit is shared by all of an app's dataSync foreground services. For example, if an app runs a dataSync service for four hours, then starts a different dataSync service, that second service will only be allowed to run for two hours. However, if the user brings the app to the foreground, the timer resets and the app has 6 hours available.

Assignee: nobody → mcarare
Status: NEW → ASSIGNED

The note above limits the scope of this issue to making sure the download service calls stopSelf when it reaches timeout. The other improvements, perhaps also including migrating to another API will be considered part of 1904019.

See Also: → 1904019

This avoids app crashing with RemoteServiceException when timeout is reached.
See https://developer.android.com/about/versions/15/behavior-changes-15#datasync-timeout.

Pushed by mcarare@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/281b8f1894b9 Call stopSelf on datasync service timeout. r=android-reviewers,rsainani
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: