I had to flash a zip called "hardwareoff_1.1.zip". You can find it within the forums. Since my device has stock recovery (and I prefer to keep it that way), I flashed the zip through Magisk itself and it worked flawlessly. Drop me a PM if you need anything.
i tried to install hardware off and it cause boot loop
Edit: only go well with the patch universal safetynet fix