This detailed post will help you install Magisk Universal Systemless Interface and root your Android device. There are two different methods to install it – One, by flashing the latest Magisk installer zip using TWRP or two, by patching the stock boot image. Both the methods have been listed below in a step-by-step manner. For your convenience, we have also listed the steps to uninstall Magisk, should you feel the need to do it.
The Android developer community is filled with a surfeit of options to help you customize your Android phone or tablet. Many of these have gained immense popularity among the users due to their efficiency and ability to easily modify the phone’s software. These options can help you draw various features on your Android phone, that the OEM doesn’t normally allow you to. Today, we will be taking one such mod/tweak in consideration that is being widely used for the past year.
We’re here for Magisk, the ultimate interface to modify the Android software systemless-ly. So if you’re looking ahead to root your phone or add third-party features to it, you must consider using Magisk “The Universal Systemless Interface”. The detailed instructions in this guide will allow you to install Magisk on almost any Android device.
What is Magisk?
It was introduced back in 2016, when initially only the modules were supported to help a user add some extra features to the OS. Progressing through the year, Magisk gained several new features like ‘MagiskSU‘, a part of the mod itself for effectively rooting Android phones and ‘Magisk Hide‘, that helps a user hide root from certain apps. Due to constant updates and support for most Android versions, it is now widely adopted by the community to not only add third-party features systemless-ly but also to root Android devices.
At the moment, the mod has the ability to root any Android device running Android Pie, Oreo, Nougat, Marshmallow, and Lollipop.
Features offered by Magisk
Before you install Magisk, go through the following list of things that it can help you with.
- Modify or alter the software without tampering the system (vendor) partitions.
- Root any Android device with the open-source root solution.
- Manage root permissions and use the fingerprint scanner to allow superuser requests.
- Pass Google’s SafetyNet tests even when your phone is rooted.
- Use banking and security applications on rooted devices.
- Remove kernel features like dm-verity and forceencrypt.
- Add third-party features using Magisk Modules.
In simple words, there’s a lot you can do after you install Magisk on your Android device.
- As always, we strongly suggest that you take a complete backup of all your personal data on the phone. You can follow our guide on how to backup Android devices.
- If you want to use method 2, then you must install ADB and Fastboot tools on your PC.
- Also, for method 2, you must have the stock boot image for the current firmware installed on your phone. You can get it either from firmware.mobi or visit your device-specific forum on XDA-Developers.
Download Latest Magisk
The download links have been gathered directly from the official XDA thread (See ‘Source’ link below). While we ensure to update this post with the latest links and instructions, you may also visit the thread for cross-confirming.
- Stable: Magisk-v18.0.zip (Changelog and more information)
- Magisk Manager: MagiskManager-v6.1.0.apk or APKmirror
- Previous releases:
How to Install Magisk Universal Systemless Interface
Now, there are two different methods to install Magisk on your Android device. The first method below uses TWRP to flash the latest Magisk zip, which is also the recommended method. If TWRP is not yet available for your device or you don’t want to use it for any other reason, the second method will come into play. It will allow you to patch your phone’s stock boot image (kernel) and flash the modified boot on your device.
Method 1: Flash Magisk using TWRP Recovery
- Download the latest stable/beta Magisk zip from above.
- Connect your phone to the PC and transfer the downloaded zip file to the internal storage or SD card.
- Boot your Android device into TWRP recovery using the special button combination.
- You can also use the following ADB command while your device is connected:
adb reboot recovery
- In the main menu, tap on the “Install” button.
- Navigate to the internal storage and select the Magisk zip file (e.g. Magisk-v18.0.zip)
- Once selected, swipe the button on the screen to install Magisk on your Android device
- When the flashing process is complete, hit “Reboot System” button.
After your Android phone boots, you can download and install the latest Magisk Manager app. If your device doesn’t support TWRP recovery or you don’t want to install it for some reason, then follow the steps below to install Magisk by patching the stock boot image.
Method 2: Patch Stock Boot Image
- First, you must grab the stock boot image for the current firmware installed on your device
- Place the boot image on the phone’s internal storage or SD card
- Download the latest Magisk Manager APK and install it on your device
- Open “Magisk Manager”
- Tap on the “Install” button and choose “Install” again
- Select “Patch Boot Image File”
- Navigate to the storage and select your phone’s boot image that you transferred earlier
- Let Magisk do the job and patch the boot image
- Once patched, copy the “patched_boot.img” file from /sdcard/Download/ to C:\adb on your PC
- In the same folder, hold the SHIFT key and right-click on an empty space
- Select “Open PowerShell window here”
- Boot your Android device into Bootloader/Fastboot mode
- Connect your phone to the PC
- Flash the “patched_boot.img” to install Magisk and root your Android device:
fastboot flash boot patched_boot.img
- For devices with A/B partition system, use the following commands:
fastboot flash boot_a patched_boot.img fastboot flash boot_b patched_boot.img
- Once done, reboot your phone using:
When your phone boots, open the Magisk Manager and confirm that the installation was successful. You may further download various modules from the official repository or from here. The official documentation is a good way to start with the basics and also to know what Magisk is capable of.
Now, if you wish to uninstall Magisk for any reason, the steps below will assist you in doing so. The most certain way to do this is via the Magisk Manager app itself. Before you uninstall Magisk, make sure to disable and remove all the modules.
How to Completely Uninstall Magisk and Unroot Android
- Open “Magisk Manager” from the app drawer.
- Tap on the “Uninstall” option on the main screen.
- The Uninstall prompt should show up on the phone’s screen.
- Select “COMPLETE UNINSTALL” to uninstall Magisk and restore the stock boot image.
- When the restore process is complete, reboot your device.
- Finally, remove the Magisk Manager app as well.
An alternative to the above method is to flash the Magisk Uninstaller zip using TWRP Recovery or by restoring the stock boot image if you used Method 2.
Magisk gives you abilities to perform various tasks in order to customize the software. For starters, you can use any root-enabled app on your phone. “Magisk Hide” will allow you to hide root from apps like Pokemon Go and so on. You can even install modules to add third-party features to the software. The possibilities are endless, so don’t stop exploring. But be careful and know what you’re going to do before you actually do it.
So this was our guide on how to install Magisk and root any Android device. If you have any questions, kindly leave them in the comments.