Android security tags, read closely by Lightrion

CVE-2024-43081 AI-generated analysis

platform/frameworks/base, PackageManagerService (services/core/java/com/android/server/pm/InstallPackageHelper.java)

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

InstallPackageHelper.installExistingPackageAsUser now rejects --install-existing requests that carry INSTALL_INSTANT_APP when the target package is a device admin for the user or a protected package, returning INSTALL_FAILED_INVALID_URI as it already did for system and updated-system apps.

Root cause

In InstallPackageHelper.installExistingPackageAsUser, when the caller set INSTALL_INSTANT_APP, the only guard was `instantApp && (pkgSetting.isSystem() || pkgSetting.isUpdatedSystemApp())`. An already-installed package that is a device admin for the target user, or one reported protected by mPm.mProtectedPackages.isPackageStateProtected, could therefore be re-installed for a user as an instant app; the commit message states such packages should be prevented from being reinstalled with --install-existing as instant.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2024 · Findings