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

Commit 1afb2417 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Alter condition for starting RulesManagerService" am: a3386791 am:...

Merge "Alter condition for starting RulesManagerService" am: a3386791 am: 3e928af7 am: 4c1ade06
am: a63d879f

Change-Id: I84949a5f869d25fd61a5a79b4f0a772582829da5
parents 29b8db43 a63d879f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1185,8 +1185,13 @@ public final class SystemServer {
                traceEnd();
            }

            if (!disableNonCoreServices && context.getResources().getBoolean(
                        R.bool.config_enableUpdateableTimeZoneRules)) {
            // timezone.RulesManagerService will prevent a device starting up if the chain of trust
            // required for safe time zone updates might be broken. RuleManagerService cannot do
            // this check when mOnlyCore == true, so we don't enable the service in this case.
            final boolean startRulesManagerService =
                    !mOnlyCore && context.getResources().getBoolean(
                            R.bool.config_enableUpdateableTimeZoneRules);
            if (startRulesManagerService) {
                traceBeginAndSlog("StartTimeZoneRulesManagerService");
                mSystemServiceManager.startService(TIME_ZONE_RULES_MANAGER_SERVICE_CLASS);
                Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);