Closed Bug 1874124 Opened 2 years ago Closed 2 years ago

Specify at least one foreground service type for each foreground service

Categories

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

All
Android
task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: mcarare, Assigned: mcarare)

References

Details

(Whiteboard: [foundation] [fxdroid])

Attachments

(4 files)

When targeting Android 14, at least one foreground service type must be specified for each foreground service within the app.

See also: https://developer.android.com/about/versions/14/changes/fgs-types-required

The first issue is with the Download service which should be declared as a dataSync type with the corresponding FOREGROUND_SERVICE_DATA_SYNC permission( I think we should declare that in the AC module, instead of in each app manifest).

Note that somewhere in a future version of Android, this foreground service type will be deprecated. It is recommended to migrate using a user-initiated data transfer or =WorkManager. I don't think we should do this in the scope of the upgrade, because while investigating it I found it somewhat limiting and difficult to refactor the existing code.

Another foreground service would be the AbstractPrivateNotificationService which might fall under either shortService or specialUse type where the latter would need a Play Store reasoning to be submitted for it to be used.

Authored by https://github.com/mcarare
https://github.com/mozilla-mobile/firefox-android/commit/e4ab71369049aef8918009e1848296bf7882504d
[main] Bug 1874124 - Add foregroundServiceType for DownloadService and FOREGROUND_SERVICE_DATA_SYNC permission.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Assignee: nobody → mcarare
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 123 Branch → ---

Authored by https://github.com/mcarare
https://github.com/mozilla-mobile/firefox-android/commit/81622bd40f70650be71ce700c89c0541cade3722
[main] Bug 1874124 - Add foregroundServiceType for private notification service and FOREGROUND_SERVICE_SPECIAL_USE permission.

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Keywords: leave-open
Target Milestone: 123 Branch → ---

Authored by https://github.com/mcarare
https://github.com/mozilla-mobile/firefox-android/commit/2be68a92e4d31cfca0210e687864944ac7766ad4
[main] Bug 1874124 - Add foregroundServiceType for Crash Services and FOREGROUND_SERVICE_SPECIAL_USE permission.

The Android team has not been keeping our P1 bug list up to date, so we're resetting all our P1 bugs to P2 to avoid signalling that we're actively working on bugs that we're not. The BMO documentation https://wiki.mozilla.org/BMO/UserGuide/BugFields#priority says P1 means "fix in the current release cycle" and P2 means "fix in the next release cycle or the following (nightly + 1 or nightly + 2)".

If you are actively working on this bug and expect to ship it in Fx 122 or 123, then please restore the priority back to P1.

Priority: P1 → P2

Closing this as no other services need changes.

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Priority: P2 → P1
Resolution: --- → FIXED

Authored by https://github.com/mcarare
https://github.com/mozilla-mobile/firefox-android/commit/7f20cfbeead6a5c050aa51e6ff8840a0f1fd120c
[main] Bug 1874124 - Add foregroundServiceType for sample app CrashService and FOREGROUND_SERVICE_SPECIAL_USE permission

Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: