Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bbfbf7f authored by Yueyao Zhu's avatar Yueyao Zhu
Browse files

healthd: add battery health status values from JEITA spec

Some vendors implement JEITA battery health spec.

Bug: 35780570
Test: build and boot
Change-Id: I532cd0fbdbcae0a32879de7d7930f3ccb8605ffd
parent 66e1a1e3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -116,6 +116,10 @@ int BatteryMonitor::getBatteryHealth(const char* status) {
        { "Over voltage", BATTERY_HEALTH_OVER_VOLTAGE },
        { "Unspecified failure", BATTERY_HEALTH_UNSPECIFIED_FAILURE },
        { "Cold", BATTERY_HEALTH_COLD },
        // battery health values from JEITA spec
        { "Warm", BATTERY_HEALTH_GOOD },
        { "Cool", BATTERY_HEALTH_GOOD },
        { "Hot", BATTERY_HEALTH_OVERHEAT },
        { NULL, 0 },
    };