copy log: add option to include logcat
Change-Id: I9689df4560d5209f385fbbc3e233859754b3ebbd
diff --git a/gui/action.cpp b/gui/action.cpp
index c63337c..464ed27 100755
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -676,8 +676,10 @@
{
string dst, curr_storage;
int copy_kernel_log = 0;
+ int copy_logcat = 1;
DataManager::GetValue("tw_include_kernel_log", copy_kernel_log);
+ DataManager::GetValue("tw_include_logcat", copy_logcat);
PartitionManager.Mount_Current_Storage(true);
curr_storage = DataManager::GetCurrentStoragePath();
dst = curr_storage + "/recovery.log";
@@ -685,6 +687,8 @@
tw_set_default_metadata(dst.c_str());
if (copy_kernel_log)
TWFunc::copy_kernel_log(curr_storage);
+ if (copy_logcat)
+ TWFunc::copy_logcat(curr_storage);
sync();
gui_msg(Msg("copy_log=Copied recovery log to {1}")(dst));
} else