Android security tags, read closely by Lightrion

CVE-2026-0024 AI-generated analysis

platform/packages/providers/MediaProvider, MediaProvider.java (ContentResolver open path / location redaction)

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (5 corrections). Verify against the commit before relying on it.

MediaProvider's redaction decision for files opened via ContentResolver now also considers the UID passed in MediaStore.EXTRA_MEDIA_CAPABILITIES_UID, so media opened by a picker on behalf of an app lacking ACCESS_MEDIA_LOCATION gets location metadata redacted.

Root cause

isRedactionNeededForOpenViaContentResolver(Uri redactedUri, String ownerPackageName, File file) never looked at the opts Bundle. In the code shown, its decision rests on the redacted-URI flag and on whether the direct caller (getCallingPackageOrSelf()) owns the file. The remainder of the method is not shown in the material. When a picker (SAF, per the commit message) opens a media file on behalf of another app and supplies that app's UID in MediaStore.EXTRA_MEDIA_CAPABILITIES_UID, that UID's permissions were not considered. Per the commit message, this let an app bypass ACCESS_MEDIA_LOCATION and get unredacted location data.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to March 2026 · Findings