yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] MeLouise32:
The method worked to get Magisk Hide and Xposed modules working, but I tried with Pokemon Go and i can't get through login screen. It says "Unable To Authenticate"

Edit: Apparently it has something to do with the fact that Google Play services is newer than version 12.6.85
[Miscellaneous Android Development] UltraGOD:
Hi :)

Has anyone meanwhile managed to get PoGo to work on the LD set-up?

I have the same issue as above - "Unable To Authenticate".

Using Google account to log in.

Many thanks in advance!
[Miscellaneous Android Development] evildog1:
Nice tutorial. Been looking for this long time \o/
[Miscellaneous Android Development] evildog1:
How to access modules? the buttons below doesn't appear

View attachment 5260611
[Miscellaneous Android Development] evildog1:
Nevermind, i got it work. Buttons are shown now

You must have clean instance, Open LDMultiPlayer4 and create new instance then the script will work

View attachment 5260625

Also make a backup of the instance, so you can restore it in case you brick your instance
[Miscellaneous Android Development] HemanthJabalpuri:
Sometimes root is not activated for some reason. See Installed info of Magisk section.

That is the reason modules are not shown.

Restarting LDPlayer may fix this.

Thanks
[Miscellaneous Android Development] evildog1:
Already got it work hehe

Btw, the boot.img of LDPlayer can be found in \system.vmdk\0.img\ if i'm right

View attachment 5260677

And Memu, *disk1.vmdk\2.img\. Only if you installed the instance

View attachment 5260679
[Miscellaneous Android Development] HemanthJabalpuri:
Great find!

Do you know how to replace the ramdisk file in it?

We can patch it with magisk if we can replace it.

Thanks
[Miscellaneous Android Development] evildog1:
Sadly 7-zip doesn't support modifying it directly, but it can read ramdisk perfectly fine

View attachment 5260853

You must mount that system.vmdk as a secondary disk on your Linux VM. Virtualbox and VMware support mounting .vmdk, so you can access vmdk easly in VM.

I took out ramdisk file using 7-zip, renamed to ramdisk.img and ran this script https://github.com/shakalaca/MagiskOnEmulator

But bad news, on my linux VM it won't let me replace or delete that ramdisk from vmdk, even i gave it permission 777. idk why but I can delete contents in grub folder

View attachment 5260859

i'm not really Linux expert, I just have a bit knowledge 😅

I used this way to root Bluestacks 2 with SuperSU back then before they decided to use snapshots
[Miscellaneous Android Development] HemanthJabalpuri:
Great!

Try prefixing sudo to rm ramdisk.

Thanks
[Miscellaneous Android Development] evildog1:
That works, but it doesn't have enough space to put modified ramdisk into that disk. The disk size is pretty small, 9 MB

View attachment 5263251
[Miscellaneous Android Development] jamiljsouza28:
Hello good afternoon..

I would like to know if it was successful, and if it did, I could try it for days and I am waiting for you to pass some cool solution for the player emulators, such as memu, ldplayer and nox .. I await a response!
[Miscellaneous Android Development] HelpMeAgain:
when i'm trying to run this sh /sdcard/Download/run.sh i'm getting an error cant execute permission denied
[Miscellaneous Android Development] HelpMeAgain:
when i try this sh /sdcard/Download/run.sh nothing happens.
[Miscellaneous Android Development] evildog1:
I'm really stuck lol and i don't have much knowledge in linux. I hope somebody who is expert can help me with this
[Miscellaneous Android Development] HemanthJabalpuri:
MEmu or LDPlayer?
[Miscellaneous Android Development] jamiljsouza28:
My friend, don't even mention it, I have been in this for 3 weeks, so in Memu Player I managed, but restart has to execute the script again and all the modules are not working, the business would be to inject it at boot, but I have already run it the whole internet and I can't find a way to do that, and I also lack knowledge ... my hope is that our friend can do it and pass it on!
[Miscellaneous Android Development] jamiljsouza28:
if you have how to help I thank you very much I need to do magisk in these emulators, to be able to be any one but it restarting together with the system already helps because there the modules work right ...

if you want you can call me on the telegram, my english is not very good use the translator but we try to communicate!

Telegram: Contact @Stranger20sp

t.me
[Miscellaneous Android Development] HemanthJabalpuri:
Can you please share what you have done.

Thanks
[Miscellaneous Android Development] dong anh:
a
[Miscellaneous Android Development] ZTy#Noob:
Hmmm... Thanks a lot for helping me install Magisk, but how can I install some Magisk Modules? It just show that Installation failed... [LD Player]

Is it meaning that I can not install Magisk Modules in Magisk Manager? Then how I install them? Wish it be solved.

View attachment 5275757

By the way, I can check the messages only in weekends (The poor student cries), so if somebody can help me, I may not thank him or her at once.
[Miscellaneous Android Development] HemanthJabalpuri:
Is 'Required Additional Setup' is done? Are you connected to Internet? Only few modules will work.

Thanks
[Miscellaneous Android Development] Schabik:
I have the same on MuMu player...

Doesn't matter if I try to log in by Google login or FB Login or PTC Login...

Anyone can Help me?
[Miscellaneous Android Development] crazyrootless:
If you want to play pogo using an emulator just use pgsharp and that's all. There's no need to use magisk, root the device nor use any smali patch and so on.
[Miscellaneous Android Development] lApZil:
who can help install imagick on LDPlayer?

I do not go to the sd card folder
[Miscellaneous Android Development] kangsman:
Place Magisk.apk as /sdcard/init.d/bin/magisk.apk <<< can you Help to EXplain where i can find this folder ?

please help , make a Tutorial .... THanK You Very Much
[Miscellaneous Android Development] HemanthJabalpuri:
Ah, /sdcard means Internal Storage.

We have to create a folder named 'init.d'(without quotes) in Internal Storage. Then create a folder named 'bin'(without quotes) in that 'init.d' folder.

Now place that Magisk-vblah.apk to the 'bin' folder.

Rename that to magisk.apk

Thanks
[Miscellaneous Android Development] Jmi Borneo:
hello i followed all the steps but I'm getting permission denied. I have root turned on while trying to install.
[Miscellaneous Android Development] Vidz.CroiX:
@HemanthJabalpuri @chienthanbot2 confused how to use Xposed + HideCoreModule + Xprivacylua

can you guys teach me?

are these 3 (Xposed + HideCoreModule + Xprivacylua) are module for magisk?

Thanks
[Miscellaneous Android Development] Peter1212:
Magisk modules are not working currently properly this way, hence no they aren't modules for magisk. Also, Xposed is actually a module while the others are modules for Xposed. You can try the xposed method in the first post, or if you're on the 32-bit installation of android you can use the xposed installer app directly perhaps.
[Miscellaneous Android Development] tienchanhvan:
chienthanbot2 cho mình xin bản ldplayer cài đặt sẵn magicsk voi fb của mình https://www.facebook.com/42342342dsdfsdfsd/​
[Miscellaneous Android Development] immns:
i've successfully patch kernel and ramdisk inside MEMU disk1 vmdk (contains bootloader, system, and some unknown partition), I'm using MAGISKv23 and I can confirm MagiskHideProps also not working because MEMU bootloader always altering device fingerprint (it will be altered based on memu setting). I'm using VMWARE to expand vmdk size to 2,5GB (there's misaligned partition size, at least you expand it to 2,1GB) then mounted in Linux Mint to resize bootloader partition. sorry uploading patched vmdk will takes time but I've attached unpacked ramdisk file bellow. please take a look if you know which file is altering device fingerprint

UPDATE

selinux on memu is disabled/not-implemented. in order to pass safetynet, selinux must set to enforcing or faked by magisk (pseudo-enforcing). with permissive selinux, we can easily change to enforcing. but with disabled selinux or somehow not implemented, we can't do much (I don't really know anything). unless memu decided to release it's kernel source code (which very unlikely) and then we can build our own kernel.
[Miscellaneous Android Development] HemanthJabalpuri:
Thanks for sharing your achievement.

I am not experienced in this, so I can't help you much. If you can share detailed steps of how you done all this will help someone.

Also @Peter1212 is experienced guy in these things. He may help if he is free.

Thanks
[Miscellaneous Android Development] immns:
patch ramdisk and kernel

1. extract kernel and ramdisk from disk1.vmdk (you can use 7zip)

2. use mkbootimg to make boot.img

mkbootimg --ramdisk ramdisk --kernel kernel -o boot.img

3. copy boot.img to MemuDownload

4. open MEmu install magisk.apk, then patch boot.img

5. close MEmu copy pacthed.img then extract it with Bootloader (un/re)pack tool

6. rename the one named ****ramdisk.cpio.gz to ramdisk (without extention)

7. rename the one named ***zImage** to kernel (also without extention)

8. now patched ramdisk and kernel is ready

resizing bootloader partition

1. install and configure vmware+linux mint(or any linux)

2. mount disk1.vmdk as second drive in linux vm when prompted select keep format

3. expand disk1.vmdk size to 2.5GB in vm setting

(it's easier than editing partition table)

4. duplicate disk1.vmdk file in windows file explorer (disk1-copy.vmdk)

5. mount disk1-copy.vmdk as 3rd drive in linux vm (keep format)

6. boot up Linux VM and install gparted

7. open gparted select /dev/sdb (it's 2nd drive)

8. delete sdb6(ext4 system), sdb5(unknown), and sdb4(extended) partition hit apply

9. resize sdb3(this is bootloader partition) to 16MB hit apply

10. select unallocated space, create extended partition hit apply

11. now select another drive /dev/sdc/ and copy sdc5(unknown) paste to /dev/sdb/(2nd Drive)

12. copy /dev/sdc6(system) paste to /dev/sdb/ then hit apply

13. you may or may not resize system partition, there's no difference i think

14. exit gparted. now you can replace ramdisk and kernel file

(you might have to use root permission to replace those files)

i know it's all "manual labor" maybe someone could help make script to automize it all

emu works perfectly and magisk installed properly. i don't think there's any file check, at least on MEmu. I tried same method on Nox Player, the emu itself works as intended but magisk doesn't. on Nox player, magisk doesn't detect ramdisk partition. I'll try LDplayer.
[Miscellaneous Android Development] Peter1212:
@immns Let me try this method. I did the patching through a script and forgot all about that I had the kernel with me this time to make the boot.img

Since I had started it all through bluestacks I was using magisk on emulator scripts to do all that work. Thanks for giving me the reminder that boot.img can actually be created normally, this would totally work on Nox/Memu/LDplayer hah. Plus Nox even got a android 9.0 one going to test on that.

EDIT: Well, I am unable to get a patched boot.img

For mkbootimg I used this https://xdaforums.com/showthread.php?t=2073775

Got my kernel and ramdisk out, ran the command

mkbootimg --ramdisk ramdisk --kernel kernel -o boot.img

Got the boot.img and if I unpack it, I can get the ramdisk and kernel files alright

When I use this boot.img within magisk I get Installation Failed right after it copies the file to cache. I'll attach my kernel ramdisk and boot.img

Points to note:

1) Used windows port of mkbootimg from the specified post above

2) Using LDplayer with Android 7.1.2 64 bit (I wonder if this works on it, it should though magisk is universal)

View attachment 5335549

EDIT: With Hemant's help I got a patched boot.img for magiskv23. Replaced them and well, emu didn't boot. It just stuck at 50%. I wonder if there's any issues with my ramdisk replacement. For instance, you can replace the ramdisk via android emu itself.

For LDplayer, the ramdisk is stored in 0.img which translates to /dev/sda1

adb -e shell "mkdir /data/local/tmp/root"

adb -e shell "su -c 'mount /dev/block/sda1 /data/local/tmp/root'"

adb -e shell "su -c 'umount /data/local/tmp/root'"

Simply mounting that partition I could replace the kernel and ramdisk. Gave them the same perms as before and the emu is stuck still.
[Miscellaneous Android Development] Peter1212:
Confirmed Memu (Android 32 & Android 64) both work after using the patched ramdisk.

LDplayer & Nox: Magisk manager couldn't even patch the boot.img for some reason.

So I tried patching the boot.img from LDplayer and Nox in Memu. (Note: patch 32 bit boot.img files in 32 bit android only, same for 64 bits. Else it might copy wrong init and that'll eventually fail)

Images files patch successfully within Memu but I was unsure whether they would work or not as both LDplayer and Nox have their own issues.

For NOX: Nox uses snapshotting for both the system and data disks. Even if the ramdisk is swapped, it does install the magisk app but fails to see magisk on boot. My theory is that it loads the main disk first, boots and then loads the snapshot before it finishes booting.

You can see this if you swap ramdisks within android instead of linux. I mentioned this in my above post.

LDplayer: Not sure, it just fails to boot.

IF anyone's willing to test on Bluestacks let me know, I uninstalled it earlier and not up to installing it back again. Although for Bluestacks the procedure is the easiest of them all.
[Miscellaneous Android Development] sbcool211:
Bravo thanks a lot bro i installed exposed on 64 bit old player works perfectly :D:D
[Miscellaneous Android Development] mpguchii:
How i can pass the safetynet in ldplayer after magisk+xposed?
[Miscellaneous Android Development] rushi12565:
I don't think u can pass safetynet as of now, remember someone working on it..... But yea magisk+xposed never work(atleast from mh experience), the way j think which would actually be possible would be making the Magisk hide modules work.... Which as of now won't work
[Miscellaneous Android Development] Apih95:
OP has been updated with latest guide written by another user ?
[Miscellaneous Android Development] HemanthJabalpuri:
No, it's me. It is same as before but with big warnings :).
[Miscellaneous Android Development] bayu elf sabayonz:
This is fascinating topic, thanks everyone for the sharing,, installed the magisk but non of the emu i use got the magisk hide working, hopefully there will be good progress for this one.
[Miscellaneous Android Development] Vision:
This work perfect until now. Unfortunately bluestack made some change with selinux and when run this commant say selinux is not permissive than all, can you update this? i try and magisk 23 not working
[Miscellaneous Android Development] lieuliau:
Hi, is Edxposed module work with Magisk on LDPlayer?
[Miscellaneous Android Development] CalaxMinD:
It used to work before. Maybe Bluestack has updated some few things in the latest version. Could you update it? Your work is amazing
[Miscellaneous Android Development] Peter1212:
OP is still @HemanthJabalpuri I did those tests while I was in the need for a emu as I didn't have a working phone at that time. I'll take a look at it and update but might not be for a little bit while, a week or so perhaps.

Safetynet can't be passed unfortunately. For that you not just need magisk modules to be working for one, but riru too probably. Unless someone can make a safetynet patch for android nougat exclusively.

Xposed can be installed both on x86 and x86_64 versions, see OP. Hemanth has described it pretty clearly, but alas, installing xposed that way would probably kill any chance to bypass safetynet.

No magiskhide isn't working. And no, Edxposed module can't be installed. Correct me if I am wrong, but Edxposed, Riru and LSposed are Oreo and above, no chance for nougat unless someone eclusively works on it for emulators only.
[Miscellaneous Android Development] El Moffat:
What is the point of Magisk if the module cannot be installed properly? And even Magisk Hide doesn't do its job, again "properly."

Alas, the magisk module CAN'T be uninstalled. it just still sit there, greyed out. nothing is changed. The only interesting method is the one here made by @immns, I hope this one will do its job on memu.

Tested @immns's method on Memu v7.6.3 32bit, it's working and it do its job very well with these modules: Energized Protection, Busybox for Android NDK, Etc and Thank you @HemanthJabalpuri , @immns and @Peter1212.
[Miscellaneous Android Development] VD171:
Magisk Hide will be permanentely removed from Magisk, my friend.

This is the point.
[Miscellaneous Android Development] immns:
It's difficult. I don't really know which emulator has proper selinux implementations which i guess it's mandatory for Android to certify itself through safetynet or anything else. at least permissive selinux will do.

There's a hope. The new zygisk could avoid many security measurements in regural Android phone. as per now, there's project to implement zygisk inside WSA on windows 11. Though, still no safetynet bypass module works atm.
[Miscellaneous Android Development] VD171:
First, we need an alternative magisk hide for zygisk.

We hope someone begin this building.
[Miscellaneous Android Development] immns:
Zygisk itself is successor of magiskhide. You can select which app you would hide inside denylist setting. It just hide root and magisk detection though. You can try it on canary or alpha build. I don't really know whether it works on emu or non emu android device only.
[Miscellaneous Android Development] VD171:
It does NOT hide nothing.

It just makes zygisk to be loaded or not.

We really need a fork for magisk hide.
[Miscellaneous Android Development] VD171:
Zygisk has a denylist that revokes almost all changes made by Magisk (Note it's not doing the same thing as Magisk Hide, and it CANNOT view as an alternative to Magisk Hide).
Revocation includes Zygisk modules. That means apps in the denylist will NOT load Zygisk modules.

From LSPosed developers on their telegram group:

LSPosed

Speaking of Zygisk and Riru, there are some clarifications. I hope users can judge themselves for the choice. 1. Zygisk and Riru are doing the same thing: inject into Zygote. 2. Zygisk and Riru are not complete alternatives to each other. 3. Once Zygisk is enabled from Magisk, Riru and its...

t.me
[Miscellaneous Android Development] immns:
of course not. Currently I'm using zygisk only for avoiding magisk detection. before zygisk is a thing, i use taichi in order to hide magisk from banking apps. just magiskhide alone isn't sufficient. Also, I'm not fan of riru and lsposed. It doesn't run well on my phone.
[Miscellaneous Android Development] FinleyCarvert:
could please make a video tutorial please ?
[Miscellaneous Android Development] CosmicArrow:
Hello,

I don't understand the tutorial from Peter1212 with Bluestack.

- How do i make the bootstat.rc file?

- How do i place the bootstat.rc file and how to enter in that destination?

- How do i go to /sdcard/init.d/bin/ ?

Explain also for new users not only for people who already know also a video tutorial will help.
[Miscellaneous Android Development] chaoscreater:
Does anyone know how to root Bluestacks X (cloud instance)? Seems like we could potentially use Magisk to patch boot.img and it seems like Bluestacks X is running Nougat x64. I'm thinking we can take normal Bluestacks and somehow convert the .VDI file into .img. Just need to extract boot.img somehow and then upload it somewhere, then download it from within Bluestacks X and patch using Magisk?
[Miscellaneous Android Development] huskydg:
Integrate Magisk root into Nox Player and other emulators

Features

- Bring Magisk / Zygisk to Nox

- MagiskHide / MagiskDenyList for hiding root

- Magisk / Zygisk modules work properly!

More information click here
[Miscellaneous Android Development] huskydg:
Magisk and modules work on MEmu Emulator

If you want Magisk modules then use my script, that will properly set up Magisk environment

GitHub - HuskyDG/MagiskOnEmu: This repo is no longer used

This repo is no longer used. Contribute to HuskyDG/MagiskOnEmu development by creating an account on GitHub.

github.com

View attachment 5492541View attachment 5492543View attachment 5492545View attachment 5492547
[Miscellaneous Android Development] huskydg:
The simplest way is to install Magisk directly into /system but still make Magisk able to hide root access
[Miscellaneous Android Development] chaoscreater:
And how do you propose we do that without root in the first place? Magisk can't even do a Direct Install in an emulator.

As far as I know, emulators do not have a recovery partition and there isn't a boot partition either. It's just using ramdisk and zkernel. Latest version of Bluestacks v5 (NXT) has built in root, which you can toggle in the Bluestacks .conf file. Alternatively, you can use BSTweaker to enable root. However, Bluestacks X (cloud version) can't be patched using BSTweaker and you can't modify the .conf file, since you can't access the underlying host of the emulator...
[Miscellaneous Android Development] huskydg:
I have make a script to install Magisk, you can see here, only few of emulator have all Magisk features work properly, recommended NoxPlayer for Android 9 or MEmu for Android 7.

Check my video:

My repo:

GitHub - HuskyDG/MagiskOnEmu: This repo is no longer used

This repo is no longer used. Contribute to HuskyDG/MagiskOnEmu development by creating an account on GitHub.

github.com

And this:

Emulator that Magisk can work properly · HuskyDG/MagiskOnEmu Wiki

This repo is no longer used. Contribute to HuskyDG/MagiskOnEmu development by creating an account on GitHub.

github.com
[Miscellaneous Android Development] chaoscreater:
OK thanks, but my question was about rooting in Bluestacks X.

I'm aware of other emulators, but those are all emulators that you run locally on your system. Bluestacks X is a cloud-based emulator that is currently in beta. Rather than running apps or games in an emulator on my machine, I can just run the apps/games in my browser via Bluestacks X. I don't have to worry about my machine having low CPU or memory specs for running Bluestacks.
[Miscellaneous Android Development] huskydg:
So your question is dumb, Because that's cloud emulator so no way :))))
[Miscellaneous Android Development] huskydg:
Bluestacks X, you actually control the emulator from somewhere else through the internet.

the cloud-emulator only allows you to remote the screen of that
[Miscellaneous Android Development] huskydg:
Magisk modules is able to load in NoxPlayer (Android 9) and MEmu (Android 7) now!
[Miscellaneous Android Development] huskydg:
If you want modules then follow my script:

GitHub - HuskyDG/MagiskOnEmu: This repo is no longer used

This repo is no longer used. Contribute to HuskyDG/MagiskOnEmu development by creating an account on GitHub.

github.com