Android security tags, read closely by Lightrion

CVE-2026-0009 AI-generated analysis

platform/packages/providers/MediaProvider, Photopicker (Compose photopicker: MainActivity, SelectionImpl, SelectionBarFeature)

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 (4 corrections). Verify against the commit before relying on it.

Removes the Photopicker's automatic finish-on-first-selection behaviour in single-select mode and instead always enables the selection bar so the user must explicitly confirm the selected media before it is returned to the calling app.

Root cause

MainActivity.onCreate called listenForSelectionIfSingleSelect(). When configurationManager.configuration.value.selectionLimit == 1, this function collected selection.get().flow and invoked onMediaSelectionConfirmed() as soon as the set reached size 1. SelectionBarFeature.Registration.isEnabled returned config.selectionLimit > 1 (on Android 16/17, only for the ACTIVITY runtime env), so single-select had no confirm UI. On 16/17, MediaGrid also suppressed the selected indicator when selectionLimit was 1. As a result, selecting one media item confirmed the selection and ended the session without a separate confirmation.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2026 · Findings