From 3b3b634365f907bb94c0bcd72aac7013ee2eb0e8 Mon Sep 17 00:00:00 2001 From: Chaosmaster Date: Sat, 25 Jan 2020 22:51:54 +0100 Subject: [PATCH] ORS Make mount/unmount system mount system_root on SAR Change-Id: Ibf8d4d61e6cbb132786f5f9aa23ec91b49bcab89 --- openrecoveryscript.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp index 1de08707..6d762986 100755 --- a/openrecoveryscript.cpp +++ b/openrecoveryscript.cpp @@ -301,6 +301,8 @@ int OpenRecoveryScript::run_script_file(void) { strcat(mount, value); } else strcpy(mount, value); + if (!strcmp(mount, "/system")) + strcpy(mount, PartitionManager.Get_Android_Root_Path().c_str()); if (PartitionManager.Mount_By_Path(mount, true)) gui_msg(Msg("mounted=Mounted '{1}'")(mount)); } else if (strcmp(command, "unmount") == 0 || strcmp(command, "umount") == 0) { @@ -311,6 +313,8 @@ int OpenRecoveryScript::run_script_file(void) { strcat(mount, value); } else strcpy(mount, value); + if (!strcmp(mount, "/system")) + strcpy(mount, PartitionManager.Get_Android_Root_Path().c_str()); if (PartitionManager.UnMount_By_Path(mount, true)) gui_msg(Msg("unmounted=Unounted '{1}'")(mount)); } else if (strcmp(command, "set") == 0) {