Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40fc2860 authored by Pedro Loureiro's avatar Pedro Loureiro Committed by Android (Google) Code Review
Browse files

Merge "Always add legacy DeviceConfigService to ServiceManager"

parents 7e93cc22 6d5536a7
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -97,7 +97,6 @@ import android.provider.Settings.Config.SyncDisabledMode;
import android.provider.Settings.Global;
import android.provider.Settings.Secure;
import android.provider.Settings.SetAllResult;
import android.provider.UpdatableDeviceConfigServiceReadiness;
import android.provider.settings.validators.SystemSettingsValidators;
import android.provider.settings.validators.Validator;
import android.text.TextUtils;
@@ -419,14 +418,8 @@ public class SettingsProvider extends ContentProvider {
            startWatchingUserRestrictionChanges();
        });
        ServiceManager.addService("settings", new SettingsService(this));
        addDeviceConfigServiceIfNeeded();
        return true;
    }

    private void addDeviceConfigServiceIfNeeded() {
        if (!UpdatableDeviceConfigServiceReadiness.shouldStartUpdatableService()) {
        ServiceManager.addService("device_config", new DeviceConfigService(this));
        }
        return true;
    }

    @Override