1
0
Fork 0

android: healthd: Support to disable battery log v2

Signed-off-by: hmz007 <hmz007@gmail.com>
master
hmz007 3 years ago
parent 8e0cac6ac7
commit 43b37c51fa

@ -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;

Loading…
Cancel
Save