Android security tags, read closely by Lightrion

CVE-2024-31314 AI-generated analysis

platform/frameworks/base, system_server ShortcutService (com.android.server.pm.ShortcutService / ShortcutPackage)

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

Adds a per-package, time-windowed throttle in ShortcutPackage so that ShortcutService forwards at most REPORT_USAGE_BUFFER_SIZE (3) shortcut-usage reports per mSaveDelayMillis window to UsageStatsManagerInternal.reportShortcutUsage, instead of forwarding every reportShortcutUsed/pushDynamicShortcut call unconditionally.

Root cause

ShortcutService.reportShortcutUsed (app-facing via ShortcutManager.reportShortcutUsed) and the pushDynamicShortcut path both called the private helper reportShortcutUsedInternal. That helper cleared the calling identity and invoked mUsageStatsManagerInternal.reportShortcutUsage on every call. On the reportShortcutUsed path, the only gate was that the shortcut id must exist in the caller's package. Nothing limited how often a package could make system_server do this usage-stats work.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to June 2024 · Findings