Detect the OS timezone using JNI
ICU timezone detection on Android does not work properly for most
timezones. [1]
Use JNI to detect the OS timezone and set the ICU default timezone
accordingly both on ICU initialization and on timezone change.
This is to reland https://chromium-review.googlesource.com/c/512282
with a temporary suppression of StrictMode check for disk read for
devices that skipped the set-up wizard.
[1] http://bugs.icu-project.org/trac/ticket/13208
TBR=mark@chromium.org,yfriedman@chromium.org,torne@chromium.org
BUG=chromium:722821, chromium:737475
TEST=Change the timezone on Android to a few different zones (e.g.
Australia/Sydney, Asia/Seoul, Europe/Amstredam). At
match what's chosen in Android settings.
http: //jungshik.github.io/cr/bugs/722821.html , local tz should
Change-Id: Ibc183295b46344d29f383851cf62697032e18777
Reviewed-on: https://chromium-review.googlesource.com/553717
Reviewed-by: Jungshik Shin <jshin@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Commit-Queue: Jungshik Shin <jshin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#483276}
CrOS-Libchrome-Original-Commit: ffb4fbf926444cc3aecd111c98d1521993272593
4 files changed