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:
- is there a guaranteed retention (hours / days)?
- is this buffer OEM-dependent?
- 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?