Android security tags, read closely by Lightrion

CVE-2026-55287 AI-generated analysis

platform/frameworks/base, android.accounts (GrantCredentialsPermissionActivity credential grant UI)

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.

GrantCredentialsPermissionActivity now passes the auth token label, requesting package label, account name and account type label through TextUtils.makeSafeForPresentation (TRIM and FIRST_LINE flags, with MAX_SAFE_LABEL_LENGTH and DEFAULT_MAX_LABEL_SIZE_PX limits) before showing them in the credential grant dialog.

Root cause

In core/java/android/accounts/GrantCredentialsPermissionActivity.java the activity put strings directly into TextViews with no sanitization: authTokenLabel (set inside a runOnUiThread Runnable), packageLabel (resolved for each requesting package, falling back to the raw package name, and passed to newPackageView), mAccount.name and accountTypeLabel. A crafted string could therefore add line breaks or very long text and misrepresent what the user is being asked to approve in the grant dialog. The commit message calls this UI obfuscation via newline injection.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings