Add an option to one click flash current booted TWRP ramdisk
Change-Id: I12303696698a5feaa43401bcac9e30d5b3b99a0c
This commit is contained in:
@@ -239,6 +239,7 @@ GUIAction::GUIAction(xml_node<>* node)
|
||||
ADD_ACTION(installapp);
|
||||
ADD_ACTION(uninstalltwrpsystemapp);
|
||||
ADD_ACTION(repackimage);
|
||||
ADD_ACTION(reflashtwrp);
|
||||
ADD_ACTION(fixabrecoverybootloop);
|
||||
ADD_ACTION(applycustomtwrpfolder);
|
||||
#ifndef TW_EXCLUDE_NANO
|
||||
@@ -2159,6 +2160,23 @@ exit:
|
||||
return 0;
|
||||
}
|
||||
|
||||
int GUIAction::reflashtwrp(std::string arg __unused)
|
||||
{
|
||||
int op_status = 1;
|
||||
twrpRepacker repacker;
|
||||
|
||||
operation_start("Repack Image");
|
||||
if (!simulate)
|
||||
{
|
||||
if (!repacker.Flash_Current_Twrp())
|
||||
goto exit;
|
||||
} else
|
||||
simulate_progress_bar();
|
||||
op_status = 0;
|
||||
exit:
|
||||
operation_end(op_status);
|
||||
return 0;
|
||||
}
|
||||
int GUIAction::fixabrecoverybootloop(std::string arg __unused)
|
||||
{
|
||||
int op_status = 1;
|
||||
|
||||
Reference in New Issue
Block a user