Implement GetProcessFlags for KernelSU

This commit is contained in:
Nullptr
2023-02-19 13:29:36 +08:00
parent 57d3d8a0ba
commit b99d042002
9 changed files with 96 additions and 13 deletions
-7
View File
@@ -26,10 +26,3 @@ void entry(void *handle) {
LOGD("Load injector successfully");
hook_functions();
}
// The following code runs in zygote/app process
static inline bool should_load_modules(uint32_t flags) {
return (flags & UNMOUNT_MASK) != UNMOUNT_MASK &&
(flags & PROCESS_IS_MAGISK_APP) != PROCESS_IS_MAGISK_APP;
}