Last active
August 29, 2015 14:06
-
-
Save handymenny/8bdb40fc0e11263a4a83 to your computer and use it in GitHub Desktop.
boot and recovery aren't the same on some samsung phones.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bmlutils/bmlutils.c b/bmlutils/bmlutils.c | |
index d59475e..b6d6f8f 100644 | |
--- a/bmlutils/bmlutils.c | |
+++ b/bmlutils/bmlutils.c | |
@@ -105,14 +105,18 @@ int cmd_bml_restore_raw_partition(const char *partition, const char *filename) | |
return 6; | |
int ret = -1; | |
+#ifndef TW_BOOT_AND_RECOVERY_ARE_DIFFERENT | |
if (strcmp(partition, "recoveryonly") != 0) { | |
// always restore boot, regardless of whether recovery or boot is flashed. | |
// this is because boot and recovery are the same on some samsung phones. | |
// unless of course, recoveryonly is explictly chosen (bml8) | |
+#else | |
+ if (strcmp(partition, "boot") == 0) { | |
+#endif | |
ret = restore_internal(BOARD_BML_BOOT, filename); | |
if (ret != 0) | |
return ret; | |
} | |
if (strcmp(partition, "recovery") == 0 || strcmp(partition, "recoveryonly") == 0) | |
ret = restore_internal(BOARD_BML_RECOVERY, filename); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment