diff --git a/Android.mk b/Android.mk index f964bc6..7c843b2 100644 --- a/Android.mk +++ b/Android.mk @@ -26,7 +26,7 @@ LOCAL_MODULE := recovery LOCAL_FORCE_STATIC_EXECUTABLE := true -RECOVERY_VERSION := ClockworkMod Recovery v2.5.0.0 +RECOVERY_VERSION := ClockworkMod Recovery v2.5.0.1 LOCAL_CFLAGS := -DRECOVERY_VERSION="$(RECOVERY_VERSION)" RECOVERY_API_VERSION := 2 LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) diff --git a/extendedcommands.c b/extendedcommands.c index f09f24e..9310305 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -634,7 +634,6 @@ int run_and_remove_extendedcommand() char tmp[PATH_MAX]; sprintf(tmp, "cp %s /tmp/%s", EXTENDEDCOMMAND_SCRIPT, basename(EXTENDEDCOMMAND_SCRIPT)); __system(tmp); - __system("rm /sdcard/clockworkmod/.recoverycheckpoint"); remove(EXTENDEDCOMMAND_SCRIPT); int i = 0; for (i = 20; i > 0; i--) { @@ -645,6 +644,7 @@ int run_and_remove_extendedcommand() } sleep(1); } + remove("/sdcard/clockworkmod/.recoverycheckpoint"); if (i == 0) { ui_print("Timed out waiting for SD card... continuing anyways."); }