Adjust logging in magiskpolicy

This commit is contained in:
topjohnwu
2018-11-08 06:43:11 -05:00
parent 07718b994a
commit d3947d2cfa
3 changed files with 47 additions and 74 deletions

View File

@@ -333,10 +333,6 @@ int main(int argc, char *argv[]) {
return dump_magiskrc(argv[3], 0755);
}
#ifdef MAGISK_DEBUG
log_cb.d = vprintf;
#endif
// Prevent file descriptor confusion
mknod("/null", S_IFCHR | 0666, makedev(1, 3));
int null = open("/null", O_RDWR | O_CLOEXEC);