casualsnek / waydroid_script

Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !
GNU General Public License v3.0
1.73k stars 161 forks source link

Waydroid breaks after install Magisk #50

Open EsmailELBoBDev2 opened 1 year ago

EsmailELBoBDev2 commented 1 year ago

Hi, I use waydroid on gentoo, I tried to install the ARM translation layer and it worked as expected but when I intalled Magisk, waydroid stopped to work. I can't run the container, service or show the gui. I asked on waydroid's telegram and another use told me after using the same script he/she was not able to run waydroid too. And this is why I'm here now maybe its something with the script? and here are some logs and feel free to request more details as needed.

System info: Gentoo (kernel: 5.15.74-gentoo-dist), I use openrc so I run the service manually (https://docs.waydro.id/usage/install-on-desktops#manually-starting-waydroid) and I use weston with export XDG_SESSION_TYPE=wayland to run waydroid. I can confirm waydroid was running fine when installed ARM translation but not after Magisk, so I'm sure waydroid was working.

waydroid logcat: https://pastebin.mozilla.org/4iHdkGTc/raw

waydroid status:

Session:        RUNNING
Container:      RUNNING
Vendor type:    MAINLINE
Session user:   esmailelbob(1000)
Wayland display:        None
EsmailELBoBDev2 commented 1 year ago

Ok, I'm unsure if it's related to my issue or not, but maybe this helps?:

10-20 11:00:05.884   158   171 E Magisk  : su: cannot find manager
10-20 11:00:05.886   158   171 I Magisk  : * Mounting mirrors
10-20 11:00:05.886   158   171 E Magisk  : stat /dev/loop1 failed with 2: No such file or directory
10-20 11:00:05.886   158   171 E Magisk  : mount /sbin/.magisk/block/vendor->/sbin/.magisk/mirror/vendor failed with 15: Block device required
10-20 11:00:05.886   158   171 I Magisk  : mount: /sbin/.magisk/mirror/vendor
10-20 11:00:05.888   158   171 E Magisk  : stat /dev/sdb1 failed with 2: No such file or directory
10-20 11:00:05.888   158   171 E Magisk  : mount /sbin/.magisk/block/data->/sbin/.magisk/mirror/data failed with 15: Block device required
10-20 11:00:05.888   158   171 I Magisk  : mount: /sbin/.magisk/mirror/data
10-20 11:00:05.888   158   171 I Magisk  : link: /sbin/.magisk/mirror/product
HuskyDG commented 1 year ago

Because setup script is wrong

EsmailELBoBDev2 commented 1 year ago

Because setup script is wrong

Can you explain more? Wrong in what aspect and how to fix it?

HuskyDG commented 1 year ago

It doesn't setup the correct Magisk environment:

https://github.com/casualsnek/waydroid_script/blob/4bdb95aee02bb6150b64c82f8f9dd1918abf7557/waydroid_extras.py#L426-L454

Please see: https://github.com/HuskyDG/Magisk/blob/4d8109affaca8ad8e44ef3f2b8d793abb3f42c62/scripts/util_functions.sh#L859-L899

EsmailELBoBDev2 commented 1 year ago

It doesn't setup the correct Magisk environment:

https://github.com/casualsnek/waydroid_script/blob/4bdb95aee02bb6150b64c82f8f9dd1918abf7557/waydroid_extras.py#L426-L454

Please see: https://github.com/HuskyDG/Magisk/blob/4d8109affaca8ad8e44ef3f2b8d793abb3f42c62/scripts/util_functions.sh#L859-L899

Thats sad but ok, is there a way to reverse it? I want to use waydroid again...

HuskyDG commented 1 year ago

I think it is fixed

PhilDevProg commented 1 year ago

It's not fixed for me. I installed Magisk today and my Waydroid installation is now broken and I can't use it anymore. Even after reinstall it still has no window to interact with...

HuskyDG commented 1 year ago

It's not fixed. I installed Magisk today and my Waydroid installation is now broken and I can't use it anymore. Even after reinstall it still has no window to interact with...

How do I help you with those non-sense words?

PhilDevProg commented 1 year ago

Sorry if I wasn't clear enough. So I installed Magisk via this Script today (on Fedora) but after that Waydroid didn't have a window to interact with or show the UI. I also reinstalled Waydroid but still there's not UI. Edit: It now works again after the 3rd reinstall. 🤷

lordmemed commented 1 year ago

Sorry if I wasn't clear enough. So I installed Magisk via this Script today (on Fedora) but after that Waydroid didn't have a window to interact with or show the UI. I also reinstalled Waydroid but still there's not UI. Edit: It now works again after the 3rd reinstall. shrug

first of all, i'm sorry if i kinda "spam" myself everywhere.

the new waydroid_script Magisk installation is broken for me, too.

it causing my Waydroid installation to hang, it show up but with nothing i can interact to and crash of Trebuchet, etc. after looking the debug with sudo waydroid logcat, it shows the error of EACCES Permission denied with almost all applications.

the solution for me is editing bootanim.rc to my own Magisk environment setup, like in this irrelevant and spam comment : Here

hope this helps if you still have this issue.

goodbye.

EDIT: sorry @HuskyDG , it actually is my fault for issuing on wrong repo, and yeah, i actually using the latest canary/debug build. Magisk-2520-delta-3 -> update to 25206 -> update to latest canary/debug channel via Direct install to system partition -> and boom, error.

like you said above,

It doesn't setup the correct Magisk environment:

thanks, goodbye.