Magisk is based on phh superuser (An open source root project), developed by Topjohnwu. It is a systemless root which does not modify the system partition. It is mostly the same as the Xposed framework which has powerful tweaks.
Magisk manager has many built-in features i.e. MagiskHide, SafeNet, Busybox, Superuser, Logs, Systemless hosts, etc. And so It is considered as one of the best alternatives to Supersu and Kingroot because it helps you to install banking apps, pokemon go, official OTA updates without losing the root privileges, snapchat, and much more.
How to install Magisk with TWRP custom recovery
There are many ways to install Magisk on your android device. But rooting with TWRP recovery is considered as one of the best ways to install magisk on a device. Here, you no need to remove the old binary files or reset internal settings of your device.
You just have to flash your Magisk with the TWRP custom recovery. And it is one of the safest and cleanest way to install SU binary without modifying the system files.
First of all which you need to do is that boot your phone into the recovery mode. And then tap the install button in the TWRP menu (dashboard).
And now, you have to navigate to your device’s download location or the where you have kept Magisk zip file.
And then swipe the slider (located at the bottom of the screen) to install the Magisk.
And now tap “Reboot system“.
That’s it. You have successfully flashed Magisk root on your device.
How to install Magisk with ADB and Fastboot (without custom recovery)
TWRP recovery is the best custom recovery solution for any android device as it comes with a user-friendly UI. You can easily install OTA updates, create/restore backup files, format partitions, etc.
There might be some reasons that you do not want to install Custom recovery on your device. Or your device does not support TWRP recovery Or the custom recovery image is not built yet for your device.
In this case, You can install magisk using ADB and fastboot method (Patching Stock Boot Image) which does not require a custom recovery. Follow the below tutorial to install Magisk without custom recovery by using ADB and fastboot.
Step by step guide:
The very first thing which you need to do is that download ‘Stock boot image‘ for your current firmware installed on your device. Then you need to place the downloaded stock boot image in your device’s internal storage.
Now launch/open Magisk manager on your android and then tap on “Install” option and then select “Install again“. And then you need to select ‘Patch Boot Image File‘. See below screenshot
Now you will be automatically navigated to your device’s internal storage. Here you need to select the ‘Stock boot image‘ file which you have downloaded at the first step of this guide.
Now you need to wait until the Magisk patch the boot image into your device. You will see something like below picture
Once the patch gets completed. You will get a ‘patched_boot.img’ file. Then you have to copy and paste the ‘patched_boot.img‘ file from your ‘/sdcard/MagiskManager/‘ location to your computer’s ‘C:\adb‘ location.
In the same folder (i.e. C:\adb) you have to hold the ‘Shift key‘ and then right click on the empty space. And then select “Open PowerShell window here“.
Now you have to boot your Android device into the fastboot/bootloader mode. (You need to press volume key + power button to get the bootloader mode. Your device may have other methods to get into the fastboot mode. Just make a Google search for it.)
Now you need to connect your device to the PC.
Now enter the below ADB command and hit enter. It will flash ‘patched_boot.img’ file to your device.
fastboot flash boot patched_boot.img
Once flash gets completed. Reboot your device with the following ADB command.
That’s it. You have successfully installed Magisk on your Android using ADB fastboot method without the custom recovery.
How to Bypass Google SafetyNet with Magisk
Traditionally, the devices rooted with supersu and kingroot used to use root cloak (and other root hiding apps).
But you have installed magisk manager, you can now hide root from those apps which do not work on the rooted devices. It not only helps you to bypass Google safetyNet but you can also use Android pay, Pokemon go.
So here in this guide, I am going to guide you on, ‘How you can bypass google safety net and use Android pay, Pokemon go and banking apps’
Step by step guide:
Open Magisk manager.
And then enable the following settings,
ENABLE MAGISK HIDE
ENABLE SYSTEMLESS HOSTS
Have you seen?
How it is easy to bypass root detection.
This is only due to the Magisk manager. Now you no need to use any root cloaking app for bypassing SafetyNet.
Thanks, I hope that the above step by guide helped you to install Magisk root on your Android device.