Flashutils: detect /dev/block/sd* as emmc

Change-Id: I067a58e5053748b9613ea6b4ac76a1c5285abc7d
This commit is contained in:
James Christopher Adduono
2016-03-29 15:42:55 -04:00
committed by Dees Troy
parent 4f74d14f8c
commit 0de3b7ed61
+1 -1
View File
@@ -54,7 +54,7 @@ static int detect_partition(const char *partitionType, const char *partition)
int type = device_flash_type();
if (strstr(partition, "/dev/block/mtd") != NULL)
type = MTD;
else if (strstr(partition, "/dev/block/mmc") != NULL)
else if (strstr(partition, "/dev/block/mmc") != NULL || strstr(partition, "/dev/block/sd") != NULL)
type = MMC;
else if (strstr(partition, "/dev/block/bml") != NULL)
type = BML;