summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-01-18 18:00:54 +0100
committerDees_Troy <dees_troy@teamw.in>2013-01-18 18:07:31 +0100
commit4bc09ae4361b6fc1f1a5044ea102e3fe6f3ce540 (patch)
tree222331d15467e2167212fee37ce1eecf3107986f /gui/action.cpp
parentSave version to cache (diff)
downloadandroid_bootable_recovery-4bc09ae4361b6fc1f1a5044ea102e3fe6f3ce540.tar
android_bootable_recovery-4bc09ae4361b6fc1f1a5044ea102e3fe6f3ce540.tar.gz
android_bootable_recovery-4bc09ae4361b6fc1f1a5044ea102e3fe6f3ce540.tar.bz2
android_bootable_recovery-4bc09ae4361b6fc1f1a5044ea102e3fe6f3ce540.tar.lz
android_bootable_recovery-4bc09ae4361b6fc1f1a5044ea102e3fe6f3ce540.tar.xz
android_bootable_recovery-4bc09ae4361b6fc1f1a5044ea102e3fe6f3ce540.tar.zst
android_bootable_recovery-4bc09ae4361b6fc1f1a5044ea102e3fe6f3ce540.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 1f3647d16..14ef71609 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -253,9 +253,8 @@ int GUIAction::doActions()
LOGE("Error setting pthread_attr_setstacksize\n");
return -1;
}
- LOGI("creating thread\n");
+ LOGI("Creating thread\n");
int ret = pthread_create(&t, &tattr, thread_start, this);
- LOGI("after thread creation\n");
if (ret) {
LOGE("Unable to create more threads for actions... continuing in same thread! %i\n", ret);
thread_start(this);
@@ -1071,6 +1070,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
string result, Sideload_File;
if (!PartitionManager.Mount_Current_Storage(true)) {
+ DataManager::SetValue("tw_page_done", "1"); // For OpenRecoveryScript support
operation_end(1, simulate);
return 0;
}
@@ -1101,6 +1101,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
}
}
}
+ DataManager::SetValue("tw_page_done", "1"); // For OpenRecoveryScript support
operation_end(ret, simulate);
return 0;
}
@@ -1113,6 +1114,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
DataManager::GetValue("tw_child_pid", child_pid);
ui_print("Cancelling ADB sideload...\n");
kill(child_pid, SIGTERM);
+ DataManager::SetValue("tw_page_done", "1"); // For OpenRecoveryScript support
return 0;
}
}