Application Usage History
Purpose
Provides a way to retrieve application usage information for a specified date range, in addition to the ongoing foreground-app sampling SA6 already performs.
Location
data/collectors/CollectApplications.kt, utils/InstalledApplications.kt, workers/InstalledApplicationWorker.kt, event appusage_history (EventNames.HISTORICAL_APPLICATION_USAGE).
**screenshots
Behavior
SA6 continuously samples the foreground application at an interval controlled by samplingTimer and reports usage via the appusage event.
Configuration
samplingTimer
Integer(seconds)
1800
Interval for foreground-app sampling
Permissions
Requires PACKAGE_USAGE_STATS (a special "Usage Access" permission, granted via system settings, not a normal runtime prompt). If not granted, usage-history queries return no/incomplete data .
Last updated