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
Click to show internal directories.
Click to hide internal directories.