summaryrefslogtreecommitdiffstats
path: root/updater/updater.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-02-23 06:04:42 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-02-23 06:04:42 +0100
commit842f2d8ccf4a5675b30a85e41aa3c391195e644b (patch)
tree9e728cea2ec2086195ecbbe22b840d1631991673 /updater/updater.cpp
parentMerge "recovery: check battery level before installing package." am: 16d0a18514 (diff)
parentMerge "Control fault injection with config files instead of build flags" (diff)
downloadandroid_bootable_recovery-842f2d8ccf4a5675b30a85e41aa3c391195e644b.tar
android_bootable_recovery-842f2d8ccf4a5675b30a85e41aa3c391195e644b.tar.gz
android_bootable_recovery-842f2d8ccf4a5675b30a85e41aa3c391195e644b.tar.bz2
android_bootable_recovery-842f2d8ccf4a5675b30a85e41aa3c391195e644b.tar.lz
android_bootable_recovery-842f2d8ccf4a5675b30a85e41aa3c391195e644b.tar.xz
android_bootable_recovery-842f2d8ccf4a5675b30a85e41aa3c391195e644b.tar.zst
android_bootable_recovery-842f2d8ccf4a5675b30a85e41aa3c391195e644b.zip
Diffstat (limited to '')
-rw-r--r--updater/updater.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp
index 0f22e6d04..efb4a8cec 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -25,6 +25,7 @@
#include "blockimg.h"
#include "minzip/Zip.h"
#include "minzip/SysUtil.h"
+#include "config.h"
// Generated by the makefile, this function defines the
// RegisterDeviceExtensions() function, which calls all the
@@ -82,6 +83,7 @@ int main(int argc, char** argv) {
argv[3], strerror(err));
return 3;
}
+ ota_io_init(&za);
const ZipEntry* script_entry = mzFindZipEntry(&za, SCRIPT_NAME);
if (script_entry == NULL) {