mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 11:31:53 +00:00
Add missing flags and move debug logging logic to libutils
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#include "utils.h"
|
||||
#include "daemon.h"
|
||||
#include "selinux.h"
|
||||
#include "flags.h"
|
||||
|
||||
int setup_done = 0;
|
||||
int seperate_vendor = 0;
|
||||
@@ -103,9 +102,6 @@ static void *request_handler(void *args) {
|
||||
|
||||
static void main_daemon() {
|
||||
android_logging();
|
||||
#ifndef MAGISK_DEBUG
|
||||
log_cb.d = nop_log;
|
||||
#endif
|
||||
setsid();
|
||||
setcon("u:r:"SEPOL_PROC_DOMAIN":s0");
|
||||
int fd = xopen("/dev/null", O_RDWR | O_CLOEXEC);
|
||||
|
||||
Reference in New Issue
Block a user