From fd127c62e7792ed473598b0d702b142fffbd9b33 Mon Sep 17 00:00:00 2001 From: Kanyinsola Date: Fri, 4 Mar 2022 13:34:05 +0000 Subject: [PATCH] Reduce NTP polling interval Change NTP polling interval from 24 hours to 18 hours. The max allowed age of a time suggestion for it to be considered by the time_detector is set to 24 hours, so if we only refresh NTP after 24 hours, it means devices may commonly switch to newer NITZ signals when the NTP signal "expires". Then it will flip back to NTP when the NTP alarm triggers. Whether it switches to an NITZ signal or not also depends on things like whether NITZ signals are received, or other things happen that force the time_detector to reassess suggestions, after the NTP suggestion has expired. If we can keep devices consistently using NTP, that's going to lead to better results, especially given NITZ can be quite inaccurate. 18 hours has been chosen as an arbitrary compromise: it gives the device 25% of the expiry interval to get a fresh signal. It should mean that NITZ isn't used in the common case. Bug: 217357882 Test: None Change-Id: I86281888ce009a19e50240d7f07aac1f5ce72222 --- core/res/res/values/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index ba647d7daa288..f678bef93ddce 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2193,7 +2193,7 @@ time.android.com - 86400000 + 64800000 60000