diff options
| author | 2019-09-25 05:40:48 -0700 | |
|---|---|---|
| committer | 2019-09-25 05:40:48 -0700 | |
| commit | f316121225b56e6b0a7f4ec44c7785e60a79c3d3 (patch) | |
| tree | efbeb0c17aff9f8bf9e5a544852f5f4130a67628 | |
| parent | 69bfb496f5d453c3c481282870c799d68429303c (diff) | |
| parent | 7ec076c542c2f86ddc7061f909d3c8dc34256b08 (diff) | |
Merge "Check ANDROID_I18N_ROOT when starting the runtime" am: 4a09c691bf am: dba23bbec1
am: 7ec076c542
Change-Id: I16c52f3d974a3c9ff96fffdb1feba281b36a7873
| -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 92ac95d4cf07..df481cf16f41 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -1169,6 +1169,12 @@ void AndroidRuntime::start(const char* className, const Vector<String8>& options return; } + const char* i18nRootDir = getenv("ANDROID_I18N_ROOT"); + if (i18nRootDir == NULL) { + LOG_FATAL("No runtime directory specified with ANDROID_I18N_ROOT environment variable."); + return; + } + const char* tzdataRootDir = getenv("ANDROID_TZDATA_ROOT"); if (tzdataRootDir == NULL) { LOG_FATAL("No tz data directory specified with ANDROID_TZDATA_ROOT environment variable."); |