summaryrefslogtreecommitdiffstats
path: root/updater/updater_runtime.cpp
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-05-13 21:18:02 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-05-13 21:18:02 +0200
commitdc04d803d3e153055a284756cc4a54e70502b4d8 (patch)
tree3491c3edf7618023242408108ee36a7adbd77e15 /updater/updater_runtime.cpp
parentMerge "Allos IsUsbConnected() to be overridden" am: 54e28fed8a am: bc3a63e4a4 am: adb1ed5a95 am: 5589ec0b3b am: bbba1b700a (diff)
parentMerge changes from topic "nonab_on_vab_r" into rvc-dev am: b62ff1abe3 am: fbe98bb122 am: b4be26a02c (diff)
downloadandroid_bootable_recovery-dc04d803d3e153055a284756cc4a54e70502b4d8.tar
android_bootable_recovery-dc04d803d3e153055a284756cc4a54e70502b4d8.tar.gz
android_bootable_recovery-dc04d803d3e153055a284756cc4a54e70502b4d8.tar.bz2
android_bootable_recovery-dc04d803d3e153055a284756cc4a54e70502b4d8.tar.lz
android_bootable_recovery-dc04d803d3e153055a284756cc4a54e70502b4d8.tar.xz
android_bootable_recovery-dc04d803d3e153055a284756cc4a54e70502b4d8.tar.zst
android_bootable_recovery-dc04d803d3e153055a284756cc4a54e70502b4d8.zip
Diffstat (limited to 'updater/updater_runtime.cpp')
-rw-r--r--updater/updater_runtime.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/updater/updater_runtime.cpp b/updater/updater_runtime.cpp
index b1b8863fd..e93830505 100644
--- a/updater/updater_runtime.cpp
+++ b/updater/updater_runtime.cpp
@@ -28,6 +28,7 @@
#include <android-base/strings.h>
#include <android-base/unique_fd.h>
#include <ext4_utils/wipe.h>
+#include <fs_mgr.h>
#include <selinux/label.h>
#include <tune2fs.h>
@@ -186,3 +187,7 @@ int UpdaterRuntime::Tune2Fs(const std::vector<std::string>& args) const {
// tune2fs changes the filesystem parameters on an ext2 filesystem; it returns 0 on success.
return tune2fs_main(tune2fs_args.size() - 1, tune2fs_args.data());
}
+
+std::string UpdaterRuntime::AddSlotSuffix(const std::string_view arg) const {
+ return std::string(arg) + fs_mgr_get_slot_suffix();
+}