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

Commit c597c55f authored by Chenjie Luo's avatar Chenjie Luo
Browse files

Add system property config.disable_timeupdate to configure NetworkTimeUpdateService

Bug: 17934875
Change-Id: Ic1acff13190f38cedb1ecf22783d4dfd3373511d
parent 349e3640
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -416,6 +416,8 @@ public final class SystemServer {
        boolean disableSystemUI = SystemProperties.getBoolean("config.disable_systemui", false);
        boolean disableNonCoreServices = SystemProperties.getBoolean("config.disable_noncore", false);
        boolean disableNetwork = SystemProperties.getBoolean("config.disable_network", false);
        boolean disableNetworkTimeProtocol = SystemProperties.getBoolean("config.disable_networktimeprotocol",
                false);
        boolean isEmulator = SystemProperties.get("ro.kernel.qemu").equals("1");

        try {
@@ -863,7 +865,7 @@ public final class SystemServer {
                reportWtf("starting SamplingProfiler Service", e);
            }

            if (!disableNetwork) {
            if (!disableNetwork && !disableNetworkTimeProtocol) {
                try {
                    Slog.i(TAG, "NetworkTimeUpdateService");
                    networkTimeUpdater = new NetworkTimeUpdateService(context);