Add missing flags and move debug logging logic to libutils

This commit is contained in:
topjohnwu
2018-10-28 04:25:31 -04:00
parent 8ec3086cdd
commit 2efc423cf8
6 changed files with 9 additions and 4 deletions

View File

@@ -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);