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

View File

@ -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);