[GUIDE] How to Make Audio Mods Work Amazingly Well

Nemuritor01

Senior Member
May 22, 2017
258
170
0
What about bluetooth on PE and other custom ROMs?
Maybe the bug was related to an older firmware. I have no clue, which firmware guys are using and on what the pe and other guys have based their ROMs on. But the failure is not from AML or something.
If you have the problem, you can delete the sbin/.magisk/modules/aml/system/vendor/etc/audio folder in AML magisk module. Then it should work.
 

timbuctoo

Senior Member
Dec 17, 2011
488
130
73
S4, Groom Lake
These steps worked

Hi Again!
After some time of testing, i think i got it how to use Audio Compatibility Patch (1.7.3+) with Lineage OS properly on our device:

Skip audio_policy patching?
- No

Patch flags or remove selections?
- Remove (old logic)
If patched the audio gets worse/lower on speaker/jack.

Would you like to skip notification helper?
- No

Remove notification helper effect or volume listener library?
- Remove volume listener library

Would you like to skip usb policy patching for usb dacs?
- Whatever

Use library workaround?
- No
If used causes bluetooth routing problems.

No Audio Modification Library needed.
After this sequence, my earphones,bluetooth and speaker worked fine with ViperFX 2.7.1, especially the jack, witch was really quieter and muffed before.
Can you guys try it out?
Many thanks for your tip. Am confirming that these steps work like a charm without breaking Bluetooth (of course Viper randomly doesn't process audio, which is a well known bug without any known fixes yet). I didn't even have to copy the configuration files. Also, there is no need to install Audio Modification Library as well. I installed Ainur Sauron III, and it broke all audio (BT, speaker, headset and USB DAC) cribbing AML needs to be installed; so I uninstalled Ainur Sauron itself and things work well now.

---------- Post added at 01:43 AM ---------- Previous post was at 01:38 AM ----------

it doesn't work for me at all, viper keeps asking to install driver and reboots the phone.. again and again
Same here, i gave up after the tenth try
Do you have any other effect apart from Viper installed/enabled in parallel (Ainur Sauron etc.)? I'd recommend freezing (I use the SD Maid app for this), or completely uninstalling AudioFX. Also, if you're using Dirac Audio under Android Settings -> Sound menu, disable that as well (it's anyway effective only while processing wired audio).

Just have Viper (from XDA Labs) and Audio Modification Patch (from the Magisk Downloads section) installed and you should be good.
 

Mafioso

Senior Member
Nov 13, 2007
1,059
122
93
Pune
Followed all the steps on clean install crDroid, its working fine without any issues. Thanks a lot :good:

On a side note, the new Viper app doesn't seem to support audio profiles like old one used to do. Is there any way to enable it ?
 
G

GuestK00460

Guest
I just tried this with Ainur Narsil instead of Sauron and JamesDSP instead of Viper. Works well even with MultiROM and a custom rom as primary! Thanks for the write-up, let's hope I don't get wrecked by an OTA :)
ainur narsil link pls
 

meistr91

Senior Member
Jan 26, 2015
665
154
63
Attached is the profile converter for the new material v4a 2.7.:)
Hello! First of all I want to thank you for these wonderful tips! I have been struggling with getting viper to work via bluetooth since pie release and now it working in full power with combination of ainur sauron! Huge thanks mate!

Just as you stated and posted a viper profile converter, is it flashable via TWRP ? And how does it work? What other steps to convert a profile? Or this one of those flash and forget because all work will be done in the background without user interaction?

I have download some profiles from V4a profile updater TG chat, I have placed them in preset folder of v4a all of them shows up in speaker and headphones sections but not in bluetooth section. So i need to use this converter right?

And also if Im not asking to much could you provide tg chat link for viper support group? If only u dont mind, it would be really appreciated!
 

mostafa asal

Senior Member
Jun 24, 2014
77
13
28
Thank you soooooo much , i've been trying to figure out a fix for the mixture between ainur and dolby and i gave up.
But now , it works fine. Thanks again bro.
 

efakkawy98

Senior Member
Mar 30, 2017
111
20
0
Lucknow
Still not working

I don't know why this isn't working for me.
I retry this methods today 11/07/2019 but still I'm getting Viper Driver installation loop.
Please how do I get this to work????

I'm on latest MIUI.eu and Franco Kernel
 

mostafa asal

Senior Member
Jun 24, 2014
77
13
28
I don't know why this isn't working for me.
I retry this methods today 11/07/2019 but still I'm getting Viper Driver installation loop.
Please how do I get this to work????

I'm on latest MIUI.eu and Franco Kernel
Try to remove all modules and follow the same steps exactly, i followed it and got dolby working on latest resurrection remix rom.
 

efakkawy98

Senior Member
Mar 30, 2017
111
20
0
Lucknow
Try to remove all modules and follow the same steps exactly, i followed it and got dolby working on latest resurrection remix rom.
I tried everything exactly, but whenever i opened viper it would say drivers not installed, if tap yes it will install and reboot and the same thing will happen whenever I opened viper
 

ahdeean

Senior Member
Jan 11, 2018
125
55
38
I tried everything exactly, but whenever i opened viper it would say drivers not installed, if tap yes it will install and reboot and the same thing will happen whenever I opened viper
You can try this if u have root.

..and V4A kept on asking to install driver even after reboot so I had renamed the MusicFX.apk in the System to MusicFX.apk.bak.
@BenParz Thank you very much for the guide.

This trick doesn't work with MultiROM for sure.
If it doesn't work, try set sauron/narsil useroption to default.

I am on aosip and optimus drunk kernel. Here is what i did:

Set Useroption (narsil) to default
Remove all audio mod on magisk
Reboot
Uninstall viper (because it doesnt work before)
Go to /system/priv-app/MusicFX/ and rename MusicFX.apk to MusicFX.apk.bak
Follow OP steps..
Reboot..

It is work for me..
 

paarthkhatri

Senior Member
Jul 6, 2016
128
14
18
BenParz, i can't thank you enough for this! the choppy audio after installing Viper was making me crazy.
I'm running Lineage OS 05/18/2019 + nano gaaps

After mess around with this modules i got other way:

1 . Install Audio Compatibility Patch. It now comes with a multi-option installer, so you want to Select NO to the first option then choose Vol + (Patch New Logic). Select NO to the second option and then use Vol - (remove Volume Listener Library). This is done so that your audio won't crackle. You can skip USB Dac if you're not using it and you should choose NO at the last option (library workaround).

2. Download and install Viper4Android 2.7.1 Magisk Module here: https://zackptg5.com/downloads/v4afx_v2.7.1.0.zip .
More info : https://forum.xda-developers.com/android/apps-games/app-viper4android-fx-2-6-0-0-t3774651

3. Fix BT:

a. Rename "audio_policy_configuration.xml" in "/sbin/.magisk/img/acp/system/vendor/etc/audio" to "audio_policy_configuration.xml.bak".

b. Copy the audio policy configuration xml file from "/sbin/.magisk/img/acp/system/etc" to "/sbin/.magisk/img/acp/system/vendor/etc/audio".

4. Go to ViperFx and install drivers, Viper will auto Reboot!

I'm probably cutting some corners here, but i got no problems at all this far.

So I tried this but i cannot find the img folder in the .magisk folder. Any help?