summaryrefslogtreecommitdiffstats
path: root/updater/include
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-07-16 01:13:49 +0200
committerTianjie Xu <xunchang@google.com>2019-07-16 22:03:41 +0200
commit7efd23338a0d18d596aa1058896e72d1ee3cb501 (patch)
tree708694211f4924061fe8cb868617d46707d5b8f0 /updater/include
parentMerge "Drop the device specific support for update host simulator" (diff)
downloadandroid_bootable_recovery-7efd23338a0d18d596aa1058896e72d1ee3cb501.tar
android_bootable_recovery-7efd23338a0d18d596aa1058896e72d1ee3cb501.tar.gz
android_bootable_recovery-7efd23338a0d18d596aa1058896e72d1ee3cb501.tar.bz2
android_bootable_recovery-7efd23338a0d18d596aa1058896e72d1ee3cb501.tar.lz
android_bootable_recovery-7efd23338a0d18d596aa1058896e72d1ee3cb501.tar.xz
android_bootable_recovery-7efd23338a0d18d596aa1058896e72d1ee3cb501.tar.zst
android_bootable_recovery-7efd23338a0d18d596aa1058896e72d1ee3cb501.zip
Diffstat (limited to 'updater/include')
-rw-r--r--updater/include/updater/build_info.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/updater/include/updater/build_info.h b/updater/include/updater/build_info.h
index a1355e89a..22299579f 100644
--- a/updater/include/updater/build_info.h
+++ b/updater/include/updater/build_info.h
@@ -51,9 +51,18 @@ class BuildInfo {
// Parses the given target-file, initializes the build properties and extracts the images.
bool ParseTargetFile(const std::string_view target_file_path, bool extracted_input);
+ std::string GetOemSettings() const {
+ return oem_settings_;
+ }
+ void SetOemSettings(const std::string_view oem_settings) {
+ oem_settings_ = oem_settings;
+ }
+
private:
// A map to store the system properties during simulation.
std::map<std::string, std::string, std::less<>> build_props_;
+ // A file that contains the oem properties.
+ std::string oem_settings_;
// A map from the blockdev_name to the FakeBlockDevice object, which contains the path to the
// temporary file.
std::map<std::string, FakeBlockDevice, std::less<>> blockdev_map_;