vab support: merges and unmapping super devices

- check for merges before formatting data
- add advanced option for unmapping super devices

Change-Id: I38d4d3bbdfa071969016c3e000c86a4d03c71e45
This commit is contained in:
bigbiff
2021-08-09 23:04:33 +00:00
parent d1e556a9a2
commit cfa875c4d4
14 changed files with 178 additions and 19 deletions
+18
View File
@@ -207,6 +207,7 @@ GUIAction::GUIAction(xml_node<>* node)
ADD_ACTION(enableadb);
ADD_ACTION(enablefastboot);
ADD_ACTION(changeterminal);
ADD_ACTION(unmapsuperdevices);
// remember actions that run in the caller thread
for (mapFunc::const_iterator it = mf.begin(); it != mf.end(); ++it)
@@ -2266,6 +2267,23 @@ int GUIAction::changeterminal(std::string arg) {
gui_changePage("terminalcommand");
return 0;
}
int GUIAction::unmapsuperdevices(std::string arg __unused) {
int op_status = 1;
operation_start("Remove Super Devices");
if (simulate) {
simulate_progress_bar();
} else {
if (PartitionManager.Unmap_Super_Devices()) {
op_status = 0;
}
}
operation_end(op_status);
return 0;
}
#ifndef TW_EXCLUDE_NANO
int GUIAction::editfile(std::string arg) {
if (term != NULL) {