mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: debug_daemon: remove liblog deps
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
b298ccb96f
commit
3a9920df46
3 changed files with 0 additions and 11 deletions
|
|
@ -22,8 +22,5 @@ cc_binary {
|
|||
"Logcat.cpp",
|
||||
"Main.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
],
|
||||
init_rc: ["init.debug_daemon.rc"],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,19 +17,15 @@
|
|||
#define KMSG_PATH "/proc/kmsg"
|
||||
#define CHECK_KMSG "/data/debug/kmsg"
|
||||
#define WRITE_KMSG "/data/debug/logs/kmsg.txt"
|
||||
#define LOG_TAG "DebugKmsgDaemon"
|
||||
|
||||
#include <log/log.h>
|
||||
#include <fstream>
|
||||
|
||||
bool check_data_kmsg() {
|
||||
std::ifstream datafile(CHECK_KMSG);
|
||||
if (datafile.good()) {
|
||||
datafile.close();
|
||||
ALOGI("Found %s, logging...", CHECK_KMSG);
|
||||
return true;
|
||||
} else {
|
||||
ALOGW("Couldn't find %s, not logging...", CHECK_KMSG);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@
|
|||
|
||||
#define CHECK_LOGCAT "/data/debug/logcat"
|
||||
#define WRITE_LOGCAT "/data/debug/logs/logcat.txt"
|
||||
#define LOG_TAG "DebugLogcatDaemon"
|
||||
|
||||
#include <log/log.h>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
|
|
@ -26,10 +24,8 @@ bool check_data_logcat() {
|
|||
std::ifstream datafile(CHECK_LOGCAT);
|
||||
if (datafile.good()) {
|
||||
datafile.close();
|
||||
ALOGI("Found %s, logging...", CHECK_LOGCAT);
|
||||
return true;
|
||||
} else {
|
||||
ALOGW("Couldn't find %s, not logging...", CHECK_LOGCAT);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue