diff options
author | Chenjie Luo <cjluo@google.com> | 2014-10-16 10:55:33 -0700 |
---|---|---|
committer | Chenjie Luo <cjluo@google.com> | 2014-10-16 11:36:31 -0700 |
commit | c597c55ffeb9debcf2dba8a77a80caa9016ea4d1 (patch) | |
tree | d34eec7ee34dd27e8c045fff349e8717b5fa6250 /services/java/com/android/server/SystemServer.java | |
parent | 349e3640b784c277f983ec9c849db3131d135ccf (diff) | |
download | frameworks_base-c597c55ffeb9debcf2dba8a77a80caa9016ea4d1.zip frameworks_base-c597c55ffeb9debcf2dba8a77a80caa9016ea4d1.tar.gz frameworks_base-c597c55ffeb9debcf2dba8a77a80caa9016ea4d1.tar.bz2 |
Add system property config.disable_timeupdate to configure NetworkTimeUpdateService
Bug: 17934875
Change-Id: Ic1acff13190f38cedb1ecf22783d4dfd3373511d
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 92ad1ad..d8cc976 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -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); |