Merge "Add system property config.disable_networktime to configure NetworkTimeUpdateService" into lmp-sprout-dev

This commit is contained in:
Chenjie Luo
2014-10-16 20:57:55 +00:00
committed by Android (Google) Code Review

View File

@@ -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);