mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +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…
Reference in New Issue
Block a user