From e5bd5f914f1bfdf94379ea0c2d72d58c06cfd25e Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Wed, 8 Apr 2020 16:14:45 -0700 Subject: [PATCH] BatteryMonitor: report current_now in uA /sys/class/power_supply/*/current_now should return uA and the HAL expects uA too. Test: VtsHalHealthV2_0TargetTest Bug: 136717180 Change-Id: I675be1ae645413b9494af4a5d49955aad5bd4f2e --- healthd/BatteryMonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 8b67e2268..599f5005f 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -258,7 +258,7 @@ void BatteryMonitor::updateValues(void) { props.batteryVoltage = getIntField(mHealthdConfig->batteryVoltagePath) / 1000; if (!mHealthdConfig->batteryCurrentNowPath.isEmpty()) - props.batteryCurrent = getIntField(mHealthdConfig->batteryCurrentNowPath) / 1000; + props.batteryCurrent = getIntField(mHealthdConfig->batteryCurrentNowPath); if (!mHealthdConfig->batteryFullChargePath.isEmpty()) props.batteryFullCharge = getIntField(mHealthdConfig->batteryFullChargePath);