Android security tags, read closely by Lightrion

CVE-2024-31331 AI-generated analysis

platform/frameworks/base, PackageManagerService (package manager, MIME group / intent filter handling)

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

PackageManagerService.setMimeGroup now sends an ACTION_PACKAGE_CHANGED broadcast for the package, once per user where it is installed and with dontKillApp=true. It does this whenever mComponentResolver.updateMimeGroup reports a change, in addition to clearing the package's preferred activities.

Root cause

In services/core/java/com/android/server/pm/PackageManagerService.java, setMimeGroup() commits the new MIME type set via commitPackageStateMutation() and then calls mComponentResolver.updateMimeGroup(). Before the fix, when that call returned true, the method only cleared the package's preferred activities (mPreferredActivityHelper.clearPackagePreferredActivities). It sent no ACTION_PACKAGE_CHANGED broadcast for the mimeGroup change.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to July 2024 · Findings