flash_image: use Override_Active_Slot instead of bootctrl
Change-Id: I985d644ccb1e3bc8f9f9da77798d7bbcb7b84419
This commit is contained in:
committed by
captainthrowback
parent
d5e2c5247e
commit
d0fcdaf492
+3
-3
@@ -1801,9 +1801,9 @@ int GUIAction::flashimage(std::string arg __unused)
|
||||
string current_slot = PartitionManager.Get_Active_Slot_Display();
|
||||
bool pre_op_status = PartitionManager.Flash_Image(path, filename);
|
||||
|
||||
PartitionManager.Set_Active_Slot(current_slot == "A" ? "B" : "A");
|
||||
PartitionManager.Override_Active_Slot(current_slot == "A" ? "B" : "A");
|
||||
op_status = (int) !(pre_op_status && PartitionManager.Flash_Image(path, filename));
|
||||
PartitionManager.Set_Active_Slot(current_slot);
|
||||
PartitionManager.Override_Active_Slot(current_slot);
|
||||
|
||||
DataManager::SetValue("tw_flash_both_slots", 0);
|
||||
flag = false;
|
||||
@@ -2360,4 +2360,4 @@ int GUIAction::mergesnapshots(string arg __unused) {
|
||||
}
|
||||
operation_end(op_status);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user