Magisk/native/src/core/applet_stub.cpp

16 lines
290 B
C++
Raw Normal View History

2019-05-31 04:17:58 +00:00
#include <sys/stat.h>
2020-03-09 08:50:30 +00:00
#include <magisk.hpp>
2022-08-27 12:06:28 +00:00
#include <selinux.hpp>
2022-05-12 09:03:42 +00:00
#include <base.hpp>
2019-05-31 04:17:58 +00:00
int main(int argc, char *argv[]) {
2022-08-27 12:06:28 +00:00
if (argc < 1)
return 1;
enable_selinux();
cmdline_logging();
2022-08-27 12:06:28 +00:00
init_argv0(argc, argv);
umask(0);
return APPLET_STUB_MAIN(argc, argv);
2019-05-31 04:17:58 +00:00
}