Android security tags, read closely by Lightrion

CVE-2024-34739 AI-generated analysis

platform/frameworks/base, system_server USB service (services/usb, UsbProfileGroupSettingsManager)

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.

Adds a USER_SETUP_COMPLETE check in UsbProfileGroupSettingsManager so that the USB device-attached path returns before resolveActivity while the current user's setup is still in progress.

Root cause

In services/usb/java/com/android/server/usb/UsbProfileGroupSettingsManager.java, the device-attached handling path (the method just before deviceAttachedForFixedHandler, ending in resolveActivity(intent, matches, defaultActivity, device, null)) went on to start the resolved handler activity after its earlier early-return checks without consulting Settings.Secure.USER_SETUP_COMPLETE. As a result, an activity could be launched by a USB attach while device setup was still in progress (commit title: 'Restrict USB poups while setup is in progress'). The bulletin rates this High / EoP.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to May 2025 · Findings