Closed Bug 1839366 Opened 3 years ago Closed 3 years ago

Specify if broadcast receivers should be exported or not.

Categories

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

All
Android
task

Tracking

()

VERIFIED FIXED
117 Branch
Tracking Status
firefox117 --- verified

People

(Reporter: mcarare, Assigned: mcarare)

References

(Regression)

Details

(Whiteboard: [foundation] [fxdroid][geckoview:m116])

Attachments

(1 file)

Apps and services that target Android 14 and use context-registered receivers are required to specify a flag to indicate whether or not the receiver should be exported to all other apps on the device: either RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED, respectively. This requirement helps protect apps from security vulnerabilities by leveraging the features for these receivers introduced in Android 13.

Source

The same documentation states that receivers that only receive system broadcasts are exempt from this, but the ContextCompat registerReceiver method documentation states that you can add RECEIVER_NOT_EXPORTED if you only want your receiver to be able to receive broadcasts from the system or your own app. So I am inclined to choose to specify this explicitly even for receivers of system broadcasts.

The list of System Broadcast Intents can be found here.

Assignee: nobody → mcarare
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch

For QA, please check that the download stated ( start/pause/ finished) is correctly reflected in the notification.

Verified as fixed on the latest Nightly build (117.0a1 from 2023-07-28).

Devices used:

  • Google Pixel 7 (Android 14)
  • Oppo Find X5 (Android 13)
  • Samsung Galaxy Tab A7 (Android 13)
  • Redmi 9C NFC (Android 10)

Marking the ticket as verified.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Regressed by: 1847141
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: