Android security tags, read closely by Lightrion

CVE-2025-32323 AI-generated analysis

platform/packages/apps/DocumentsUI, Storage Access Framework picker (ACTION_OPEN_DOCUMENT_TREE confirmation dialog, Shared/ConfirmFragment)

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

DocumentsUI now sanitizes the calling app's label in Shared.getCallingAppName with TextUtils.makeSafeForPresentation (500-character limit, TRIM and SINGLE_LINE flags) and puts the name in double quotes in the open_tree_dialog_message string. This stops the label from reading as part of the folder-access confirmation text.

Root cause

Shared.getCallingAppName(Activity) in src/com/android/documentsui/base/Shared.java returned PackageManager.getApplicationLabel(ai).toString() unchanged. Only an empty label fell back to R.string.anonymous_application. Labels of any length and with any characters, including newlines, were passed through. According to the commit message, the name is presented in the ConfirmFragment. The open_tree_dialog_title and open_tree_dialog_message strings both contain an appName placeholder, and the message string placed the name inline in the sentence ("This will let <appName> access current and future content stored in <dir>."), so the label could read as a continuation of the dialog text.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to September 2025 · Findings