mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-05 09:18:35 -08:00
Fix building individual applet
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <magisk.hpp>
|
||||
#include <selinux.hpp>
|
||||
#include <base.hpp>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
umask(0);
|
||||
if (argc < 1)
|
||||
return 1;
|
||||
enable_selinux();
|
||||
cmdline_logging();
|
||||
init_argv0(argc, argv);
|
||||
umask(0);
|
||||
return APPLET_STUB_MAIN(argc, argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user