Universal Magisk Installation Guide
The definitive, step-by-step master guide for installing Magisk on any Android smartphone or tablet. Understand method selection, pre-installation prerequisites, boot image patching, Fastboot flashing, and post-installation environment setup.
Choose Your Installation Method
- Method A: Direct Fastboot Patching (Recommended for 95% of devices): Google Pixel, OnePlus, Xiaomi, POCO, Motorola, Nothing Phone, Asus, Sony. Uses standard Fastboot CLI to flash patched
init_boot.imgorboot.img. - Method B: Samsung Odin AP Flashing: Samsung Galaxy S, A, Note, Z Fold, and Z Flip devices. Patches full
APtarball and flashes in Odin. See our dedicated Samsung Galaxy Root Guide. - Method C: Custom Recovery (Legacy): Renaming
Magisk-v30.7.apktoMagisk-v30.7.zipand flashing in TWRP. (Only recommended for older Android 7–10 devices without dynamic partitions).
Pre-Installation Checklist & Diagnostics
- Unlock the Bootloader: Ensure your device bootloader is fully unlocked. Unlocking triggers a complete factory reset.
- Install Android SDK Platform Tools: Download official ADB and Fastboot from Google and ensure
adb devicesandfastboot devicescommunicate with your phone. - Match Your Exact Build Number: Extract stock boot images exclusively from the firmware build currently installed on your device (
Settings -> About Phone -> Build Number). - Battery Level: Ensure device battery charge is at least 50%.
Step-by-Step Installation Walkthrough: Fastboot Method
Step 1: Install Magisk App & Transfer Stock Boot Image
Step 2: Patch Image in Magisk App
- Open the Magisk App on your device.
- Tap Install on the Magisk card.
- Select "Select and Patch a File" and choose your transferred image file.
- Tap "LET'S GO!" and wait 15–30 seconds for Magisk to repack the ramdisk into
magisk_patched_[random].img.
Step 3: Pull Patched Image to PC
Step 4: Flash via Fastboot
Step 5: Post-Installation Environment Setup
When Android boots up, connect to Wi-Fi and open the Magisk App. The app will detect the newly running daemon and display:
"Additional Setup Required: Magisk requires additional setup to work properly. Do you want to proceed?"
Tap OK. Magisk will extract internal companion applets, configure SELinux rules, and reboot your device automatically. After this reboot, Magisk is 100% installed and fully functional!
Last Reviewed: August 19, 2026 • Verified With: Magisk v30.7 • Primary upstream: topjohnwu/Magisk. Primary reference: topjohnwu/Magisk on GitHub.