Android security tags, read closely by Lightrion

CVE-2024-31323 AI-generated analysis

platform/packages/modules/HealthFitness, Health Connect controller UI (apk/)

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

Adds the HIDE_OVERLAY_WINDOWS permission to the Health Connect controller APK manifest and sets SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS in onCreate of seven Health Connect activities so non-system apps cannot show overlay windows on the Health Connect UI.

Root cause

The Health Connect controller activities (main, data management, migration, onboarding, permission request, settings, exercise route request) created their windows without SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS, and the APK did not request android.permission.HIDE_OVERLAY_WINDOWS. Because of this, windows drawn by non-system apps could stay visible over Health Connect screens, including the permission request and route request UI. The fix comment states this directly: "This flag ensures a non system app cannot show an overlay on Health Connect. b/313425281".

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2024 · Findings