commit | 282b3e3c9b5d54029c3615d38f32e264c912aed7 | [log] [tgz] |
---|---|---|
author | Jack Wu <wjack@google.com> | Sat Jun 13 21:47:40 2020 +0800 |
committer | Jack Wu <wjack@google.com> | Tue Jun 16 07:09:40 2020 +0000 |
tree | cd99c7c13817a613bc24ce3baba99e4542a349f8 | |
parent | a9afa69d07e87c61b1ed29b11bf5c7c5b49e54ef [diff] |
healthd: fix the over estimated battery capacity Overwrite the gauge capacity with the backup one if the gauge capacity reset to nominal. Test: fake /sys/class/power_supply/bms/charge_full to nominal and check if it can be restored from /persist/battery/qcom_charge_full Bug: 158838006 Signed-off-by: Jack Wu <wjack@google.com> Change-Id: I4b85dd5e0c3ca929044aa8776294b841db7214e1