Install Magisk With Adb [SAFE]
If no root, download your firmware, extract boot.img using payload dumper.
This is the "standard" modern method that works without a custom recovery. It uses ADB to move files and Fastboot to flash them. install magisk with adb