With the 5.40 update I made some changes to the battery capacity estimate. I was finally able to obtain a recent Xiaomi phone with a dual cell battery to investigate wonky stats reported by users. The battery estimate was way off on these devices, so I made the threshold for showing the estimated capacity higher.
For many Xiaomi and POCO users, the estimated battery capacity is no longer shown, which has led to some complaints. However, I don’t want DevCheck to show incorrect information.
How to restore estimated capacity
If you want to see the true estimated capacity, you’ll have to grant some permissions using adb or Shizuku (note: full Shizuku support is coming soon to DevCheck, which will make this easier). Many devices now have restrictions on changing permissions with adb. If you get permission denied, you’ll have to go into developer options and allow granting permissions with adb (called USB debugging (Security settings) on HyperOS). Then reboot for the change to take effect.
Here are the permissions required:
adb shell pm grant flar2.devcheck android.permission.DUMP
adb shell pm grant flar2.devcheck android.permission.BATTERY_STATS
adb shell pm grant flar2.devcheck android.permission.PACKAGE_USAGE_STATS
Once these permissions are granted, the estimated capacity will be shown.
Root users will automatically see the estimated capacity, as long as root access has been granted.