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

Commit 2cab8825 authored by Chenjie Luo's avatar Chenjie Luo
Browse files

Add system property config.disable_networktime to configure NetworkTimeUpdateService

Bug: 17934875
Change-Id: Ie5acf7266a5766f407db8f23d2c3d26920fa4020
parent fe09db1e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -416,6 +416,7 @@ 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 disableNetworkTime = SystemProperties.getBoolean("config.disable_networktime", false);
        boolean isEmulator = SystemProperties.get("ro.kernel.qemu").equals("1");

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

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