Magisk it's like a multi tool app for the device (it works on the Mi5), it can install "modules" like little patches for the device (camera2api) or install some apps easier (viper4android, dolby, etc), it's like a "super su" app but on steroids (it's the best explanation that i can give) :p