I tried to root my infinix note 7 and it resulted to bootloops. I took these steps.
1. Unlocked bootloader
2. Backed up my rom and extracted the boot.img file
3. Used magisk v23.0 to patch the boot.img file
4. Used spft to flash only the patched boot.img file.
Then I rebooted my device and it resulted to bootloops. I was able to get it to work again by flashing the original boot.img file.
My question is... How do I root my phone successfully.