I am developing a informational android app where I want to read the charge rate in milli-amps when the device is charging. I have seen other apps that can do this such as Ampere.
I believe the info should be in directory /sys/class/power_supply/battery
which of these files are relevant in accomplishing this, and how could I calculate charge rate in mA from this?