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:
topjohnwu
2017-04-06 06:18:39 +08:00
parent 3800b4b45c
commit ed052e0b0b
4 changed files with 0 additions and 107 deletions
-9
View File
@@ -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[]);