diff --git a/Android.mk b/Android.mk index a3012aa..13ce859 100644 --- a/Android.mk +++ b/Android.mk @@ -26,7 +26,7 @@ LOCAL_MODULE := recovery LOCAL_FORCE_STATIC_EXECUTABLE := true -RECOVERY_VERSION := ClockworkMod Recovery v3.1.0.1 +RECOVERY_VERSION := ClockworkMod Recovery v3.1.0.2 LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)" RECOVERY_API_VERSION := 2 LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) diff --git a/install.c b/install.c index 7ad1b2d..0b35ee7 100644 --- a/install.c +++ b/install.c @@ -245,8 +245,9 @@ try_update_binary(const char *path, ZipArchive *zip) { } if (firmware_type != NULL) { + int ret = handle_firmware_update(firmware_type, firmware_filename, zip); mzCloseZipArchive(zip); - return handle_firmware_update(firmware_type, firmware_filename, zip); + return ret; } return INSTALL_SUCCESS; }