diff --git a/gui/action.cpp b/gui/action.cpp
index a96e15ac..223d75e2 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -639,13 +639,19 @@ int GUIAction::copylog(std::string arg __unused)
operation_start("Copy Log");
if (!simulate)
{
- string dst;
+ string dst, curr_storage;
+ int copy_kernel_log = 0;
+
+ DataManager::GetValue("tw_include_kernel_log", copy_kernel_log);
PartitionManager.Mount_Current_Storage(true);
- dst = DataManager::GetCurrentStoragePath() + "/recovery.log";
+ curr_storage = DataManager::GetCurrentStoragePath();
+ dst = curr_storage + "/recovery.log";
TWFunc::copy_file("/tmp/recovery.log", dst.c_str(), 0755);
tw_set_default_metadata(dst.c_str());
+ if (copy_kernel_log)
+ TWFunc::copy_kernel_log(curr_storage);
sync();
- gui_msg(Msg("copy_log=Copied recovery log to {1}.")(DataManager::GetCurrentStoragePath()));
+ gui_msg(Msg("copy_log=Copied recovery log to {1}")(dst));
} else
simulate_progress_bar();
operation_end(0);
diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml
index 5c92fccd..3aed1981 100644
--- a/gui/theme/common/landscape.xml
+++ b/gui/theme/common/landscape.xml
@@ -3132,6 +3132,45 @@
+
+
+
+
+
+ {@copying_log=Copy Logs to SD Card}
+
+
+
+
+ {@include_kernel_log=Include Kernel Log}
+
+
+
+
+ {@copying_log=Copy Logs to SD Card}
+
+ tw_back=advanced
+ tw_action=copylog
+ tw_action_text1={@copying_log=Copy Logs to SD Card}
+ tw_complete_text1={@copy_log_complete=Logs Copy Completed}
+ action_page
+
+
+
+
+
+ main
+
+
+
+
+
+ advanced
+
+
+
+
+
@@ -3143,15 +3182,7 @@
+
+
+
+
+
+ {@copying_log=Copy Logs to SD Card}
+
+
+
+
+ {@include_kernel_log=Include Kernel Log}
+
+
+
+
+ {@copying_log=Copy Logs to SD Card}
+
+ tw_back=advanced
+ tw_action=copylog
+ tw_action_text1={@copying_log=Copy Logs to SD Card}
+ tw_complete_text1={@copy_log_complete=Logs Copy Completed}
+ action_page
+
+
+
+
+
+ main
+
+
+
+
+
+ advanced
+
+
+
+
+
@@ -3227,15 +3266,7 @@
+
+
+
+
+
+ {@include_kernel_log=Include Kernel Log}
+
+
+
+
+ {@swipe_confirm= Confirm}
+
+ tw_back=main3
+ tw_action=copylog
+ tw_action_text1={@copying_log=Copy Logs to SD Card}
+ tw_complete_text1={@copy_log_complete=Logs Copy Completed}
+ action_page
+
+
+
+
+
+ main2
+
+
+
+
+ main
+
+
+
@@ -261,15 +292,7 @@