CVE-2026-28665 AI-generated analysis
platform/packages/apps/Settings, SettingsApplication (process-wide package label handling)
Settings now calls PackageItemInfo.forceSafeLabels() in SettingsApplication.onCreate(), so that loadLabel() calls in the Settings process return sanitized package labels.
Root cause
Before the fix, the Settings process did not enable the framework's global safe-label mode. As a result, PackageItemInfo.loadLabel() calls made in Settings returned labels without sanitization. The commit message says only that labels were not sanitized. The material does not show the exact label content involved or which Settings consumer was affected.
How the fix works
- src/com/android/settings/SettingsApplication.java:onCreate(): right after super.onCreate(), the fix adds a call to PackageItemInfo.forceSafeLabels() and a new import of android.content.pm.PackageItemInfo. Application.onCreate() runs once at process start, before the app's activities are created (general platform knowledge).
- PackageItemInfo.forceSafeLabels() sets a process-global flag. With it set, later PackageItemInfo.loadLabel() calls go through the safe-label logic, which removes or replaces problematic characters and bounds the label length (general platform knowledge). Because the switch applies to the whole process, the commit does not change any individual call site.
- The fix is a single commit that touches one file. It relies on PackageItemInfo.forceSafeLabels() already existing in frameworks/base, and the material shows no framework change alongside it.
Completeness
- Covers: PackageItemInfo.loadLabel() calls made from code in the Settings application process, including PackageManager.getApplicationLabel(), which delegates to loadLabel() (general platform knowledge).
- Leaves out: labels obtained by other means, for example through loadUnsafeLabel(), by reading nonLocalizedLabel directly, or as already-resolved strings received from other processes. The global switch does not affect these, and the material does not show whether such paths exist in Settings.
- Leaves out: other apps that host similar SettingsLib code are not changed by this commit. Each process has to opt in separately.
- The fix is a blanket, process-wide mitigation. The material does not identify which Settings screen or label consumer was the original trigger.
Behavior changes
- App labels loaded through loadLabel() in Settings are now sanitized by the framework's safe-label logic (general platform knowledge). Apps whose labels contain unusual characters or are very long may appear differently in Settings.
- The fix adds no new error paths or permission checks. It is a one-time static call at process start.
Per major
- Android 14: Same fix: a101a6cf443a in android-security-14.0.0_r29 adds the import and the forceSafeLabels() call, followed by a blank line, after super.onCreate(). All 8/8 patched lines are present at android-security-14.0.0_r31.
- Android 15: Same fix, slightly adapted: 60b2a8568cab in android-security-15.0.0_r17 puts the call directly before BackupRestoreStorageManager.getInstance(this), with no blank line after it. All 8/8 lines are present at android-security-15.0.0_r19.
- Android 16: Same fix, slightly adapted: 5db0f9425d82 in android-security-16.0.0_r8 puts the call, followed by a blank line, before the Flags.catalyst() block. All 8/8 lines are present at android-security-16.0.0_r10.
- Android 17: Same fix, slightly adapted: 12fb76cd7025 in android-security-17.0.0_r1 puts the call before the Flags.catalyst()/CatalystFlagProviderFactory block. All 8/8 lines are present at android-security-17.0.0_r3.
Unknowns
- Which Settings screen or label consumer was the concrete trigger, and what crafted label content was involved.
- Whether any Settings code paths get labels through loadUnsafeLabel(), nonLocalizedLabel, or strings passed from other processes, which this global switch would not cover.
- How the label flaw leads to the EoP rating in the bulletin.
- Whether the attack needs user interaction, such as opening a particular Settings screen.