summaryrefslogtreecommitdiffstats
path: root/updater/updater_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'updater/updater_main.cpp')
-rw-r--r--updater/updater_main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/updater/updater_main.cpp b/updater/updater_main.cpp
index dd22c137d..055a8ac76 100644
--- a/updater/updater_main.cpp
+++ b/updater/updater_main.cpp
@@ -31,6 +31,7 @@
#include "updater/dynamic_partitions.h"
#include "updater/install.h"
#include "updater/updater.h"
+#include "updater/updater_runtime.h"
// Generated by the makefile, this function defines the
// RegisterDeviceExtensions() function, which calls all the
@@ -95,8 +96,8 @@ int main(int argc, char** argv) {
auto sehandle = selinux_android_file_context_handle();
selinux_android_set_sehandle(sehandle);
- Updater updater;
- if (!updater.Init(fd, package_name, is_retry, sehandle)) {
+ Updater updater(std::make_unique<UpdaterRuntime>(sehandle));
+ if (!updater.Init(fd, package_name, is_retry)) {
return 1;
}