Use raw partition functions for emmc
Change-Id: Ia5d9f18d43228a08f12633d432b299def8e26ae1
diff --git a/nandroid.c b/nandroid.c
index 7afdc81..45417fb 100644
--- a/nandroid.c
+++ b/nandroid.c
@@ -109,7 +109,8 @@
// see if we need a raw backup (mtd)
char tmp[PATH_MAX];
int ret;
- if (strcmp(vol->fs_type, "mtd") == 0) {
+ if (strcmp(vol->fs_type, "mtd") == 0 ||
+ strcmp(vol->fs_type, "emmc") == 0) {
const char* name = basename(root);
sprintf(tmp, "%s/%s.img", backup_path, name);
ui_print("Backing up %s image...\n", name);
@@ -280,7 +281,8 @@
// see if we need a raw restore (mtd)
char tmp[PATH_MAX];
- if (strcmp(vol->fs_type, "mtd") == 0) {
+ if (strcmp(vol->fs_type, "mtd") == 0 ||
+ strcmp(vol->fs_type, "emmc") == 0) {
int ret;
const char* name = basename(root);
ui_print("Erasing %s before restore...\n", name);