diff options
author | Chenjie Luo <cjluo@google.com> | 2014-10-16 13:31:39 -0700 |
---|---|---|
committer | Chenjie Luo <cjluo@google.com> | 2014-10-16 13:33:25 -0700 |
commit | 2cab8825b3214b67b9462eaf5a1d777e9888d488 (patch) | |
tree | 7d5d85aeca9850a2ed88aea7140d1317eeb72eaf /services | |
parent | fe09db1e0d5af46e7b643c37ba52f62500b7f043 (diff) | |
download | frameworks_base-2cab8825b3214b67b9462eaf5a1d777e9888d488.zip frameworks_base-2cab8825b3214b67b9462eaf5a1d777e9888d488.tar.gz frameworks_base-2cab8825b3214b67b9462eaf5a1d777e9888d488.tar.bz2 |
Add system property config.disable_networktime to configure NetworkTimeUpdateService
Bug: 17934875
Change-Id: Ie5acf7266a5766f407db8f23d2c3d26920fa4020
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 92ad1ad..6009ffd 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -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); |