Android security tags, read closely by Lightrion

CVE-2024-31312 AI-generated analysis

platform/frameworks/base, SystemUI media controls (packages/SystemUI/src/com/android/systemui/media/controls/ui)

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

Moves enforcement of the Settings.Secure.MEDIA_CONTROLS_LOCK_SCREEN user setting from the keyguard-only KeyguardMediaController into MediaHierarchyManager/MediaHost so that, when the setting is disabled, every media host hides the media carousel while the device is in the KEYGUARD or SHADE_LOCKED state.

Root cause

Before the fix, the MEDIA_CONTROLS_LOCK_SCREEN setting was read and observed inside KeyguardMediaController. Its allowMediaPlayerOnLockScreen flag was consulted only in KeyguardMediaController's visibility computation for the media container in the keyguard layout. MediaHierarchyManager kept its own allowMediaPlayerOnLockScreen field, hard-initialised to true and updated by a content observer, but MediaHost.updateViewVisibility did not consult it: a host's visibility depended only on whether active or any media (or a recommendation) existed. As a result, when the user disabled media controls on the lock screen, the carousel was hidden only in the keyguard layout and not everywhere while the device was on the lockscreen (per the commit message).

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2024 · Findings