yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] gfrank227:
For those with Android 12, see the following thread - several people are reporting that they got it working.

https://xdaforums.com/t/android-12-viper4android.4307163/
[Android Apps and Games] maxmopp:
I had a selinux deny:

07-26 15:07:13.329 13850 13850 I HwBinder:13850_: type=1400 audit(0.0:333): avc: denied { execmem } for scontext=u:r:hal_audio_default:s0 tcontext=u:r:hal_audio_default:s0 tclass=process permissive=1

I could get 2.7.2.1 to work (A11/LOS18) by adding to sepolicy:

supolicy --live "allow hal_audio_default hal_audio_default process { execmem }"

that same allow is in /data/adb/modules/ViPER4AndroidFX/sepolicy.rule - why that did not work I dont know
[Android Apps and Games] Cruzy12100:
Thanks to your fix the viper service is running again. One question though, since the driver version is slightly old (2.5.x.x), will it make a difference as to how the processing happens. As after applying my earlier settings it feels a little "flat".

Also is there a Link I can refer for applying the recommended settings or something like that. I installed the permissive version.

Earlier android version was 10 current version is 11.
[Android Apps and Games] QkiZMR:
Why Viper4Android wants root permissions? Why driver isn't installed with magisk module? This look pretty sketchy for me.
[Android Apps and Games] Xj748:
good evening to the whole group and thank you!

I ask you for help ... I installed on Elephone s8 smartphone with Root permissions (it has a mediatek processor) viper4android and then I also tried James DSP ... but they only work on youtube or music player or spotify, but on applications such as i games don't work ... (on samsung tablet with root it works instead) ... do you know how I can fix it? some other app or mod that allows me to increase the volume in the headphones would also be fine ... then if you can also equalize even better ....

buona serata a tutto il gruppo e grazie!

vi chiedo aiuto... ho installato su smartphone Elephone s8 con permessi di Root (ha un processore mediatek) viper4android e poi ho provato anche James DSP... ma funzionano solo su youtube o player musicale o spotify, ma su applicazioni ad esempio i giochi non funzionano... (su tablet samsung con root invece funziona)... sapete come posso risolvere? andrebbe bene anche qualche altra app o mod che mi permetta di aumentare il volume in cuffia... poi se riesci anche a equalizzare ancora meglio....

Grazie 🙏
[Android Apps and Games] DiamondJohn:
For starters, you are running permissive (ie end of the line, "permissive=1"). Permissive will log the denies, but actually allow them. So if it isnt working now, I dont think changing your selinux will help.

I havent nchecked your allow line, but I have built an app TeMeFI which I used to use to create selinux allows (originally for viper). You can find it under the menu at: Logcat>Logcats>Generate SELinux Allows The output format is more for ROM source code or the sepolicy file in Magisk, but it should give you a better idea of what to set.
[Android Apps and Games] rolandyip:
Is it possible to let Viper show which preset are selected/ running?
[Android Apps and Games] maxmopp:
Thanks a lot, cool tool!

I did check with enforcing=1 as well though
[Android Apps and Games] DanGLES3:
2.3 arguably provides a better sound but 2.5 provides a better convolver,also you can just open the app and install the driver it will automatically install its own module
[Android Apps and Games] djjohnnyblaze:
Thanks for the quick reply!

I do not use convolver. I am only using VDC file and Spectrum Extension so I guess I should stay with 2.3 for better sound.

I have been using the viper4android FX 1.7.3 module download and installed from the Magisk repo. I believe it is this one:

https://xdaforums.com/apps/magisk/module-viper4android-fx-2-5-0-5-t3577058

Does that use this version of viper4android by any chance? Installed with driver 2.3.4.0.
[Android Apps and Games] DanGLES3:
Well as far as i know,yes,this version of viper is based on it,and it mostly just focus on enhancing the app design and fixing several bugs of the original viper app

---------- Post added at 08:05 PM ---------- Previous post was at 08:04 PM ----------

I almost forgot 2.3 also lacks analogX which was introduced in driver 2.4-5
[Android Apps and Games] rippledrums:
Driver 2.5 also uses less battery as far as I know, and to be honest I really don't notice a difference in quality, maybe a bit more bass in 2.3.
[Android Apps and Games] saoudien07:
Hi. I flashed v4afx_materialized_v1.4(2.6.0.6).zip dispo in the OP, and the app does not appear in app drawer, so in installed the app v2.6.0.6 dispo in the telegram group.

Now always my phone boot, my superSU ask to update the binary, and it always unsuccessful :(

I uninstall the app, to fix SuperSu app problem, but its unsuccessful binary updating.

Please help??
[Android Apps and Games] cd993:
Hey, is there a black/AMOLED verison of the latest release?
[Android Apps and Games] ngshixuan:
You can customize through substratum https://labs.xda-developers.com/store/app/pittvandewitt.viperfx.theme
[Android Apps and Games] Humpie:
Hi, I got redirected to here from https://github.com/therealahrion/ViPER4Android-FX/issues/13 . Long story short, I'd like to have the ability to swap left and right audio and I couldn't find a way to do is. So, I hope you like the idea as well and would consider building it in viper. The only way currently to watch a video with flipped audio on YouTube properly is to download it and mirror the video image, which in no way is handy.
[Android Apps and Games] Washo4evr:
Hi guys,

Does anyone know if some progress has been made on a 64bit driver for Huawei Mate 10 and other P20?

Thank you
[Android Apps and Games] DanGLES3:
So far nothing,the developer of the driver so far hasn't responded
[Android Apps and Games] Max195:
is this new app supposed to not properly load presets saved with an older version of the v4a app because i just loaded a profile i saved with the 2.5.0.5 v4a app and it did nothing
[Android Apps and Games] rippledrums:
Yeah there are some differences in the preset format but I think it should load even if it gives an error.

Did you give it the Storage permission?

If all else fails, I guess you'll have to make the preset from scratch, that's what I did.
[Android Apps and Games] DarkSJ1998:
I'm running a OnePlus 3T on latest Oxygen OS 5.0.5 Stable... And, V4A isn't working for me when I'm using Bluetooth Headset/Speaker.

Otherwise also (when using Phone speakers or Earphones) I need to manually disable V4A, re enable it, stop the music, again play the music to get V4A to work actually :/

What's the issue? And I just can't get it to work on my Bluetooth devices :confused:
[Android Apps and Games] the blackbull:
I have the same problem with driver installation on a LeEco Cool 1
[Android Apps and Games] chcknsld:
Hi! Is there any way to install this app to system?
[Android Apps and Games] Ken C:
I'm curious, no judging but I've got the 1.7.3 version running from magisk.

Have any of y'all tried the audio compatability patch in magisk downloads?

Haven't really dug into this thread but that's what made that particular version work on my lgg6
[Android Apps and Games] rippledrums:
I use it along with V4A so that it processes audio from Spotify (and other streaming apps) too. But if you use both you'll also need the module Audio Modification Library.

:good:
[Android Apps and Games] Ken C:
Funny thing, first time I installed it I used both audio modification library & the compatibility patch. Not sure which did the trick.

I can say that since the first time I came across viper 100yrs ago you needed to pull allot of audio stuff out of the rom and modify certain build.props to get it to work, those modules are supposed to take care of it.

That being said I've pretty much have always used the same version of viper. All these updated versions just haven't worked for me yet. (haven't out tried that hard either)

But, unless I'm missing something (which could be) I just want it to process the sound and be done with it. Don't care about themes etc
[Android Apps and Games] rippledrums:
Yeah the modules take care of the props but to process streaming audio, at least since Nougat or Oreo, you need to patch/remove the deep buffer and that's what the Compatibility Patch module does. Audio Modification Library just configures all the audio mods to make sure they don't interfere with or break each other.

This V4A works very well for me along with those 2 modules.

Recommended installation steps:

1 - V4A driver then reboot

2 - Audio Compatibility Patch

3 - Audio Modification Library

4 - Reboot

5 - Profit

Just remember that if you're using Magisk, sound may not process in V4A right after boot because Magisk takes a while to run its scripts.
[Android Apps and Games] Ken C:
As compared to the version I'm using is there better sound processing or something?

I'm thinking if it isn't broke why screw with it?
[Android Apps and Games] gfrank227:
Hi all,

I thought I would share the method that I have discovered to correctly configure V4A to process audio. This is tested on my Moto G8 Plus (doha) running Android 10. My impression from this thread and others is that this method may work for many different phones running A10 and A11, so I thought I would share it here. I didn't create this method, but I am simply gathering various pieces of the puzzle into one post so that people will hopefully have an easier time getting V4A to process.

1. Make sure your device is rooted with Magisk Manager installed.

2. Download V4a FX through Magisk Manager app. Install and reboot.

3. Install Audio Modifications Library (AML) through Magisk Manager app. Reboot.

4. Enter the V4A app and install the drivers. The phone will automatically reboot.

5. Go back into Magisk and disable AML. Reboot.

6. Enter the V4A app and the program will ask to reinstall the drivers. Do this; your phone will reboot.

7. ** Use your preferred android file explorer and find the post-fs-data.sh file inside the following directory in the root: /data/adb/modules/ViPER4AndroidFX/

Add the following lines to this file: (thanks to the original poster of this: see this thread.)

magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }'

magiskpolicy --live 'allow audioserver system_file file { execmod }'

magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }'

magiskpolicy --live 'allow mediaserver system_file file { execmod }'

magiskpolicy --live 'allow audioserver unlabeled file { read write execute open getattr }'

magiskpolicy --live 'allow hal_audio_default hal_audio_default process { execmem }'

magiskpolicy --live 'allow hal_audio_default hal_audio_default_tmpfs file { execute }'

magiskpolicy --live 'allow hal_audio_default audio_data_file dir { search }'

magiskpolicy --live 'allow app app_data_file file { execute_no_trans }'

magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio_tmpfs file { execute }’

Then, reboot your phone.

8. go into the V4A app; enable legacy mode and turn on the master limiter.

9. Congratulations. V4A should now be processing.

** Alternatively, you can download the SELinuxModeChanger app from the F-droid store and set SELinux to Permissive. However, I prefer the first method, since this second method is less secure.

I didn't create this method; however, I developed this method after gathering together different methods that have worked for different people. I hope that this will help someone.
[Android Apps and Games] pndwal:
FWIW, I'm running Viper4Android FX 2.7.2.1 from Magisk repo w/ 2.5.0.4 driver on stock MIUI Android 10.

After installing and setting Legacy mode (Compatibility mode does nothing for me), Driver Status is Abnormal, but driver is always reset properly / working (for Legacy mode) simply by disabling module and rebooting, then enabling and rebooting again (2 reboots).

Does this work for others? PW
[Android Apps and Games] gfrank227:
There are multiple reports of users on A10 and A11 using this trick with Audio Modification Library to get the drivers to work properly. I just saw something with people claiming that doing something similar with JamesDSP can also help get V4A drivers to work, then you can disable it (I have not tried this).

I also know for sure that many phones can run V4A without legacy mode. Did the drivers work properly on your phone without legacy mode, and then change to abnormal after it was enabled?

When my phone is not set in legacy mode, the drivers immediately switches to Abnormal. But turning legacy mode back on fixes it without a reboot.

Sometimes I need to kill the process, and then reset some switches in V4A in order to get the app to start processing audio again after a long time. I believe this is due to the app being forced out of RAM by other apps. But I don't believe this is what you're referring to.
[Android Apps and Games] pndwal:
Yes, I used disable AML trick also, but once I realised we simply need a way to 'reset' driver once in Legacy mode, I tried simply disabling module and rebooting, then enabling and rebooting again and this works without installing AML...

I haven't seen any reports of others using this particular method.

Ah, thanks; I hadn't seen recent reports of Viper4Android FX working w/o Legacy mode enabled; I think need for this may be more common.

No, I have Abnormal on both Redmi Note 8T (stock MIUI, Android 10) and Mi Pad 4 (LOS 18.1, ie. Android 11) w/o Legacy mode.

Interestingly however, on my Mi Pad 4 I was surprised to find it needed only mandatory reboot after module Installation to have working Viper.

I did this: installed Viper4Android FX from Magisk repo but instead of reboot immediately, opened Viper4Android FX App (it's already installed), let it install missing Neon driver then reboot, open Viper4Android FX, check driver status; it's Abnormal, select Legacy mode in settings, check driver status again and it's Normal / working! (No reset needed.)

Not sure if it's Android 11, AOSP standard ROM, SELinux policy fixes in Alpha Magisk fork I use or other that allows swapping to Legacy mode to work immediately, but my RN8T on stock MIUI & Android 10 & needs driver reset incl. reboots w/ Legacy mode on to work any time Legacy mode is re-engaged.

Seems we have the same common system environment.

Yup, I've only had driver abnormal issues with system changes so far, and reset driver has always fixed (except with one Magisk build until SELinux regression was fixed).

Thanks for your feedback! PW
[Android Apps and Games] gfrank227:
Good to know. Thanks. :)
[Android Apps and Games] gfrank227:
Someone on telegram posted another method on A10 and A11 to get V4A to process correctly. I thought I would paste/share here so that it would be saved for posterity. Again, hope this helps someone. (I have not personally tried this, so cannot vouch for this):

After trying almost every solution in this group and online, here's what I've discovered works to get Viper processing successfully on all of my A10 and A11 phones (your results may vary):

0. Flash Magisk v 21.0 (IMPORTANT!)

1. Flash Android Modification Library (AML) via Magisk.

2. Reboot

3. Flash Viper Magisk module

4. Open Viper app then reboot

5. Open Viper app and activate Legacy mode

6. Turn on Viper

7. Force close Viper

8. Open Viper and play some music

9. It should now be processing successfully

10. Open Magisk and update to the latest version if desired (optional).
[Android Apps and Games] Xj748:
please 🙏 can anyone help me?
[Android Apps and Games] SickCuriosity:
Getting Viper to work properly, especially on less common models, takes a bit of trial and error.

The most common solutions are: install Magisk modules called "Audio Modification Library" and "Audio Compatibility Patch". Then set the selinux policy to "permissive", you can do it with an app like this.

Better if you uninstall Viper first, do these stuff, restart and then reinstall Viper. These are the most common solutions, if after that it still doesn't work I'm not sure what else to do. There are a lot of different tricks around threads, some work and some don't. You can also try Viper's "legacy mode" and "compatibility mode" settings, but they may create more problems than they solve.

Good luck...

I'll reply in Italian since you seem to be Italian.

Far funzionare Viper correttamente, soprattutto su modelli meno comuni, va un po' a tentativi.

Le soluzioni più comuni sono: installa i moduli Magisk chiamati "Audio Modification Library" e "Audio Compatibility Patch". Poi setta la policy selinux su "permissive", puoi farlo con un'app apposta tipo questa.

Meglio se prima disinstalli Viper, fai queste robe, riavvii e poi reinstalli Viper. Queste sono le soluzioni più comuni, se dopo ancora non funziona non so bene che altro fare. Ci sono un sacco di trucchi vari in giro per i thread, a qualcuno funzionano e ad altri no. Puoi anche provare le impostazioni "legacy mode" e "compatibility mode" di Viper, ma potrebbero creare più problemi di quelli che risolvono.

In bocca al lupo...

MOD EDIT: While I appreciate your initiative to help this user, you could have provided an English translation also which would help other users visiting this thread.

Whenever you are posting in another language, please provide an English translation also as per Rule 4.

/TNSMANI, Senior Moderator
[Android Apps and Games] Skaifer:
Huawei P9 Lite VNS-L21 | EliteROM 7.7 | Android v7.0 | Kernel 4.1.49-EKR-v7.3 | Latest possible updates | Magisk 23

Hi there!

So, after several days of tinkering and rebooting my phone a couple dozen times, trying different versions of ViperFX, patches and tips, I've decided, that I have to ask for a help.

I've managed to get working driver with the latest version of ViperFX-2.7.2.1. Wasn't working at first, it didn't want to install the driver, but after hell of amount attempts to get working other versions, tried again latest. It said it could not copy an empty HTC profile file at 6-th step, I deleted it, then it installed just fine.

There are no patches installed right now or other mods. All is working in legacy mode except driver states abnormal in these situations:

Turning master switch off/on.

Connecting/disconnecting bluetooth earbuds

Turning on Headphone surround+.

Basically, after the device being changed, driver can not launch again until I reboot, then it works until next device change. So if my earbuds reconnect my ears are 'bleeding', because without driver sound level is too high.😅 I've tried to kill audio server (su -c killall -q audioserver), after clearing cache and force stopping app, but it does not help - only restart. If any logs can be helpful let me know what should I collect exactly.
[Android Apps and Games] XODS:
Trying to get viper only my 1+ 9pro. I've tri d every tutorial and version I could find, the app and module install, but when I open the app it asks to I stall drivers. I hit ok, it reboots, open the app again and it asks to install driver, and does this over and over.
[Android Apps and Games] gfrank227:
The following is posted to the telegram site regarding an installation loop:

If you experience a driver install loop, please follow these steps:

N.B. All formatted $ code are commands you would use in a terminal

1. Run $ touch /sbin/.magisk/modules/ViPER4AndroidFX/post-fs-data.sh; echo 'setenforce 0 >> /sbin/.magisk/modules/ViPER4AndroidFX/post-fs-data.sh' && reboot

2. If V4A loaded correctly, run $ su -c dmesg | grep 'avc:' > /sdcard/dmesg.txt and upload the file here. The file most likely contains information on what selinux rules to add so your device can be supported.

3. Run $ echo 'sed -i 'setenforce 0' /sbin/.magisk/modules/ViPER4AndroidFX/post-fs-data.sh' && reboot

4. If the problem could be located, you'll be contacted to try a build that may contain the fix.
[Android Apps and Games] XODS:
Thanks, I'll try do this later when I get home.
[Android Apps and Games] gfrank227:
OK let me know. If you want to upload the file to the telegram site but don't have access, I could potentially send it for you. Let me know.
[Android Apps and Games] Xj748:
Spoiler content hidden.

Mod. Translation: thanks 🙏 but unfortunately it didn't work 😩
[Android Apps and Games] SickCuriosity:
E allora non saprei. Se c'è una custom ROM per il tuo telefono magari può aiutare, se no non saprei.

Then idk. If there's a custom ROM for your phone maybe it might help, otherwise idk.
[Android Apps and Games] Xj748:
si ce n'è solo uno, ma viper4android funziona su youtube, spotify, lettore musicale, suonerie, ma non sui giochi... non capisco perchè... su tablet samsung elabora qualsiasi applicazione...

Mod Edit:

"yes there is only one, but viper4android works on youtube, spotify, music player, ringtones, but not on games ... I don't understand why ... on samsung tablet it processes any application ..."

@Xj748

Please use English. This is an international forum and English is absolutely mandatory.

Thx for your cooperation.

- mrjuniork (Forum Moderator)
[Android Apps and Games] SickCuriosity:
Potresti provare a registrare i log di Viper mentre gira un gioco, magari scopri cos'è che sta andando storto. Non so come si faccia ma sono sicuro che da qualche parte su questo forum lo trovi. Se ce la fai prova a postare i log che quando ho tempo ci do un'occhiata.

You could try saving the logs from Viper while running a game, you might find out what's going wrong. Idk for sure how to get viper logs but I'm sure on this forum you'll find it. If you manage post them here so we can take a look.
[Android Apps and Games] Xj748:
thank you 🙏 but unfortunately it didn't work 😩 ... yes I'm Italian!
[Android Apps and Games] XODS:
Running the first command returns and error.

:/ $ su

ce 0 >> /sbin/.magisk/modules/ViPER4AndroidFX/post-fs-data.sh' <

touch: '/sbin/.magisk/modules/ViPER4AndroidFX/post-fs-data.sh': No such file or directory

setenforce 0 >> /sbin/.magisk/modules/ViPER4AndroidFX/post-fs-data.sh

:/ #
[Android Apps and Games] Skaifer:
Problem solved. I installed audio compatibility patch and modification library. Removed all mods and cleaned up. Then followed this guide flashed trough recovery dolby atmos and then ViperFX provided there. Dolby app is not present, I'm not sure if it even gave any result. But ViperFX is working finally without errors and I'll leave it there.
[Android Apps and Games] cmch:
viper4android latest magisk module not working on:

POCO F1

Pixel Experience Plus ROM

Android 11

Magisk v23

SELinux: Enforcing
[Android Apps and Games] observingman:
This works !
[Android Apps and Games] zgfg:
There many posts describing how to install, generallythere are two methods (AML or MagiskPolicy rules), and the same can be found also in different other threads on XDA, Telegram channels, YouTube, elswhere.

Please do some search and try.

I have Mi 9T with A11 and V4A works with no issues (installed by using Magiskpolicy rules in the module's post-fa-data.sh script
[Android Apps and Games] Causical:
Yes this is literally the same method EVERYONE'S been talking about for a while now. It would be something if it showed how to use Viper on A11 without legacy needing to be enabled while still enforcing SElinux.
[Android Apps and Games] cmch:
i research a lot😮‍💨, and aml method didn't worked for me, installing app didn't worked for me, telegram channels didn't helped me infact they said go to official xda and ask there only, official magisk modules didnt worked for me, v4a legacy mode didn't worked for me, youtube didn't helped me cuz munchy video provided two methods and both of them didn't worked, unlike others i am fearful of bootloops( even when i have a nandroid backup), ALTHOUGH MAGISK POLICY IS A NEW THING SO PROBABLY ILL TRY THIS.

EDIT: i was using old AML instead of ainur narsil, now viper is working on legacy mode.