-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modules not loaded on VirtualBox Android x86 #2551
Comments
Before reporting bugs you need to try Magisk Canary to ensure that the bug exists or not on the current code. |
I installed and tried canary version (debug), same result in the list of installed modules: No modules found. Installation riru-core
Installation riru-edxposed
installation MagiskHidePropsConf
directory modules is empty
|
So the problem is not in the loading of the modules, it is in the installation. There is a new commit on the modules installation code, wait for the next update of the Magisk Canary to see if it solves your problem or wait for some response from topjohnwu |
@KaMyKaSii sorry for wrong informations, but while the installation of modules I can't see errors on screen, so I thought the issue was on loading.
|
I followed this guide and I convert android x86 8.1 from one partition to 3 partitions (boot, /system and /data), works only with 20.1 after update to 20.3 the previous working modules disappear. |
#2594 might help. You'll have to test again after the next build with it merged. |
The filesystem layout is kind of weird .. I put the init file (inside initrd.img) here: https://gist.github.com/shakalaca/68020f29a75b816bed8245761c746f34 Looks like some of the entries in /proc/mounts came before chroot, so Magisk could not mount /system and /data partition properly and the module system failed because of that .. |
Sounds like it was pure luck that it ever worked at all. Does the emulator.sh work for this use case? |
Modules never worked because the emulator.sh can't be ran on boot (excl modifying the ramdisk)
|
If we can do the hack on Android x86 project, I think it's better to keep the complexity there and leave Magisk clean and simple, so here's the hack : (for AVD we still need the patch #2594): @etmatrix please have a look and see if it works for you :) |
@shakalaca thank you for you work.
I got ramdisk.img and initrd.img with:
I think the correct script to run for vbox is patch_vbox.sh, doesn't matter, I pulled all files and executed process.sh as root, after this operation I pushed the new ramdisk.img and initrd.img and copied, but after I poweron the virtual machine, it's stuck on boot. EDIT |
I tested the script of @shakalaca and works on Android 8.1 r4 x86/x86_64, Android 9 r2 x86 (x86_64 not yet tested).
I think the scripts prepare and installation are not usable with android x86, but process.sh is fantastic for installation and patching of magisk on android x86 |
how to connect to device with adb when i type adb in cmd windows it shown |
@lamjed001 |
This method was working up until March of 2021, here's an updated version I've used with Android-x86 and Magisk v22.0:
-Connect to device via adb and run |
Hello ouija, sorry to disturb you, I followed your steps to complete, but the module still cannot be installed, thank you for your advice. |
Great! If the shell is not worked for some reason, |
Hello |
It's on your physical disk where the android x86 installed. |
" > * adb push initrd.patch process.sh magisk.zip update-binary /data/local/tmp" Someone can tell me, where i can find that "update-binary"? this update-binary is not found in the repository... maybe somewhere in the Android system? and another problem is the message i get, when try: someone can advice me what im doing wrong? I am grateful for any help.. |
I have a Android x86_64 on VirtualBox. I patched ramdisk.img and magisk 20.3 start without issue.
I tried to install some modules as riru core, riru xposed and others but after reboot the module is not loaded. In log I can't see nothing.
The text was updated successfully, but these errors were encountered: