diff options
| author | 2019-03-21 10:59:49 -0700 | |
|---|---|---|
| committer | 2019-03-21 10:59:49 -0700 | |
| commit | 20fd6bdc01557648827cd4883bd274332823f9f0 (patch) | |
| tree | 816f5def86866700ac0d283c798dfaddae1c9ebe | |
| parent | ea992811ff1c3c326f96bfc7762f1508785bee37 (diff) | |
| parent | f6c4aa1f672f505e9c409e968d783c56f03b2a2d (diff) | |
Merge "Require the ANDROID_TZDATA_ROOT env var"
am: f6c4aa1f67
Change-Id: Ic307cf7c3e648f37170834c1b265761de4d77b6b
| -rw-r--r-- | core/jni/AndroidRuntime.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 388285a5687f..79850d03160a 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -1112,6 +1112,12 @@ void AndroidRuntime::start(const char* className, const Vector<String8>& options return; } + const char* tzdataRootDir = getenv("ANDROID_TZDATA_ROOT"); + if (tzdataRootDir == NULL) { + LOG_FATAL("No tz data directory specified with ANDROID_TZDATA_ROOT environment variable."); + return; + } + //const char* kernelHack = getenv("LD_ASSUME_KERNEL"); //ALOGD("Found LD_ASSUME_KERNEL='%s'\n", kernelHack); |