This detailed post will help you install Magisk Universal Systemless Interface to root your Android device.
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 one 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 this mod. The detailed instructions in this guide will allow you to install Magisk on almost any Android device.
Guide to Install Magisk and Root Any Android Device
The renowned mod is developed by topjohnwu and has the ability to perform various jobs related to root. It was introduced back in 2016, when initially only the modules were supported. Progressing through the year, the mod soon gained several new features like MagiskSU, a part of the mod itself for effectively managing root permissions. You might also consider it as a potential replacement to SuperSU. 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 Lollipop, Marshmallow, Nougat, and Oreo. 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 Modules.
In simple words, there’s a lot you can do after you install Magisk on your Android device.
- If you want to use method 2, then you must install ADB and Fastboot tools on your PC.
- Take a complete backup of your personal data. You can follow our guide on how to backup Android devices.
- Stable: Magisk-v16.0.zip
- Beta: Magisk-v16.4.zip (Changelog and more information)
- Magisk Manager: MagiskManager-v5.7.0.apk or APKMirror
Steps to Install Magisk Universal Systemless Interface
Now, there are two different methods to install it 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 16.1 zip file.
- 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 Magisk Manager APK from above 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/MagiskManager/ 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
- 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.
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.
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.
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.