summaryrefslogtreecommitdiffstats
path: root/updater/updater.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-08-15 23:31:52 +0200
committerDoug Zongker <dougz@google.com>2014-08-20 01:53:39 +0200
commitbc7ffeda98a861e346c30c771d3258030f7fcf21 (patch)
treea435cfd2bd1b457bb2e45304b8e75cd2e1305831 /updater/updater.c
parentclear BCB in misc partition before rebooting (diff)
downloadandroid_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.gz
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.bz2
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.lz
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.xz
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.zst
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.zip
Diffstat (limited to 'updater/updater.c')
-rw-r--r--updater/updater.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/updater/updater.c b/updater/updater.c
index b7af3e500..465e1238e 100644
--- a/updater/updater.c
+++ b/updater/updater.c
@@ -21,6 +21,7 @@
#include "edify/expr.h"
#include "updater.h"
#include "install.h"
+#include "blockimg.h"
#include "minzip/Zip.h"
#include "minzip/SysUtil.h"
@@ -98,6 +99,7 @@ int main(int argc, char** argv) {
RegisterBuiltins();
RegisterInstallFunctions();
+ RegisterBlockImageFunctions();
RegisterDeviceExtensions();
FinishRegistration();
@@ -127,6 +129,8 @@ int main(int argc, char** argv) {
updater_info.cmd_pipe = cmd_pipe;
updater_info.package_zip = &za;
updater_info.version = atoi(version);
+ updater_info.package_zip_addr = map.addr;
+ updater_info.package_zip_len = map.length;
State state;
state.cookie = &updater_info;