diff options
author | 2020-11-24 15:39:00 +0000 | |
---|---|---|
committer | 2020-11-24 15:39:00 +0000 | |
commit | be41f05db49ef724da8fbc6eefeaad310e1be3fc (patch) | |
tree | a28ca85e8299e9f0a36ef81ffe911bd69ca47f17 | |
parent | ddfc4a5e31fdbd826ce6800e5e0daeb775c4d13e (diff) | |
parent | 0131f69b95c28e2bc3cd88eb7f9a785b37ddbaec (diff) |
Merge "OfflineLocationTimeZoneProvider config in system"
-rw-r--r-- | core/res/AndroidManifest.xml | 15 | ||||
-rw-r--r-- | core/res/res/values/config.xml | 9 | ||||
-rw-r--r-- | core/res/res/values/strings.xml | 3 |
3 files changed, 25 insertions, 2 deletions
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index c9e8f719ebc5..11a821468aa1 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -5223,6 +5223,9 @@ android:label="@string/sensor_notification_service"/> <!-- Attribution for Twilight service. --> <attribution android:tag="TwilightService" android:label="@string/twilight_service"/> + <!-- Attribution for the Offline LocationTimeZoneProvider, used to detect time zone using + on-device data --> + <attribution android:tag="OfflineLocationTimeZoneProvider" android:label="@string/offline_location_time_zone_detection_service"/> <application android:process="system" android:persistent="true" @@ -5689,6 +5692,18 @@ </intent-filter> </service> + <!-- AOSP configures a default secondary LocationTimeZoneProvider that uses an on-device + data set from the com.android.geotz APEX. --> + <uses-library android:name="com.android.location.provider" /> + <service android:name="com.android.timezone.geotz.provider.OfflineLocationTimeZoneService" + android:exported="false"> + <intent-filter> + <action android:name="com.android.location.timezone.service.v1.SecondaryLocationTimeZoneProvider" /> + </intent-filter> + <meta-data android:name="serviceVersion" android:value="1" /> + <meta-data android:name="serviceIsMultiuser" android:value="true" /> + </service> + <provider android:name="com.android.server.textclassifier.IconsContentProvider" android:authorities="com.android.textclassifier.icons" diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index eda1c7a7950f..daf884a58ed1 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1622,8 +1622,13 @@ wants to disable the overlay mechanism can set it to false. --> <bool name="config_enableSecondaryLocationTimeZoneOverlay" translatable="false">false</bool> <!-- Package name providing the secondary location time zone provider. Used only when - config_enableSecondaryLocationTimeZoneOverlay is false. --> - <string name="config_secondaryLocationTimeZoneProviderPackageName" translatable="false">@null</string> + config_enableSecondaryLocationTimeZoneOverlay is false. + + By default, set to "android" to pick up the default LocationTimeZoneProvider configured in + the system server's AndroidManifest.xml. See the + com.android.location.timezone.service.v1.SecondaryLocationTimeZoneProvider intent-filter + definition there for more information. --> + <string name="config_secondaryLocationTimeZoneProviderPackageName" translatable="false">android</string> <!-- Whether to enable network location overlay which allows network location provider to be replaced by an app at run-time. When disabled, only the diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index be6b6b15fe4d..8e3a0cbdd10c 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -433,6 +433,9 @@ <string name="sensor_notification_service">Sensor Notification Service</string> <!-- Attribution for Twilight service. [CHAR LIMIT=NONE]--> <string name="twilight_service">Twilight Service</string> + <!-- Attribution for Offline LocationTimeZoneDetector service, i.e. one capable of performing + time zone lookup using geo-spacial information held on the device. [CHAR LIMIT=NONE]--> + <string name="offline_location_time_zone_detection_service">Offline Time Zone Detection Service</string> <!-- Factory reset warning dialog strings--> <skip /> <!-- Shows up in the dialog's title to warn about an impeding factory reset. [CHAR LIMIT=NONE] --> |