summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-01-28 21:03:33 +0100
committerDees Troy <dees_troy@teamw.in>2016-01-29 21:58:33 +0100
commitb5fab76bea98dff8d0825d16c3dd359397449e9a (patch)
treea92cf2c085a22c8f246543f558619edd5fd3367e /gui/action.cpp
parentadds TW_ADDITIONAL_RES to TW_RES (diff)
downloadandroid_bootable_recovery-b5fab76bea98dff8d0825d16c3dd359397449e9a.tar
android_bootable_recovery-b5fab76bea98dff8d0825d16c3dd359397449e9a.tar.gz
android_bootable_recovery-b5fab76bea98dff8d0825d16c3dd359397449e9a.tar.bz2
android_bootable_recovery-b5fab76bea98dff8d0825d16c3dd359397449e9a.tar.lz
android_bootable_recovery-b5fab76bea98dff8d0825d16c3dd359397449e9a.tar.xz
android_bootable_recovery-b5fab76bea98dff8d0825d16c3dd359397449e9a.tar.zst
android_bootable_recovery-b5fab76bea98dff8d0825d16c3dd359397449e9a.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 240db8f24..e08111850 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -209,6 +209,7 @@ GUIAction::GUIAction(xml_node<>* node)
ADD_ACTION(wipe);
ADD_ACTION(refreshsizes);
ADD_ACTION(nandroid);
+ ADD_ACTION(fixcontexts);
ADD_ACTION(fixpermissions);
ADD_ACTION(dd);
ADD_ACTION(partitionsd);
@@ -1219,16 +1220,16 @@ int GUIAction::cancelbackup(std::string arg __unused) {
return 0;
}
-int GUIAction::fixpermissions(std::string arg __unused)
+int GUIAction::fixcontexts(std::string arg __unused)
{
int op_status = 0;
- operation_start("Fix Permissions");
- LOGINFO("fix permissions started!\n");
+ operation_start("Fix Contexts");
+ LOGINFO("fix contexts started!\n");
if (simulate) {
simulate_progress_bar();
} else {
- op_status = PartitionManager.Fix_Permissions();
+ op_status = PartitionManager.Fix_Contexts();
if (op_status != 0)
op_status = 1; // failure
}
@@ -1236,6 +1237,11 @@ int GUIAction::fixpermissions(std::string arg __unused)
return 0;
}
+int GUIAction::fixpermissions(std::string arg)
+{
+ return fixcontexts(arg);
+}
+
int GUIAction::dd(std::string arg)
{
operation_start("imaging");