summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2016-07-30 03:18:13 +0200
committerbigbiff bigbiff <bigbiff@teamw.in>2016-12-02 01:00:02 +0100
commitbad332a3d175687a732cc6e94c34bd38bdef29b8 (patch)
tree67d82429e136f29edbb19e5ae3cb7f0c51c67722 /twrp-functions.cpp
parentImprove backup & wipe exclusion handling (diff)
downloadandroid_bootable_recovery-bad332a3d175687a732cc6e94c34bd38bdef29b8.tar
android_bootable_recovery-bad332a3d175687a732cc6e94c34bd38bdef29b8.tar.gz
android_bootable_recovery-bad332a3d175687a732cc6e94c34bd38bdef29b8.tar.bz2
android_bootable_recovery-bad332a3d175687a732cc6e94c34bd38bdef29b8.tar.lz
android_bootable_recovery-bad332a3d175687a732cc6e94c34bd38bdef29b8.tar.xz
android_bootable_recovery-bad332a3d175687a732cc6e94c34bd38bdef29b8.tar.zst
android_bootable_recovery-bad332a3d175687a732cc6e94c34bd38bdef29b8.zip
Diffstat (limited to '')
-rw-r--r--twrp-functions.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index cbf473016..72674ae69 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -1070,4 +1070,14 @@ unsigned long long TWFunc::IOCTL_Get_Block_Size(const char* block_device) {
return 0;
}
+void TWFunc::copy_kernel_log(string curr_storage) {
+ std::string dmesgDst = curr_storage + "/dmesg.log";
+ std::string dmesgCmd = "/sbin/dmesg";
+
+ std::string result;
+ Exec_Cmd(dmesgCmd, result);
+ write_file(dmesgDst, result);
+ gui_msg(Msg("copy_kernel_log=Copied kernel log to {1}")(dmesgDst));
+ tw_set_default_metadata(dmesgDst.c_str());
+}
#endif // ndef BUILD_TWRPTAR_MAIN