I know about Android ICS that it uses a special service called NetworkTimeUpdateService . This service also implements NTP time synchronization through the NtpTrustedTime singleton.
In NtpTrustedTime NTP server is requested by default from the Android system line source:
final Resources res = context.getResources(); final String defaultServer = res.getString( com.android.internal.R.string.config_ntpServer);
If the automatic time synchronization option is checked in the system settings and the NITZ time service is not available, then the time will be synchronized with the NTP server with com.android.internal.R.string.config_ntpServer .
To get the value of com.android.internal.R.string.config_ntpServer you can use the following method:
final Resources res = this.getResources(); final int id = Resources.getSystem().getIdentifier( "config_ntpServer", "string","android"); final String defaultServer = res.getString(id);
Dyonisos Jan 25 '13 at 13:55 2013-01-25 13:55
source share