if you can install Magisk you have already rooted and you just want access to Magisk modules you can use Magisk Manager to install the Magisk framework. and if you want to pass SafetyNet on a rooted device you can switch from SuperSU to Magisk SU. but the best way to do it is to start fresh by installing Magisk on a non-rooted phone using TWRP.
STEP-1 > Install TWRP
this method works by flashing the Magisk zip in TWRP so you need to install the custom recovery before you begin. much like Magisk itself, there are multiple ways to install TWRP. see over article to install TWRP ( How To Flash TWRP Recovery In Your Android or How To Flash CWM Recovery In Your Android )
STEP-2 > Install Magisk Manager
boot into android and install the Magisk Manager app. the Magisk framework which provides root access and the ability to install Magisk modules. it’s simply an app for downloading and updating the Magisk framework and managing modules.
the Magisk manager app is no longer available on the play store so you need to have “unknown sources” enabled to install it. download the newest version then when that’s finished tap the download complete notification to launch the APK finally press “install” when prompted.
Related Article >> 2 Easy Way To Uninstall System Apps On Android
STEP-3 > Download The Magisk Zip
open the Magisk Manager app. you get a popup asking if you like to install the Magisk framework. tap “install” here then hit “download zip only” on the subsequent popup. wait until you see a message at the bottom of the app main menu stating that the file has been downloaded.
STEP-4 > Flash Magisk In TWRP
- boot your phone into recovery mode.
- then tap the “install” button in TWRP.
- navigate to your device download folder then select the Magisk zip.
- after that just swipe the slider at the bottom of the screen to install Magisk.
- then tap the reboot system.
Related Article >> How To Install / Flash Custom ROM on Android Device
STEP-5 > Verify Root & SafetyNet Status in Magisk Manager
open the Magisk Manager app you see a message towards the top of the screen that says “Magisksu (topjohnwu)” with a green checkmark next to it. this means your phone is now officially rooted and since it was done with Magisk it’s a systemless root.
the main advantage of Magisk is that you can have root without tripping SafetyNet. to verify that your phone still passes google SafetyNet check press the corresponding button towards the top of the screen. if you see two extra green check marks after this test is all set to on your Magisk.