diff options
Diffstat (limited to 'init/util.cpp')
-rw-r--r-- | init/util.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/init/util.cpp b/init/util.cpp index eab99d4e3..a40d10416 100644 --- a/init/util.cpp +++ b/init/util.cpp @@ -376,6 +376,15 @@ static std::string init_android_dt_dir() { android_dt_dir = value; } }); + // ..Or bootconfig + if (android_dt_dir == kDefaultAndroidDtDir) { + ImportBootconfig([&](const std::string& key, const std::string& value) { + if (key == "androidboot.android_dt_dir") { + android_dt_dir = value; + } + }); + } + LOG(INFO) << "Using Android DT directory " << android_dt_dir; return android_dt_dir; } |