I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed. Please
do some research if you have any concerns about your phone before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.A lot.
Need to unlock your boot-loader first . Need PC (obviously)
Go to settings - About Phone - Build no - tap 7 times continuously to enable developer option.
After Developer Option Enabled -Go to -Settings- Developer Options- toggle OEM UNLOCK to on
Install Adb and fastboot driver first here - (by snoop) -[url]https://forum.xda-developers.com/showthread.php?t=2588979[/URL]
After setup adb & fastboot -Boot Device in Fastboot Mode (bootloader)
shutdown device then Press and hold power button(first) + volume Up key for some second until fastboot screen shows up.
connect phone with usb cable.
Steps For Unlocking Boot-loader
open CMD in windows then type this command
fastboot devices fastboot flashing unlock
Instruction for flashing twrp
download this attachment from here twrp https://drive.google.com/file/d/1bfjbZs08uRerH8baQdwFxVDxCpVQj5vG/view?usp=sharing
extract all files in somewhere in pc for example root of c drive
then type this command
fastboot flash recovery c:\twrp.img
if one is not working then try another twrp.img
For fixing of bootloop flash patched boot.img too (attched in link)
Flashing boot.img https://drive.google.com/file/d/1PQvsPXI4YgMgKHJ2NPwzqDUrGye0W5Zz/view?usp=sharing
fastboot flash boot c:\magisk_patched.img
Boot in recovery mode if successful or not
shutdown device then Press and hold power button(first) + volume down key for some second until twrp screen shows up.
topjohnwu for magisk
osm0sis Fot his tool AIK