From 6480ce0f2a95e966192294eb066095acfd3ccd16 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Wed, 10 Oct 2012 10:26:54 -0400 Subject: Finalize 2.3.0.0 Fix permission setting for other Add new fix permissions to GUI actions Update version number --- gui/action.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'gui') 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; } -- cgit v1.2.3