Fix ORS backup and restore for system-as-root
Change-Id: Ice7f2e22ded280f723c19e920a15f3e918c17264
This commit is contained in:
@@ -253,8 +253,8 @@ int OpenRecoveryScript::run_script_file(void) {
|
||||
gui_msg(Msg("set_restore_opt=Setting restore options: '{1}':")(value2));
|
||||
line_len = strlen(value2);
|
||||
for (i=0; i<line_len; i++) {
|
||||
if ((value2[i] == 'S' || value2[i] == 's') && Partition_List.find("/system;") != string::npos) {
|
||||
Restore_List += "/system;";
|
||||
if ((value2[i] == 'S' || value2[i] == 's') && Partition_List.find(PartitionManager.Get_Android_Root_Path() + ';') != string::npos) {
|
||||
Restore_List += PartitionManager.Get_Android_Root_Path() + ';';
|
||||
gui_msg("system=System");
|
||||
} else if ((value2[i] == 'D' || value2[i] == 'd') && Partition_List.find("/data;") != string::npos) {
|
||||
Restore_List += "/data;";
|
||||
@@ -539,7 +539,7 @@ int OpenRecoveryScript::Backup_Command(string Options) {
|
||||
line_len = Options.size();
|
||||
for (i=0; i<line_len; i++) {
|
||||
if (Options.substr(i, 1) == "S" || Options.substr(i, 1) == "s") {
|
||||
Backup_List += "/system;";
|
||||
Backup_List += PartitionManager.Get_Android_Root_Path() + ';';
|
||||
gui_msg("system=System");
|
||||
} else if (Options.substr(i, 1) == "D" || Options.substr(i, 1) == "d") {
|
||||
Backup_List += "/data;";
|
||||
|
||||
Reference in New Issue
Block a user