You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Compile with unified binary only
The su binary itself cannot do much, since it still requires a daemon to work The daemon code will soon be moved to a higher level (out of MagiskSU), so there is no point in creating a separate binary
This commit is contained in:
@@ -18,12 +18,7 @@
|
||||
#ifndef SU_h
|
||||
#define SU_h 1
|
||||
|
||||
#ifdef INDEP_BINARY
|
||||
#include "indep_bin.h"
|
||||
#else
|
||||
#include "magisk.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef AID_SHELL
|
||||
#define AID_SHELL (get_shell_uid())
|
||||
@@ -167,10 +162,6 @@ static inline char *get_command(const struct su_request *to)
|
||||
return DEFAULT_SHELL;
|
||||
}
|
||||
|
||||
void exec_loge(const char* fmt, ...);
|
||||
void exec_logw(const char* fmt, ...);
|
||||
void exec_logd(const char* fmt, ...);
|
||||
|
||||
int run_daemon();
|
||||
int connect_daemon(int argc, char *argv[], int ppid);
|
||||
int su_main(int argc, char *argv[]);
|
||||
|
||||
Reference in New Issue
Block a user