Allow recovery to be restored if backup=1 flag is present in recovery.fstab
Change-Id: I426c8da8ae586004011ec4a103e1d7a1f23b3599
This commit is contained in:
committed by
Gerrit Code Review
parent
90447006d2
commit
f08ada8483
@@ -1829,7 +1829,7 @@ void TWPartitionManager::Get_Partition_List(string ListType, std::vector<Partiti
|
||||
while (end_pos != string::npos && start_pos < Restore_List.size()) {
|
||||
restore_path = Restore_List.substr(start_pos, end_pos - start_pos);
|
||||
if ((restore_part = Find_Partition_By_Path(restore_path)) != NULL) {
|
||||
if (restore_part->Backup_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 {
|
||||
|
||||
Reference in New Issue
Block a user