diff options
| author | 2018-12-04 05:13:57 -0800 | |
|---|---|---|
| committer | 2018-12-04 05:13:57 -0800 | |
| commit | beb24a9764a6a2a06ad4efe85da6a27abd691849 (patch) | |
| tree | 8fd5a70728d81fa39d04d14b9a778f52d5132357 | |
| parent | 110abbf49a91298b826816d43bea7c36becd0ae5 (diff) | |
| parent | 84cbaf603e101d6a0e417e476d653122db959cce (diff) | |
Merge "Make ANDROID_RUNTIME_ROOT a required env variable" am: 6dc466fd3a
am: 84cbaf603e
Change-Id: I8fe51f82861ea2397b335efdbc4605fbd1e9b46a
| -rw-r--r-- | core/jni/AndroidRuntime.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index f7f10c49fbae..b94ac9c29f9f 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -1052,12 +1052,18 @@ void AndroidRuntime::start(const char* className, const Vector<String8>& options if (rootDir == NULL) { rootDir = "/system"; if (!hasDir("/system")) { - LOG_FATAL("No root directory specified, and /android does not exist."); + LOG_FATAL("No root directory specified, and /system does not exist."); return; } setenv("ANDROID_ROOT", rootDir, 1); } + const char* runtimeRootDir = getenv("ANDROID_RUNTIME_ROOT"); + if (runtimeRootDir == NULL) { + LOG_FATAL("No runtime directory specified with ANDROID_RUNTIME_ROOT environment variable."); + return; + } + //const char* kernelHack = getenv("LD_ASSUME_KERNEL"); //ALOGD("Found LD_ASSUME_KERNEL='%s'\n", kernelHack); |