summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'storaged/storaged.cpp')
-rw-r--r--storaged/storaged.cpp3
1 files changed, 3 insertions, 0 deletions
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) {
170} 170}
171 171
172void storaged_t::init_battery_service() { 172void storaged_t::init_battery_service() {
173 if (!mConfig.proc_uid_io_available)
174 return;
175
173 sp<IBatteryPropertiesRegistrar> battery_properties = get_battery_properties_service(); 176 sp<IBatteryPropertiesRegistrar> battery_properties = get_battery_properties_service();
174 if (battery_properties == NULL) { 177 if (battery_properties == NULL) {
175 LOG_TO(SYSTEM, WARNING) << "failed to find batteryproperties service"; 178 LOG_TO(SYSTEM, WARNING) << "failed to find batteryproperties service";