How to root custom ROMs via Magisk

How to root custom ROMs via Magisk

Most OEMs these days come packed with a wide range of exciting features in their stock ecosystem, although not everyone is totally happy with the stock ROMs.