android: healthd: Support to disable battery log v2

Signed-off-by: hmz007 <hmz007@gmail.com>
master
hmz007 4 years ago
parent 5501f733dc
commit eb928616b4

@ -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>
@ -238,7 +239,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;

Loading…
Cancel
Save