mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-15 22:13:11 +00:00
Remove magisklogd, use threads and BlockingQueue
This commit is contained in:
@@ -19,8 +19,6 @@ enum {
|
||||
LATE_START,
|
||||
BOOT_COMPLETE,
|
||||
MAGISKHIDE,
|
||||
HIDE_CONNECT,
|
||||
HANDSHAKE,
|
||||
SQLITE_CMD,
|
||||
};
|
||||
|
||||
@@ -37,12 +35,6 @@ enum {
|
||||
int connect_daemon();
|
||||
int switch_mnt_ns(int pid);
|
||||
|
||||
// log_monitor.c
|
||||
|
||||
extern bool log_daemon_started;
|
||||
int connect_log_daemon();
|
||||
bool start_log_daemon();
|
||||
|
||||
// socket.c
|
||||
|
||||
socklen_t setup_sockaddr(struct sockaddr_un *sun, const char *name);
|
||||
@@ -67,7 +59,6 @@ void write_key_token(int fd, const char *key, int tok);
|
||||
***************/
|
||||
|
||||
void unlock_blocks();
|
||||
void startup();
|
||||
void post_fs_data(int client);
|
||||
void late_start(int client);
|
||||
void boot_complete(int client);
|
||||
|
15
native/jni/include/logcat.h
Normal file
15
native/jni/include/logcat.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <BlockingQueue.h>
|
||||
|
||||
enum logcat_event {
|
||||
HIDE_EVENT,
|
||||
LOG_EVENT
|
||||
};
|
||||
|
||||
extern bool logcat_started;
|
||||
|
||||
BlockingQueue<std::string> &start_logging(logcat_event event);
|
||||
void stop_logging(logcat_event event);
|
||||
bool start_logcat();
|
Reference in New Issue
Block a user