How long Android UsageEvents are retained?
08:34 03 Nov 2025

UsageStatsManager.queryEvents(start, end) returns raw UsageEvents (foreground / background transitions etc). I cannot find any official Android doc that says how long these events are actually stored on the device.

Questions:

  1. is there a guaranteed retention (hours / days)?
  2. is this buffer OEM-dependent?
  3. is this defined anywhere in documentation?

The only docs I found: https://developer.android.com/reference/android/app/usage/UsageEvents Is there any official source that defines the retention policy or when events are deleted?

android usagestatsmanager usageevents