Android security tags, read closely by Lightrion

CVE-2026-0011 AI-generated analysis

platform/frameworks/base, PackageManagerService / Settings (system app enable/disable, UID migration)

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.

Makes Settings.enableSystemPackageLPw able to reuse the disabled PackageSetting of a shared-UID system app when its update is uninstalled. addPackageLPw now accepts the package even when registerExistingAppId fails for a shared-UID package, and the shared user app ID is restored on the reused setting, so the preloaded app is no longer re-scanned and installed as a new app with a possibly different UID.

Root cause

In services/core/java/com/android/server/pm/Settings.java, enableSystemPackageLPw rebuilds a disabled system package's setting through addPackageLPw. This happens when the system app's update is uninstalled. addPackageLPw creates a new PackageSetting and only puts it into mPackages if mAppIds.registerExistingAppId(uid, p, name) succeeds. Per the commit message, registerExistingAppId fails for shared-uid packages, so the disabled setting is not reused. Instead, the preloaded version is re-scanned and installed as a new app. When the manifest has sharedUserMaxSdkVersion, this changes the app's UID. Also, the rebuilt setting did not have its shared user app ID copied from the disabled setting.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to March 2026 · Findings