From f08ada848363553087b51b59a0a3f883d3344c74 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Wed, 22 Jan 2014 20:46:29 -0500 Subject: Allow recovery to be restored if backup=1 flag is present in recovery.fstab Change-Id: I426c8da8ae586004011ec4a103e1d7a1f23b3599 --- partitionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 04dbee967..e8b362cf6 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1829,7 +1829,7 @@ void TWPartitionManager::Get_Partition_List(string ListType, std::vectorBackup_Name == "recovery" || restore_part->Is_SubPartition) { + if (restore_part->Backup_Name == "recovery" && !restore_part->Can_Be_Backed_Up || restore_part->Is_SubPartition) { // Don't allow restore of recovery (causes problems on some devices) // Don't add subpartitions to the list of items } else { -- cgit v1.2.3