|
|
|
@ -31,6 +31,7 @@
|
|
|
|
|
#include <android-base/logging.h>
|
|
|
|
|
#include <batteryservice/BatteryService.h>
|
|
|
|
|
#include <cutils/klog.h>
|
|
|
|
|
#include <cutils/properties.h>
|
|
|
|
|
#include <cutils/uevent.h>
|
|
|
|
|
#include <healthd/healthd.h>
|
|
|
|
|
#include <utils/Errors.h>
|
|
|
|
@ -240,7 +241,11 @@ int HealthLoop::InitInternal() {
|
|
|
|
|
// AdjustUeventWakealarmPeriods().
|
|
|
|
|
Init(&healthd_config_);
|
|
|
|
|
|
|
|
|
|
WakeAlarmInit();
|
|
|
|
|
if (property_get_bool("ro.boot.log_battery", true))
|
|
|
|
|
WakeAlarmInit();
|
|
|
|
|
else
|
|
|
|
|
KLOG_WARNING(LOG_TAG, "battery monitor disabled\n");
|
|
|
|
|
|
|
|
|
|
UeventInit();
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|