mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-28 10:37:53 +00:00
Inject binaries into /system if sbin not accessible
Some Android 11+ devices have the /sbin partition but not accessible by the global shell (`PATH` doesn't contain `/sbin`). Not only custom ROMs but also some stock ROMs have the same behavior so I believe it is something we need to deal with. Fix #6427, fix #4309, fix #5728, fix #3593
This commit is contained in:
parent
ed37ddd570
commit
33f5154269
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user