BatStats
6.3.1 · GitHub
More about this app
Battery monitor with stats via Shizuku
BatStats
Detailed Stats will not show some of the stats (dependent on device). The app doesn't handle most edge cases, but does almost always work for important ones, like power consumption stats ( in mah ) for all apps.
Advanced Stats
Root and shizuku do not require any commands (self-explantory). ADB requires privileged perms (adb method to grant):
for p in DUMP BATTERY_STATS PACKAGE_USAGE_STATS INTERACT_ACROSS_USERS; do adb shell pm grant org.mlm.batstats android.permission.$p; done
Then force-stop BatStats (or reboot) and re-open. Check Settings -> Advanced Stats for grant status (can copy commands there too).
Contributing
Issues and PRs are welcome. (Do try to make sure that the issue is not OS specific before submitting)
License
See LICENSE file for details.
How Shizuku is used
Can show per-app battery use, wakelocks, Doze and power states and reset stats via `dumpsys` through Shizuku.
This is an AI-assisted analysis of Shizuku-related usages in the app's public source code. It is best effort, so it may not catch every single usage.
How this app uses Shizuku
BatStats uses Shizuku to run privileged system dumps that power its advanced battery statistics.
- Per-app energy use: Tracks how much battery each app has used over time by reading the
dumpsys batterystats --checkinsystem dump through Shizuku. - Detailed battery breakdown: Shows apps, wakelocks and battery history details parsed from the
dumpsys batterystats --checkinsystem dump through Shizuku. - Doze and power state: Shows device idle and power manager information using the
dumpsys deviceidleanddumpsys powersystem dumps through Shizuku. - Reset battery stats: Lets the user clear collected battery statistics using the
dumpsys batterystats --resetsystem command through Shizuku.
Android APIs or commands used
dumpsys batterystats --checkindumpsys deviceidledumpsys powerdumpsys batterystats --reset
Notable details
Works without Shizuku when DUMP and BATTERY_STATS have been granted over ADB; the app uses the same dumps through that path.
Changelog
What's new for version 6.3.1
- Cleanup old data and show Shared UIDs as System
- chore(deps): bump the gradle-dependencies group with 5 updates
- Map process by UIDs now, for the stats
What's Changed
- chore(deps): bump the gradle-dependencies group with 5 updates by @dependabot[bot] in https://github.com/mlm-games/BatStats/pull/37
Full Changelog: https://github.com/mlm-games/BatStats/compare/6.2.4...6.2.6
Permissions
12 permissions requested
Sources
5 sources
Sources
5 sources