mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: debug_daemon: fix duplicate symbols
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
7db5c03bac
commit
941eae5af8
2 changed files with 4 additions and 4 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
bool check_data() {
|
bool check_data_kmsg() {
|
||||||
std::ifstream datafile(CHECK_KMSG);
|
std::ifstream datafile(CHECK_KMSG);
|
||||||
if (datafile.good()) {
|
if (datafile.good()) {
|
||||||
datafile.close();
|
datafile.close();
|
||||||
|
|
@ -35,7 +35,7 @@ bool check_data() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void copy_kmsg() {
|
void copy_kmsg() {
|
||||||
if (check_data()) {
|
if (check_data_kmsg()) {
|
||||||
std::ifstream readfile(KMSG_PATH);
|
std::ifstream readfile(KMSG_PATH);
|
||||||
std::ofstream writefile(WRITE_KMSG);
|
std::ofstream writefile(WRITE_KMSG);
|
||||||
writefile << readfile.rdbuf();
|
writefile << readfile.rdbuf();
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
bool check_data() {
|
bool check_data_logcat() {
|
||||||
std::ifstream datafile(CHECK_LOGCAT);
|
std::ifstream datafile(CHECK_LOGCAT);
|
||||||
if (datafile.good()) {
|
if (datafile.good()) {
|
||||||
datafile.close();
|
datafile.close();
|
||||||
|
|
@ -35,7 +35,7 @@ bool check_data() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void copy_logcat() {
|
void copy_logcat() {
|
||||||
if (check_data()) {
|
if (check_data_logcat()) {
|
||||||
system("/system/bin/logcat -f /data/debug/logs/logcat.txt");
|
system("/system/bin/logcat -f /data/debug/logs/logcat.txt");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue