This is because the power management API calls in Android are private and not subject to the developer. These APIs are only available through Reflection.
The main packages that are used internally by Android to obtain statistics from power management are stored in com.android.internal.os.* (For example, com.android.internal.os.BatteryStatsImpl ).
StackOverflow user Chris Thompson shared a repository containing tools and an application to handle what you want. You can find it here .
You can inspire yourself to what he has done and build something on top of it.
In addition, you can get preliminary battery statistics and processor load used by each application using adb shell dumpsys batteryinfo .
A simple strace dumpsys batteryinfo when you are in the adb shell can give you a hint on how this data is dumpsys extracted.
source share