How to root an Android phone with Magisk and a patched boot image

Rooting gives you admin-level control of Android so you can run apps that need superuser access. This guide walks through the standard Magisk method: the bootloader, patch your stock boot image, flash it, then verify. It suits people comfortable with a PC and command line, and needs a phone with an unlockable bootloader.

How to Root Android Phone Permanently in 2026 | Easy Root Method, by RK Technical on YouTube. 5 min 43 s.

Video length
5 min 43 s
Time to do it
45 minutes
Difficulty
Medium
Steps
8

What you need

Steps

  1. Back up your photos, contacts and files. Unlocking the bootloader usually wipes the phone completely, so copy anything important to a PC or cloud drive first.

  2. On the phone, open Settings, About phone and tap Build number seven times to enable Developer options. Then turn on USB debugging in Developer options.

  3. Enable OEM unlocking in Developer options, connect the phone to your PC and run fastboot flashing. Confirm on the phone screen.

  4. Download the stock firmware for your exact model and build number, and extract the boot.img file from it. A mismatched image can brick the phone.

  5. Install the Magisk app on the phone and copy boot.img to its storage. In Magisk, tap Install, then Select and Patch a File, and choose boot.img.

  6. Copy the patched file, usually named magisk_patched.img, back to your PC. Reboot the phone into fastboot mode with adb reboot bootloader.

  7. Flash the patched image by running fastboot flash boot magisk_patched.img on the PC, then reboot the phone with fastboot reboot.

  8. Open the Magisk app and check that it shows an installed version. Install Root Checker to confirm root access, and approve the superuser prompt when it appears.

Tips and common mistakes

There is no universal root file. Always patch the boot image from your own phone's firmware build, not a file from another model.

Unlocking the bootloader can void your warranty and may trip a security flag that blocks some banking and payment apps.

A failed flash can cause a boot loop. Keep the original boot.img handy so you can flash it back and restore the phone.

System updates usually remove root, so re-patch the new boot image after each Android update.

Questions

Does rooting erase everything on my phone?

Unlocking the bootloader normally wipes all data, so do a full backup first. Rooting itself, once unlocked, does not erase anything.

Can I root without a PC?

Sometimes, if your phone has a custom recovery already installed, you can flash Magisk from the phone. Most phones still need a PC for the first bootloader and flash.

How do I undo root?

Open Magisk, choose Complete Uninstall, then flash your original boot.img with Fastboot. Relock the bootloader only after the stock image is back.

This guide was drafted from the video's details and general task knowledge. It has not been checked against the full video. Check the video and relevant product instructions before following a procedure. Report a correction.

More in Computers & Phones

See all