diff options
author | Tianjie Xu <xunchang@google.com> | 2019-05-22 02:54:23 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-05-22 02:54:23 +0200 |
commit | 3a961fa48cc7ee049a1088cd424c7f76ab116ce1 (patch) | |
tree | 3debddd730b001dc81418f56f17193984008f119 /updater/updater_main.cpp | |
parent | Merge "Add misc_writer." am: 962f7e0c0c am: f9fb4878fc am: 70bc3c40d2 (diff) | |
parent | Merge "Add UpdaterRuntime class" am: e7b3c5698e am: c6d7065880 (diff) | |
download | android_bootable_recovery-3a961fa48cc7ee049a1088cd424c7f76ab116ce1.tar android_bootable_recovery-3a961fa48cc7ee049a1088cd424c7f76ab116ce1.tar.gz android_bootable_recovery-3a961fa48cc7ee049a1088cd424c7f76ab116ce1.tar.bz2 android_bootable_recovery-3a961fa48cc7ee049a1088cd424c7f76ab116ce1.tar.lz android_bootable_recovery-3a961fa48cc7ee049a1088cd424c7f76ab116ce1.tar.xz android_bootable_recovery-3a961fa48cc7ee049a1088cd424c7f76ab116ce1.tar.zst android_bootable_recovery-3a961fa48cc7ee049a1088cd424c7f76ab116ce1.zip |
Diffstat (limited to 'updater/updater_main.cpp')
-rw-r--r-- | updater/updater_main.cpp | 5 |
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; } |