mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-02 01:37:38 +00:00
Fix error mounting /data partition
For devices come with two /data mount points, magisk will bind the one in tmpfs and failed to load modules since this partition is empty. Signed-off-by: Shaka Huang <shakalaca@gmail.com>
This commit is contained in:
parent
b0d6de783e
commit
415ff23be5
@ -374,7 +374,7 @@ static bool magisk_env() {
|
||||
mount_mirror(system, MS_RDONLY);
|
||||
} else if (str_contains(line, " /vendor ")) {
|
||||
mount_mirror(vendor, MS_RDONLY);
|
||||
} else if (str_contains(line, " /data ")) {
|
||||
} else if (str_contains(line, " /data ") && !str_contains(line, "tmpfs")) {
|
||||
mount_mirror(data, 0);
|
||||
} else if (SDK_INT >= 24 &&
|
||||
str_contains(line, " /proc ") && !str_contains(line, "hidepid=2")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user