Android rooting in 2022

Xiaomi phones are very easy to unlock to bootloader.

Unlock bootloader

Get root access with Magisk

Pass safety net

Cool functionalities enabled by root

Notes

To get access to a root shell via adb, enable com.android.shell in the Superuser tab of Magisk.