[Miscellaneous Android Development] HemanthJabalpuri:
A new tool is available which can install Magisk in emulators. See Delta Magisk

​

This tool is depreciated. No support will be provided.

​

Magisk

Note:- This is a experimental feature. I made this guide only for SuperUser management in MEmu. If you want modules then don't expect it to work. Modules like MigiskHideProps are not working. So don't expect much.

As of now there is no working way for passing SafetyNet for playing games and apps that use it.​

For someone who want to install Magisk in emulators MEmu v7.3.2/LDPlayer v4.0.45 which is based on Android-x86, follow below guide.

What is this method?

-This method is used by exploits like mtk-su, qu1ckr00t without patching boot.img. I used this method because I don't know how to modify .vmdk as seen in here. Drawback of this method is that, many modules like MagiskHideProps are not working.

If you are using MEmu then follow https://xdaforums.com/t/guide-magis...-3-2-or-ldplayer-4-0-45.4222919/post-84574053

If you are using LDPlayer then follow https://xdaforums.com/t/guide-magis...-3-2-or-ldplayer-4-0-45.4222919/post-84580333

Reference:-

-https://xdaforums.com/t/amazing-temp-root-for-mediatek-armv8-2020-08-24.3922213/post-82081703

-https://github.com/grant-h/qu1ckr00t/blob/master/app/src/main/res/raw/magisk_install

Credits:-

@topjohnwu

@diplomatic

Enjoy!

SuperSU

If you want SuperSU instead of Magisk, then follow below guide

Enable Root mode

Download SuperSU zip from here

Download and install BusyBox from here

Download update-binary script from here. We can save this with CTRL + S if using browser in Windows OS

In Terminal Emulator run below commands

su
export PATH=/system/xbin:/system/bin
cd /sdcard/Download
sh update-binary 2 1 $PWD/SR5-SuperSU-v2.82-SR5-20171001224502.zip

Restart MEmu. Enjoy!

Credits:-

@Chainfire

Xposed

I have modified youling257's xposed at Github. Since it is not flashable zip by default, we have to do it our own. Made it x86_64 flashable zip like x86 one. Nothing is changed. Just added x86_64 files to x86 system folder after deleting its contents, changed `arch` to x64 and signed.

We can also install Xposed in MEmu/LDPlayer Android 7.1.2(25) by below

Download last version of Xposed from

x86 => https://dl-xda.xposed.info/framework/sdk25/x86/xposed-v89-sdk25-x86.zip

(Tip:- 32bit users can directly install Xposed from Xposed Installer app without this manual flashing)

x86_64 => https://xdaforums.com/attachments/xposed-v89-sdk25-x86_64-signed-zip.5197651/

copy it to /data/local/tmp

extract only META-INF/com/google/android/update-binary from the zip to /data/local/tmp

Run below commands in Terminal Emulator app with root.

su
cd /data/local/tmp
chmod 777 update-binary

if your arch is x86, then run below one

NO_UIPRINT=1 ./update-binary 2 1 xposed-v89-sdk25-x86.zip
rm update-binary xposed-v89-sdk25-x86.zip

if your arch is x86_64, then run below one

NO_UIPRINT=1 ./update-binary 2 1 xposed-v89-sdk25-x86_64-signed.zip
rm update-binary xposed-v89-sdk25-x86_64-signed.zip

Download Xposed apk from https://xdaforums.com/attachments/xposedinstaller_3-1-5-apk.4393082/ and install it and restart.

Reference:-

XposedInstaller/app/src/main/java/de/robv/android/xposed/installer/installation/FlashDirectly.java at 8f8f2d7072d1f7b02f237e4ac864e767b7aa6e4c · rovo89/XposedInstaller

Contribute to rovo89/XposedInstaller development by creating an account on GitHub.

github.com

Credits:-

@rovo89

@youling257

@Camlin3 for initial thread.

Enjoy!