diff --git a/storaged/storaged.cpp b/storaged/storaged.cpp index 72bb6e23d..1770922ef 100644 --- a/storaged/storaged.cpp +++ b/storaged/storaged.cpp @@ -170,6 +170,9 @@ void storaged_t::batteryPropertiesChanged(struct BatteryProperties props) { } void storaged_t::init_battery_service() { + if (!mConfig.proc_uid_io_available) + return; + sp battery_properties = get_battery_properties_service(); if (battery_properties == NULL) { LOG_TO(SYSTEM, WARNING) << "failed to find batteryproperties service";