Android security tags, read closely by Lightrion

CVE-2024-0021 AI-generated analysis

platform/packages/apps/Settings, notification access confirmation (NotificationAccessConfirmationActivity)

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

Adds an early exit to Settings' NotificationAccessConfirmationActivity.onCreate so that, when the activity is running in a managed (work) profile, it shows a toast and finishes instead of presenting the dialog that can enable a notification listener service.

Root cause

NotificationAccessConfirmationActivity is the Settings confirmation activity for granting notification listener access to a component passed via EXTRA_COMPONENT_NAME/EXTRA_USER_ID. Before the fix it did not check whether it was running inside a managed (work) profile. The fix's log message says apps in the work profile do not support notification listeners, and the commit title says a work profile app must not be able to enable notification listener services. The confirmation flow could still be reached from a work profile.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to January 2024 · Findings