Universal Root Tutorial

Panduan Universal Pemasangan Magisk

Panduan utama langkah demi langkah untuk memasang Magisk pada perangkat Android apa pun menggunakan metode penambalan boot image resmi dan Fastboot CLI.

Choose Your Installation Workflow

  • Method A: Direct Fastboot Patching (Recommended for 95% of devices): Google Pixel, OnePlus, Xiaomi, POCO, Motorola, Nothing Phone, Asus, Sony. Flashes patched init_boot.img or boot.img.
  • Method B: Samsung Odin AP Flashing: Samsung Galaxy S, A, Note, Z Fold, and Z Flip devices. Patches full AP tarball and flashes via Odin.
  • Method C: Custom Recovery (Legacy): Flashing renamed Magisk-v30.7.zip in TWRP (only recommended for older Android 7–10 devices).

Step-by-Step Installation Walkthrough (Fastboot CLI)

Step 1: Install Magisk App & Transfer Stock Boot Image

ADB Commands
# 1. Install Magisk v30.7 APK $adb install -r Magisk-v30.7.apk # 2. Push extracted stock boot or init_boot image to Download folder $adb push init_boot.img /sdcard/Download/

Step 2: Patch Image in Magisk App

  1. Open the Magisk App on your Android device.
  2. Tap Install on the Magisk card.
  3. Select "Select and Patch a File" and choose your transferred image file.
  4. Tap "LET'S GO!" and wait 15–30 seconds for Magisk to repack the ramdisk.

Step 3: Pull Patched Image & Flash via Fastboot

Fastboot Terminal Commands
# Pull patched image to PC $adb pull /sdcard/Download/magisk_patched_*.img magisk_patched.img # Reboot device into Fastboot Mode $adb reboot bootloader # For Android 13+ GKI devices (Pixel 7/8/9, Xiaomi 13/14, OnePlus 11/12): $fastboot flash init_boot magisk_patched.img # For Android 12 and older devices: $fastboot flash boot magisk_patched.img # Reboot into Android $fastboot reboot
Official Upstream Source Standard

Verified against official upstream repository topjohnwu/Magisk on Magisk v30.7 under the GNU General Public License v3.0.