Currently not all devices have a twrp image build. Rooting these devices may require the user copying the boot image to the phone and patch it with magisk manager and copy back to PC and then flash. But theoretically the process of patching the boot image can be done on PCs so the extra steps of copying can be omitted. Is it possible to separate an utilitiy to do that on PCs?
Won't happen because all the tools for patching boot images are designed to run on Android only. Porting it to PC will take tons of effort, even if we only need to port to Linux desktop, nevermind Windows or macOS.
It seems that only porting to Linux is also a great idea. As flashing images runs in command lines, it is also not necessary to write GUI for patching tools.
MagiskBoot already work on Linux so I think if you have WSL you just need to follow /scripts/boot_patch.sh
Also, don't forget to read /docs/install.md before doing anything
@Fox2Code This script calls magiskboot that runs only on Android devices. It will be nicer if the binaries can run on x64 devices that crossbuild a Magisk patched image.
I built this script past and he worked really well on Linux
because I used the magiskboot from X86 folder
and magiskinit from arm folder,
the magiskboot runs in build time only and the magiskinit is pached in init in the device.
But my script is not perfect with the latest versions of Magisk,
And I have to update it all the time with each version change.
Magisk have both arm and x86_64 support
Download Magisk from the releases page and extract /x86/magiskboot
Note: Running 32bit binary does not work with WSL1 and require WSL2
An alternative is also to have a PC / VM running Linux
I already used this technique to patch boot images
Oh I see. magiskboot is independent with magiskinit so I can copy them from different directories to cross build a patched Magisk image. Thank you very much!
Also see https://github.com/topjohnwu/Magisk/issues/2727
Good that WSL2 allows workarounds now, at least. :+1:
Most helpful comment
Magisk have both
armandx86_64supportDownload Magisk from the releases page and extract
/x86/magiskbootNote: Running 32bit binary does not work with WSL1 and require WSL2
An alternative is also to have a PC / VM running Linux
I already used this technique to patch boot images