1
0
mirror of https://github.com/topjohnwu/Magisk.git synced 2025-04-22 17:51:32 +00:00

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.
This commit is contained in:
topjohnwu 2020-03-22 20:59:28 -07:00
parent df4db6bf6b
commit 48d417f9af

@ -351,6 +351,9 @@ static bool magisk_env() {
xmkdir(BBPATH, 0755); xmkdir(BBPATH, 0755);
xmkdir(MODULEMNT, 0755); xmkdir(MODULEMNT, 0755);
// Backwards compatibility for old Magisk Manager
xsymlink("./modules", MAGISKTMP "/img");
// Directories in /data/adb // Directories in /data/adb
xmkdir(DATABIN, 0755); xmkdir(DATABIN, 0755);
xmkdir(MODULEROOT, 0755); xmkdir(MODULEROOT, 0755);