READ THE DESCRIPTION BEFORE DOING ANYTHING!!!
Make sure you're battery is not lower than 30%! If you're battery will get empty during the installation, you may get hard-bricked. You're device should be able to get into HBOOT.
First of all, make sure your bootloader is locked! It will not work if your bootloader is unlocked! BTW, this will only work for you when your device is soft-bricked, when your device is hard-bricked you can't even get to the fastboot menu.
RUU files: adf.ly/3726088/primoruu