mistrmochov / magiskWaydroid

Small and quick script, that puts finished magisk files to waydroid directory. Fully working Magisk Delta!!
GNU General Public License v3.0
24 stars 2 forks source link
magisk waydroid waydroid-script

magiskWaydroid


Changelog:

(V - 0.7): Added support for runit init system, but on voidlinux magisk doesn't work, because of some incompatibility with magisk busybox, I'm working on some solution!

(V - 0.8): Added arm64 support, but I don't have any arm device, So I was not able to test It. So If you anyone will be using arm version, please let me know, If it works :)

(V - 0.8.4): Added option to install Magisk together with lsposed and magisk builtinbusybox modules. And also in magiskremove script, added feature to restore Magisk to its original state and remove all modules.


Small and quick script, that puts finished magisk files to waydroid directory. Fully working Magisk Delta!! Please kindly read everything here and follow insctructions, or It might not work properly!

installedmagisk

Purpose of this script.

Use this script if the script from nitanmarcel doesn't work. This script copies "preinstalled" magisk to your waydroid directory. These files are generated from the script, that I mentioned before and I made script based on this so others can benefit. Note: With this script you get only one version of Magisk, which is Magisk Delta 26.3 (Not Kitsune Mask). Magisk Delta fully works and you can install all the sweet stuff and modules you want.

Please, If you have an idea, how to make scripts better and accessible to more people, feel free to pull requests, I will be happy to make the script better.

Requirements

waydroid, git, tar, gzip, wget

Install instructions

First please make sure, that your Waydroid is installed and initialized! If you have fresh waydroid install and your Waydroid has never started, please start up the waydroid. (data folder has to exist!)

If you have been installing magisk from nitanmarcel script, make sure you run: "sudo waydroid_magisk remove", before installing this script! Althought, now this script should remove all conflicting files.

git clone https://github.com/mistrmochov/magiskWaydroid
cd magiskWaydroid
chmod +x magiskinstall.sh
./magiskinstall.sh #("DO NOT RUN AS ROOT OR SUDO, or it wont work, but when you are prompted for sudo password put it there of course!")

Option 1 is for normal Magisk Delta install.

Option 2 is for installing Magisk together with mentioned modules.

IMPORTANT: After script installation start up the Waydroid and after It boots up, check If Magisk was installed, If yes then please restart your Waydroid to complete the installation proccess or you can also proceed with direct install to system through Magisk app.

For removal use magiskreset.sh

Option 1 removes Magisk.

Option 2 resets Magisk to its original state.

With magisk installed, Waydroid usually boots longer and in first boot after you install magisk, It can take few seconds untill Magisk manager pops up, So if it's not in the applications, just wait. Also please do not update Magisk to Kitsune Mask or you will lose root.

Compatibility

Now this script supports x86_64 and arm64 archs.

If you're using Archlinux based distros you need linux-xanmod-anbox kernel and its header and also you need to put 'psi=1' (without quotes) to your kernel cmdline or Magisk won't work at all! You can compile and install this kernel from AUR: https://aur.archlinux.org/packages/linux-xanmod-anbox , https://aur.archlinux.org/packages/linux-xanmod-anbox-headers . Or you can install compiled kernel from chaotic aur chinese repository: https://archlinux.pkgs.org/rolling/archlinuxcn-x86_64/linux-xanmod-anbox-6.7.10-1-x86_64.pkg.tar.zst.html , https://archlinux.pkgs.org/rolling/archlinuxcn-x86_64/linux-xanmod-anbox-headers-6.7.10-1-x86_64.pkg.tar.zst.html .