How to install Magisk in AVD Emulator?

Search This thread

goddade

New member
Apr 10, 2019
4
0
1
I tried to root android in AVD Emulator.
Google APIs 27 x86 Revision 8
MagiskManager 7.1.1
My attempt:
1. Make a boot.img with kernel and ramdisk.img in system-images:
Code:
mkbootimg --kernel kernel-ranchu --ramdisk ramdisk.img -o boot.img
2. Patch boot.img in MagiskManager;
3. Separate ramdisk.img from patched boot.img:
Code:
split_boot patched_boot.img
4. Replace the ramdisk.img.
But this won't work, the MagiskManager show Magisk is not installed.
I need to do what else?