diff --git a/native/src/core/module.cpp b/native/src/core/module.cpp index 7a269336e..6967cf51f 100644 --- a/native/src/core/module.cpp +++ b/native/src/core/module.cpp @@ -614,7 +614,7 @@ void magic_mount() { system->collect_files(module, fd); close(fd); } - if (MAGISKTMP != "/sbin") { + if (MAGISKTMP != "/sbin" || !str_contains(getenv("PATH") ?: "", "/sbin")) { // Need to inject our binaries into /system/bin inject_magisk_bins(system); }