Skip to content

[Android] Enable access to up-to-date tzdata on Android 10+#20349

Merged
akoeplinger merged 1 commit intomono:masterfrom
grendello:android10-tzdata
Sep 4, 2020
Merged

[Android] Enable access to up-to-date tzdata on Android 10+#20349
akoeplinger merged 1 commit intomono:masterfrom
grendello:android10-tzdata

Conversation

@grendello
Copy link
Member

@grendello grendello commented Sep 4, 2020

NOTE: please backport the fix to the 2020-02 branch, thanks!

Context: https://source.android.com/devices/architecture/modular-system/runtime#time-zone-data-interactions
Context: https://source.android.com/devices/tech/config/timezone-rules#timezone-apex
Context: https://android.googlesource.com/platform/frameworks/base/+/a1ae02519d6fb5de636fc8728dec7cb9b14de356
Maybe helps with: dotnet/android#5080

Add support to read ICANN timezone data from two new locations found on
devices running Android 10+. The data in the previously searched
location still exists but it's most likely out of date.

On Android 10+ tzdata updates will be derived via an APEX TimeData
package update, whose data directory this commit sets as the first
location to be searched.

This commit potentially fixes the Xamarin.Android issue mentioned above.
"Potentially" because I can't be sure this is what's causing it since
I'm unable to reproduce the issue locally. However, out-of-date tz
database seems to be the most probable cause.

Context: https://source.android.com/devices/architecture/modular-system/runtime#time-zone-data-interactions
Context: https://source.android.com/devices/tech/config/timezone-rules#timezone-apex
Maybe Fixes: dotnet/android#5080

Add support to read ICANN timezone data from two new locations found on
devices running Android 10+.  The data in the previously searched
location still exists but it's most likely out of date.

On Android 10+ tzdata updates will be derived via an APEX TimeData
package update, whose data directory this commit sets as the first
location to be searched.

This commit potentially fixes the Xamarin.Android issue mentioned above.
"Potentially" because I can't be sure this is what's causing it since
I'm unable to reproduce the issue locally.  However, out-of-date tz
database seems to be the most probable cause.
@akoeplinger
Copy link
Member

@monojenkins backport to 2020-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants