Add fix permissions to OpenRecoveryScript
Change-Id: I2419cba26fcf046833b5a02fd1b95d6d6e542b8a
This commit is contained in:
committed by
Gerrit Code Review
parent
50381976ff
commit
aae6e8ca7b
@@ -349,6 +349,10 @@ int OpenRecoveryScript::run_script_file(void) {
|
||||
sideload = 1; // Causes device to go to the home screen afterwards
|
||||
gui_print("Sideload finished.\n");
|
||||
}
|
||||
} else if (strcmp(command, "fixperms") == 0 || strcmp(command, "fixpermissions") == 0) {
|
||||
ret_val = PartitionManager.Fix_Permissions();
|
||||
if (ret_val != 0)
|
||||
ret_val = 1; // failure
|
||||
} else {
|
||||
LOGERR("Unrecognized script command: '%s'\n", command);
|
||||
ret_val = 1;
|
||||
|
||||
Reference in New Issue
Block a user