summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-02-12 04:37:36 +0100
committerGerrit Code Review <gerrit2@gerrit>2014-02-12 16:15:49 +0100
commitaae6e8ca7b499da083b9d661ec657b5d10241fb0 (patch)
tree499ab00fd679513a43068f35379452f42e0dfdc5 /openrecoveryscript.cpp
parentAdd twrpTar binary (diff)
downloadandroid_bootable_recovery-aae6e8ca7b499da083b9d661ec657b5d10241fb0.tar
android_bootable_recovery-aae6e8ca7b499da083b9d661ec657b5d10241fb0.tar.gz
android_bootable_recovery-aae6e8ca7b499da083b9d661ec657b5d10241fb0.tar.bz2
android_bootable_recovery-aae6e8ca7b499da083b9d661ec657b5d10241fb0.tar.lz
android_bootable_recovery-aae6e8ca7b499da083b9d661ec657b5d10241fb0.tar.xz
android_bootable_recovery-aae6e8ca7b499da083b9d661ec657b5d10241fb0.tar.zst
android_bootable_recovery-aae6e8ca7b499da083b9d661ec657b5d10241fb0.zip
Diffstat (limited to 'openrecoveryscript.cpp')
-rw-r--r--openrecoveryscript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index bede6d7c2..4479ec919 100644
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -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;