From 48d417f9af1eec043772d19f2d5a0b7f331c938b Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 22 Mar 2020 20:59:28 -0700 Subject: [PATCH] Add symlink for backwards compatibility The native code has to run with an old verison of Magisk Manager, add this back so things will work properly. --- native/jni/core/bootstages.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/jni/core/bootstages.cpp b/native/jni/core/bootstages.cpp index 76d974e91..9faec4038 100644 --- a/native/jni/core/bootstages.cpp +++ b/native/jni/core/bootstages.cpp @@ -351,6 +351,9 @@ static bool magisk_env() { xmkdir(BBPATH, 0755); xmkdir(MODULEMNT, 0755); + // Backwards compatibility for old Magisk Manager + xsymlink("./modules", MAGISKTMP "/img"); + // Directories in /data/adb xmkdir(DATABIN, 0755); xmkdir(MODULEROOT, 0755);