But now the phone gets stuck on boot logo indefinitely. I forcibly entered the Fastboot mode and went to TWRP recovery using my laptop. I uninstalled Magisk and reinstalled it. Device booted fine now.
Next, I flashed Riru module only and rebooted. It did reboot.
Next, I installed EdXposed Yahfa. Rebooted but stuck on boot logo again. Uninstalled Magisk and repeated the process with Sandhook. Same result again.
I uninstalled EdXposed using the official zip and tried reinstalling. Still no luck. I don't understand what I am doing wrong. I really want to use Exi and Xposed Edge. Please someone help me with this.