From 1c5c7cac305e972ae8e4e2e6e111bc938813d360 Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Wed, 21 Dec 2022 15:37:46 +0000 Subject: [PATCH] Switch to new NetworkTimeHelper impl Switch default from a NetworkTimeHelper impl that explicitly syncs NTP to get a network time to one that retrieves the latest network time from the time detector. Behavior can be observed using: adb shell dumpsys location -a - look for the NetworkTimeHelper info Bug: 222295093 Test: build / boot / inspect Change-Id: I40bb317971ca42e2739edd5c7351b32f0f329440 --- .../com/android/server/location/gnss/NetworkTimeHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/location/gnss/NetworkTimeHelper.java b/services/core/java/com/android/server/location/gnss/NetworkTimeHelper.java index f5114b7aab913..01c108bd50673 100644 --- a/services/core/java/com/android/server/location/gnss/NetworkTimeHelper.java +++ b/services/core/java/com/android/server/location/gnss/NetworkTimeHelper.java @@ -37,7 +37,7 @@ abstract class NetworkTimeHelper { * a platform bug. This switch will be removed in a future release. If there are problems with * the new impl we'd like to hear about them. */ - static final boolean USE_TIME_DETECTOR_IMPL = false; + static final boolean USE_TIME_DETECTOR_IMPL = true; /** * The callback interface used by {@link NetworkTimeHelper} to report the time to {@link