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.
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; doneThen force-stop BatStats (or reboot) and re-open. Check Settings → Advanced Stats for grant status (can copy commands there too).
Issues and PRs are welcome. (Do try to make sure that the issue is not OS specific before submitting)
See LICENSE file for details.