usage_stats

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Overview

Query app usage statistics via the UsageStatsManager.

Uses IUsageStatsManager via the "usagestats" service to check app standby status, standby buckets, and app inactivity state.

Note: Most usage stats queries require PACKAGE_USAGE_STATS permission. App standby enabled/bucket queries may work without it.

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/usage_stats ./examples/usage_stats/
adb push build/usage_stats /data/local/tmp/ && adb shell /data/local/tmp/usage_stats

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL