Monday, September 26, 2016

Battery level vs raw battery level

Hi dev community,

I was just digging a bit into androids handling of batteries (as it is acting really weird, currently. It only changes the battery level on reboots, I think) and saw, that htc differentiates between a battery level and a raw battery level.

I could find this in the following places:
  • Code:

    grep Percentage /sys/class/power/power_supply/battery/batt_attr_text
  • Code:

    grep level_raw arch/arm/mach-msm/htc_battery_8960.c
    in xboxfanj's kernel (BTW yes, I know, it is a bit awkward that this is only in the htc_battery_8960.c and not in the htc_battery.c file. But the raw percentage gets definitely printed out on my device)

The raw percentage seems to be a bit lower than the percentage. What are the differences between them and is there some UI utility to show these battery infos?


from xda-developers http://ift.tt/2cG83zz
via IFTTT

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home