Android security tags, read closely by Lightrion

CVE-2024-31310 AI-generated analysis

platform/frameworks/base, Autofill framework (services/autofill, AutofillManagerServiceImpl)

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

AutofillManagerServiceImpl.newServiceInfoLocked now uses PackageManager.queryIntentServicesAsUser to check that the component being set as the autofill service declares the AutofillService.SERVICE_INTERFACE intent filter, and throws SecurityException if it does not.

Root cause

In services/autofill/java/com/android/server/autofill/AutofillManagerServiceImpl.java, newServiceInfoLocked(ComponentName) built an AutofillServiceInfo directly for whatever ComponentName it was given when the autofill service was set or updated. It did not check that the component declares the AutofillService.SERVICE_INTERFACE intent filter, so a service component that was never declared as an autofill service could be accepted.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2024 · Findings