summaryrefslogtreecommitdiffstats
path: root/updater/simulator_runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'updater/simulator_runtime.cpp')
-rw-r--r--updater/simulator_runtime.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/updater/simulator_runtime.cpp b/updater/simulator_runtime.cpp
index c8718c71a..d2074d69a 100644
--- a/updater/simulator_runtime.cpp
+++ b/updater/simulator_runtime.cpp
@@ -87,7 +87,11 @@ int SimulatorRuntime::WipeBlockDevice(const std::string_view filename, size_t /*
}
bool SimulatorRuntime::ReadFileToString(const std::string_view filename,
- std::string* /* content */) const {
+ std::string* content) const {
+ if (android::base::EndsWith(filename, "oem.prop")) {
+ return android::base::ReadFileToString(source_->GetOemSettings(), content);
+ }
+
LOG(INFO) << "SKip reading filename " << filename;
return true;
}