summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Neil Fuller <nfuller@google.com> 2019-03-21 10:59:49 -0700
committer android-build-merger <android-build-merger@google.com> 2019-03-21 10:59:49 -0700
commit20fd6bdc01557648827cd4883bd274332823f9f0 (patch)
tree816f5def86866700ac0d283c798dfaddae1c9ebe
parentea992811ff1c3c326f96bfc7762f1508785bee37 (diff)
parentf6c4aa1f672f505e9c409e968d783c56f03b2a2d (diff)
Merge "Require the ANDROID_TZDATA_ROOT env var"
am: f6c4aa1f67 Change-Id: Ic307cf7c3e648f37170834c1b265761de4d77b6b
-rw-r--r--core/jni/AndroidRuntime.cpp6
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);