From 981ccabbef54e43c2f5e995adac0e65c4cdd45e1 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sat, 4 Mar 2023 02:19:51 +0800 Subject: [PATCH] No support for partitions w/o symlink in /system --- docs/guides.md | 2 +- native/src/core/module.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/guides.md b/docs/guides.md index d2ea10719..b13134a84 100644 --- a/docs/guides.md +++ b/docs/guides.md @@ -120,7 +120,7 @@ All files you want to replace/inject should be placed in this folder. This folde If you place a file named `.replace` in any of the folders, instead of merging its contents, that folder will directly replace the one in the real system. This can be very handy for swapping out an entire folder. -If you want to replace files in `/vendor`, `/vendor_dlkm`, `/product`, `/system_ext`, `/system_dlkm`, `/odm`, or `/odm_dlkm`, please place them under `system/vendor`, `system/product`, and `system/system_ext` respectively. Magisk will transparently handle whether these partitions are in a separate partition or not. +If you want to replace files in `/vendor`, `/product`, or `/system_ext`, please place them under `system/vendor`, `system/product`, and `system/system_ext` respectively. Magisk will transparently handle whether these partitions are in a separate partition or not. #### Zygisk diff --git a/native/src/core/module.cpp b/native/src/core/module.cpp index 5cdd4efd7..94dea6c8d 100644 --- a/native/src/core/module.cpp +++ b/native/src/core/module.cpp @@ -283,9 +283,7 @@ void load_modules() { if (!system->is_empty()) { // Handle special read-only partitions - for (const char *part : { "/vendor", "/vendor_dlkm","/product", - "/system_ext", "/system_dlkm", - "/odm", "/odm_dlkm" }) { + for (const char *part : { "/vendor", "/product", "/system_ext" }) { struct stat st{}; if (lstat(part, &st) == 0 && S_ISDIR(st.st_mode)) { if (auto old = system->extract(part + 1)) {