ShizuStore

BatStats

mlm-games

6.3.1 · GitHub

Download APK
Power management Android 8.0+ 4 days ago GPL-3.0
117 ShizuStore
29k GitHub
216 Stars
3 MB Size

More about this app

Battery monitor with stats via Shizuku

English | 简体中文 | 日本語

BatStats

Banner

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.

Close

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 --checkin system dump through Shizuku.
  • Detailed battery breakdown: Shows apps, wakelocks and battery history details parsed from the dumpsys batterystats --checkin system dump through Shizuku.
  • Doze and power state: Shows device idle and power manager information using the dumpsys deviceidle and dumpsys power system dumps through Shizuku.
  • Reset battery stats: Lets the user clear collected battery statistics using the dumpsys batterystats --reset system command through Shizuku.

Android APIs or commands used

  • dumpsys batterystats --checkin
  • dumpsys deviceidle
  • dumpsys power
  • dumpsys 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.

Close

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

Full Changelog: https://github.com/mlm-games/BatStats/compare/6.2.4...6.2.6

Close

Permissions

12 permissions requested

  • android.permission.PACKAGE_USAGE_STATS
  • android.permission.BATTERY_STATS
  • android.permission.DUMP
  • android.permission.INTERACT_ACROSS_USERS
  • android.permission.FOREGROUND_SERVICE
  • android.permission.FOREGROUND_SERVICE_SPECIAL_USE
  • android.permission.POST_NOTIFICATIONS
  • android.permission.RECEIVE_BOOT_COMPLETED
  • android.permission.WAKE_LOCK
  • moe.shizuku.manager.permission.API_V23
  • android.permission.ACCESS_NETWORK_STATE
  • org.mlm.batstats.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
Close

Sources

5 sources

6.3.1 Universal GitHub · org.mlm.batstats
Selected Download
6.3.1 arm64-v8a GitHub · org.mlm.batstats
Download
6.3.1 armeabi-v7a GitHub · org.mlm.batstats
Download
6.3.1 x86_64 GitHub · org.mlm.batstats
Download
6.3.1 x86 GitHub · org.mlm.batstats
Download