Prerequisites
- Install Magisk from official releases: Magisk GitHub
- Install Android SDK platform-tools (we specifically need
fastboot.exe)
Terminology
- ROM – Refers to firmware images, not true read-only memory.
- Recovery ROM – OS image flashed via recovery partition, usually packaged as a single archive (ZIP, payload.bin) for OTA updates or sideloads.
- Fastboot ROM – Complete OS image for flashing via fastboot, with all partitions separated (boot, system, vendor, userdata, etc.) for full or selective flashing.
Installation Instructions
Download the Fastboot ROM for your device. The OS version must match your current firmware. I specifically download from here
Extract
boot.imgfrom the Fastboot ROM, copy to your phone and patch it with Magisk. The patched image and its path will be displayed in the terminal.Copy the patched image to your PC, turn off your phone, and boot into Fastboot Mode.
Flash the patched boot image:
fastboot flash boot <magisk_patched>.imgReplace
<magisk_patched>with the path to your patched image.
- Note: If you flashed
boot.imgbut Magisk did not gain root access, repeat steps 2–4 usinginit_boot.imginstead. Flash it with:
fastboot flash init_boot <magisk_patched>.img
- Restart the phone and open the Magisk app. If the Superuser tab is available, you have root access. Otherwise, patch and flash init_boot.img as described above
Troubleshooting
If
fastbootsays “waiting for devices”:Try a different USB cable or port.
Check that drivers are installed.
Open Device Manager on Windows and verify there’s no warning icon on your device.
If a warning icon appears, install proper Fastboot drivers.
Example: On my device, ADB recognized the phone but fastboot didn’t. After reinstalling USB driver it started to work.