google_battery: fix boot loop with low power charger connected

During boot process with the low power charger (e.g. SDP, BPP, DCP ...),
fg_status may return to discharging due to high system power consumption.

Don't return battery_level critical when the charger is connected and
battery voltgae is over the threshold.

Bug: 261309568
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I56fd035d13531fcaff3b97c90c823fd9b0feb494
(cherry picked from commit 0ac4f3e8097397cb4e7580026077950a1c913b4c)
1 file changed