diff options
| -rw-r--r-- | services/java/com/android/server/SystemServer.java | 4 | ||||
| -rw-r--r-- | services/java/com/android/server/flags.aconfig | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 09c54cb40373..f08d9cf51433 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -2454,8 +2454,8 @@ public final class SystemServer implements Dumpable { reportWtf("starting RuntimeService", e); } t.traceEnd(); - - if (!isWatch && !disableNetworkTime) { + if (!disableNetworkTime && (!isWatch || (isWatch + && android.server.Flags.allowNetworkTimeUpdateService()))) { t.traceBegin("StartNetworkTimeUpdateService"); try { networkTimeUpdater = new NetworkTimeUpdateService(context); diff --git a/services/java/com/android/server/flags.aconfig b/services/java/com/android/server/flags.aconfig index 29f387117073..ec74ef191b81 100644 --- a/services/java/com/android/server/flags.aconfig +++ b/services/java/com/android/server/flags.aconfig @@ -28,4 +28,11 @@ flag { namespace: "wear_frameworks" description: "Allow removing VpnManagerService" bug: "340928692" +} + +flag { + name: "allow_network_time_update_service" + namespace: "wear_systems" + description: "Allow NetworkTimeUpdateService on Wear" + bug: "327508176" }
\ No newline at end of file |