Android

Complete Guide to Obtaining Root Access on Android via Magisk

Gain full control of your device by installing Magisk. The guide covers preparation, bootloader unlocking, boot image patching, and privilege verification.

Updated at April 6, 2026
30-45 min
Medium
FixPedia Team
Применимо к:Android 11–15Magisk 27.0+Smartphones with unlockable bootloader (Pixel, Xiaomi, OnePlus, Nothing)

Introduction / Why This Is Needed

Root access opens the Android system partition, allowing you to remove pre-installed software, change the kernel, install optimization modules, and perform full backups. The modern standard is Magisk. It operates via a systemless interface, without modifying the original OS files, which preserves stability and allows for safe system updates. After completing this guide, you will have full control over your device with the ability to hide root from demanding applications.

Requirements / Preparation

Before you begin, ensure your device's bootloader supports unlocking (on some Samsung, Huawei, or carrier models this is technically impossible). You will need:

  • A PC running Windows, macOS, or Linux with adb and fastboot installed.
  • The original firmware (ZIP archive or payload.bin) that exactly matches the current Android version on your smartphone.
  • A full backup of your data. Unlocking the bootloader will wipe internal storage.
  • Battery charge of at least 60%.

⚠️ Important: Do not use files from other device models or firmware with a different security patch version. This will lead to bricking the device or bootloops.

Step 1: Environment Setup and Bootloader Unlock

On your smartphone, enable "Developer options" (tap "Build number" 7 times in "About phone"), then activate "USB debugging" and "OEM unlocking." Connect the device to your PC and run in the terminal:

adb reboot bootloader

Once the phone enters fastboot mode, check the connection:

fastboot devices

If the device is listed, enter the unlock command:

fastboot flashing unlock

Confirm the action using the volume buttons on the phone's screen. The device will reset and reboot. Complete the initial setup and re-enable USB debugging.

Step 2: Preparing the Boot Image and Installing Magisk

Download the latest version of the Magisk app (APK) from the official GitHub repository and install it on your smartphone. From the official firmware archive, extract the boot.img file (or init_boot.img for Android 13+). Transfer the image to your phone's storage.

Open Magisk, tap "Install" → "Select and Patch File." Choose the extracted image. The app will create a magisk_patched.img file in the Download folder. Copy it back to your computer.

Step 3: Flashing and Final Setup

Reboot the smartphone into fastboot mode:

adb reboot bootloader

Flash the modified image, explicitly specifying the partition:

# For Android 12 and older
fastboot flash boot magisk_patched.img

# For Android 13/14 (if using a separate init_boot partition)
fastboot flash init_boot magisk_patched-init.img

After successful completion, run:

fastboot reboot

The first boot may take 1–2 minutes longer than usual. Open the Magisk app—if the version number is displayed at the top, root is active.

Verifying the Result

To confirm the installation was successful, perform a simple diagnostic. Open a terminal on your PC or the Termux app on your phone and type su. If the device requests superuser permission via a Magisk pop-up, the process was successful. Additionally, check that the Zygisk module is working in Magisk settings and reboot the device to apply system changes.

Potential Issues

  • Bootloop: Usually occurs when using a boot.img from a different firmware version. Return to fastboot and flash the stock image with fastboot flash boot stock_boot.img, then boot into the system.
  • Magisk doesn't see the image file: Files in Android/data folders may be blocked by the system. Move boot.img to the root of internal storage or use a file manager with system directory access.
  • Banking apps show errors: Enable "Zygisk" and "Enforce DenyList" in Magisk settings. Add Google Play Services, Google Play Store, and the problematic app to the hiding list. For stricter checks, install the Play Integrity Fix module.
  • Fastboot doesn't see the device: Install the universal Google USB Driver or your manufacturer's OEM drivers. On Windows, use Device Manager to manually update the driver for the Android Bootloader Interface port.

F.A.Q.

Does root access void the smartphone warranty?
Will banking and government apps stop working?
Can I get root without a computer?

Hints

Preparing Tools and Backing Up Data
Unlocking the Bootloader
Extracting and Patching the Boot Image
Flashing the Modified Image

Did this article help you solve the problem?

FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community