mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-28 03:37:38 +00:00
magiskboot: don't clobber /overlay with cpio restore anymore
- Magisk "dirty" flashes would remove the /overlay directory which might have been put there by a custom kernel or other mod - this is a leftover from when Magisk itself used /overlay for placing init.magisk.rc, so just remove this file specifically and leave the rest intact
This commit is contained in:
parent
19a521d2e9
commit
a48c4f9e05
@ -130,8 +130,8 @@ void magisk_cpio::restore() {
|
|||||||
} else {
|
} else {
|
||||||
mv(cur, &cur->first[8]);
|
mv(cur, &cur->first[8]);
|
||||||
}
|
}
|
||||||
} else if (str_starts(cur->first, "overlay") ||
|
} else if (str_starts(cur->first, "magisk") ||
|
||||||
str_starts(cur->first, "magisk") ||
|
cur->first == "overlay/init.magisk.rc" ||
|
||||||
cur->first == "sbin/magic_mask.sh" ||
|
cur->first == "sbin/magic_mask.sh" ||
|
||||||
cur->first == "init.magisk.rc") {
|
cur->first == "init.magisk.rc") {
|
||||||
// Some known stuff we can remove
|
// Some known stuff we can remove
|
||||||
|
Loading…
x
Reference in New Issue
Block a user