Nexus 5 claims to run Maxim MAX17048 fuel gauge. The same can be
verified from
Android Sources website, and from the kernel config on any
device.
As per documentation, this fuel gauge only supports battery SOC
measurements. The same information can be found in the
MAX17048 datasheet.
However, I am able to read the sysfs file
/sys/class/power_supply/battery/current_now
and get the current measurement at the battery in uA unit at high precision.
- How did this happen?
- What has the kernel got to provide this functionality? Is there a kernel module that performs additional calculations above the measurements provided?
- Can I enable this functionality on other devices such as the Galaxy S5 having the same power gauge?