Remove magisklogd, use threads and BlockingQueue

This commit is contained in:
topjohnwu
2019-02-10 01:05:19 -05:00
parent b3242322fd
commit 3a422c3f15
11 changed files with 260 additions and 270 deletions

View File

@@ -8,12 +8,13 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "magisk.h"
#include "utils.h"
#include "resetprop.h"
#include <magisk.h>
#include <utils.h>
#include <resetprop.h>
#include <db.h>
#include <logcat.h>
#include "magiskhide.h"
#include "daemon.h"
#include "db.h"
using namespace std;
@@ -282,7 +283,7 @@ int launch_magiskhide(int client) {
if (hide_enabled)
return HIDE_IS_ENABLED;
if (!log_daemon_started)
if (!logcat_started)
return LOGCAT_DISABLED;
hide_enabled = true;
@@ -327,7 +328,7 @@ int stop_magiskhide() {
}
void auto_start_magiskhide() {
if (!start_log_daemon())
if (!start_logcat())
return;
db_settings dbs;
get_db_settings(&dbs, HIDE_CONFIG);