Closed Bug 2037021 Opened 6 months ago Closed 6 months ago

Investigate impact of changes in implicit URI grants

Categories

(Firefox for Android :: Tooling, task)

All
Android
task

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: mcarare, Assigned: mcarare)

References

Details

(Whiteboard: [fxdroid][group6] )

Attachments

(1 external file)

Currently, if an app launches an intent with a URI that has the action Send, SendMultiple, or ImageCapture, the system automatically grants the read and write URI permissions to the target app. This will change in Android 18. Recommendation is that apps explicitly grant the relevant URI permissions instead of relying on the system to grant them.

https://developer.android.com/about/versions/17/behavior-changes-all#restrict-implicit-uri-grants

Assignee: nobody → mcarare
Status: NEW → ASSIGNED

Updated MimeType.createCaptureIntent to add FLAG_GRANT_WRITE_URI_PERMISSION and FLAG_GRANT_READ_URI_PERMISSION to the capture intent. This ensures the receiving camera application has the necessary permissions to write the captured image to the provided photoUri.

Pushed by mcarare@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a83ca77bb1b5 https://hg.mozilla.org/integration/autoland/rev/804f90492458 Grant URI permissions for photo capture in `MimeType`. r=android-reviewers,giorga
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: