Android security tags, read closely by Lightrion

CVE-2025-26420 AI-generated analysis

platform/packages/modules/Permission, PermissionController runtime permission grant UI (GrantPermissionsActivity)

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.

GrantPermissionsActivity now merges an older, still-showing permission dialog from the same package and task into a newly launched one, and caps simultaneous dialogs per package/task at 10, instead of letting multiple independent dialogs coexist.

Root cause

In GrantPermissionsActivity.onCreate, the sCurrentGrantRequests map (keyed by Pair<package, taskId>) handled only three cases: no current activity (register this one), a new system-triggered request (delegate and finish), or an existing system-triggered dialog (merge into it). When a normal app request arrived while another normal request from the same package in the same task was already registered, none of these branches applied. The new activity went on independently with its own view model and UI, and there was no limit on how many such dialogs could stack in one task. showNextRequest and the photo picker, settings and Health Connect launches went to the top follower activity ('top') instead of the current activity.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to May 2025 · Findings