Here's a newer improved installer for Magisk that fixes most of the current problems. Just install it with Magisk and reboot. The current update didn't work for me though, I hope future updates will fix that but by all means try it:
A refined ViPER4Android installer. Contribute to programminghoch10/ViPER4AndroidRepackaged development by creating an account on GitHub.
github.com
I just wanted to take a moment to thank you for this package. V4A has always had its pros and cons with me - when installed and working well, the sound is far superior to anything else out there but installation is always problematic. Also, on modded Motorola phones, it seems to be a one-shot deal - if it doesn't install properly the first time or if it's installed, removed and installed again, good luck on getting it to work. With older versions of Android and V4A, I was able to fix things by modifying the audio config file but everything's all locked up now and can't be touched, even with root access - I had to reinstall the ROM after an attempt to modify the audio config file left me with an empty file and no way to replace it. because there is no fully functioning TWRP for my phone.
Your modifications not only fixed the installation issue, it also fixed other issues with the sound on my phone. I no longer get occasional system-wide sound failure on switching from music to video apps or from attaching a different set of Bluetooth earbuds or speakers.
It's Thanksgiving day today, here in the States, so I think it only appropriate to give thanks for all your hard work!
I'll be posting
a link to your package in the /e/ forums as a solution to this problem with my phone.