HowTo flash MagisK Methode 1 1:Reboot into TWRP and mount system 2:Either open terminal in TWRP or use adb shell on PC 3:Type: mkdir /system_root/sbin and then flash magisk in TWRP 4:Open Magisk Manager app in app drawer( If it is not already installed after flashing Magisk then redo the steps because you did something wrong) 5:Magisk Manager should says installed:N/A if it does not then you are done it it does however then carry one to the following steps 6:If magisk manager does not detect Magisk then download terminal emulator from play store or open adb shell in PC. 7:Open terminal emulator or adb shell and type: echo $PATH 8:Connect your device to adb and enter: adb root && adb shell remount / 9:Now open Root Explorer, grant SU and open the file called init.environ.rc and add the line: export PATH /sbin:” Type the result of command echo $PATH here” under the words early-init. Methode 2 1) Use Twrp or PhhSU to create /system/sbin 2) chmod the sbin folder to 755 3) make sure its NOT in /system/system 4) flash magisk Use the securize button if PhhSu is included in rom If that doesn't work: 1) Use the root method phhsupersu. 2) Then create the sbin folder in system root. 3) open termux or any terminal 4) type su, grant permission 5) type echo $PATH 6) Copy the whole text that you got (should be something like /sbin:/sbin or something similar 7) edit init.environ.rc (it is in system root). 8) Make a copy and add the on the first line the text that you got in step 6 9) Remove SU in system/bin or use securize from the treble settings menu. 10) Restart in recovery and flash your magisk. if your system is Read Only after installing phh superuser, you might need to flash magisk 21 to fix the read only system bug and make it RW