: Flash the Magisk zip file within TWRP. This helps keep TWRP permanent, as stock ROMs may otherwise overwrite it upon reboot.
After installing TWRP, flash the latest Magisk.zip file. This provides systemless root and helps pass SafetyNet checks. : Flash the Magisk zip file within TWRP