magiskWaydroid icon indicating copy to clipboard operation
magiskWaydroid copied to clipboard

Part of this script only works for systemd, add support for other init systems

Open blacklightpy opened this issue 1 year ago • 13 comments
trafficstars

For example, Void Linux uses runit, and the command is sudo sv stop/start waydroid-container.

Also my session is not booting now, even though I restarted the container..

blacklightpy avatar Dec 23 '23 00:12 blacklightpy

Thanks for mentioning, I will look into this

mistrmochov avatar Dec 23 '23 14:12 mistrmochov

Hey so I just fired up void linux in virtual machine and updated my script according the runit, but Waydroid doesn't boot after magisk is installed. I'm gonna try to do something about it. My guess is, that It's gonna be something kernel related like in Arch, because in Arch we need linux-xanmod-anbox so I'm gonna try to find something simmiliar. But before that, I'm not gonna update the script for runit, because It doesn't work. After someone or I will find a solution for that, script will be updated. Update: So I just got working linux-xanmod-anbox kernel on void linux and still the same issue, So I guess there might be a problem with runit or some configuration in void linux.

mistrmochov avatar Dec 29 '23 11:12 mistrmochov

Final update. So I find the cause of the issue. It's magisk files in adb folder. It booted fine when I deleted them. Then I installed magisk apk on waydroid and It prompted for additional installation and rebooted and created these files again. And unbootable again. Because these file are neccessary for magisk to work, There is nothing I can do about this unfortunately. I guess It is incompatible with runit or with Void Linux

mistrmochov avatar Dec 29 '23 13:12 mistrmochov

I don't see what runit has to do with it here.. All you do is restart the waydroid-container.service in systemd.

In runit that is sudo sv [start/stop/restart] waydroid-container.

It should be something else, although I don't see what.. did you try glibc or musl edition?

I'm on musl, although most distros are glibc-based.

blacklightpy avatar Dec 29 '23 16:12 blacklightpy

Well, but the problem doesn't have to anything with restarting the container. The problem is, that the waydroid on void linux is unbootable with magisk. But Im gonna keep digging.

mistrmochov avatar Dec 29 '23 21:12 mistrmochov

Greetings, I'm bringing another updates. So I just figured out, that voidlinux doesn't like busybox file in data/adb/magisk So my thoughts are, that voidlinux probably miss some general configuration out of the box. I tried to install busybox and mkinitcpio on void, but Waydroid was still unbootable

mistrmochov avatar Jan 05 '24 10:01 mistrmochov

Void uses dracut instead of mkinitcpio by default, could that be a reason?

https://docs.voidlinux.org/config/kernel.html#changing-the-default-initramfs-generator

One thing to note is if you used the musl version of Void, it doesn't work well with files compiled for glibc. Waydroid is compiled for glibc, but the busybox binary you used may not be.

blacklightpy avatar Jan 05 '24 16:01 blacklightpy

I hear that busybox is generally built against glibc unless it is from Alpine repos, etc.

I'm on musl too.

blacklightpy avatar Jan 05 '24 16:01 blacklightpy

No no I didn't download musl version. But yeah I think, there is pretty high chance, that It will be, because it's not using mkinitcpio

mistrmochov avatar Jan 06 '24 17:01 mistrmochov

You can switch to use mkinitcpio though.. it's explained in the page I linked.

blacklightpy avatar Jan 06 '24 18:01 blacklightpy

And you made it working? I fired up VM with void, just to try to make solution for you or for others, who have runit and voidlinux and update the script.

mistrmochov avatar Jan 06 '24 19:01 mistrmochov

Huh So I switched to mkinitcpio and regenerated linux and It still doesn't boot

mistrmochov avatar Jan 06 '24 19:01 mistrmochov

Nope I just made the observation..

blacklightpy avatar Jan 09 '24 08:01 blacklightpy