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

Commit f5d109ed authored by Jack Wu's avatar Jack Wu Committed by Automerger Merge Worker
Browse files

Merge changes from topic "batteryStateOfHealth" am: a358f7d2 am: be2e9bbb

parents 93a2e5cb be2e9bbb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -148,6 +148,11 @@ ndk::ScopedAStatus Health::getBatteryHealthData(BatteryHealthData* out) {
        !res.isOk()) {
        LOG(WARNING) << "Cannot get First_usage_date: " << res.getDescription();
    }
    if (auto res = GetProperty<int64_t>(&battery_monitor_, ::android::BATTERY_PROP_STATE_OF_HEALTH,
                                        0, &out->batteryStateOfHealth);
        !res.isOk()) {
        LOG(WARNING) << "Cannot get Battery_state_of_health: " << res.getDescription();
    }
    return ndk::ScopedAStatus::ok();
}