ShizuStore

Batt

narektor

1.3 · GitLab

Download APK
Power management Android 14+ 1 year ago GPL-3.0
65 ShizuStore
81 Stars
10 MB Size

More about this app

A simple app that shows battery status information on Android 14 and later.

Batt Icon

Get it on IzzyOnDroid Available on GitLab

A simple app that shows battery status information on Android devices. Requires Android 14.

Featured by Mishaal Rahman, Android Central, GSMArena and Android Authority.

Screenshot of Batt showing that the battery is healthy, was manufactured on the 8th of August, 2021, and has 734 charge cycles.

What Batt displays

By default, it shows:

  • the number of charge cycles
  • the charge status

However, with some setup, it can also show:

  • the battery health
  • the battery manufacturing date
  • the battery first use date

For this to work, either use Shizuku (instructions can be found in the app) or the following ADB command:

adb shell pm grant com.porg.batt android.permission.BATTERY_STATS

Technical

The app is built using the traditional View-based system and Material 3 components. To get the BATTERY_STATS permission it uses the Shizuku API.

Make sure to use Android Studio Giraffe or later.

License

Batt is licensed under the GNU GPL, version 3.

Acknowledgements

Close

How Shizuku is used

Can unlock extra battery health and date info via `IPackageManager.grantRuntimePermission` 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

Batt uses Shizuku for a single privileged operation that unlocks extra battery information.

  • Unlock extra battery details: after tapping the permission button, the app gives itself system battery stats access through Shizuku, which reveals battery health, manufacturing date, first use date and charging policy alongside the normally visible cycle count.

Android APIs or commands used

  • IPackageManager.grantRuntimePermission

Notable details

The basic cycle count display works without Shizuku. Shizuku is only needed to reveal the extra health, date and charging policy cards.

Close

Changelog

What's new for version 1.3

Note

If you downloaded Batt from GitLab you must delete older versions of Batt to install 1.3. Users downloading from IzzyOnDroid are unaffected.

Compatibility warning

If your device is incompatible (see #8), you will now see a warning:

Warning dialog saying that Batt might not work on this device.

This warning will be shown on devices that are known to not be compatible, namely:

  • Pixel 4a (5G), 5 and 5a,
  • the Android emulator,
  • Xiaomi devices,
  • Samsung devices running One UI 6.x.

The warning can be dismissed in case Batt starts working on these devices after software updates.

Minor changes

Also, starting from this release, Batt is moving towards reproducible builds.

Close

Permissions

3 permissions requested

  • android.permission.BATTERY_STATS
  • com.porg.batt.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
  • moe.shizuku.manager.permission.API_V23
Close