Android security tags, read closely by Lightrion

CVE-2025-0095 AI-generated analysis

platform/packages/apps/Settings, SPA App info page (AppTimeSpentPreference)

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.

Pins the Settings.ACTION_APP_USAGE_SETTINGS intent launched from the App info "time spent" preference to the package named by config_systemWellbeing and resolves it with MATCH_SYSTEM_ONLY, instead of launching an implicit intent after only checking that some system app could handle it.

Root cause

In src/com/android/settings/spa/app/appinfo/AppTimeSpentPreference.kt, AppTimeSpentPresenter built Intent(Settings.ACTION_APP_USAGE_SETTINGS) with only EXTRA_PACKAGE_NAME and no target package. isAvailable() called queryIntentActivitiesAsUser(intent, ResolveInfoFlags.of(0), app.userId) and showed the preference if any resolver's applicationInfo.isSystemApp was true. startActivity() then called context.startActivityAsUser(intent, app.userHandle) with the same implicit intent. So the availability check did not limit which activity actually received the intent at launch time.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to February 2025 · Findings