Specify if broadcast receivers should be exported or not.
Categories
(Firefox for Android :: General, task, P1)
Tracking
()
| 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.
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.
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Comment 2•3 years ago
|
||
Authored by https://github.com/mcarare
https://github.com/mozilla-mobile/firefox-android/commit/1ea20c146103b547820c6204da7022f2d27a7a2c
[main] Bug 1839366 - Add is exported flag when registering receivers.
| Assignee | ||
Comment 3•3 years ago
|
||
For QA, please check that the download stated ( start/pause/ finished) is correctly reflected in the notification.
Comment 4•3 years ago
|
||
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.
Updated•3 years ago
|
Description
•