Remove unexpected /sbin/overlay.d

This commit is contained in:
vvb2060 2023-01-25 17:54:13 +08:00 committed by John Wu
parent 9656cf2f86
commit 7a9e6d2ad2

View File

@ -277,11 +277,9 @@ void MagiskInit::patch_rw_root() {
link_path("/sbin", "/root");
// Handle overlays
if (access("/overlay.d", F_OK) == 0) {
LOGD("Merge overlay.d\n");
load_overlay_rc("/overlay.d");
mv_path("/overlay.d", "/");
}
rm_rf("/data/overlay.d");
rm_rf("/.backup");
// Patch init.rc