From fcd736bf35fd93b563e9bbf594f2aa7b62028cc9 Mon Sep 17 00:00:00 2001 From: lin <lin@kickpi.com> Date: Thu, 14 Aug 2025 02:17:25 +0000 Subject: [PATCH] feat(eth0): add MAE0621A phy support --- android/system/core/healthd/BatteryMonitor.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/android/system/core/healthd/BatteryMonitor.cpp b/android/system/core/healthd/BatteryMonitor.cpp index 06c8176..4f85b5e 100644 --- a/android/system/core/healthd/BatteryMonitor.cpp +++ b/android/system/core/healthd/BatteryMonitor.cpp @@ -210,9 +210,14 @@ else props.batteryPresent = mBatteryDevicePresent; + if (!props.batteryPresent) { + props.batteryLevel = 100;} + else { props.batteryLevel = mBatteryFixedCapacity ? mBatteryFixedCapacity : getIntField(mHealthdConfig->batteryCapacityPath); + } + props.batteryVoltage = getIntField(mHealthdConfig->batteryVoltagePath) / 1000; if (!mHealthdConfig->batteryCurrentNowPath.isEmpty()) -- Gitblit v1.6.2