shakalaca / MagiskOnEmulator

Install Magisk on Official Android Emulator
Apache License 2.0
672 stars 113 forks source link

Modules working #32

Open EP-u-NW opened 3 years ago

EP-u-NW commented 3 years ago

I got modules working on magisk 21.4 and 8.0.7 as in the README.

The problem on my installation according to the magisk log was, that magisk could not mount /sbin/.magisk/mirror/data/adb/modules. I looked this up and indeed, the acutall structure on my drive was /sbin/.magisk/mirror/data/cm-x86-14.1-r5/data/adb/modules. If you are not using the same LineageOS version as I do, instead of cm-x86-14.1-r5, there will be something like android-8.1-r4 in your real structure.

To fix this, open a terminal, enter root mode using su, and create a symbolic link from the real path to the path magisk expects. For me this was: ln -s /sbin/.magisk/mirror/data/cm-x86-14.1-r5/data/adb/modules /sbin/.magisk/mirror/data/adb/modules Keep in minde that in this command you have to use your real structure, which might be different from mine!

Then reboot.

EDIT: Maybe you have to create the adb folder in /sbin/.magisk/mirror/data/ first using mkdir -p /sbin/.magisk/mirror/data/adb befor creating the symbolic link.