This video shows the easiest way to root Samsung, xiaomi, one plus , redmi on pixelexperience with magisk
Download magisk:
Before Getting Started:
- It’s important for you to learn the basic commands of ADB and fastboot.
- You need to make sure your device bootloader is unlocked.
- If you’re using boot.img mods then you need to flash your custom ROM again to use your stock boot.img.
- Install custom kernel after installing Magisk on your phone.
https://www.magiskmanager.com/