Skip to content

Commit

Permalink
aboot: Don't fail if boot is not an android boot image
Browse files Browse the repository at this point in the history
  • Loading branch information
TravMurav committed Apr 30, 2024
1 parent f098194 commit 6a2af94
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/aboot/aboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -3943,11 +3943,6 @@ void cmd_flash_mmc_img(const char *arg, void *data, unsigned sz)
if (!strncmp(pname, "boot", strlen("boot"))
|| !strcmp(pname, "recovery"))
{
if ((sz < BOOT_MAGIC_SIZE) || memcmp((void *)data, BOOT_MAGIC, BOOT_MAGIC_SIZE)) {
fastboot_fail("image is not a boot image");
return;
}

/* Reset multislot_partition attributes in case of flashing boot */
if (partition_multislot_is_supported())
{
Expand Down

0 comments on commit 6a2af94

Please sign in to comment.