A program that automates various tasks related to rooting/patching Android devices using Magisk.
-r, --root Roots a boot image, a file must be given as an argument.
-sd, --samsung-download Downloads the latest firmware for a connected samsung device.
-sr, --samsung-root Downloads the latest firmware for a connected samsung device,
patches the recovery and roots the boot image.
-pr, --patch-recovery Patches the recovery image of a Samsung device, to enable fastbootd.
NOTE: Only works with devices launched with Android 10 or higher.
-h, --help Displays this help message.
-v, --version Displays the version information.
Root:
./magiskutils -r boot.img
Samsung Download:
./magiskutils -sd
Samsung Auto-Root:
./magiskutils -sr
Patch Recovery:
./magiskutils -pr recovery.img
There are also shell scripts that can be used to patch boot images, without needing to use the main program, made for Windows and Linux.
Its usage is simply: ./boot_patch <boot.img> [-sar]
These scripts are based on boot_patch.sh made by topjohnwu.
The documentation for this program can be found here.
Magisk Utilities written by MrWicked.
Magiskboot For Windows created by svoboda18.
SamFirm.NET created by jesec.