Hello,
I’m analyzing power consumption per app using the adb shell dumpsys batterystats command on Samsung devices. I understand that batterystats uses the power_profile.xml data to estimate consumption.
To verify how accurate this is, I decompiled framework-res.apk from multiple Samsung devices and examined the power_profile.xml inside. Surprisingly, I found that the values are almost identical across devices, despite their hardware differences (e.g., CPU, display, battery capacity).
So I have a few questions:
- Does batterystats rely solely on the power_profile.xml file for power estimation?
- Or is there additional per-device power modeling (possibly confidential or hidden from the XML) involved in the actual calculation?
- If the XML isn’t customized per device, how reliable are the batterystats reports on real power consumption?
I’d like to determine whether the power usage reports can be trusted for optimization purposes.
Thanks in advance.