summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-10-10 16:26:54 +0200
committerDees_Troy <dees_troy@teamw.in>2012-10-10 16:27:17 +0200
commit6480ce0f2a95e966192294eb066095acfd3ccd16 (patch)
treed7c6b7d567b0d5c017ee8baaa36147c9ae6b8f79 /gui/action.cpp
parentredo fix permissions in c++ for faster changes (diff)
downloadandroid_bootable_recovery-6480ce0f2a95e966192294eb066095acfd3ccd16.tar
android_bootable_recovery-6480ce0f2a95e966192294eb066095acfd3ccd16.tar.gz
android_bootable_recovery-6480ce0f2a95e966192294eb066095acfd3ccd16.tar.bz2
android_bootable_recovery-6480ce0f2a95e966192294eb066095acfd3ccd16.tar.lz
android_bootable_recovery-6480ce0f2a95e966192294eb066095acfd3ccd16.tar.xz
android_bootable_recovery-6480ce0f2a95e966192294eb066095acfd3ccd16.tar.zst
android_bootable_recovery-6480ce0f2a95e966192294eb066095acfd3ccd16.zip
Diffstat (limited to '')
-rw-r--r--gui/action.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index afa52d1f8..4d9c9df59 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -790,20 +790,10 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
if (simulate) {
simulate_progress_bar();
} else {
- int op_status;
- if (!PartitionManager.Mount_By_Path("/data", true) || !PartitionManager.Mount_By_Path("/system", true))
- operation_end(1, simulate);
-
- DataManager::SetValue("tw_terminal_command_thread", "./sbin/fix_permissions.sh");
- DataManager::SetValue("tw_terminal_state", 1);
- DataManager::SetValue("tw_background_thread_running", 1);
- op_status = pthread_create(&terminal_command, NULL, command_thread, NULL);
- if (op_status != 0) {
- LOGE("Error starting terminal command thread, %i.\n", op_status);
- DataManager::SetValue("tw_terminal_state", 0);
- DataManager::SetValue("tw_background_thread_running", 0);
- operation_end(1, simulate);
- }
+ int op_status = PartitionManager.Fix_Permissions();
+ if (op_status != 0)
+ op_status = 1; // failure
+ operation_end(op_status, simulate);
}
return 0;
}