• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP][ALL ROOT SOLUTIONS][6.0+]ViPER4Android FX 2.7

Search This thread

Scientist07

Member
Jun 20, 2013
40
2
Not working after magisk update. Moto g7 Power rooted with Magisk and after updating magisk manager to the latest (21.2), viper no longer works. I tried reinstalling viper magisk module (and using legacy mode) but no change. I'm using viper 2.7.1.2 (EDIT: 2.7.2.1) and this is the driver status report I get:
 

Attachments

  • JjxYpXJ.png
    JjxYpXJ.png
    77.1 KB · Views: 94
Last edited:

Lughnasadh

Senior Member
Mar 23, 2015
2,109
1,406
Google Nexus 5
Huawei Nexus 6P
Not working after magisk update. Moto g7 Power rooted with Magisk and after updating magisk manager to the latest (21.2), viper no longer works. I tried reinstalling viper magisk module (and using legacy mode) but no change. I'm using viper 2.7.1.2 and this is the driver status report I get:
Same thing happened to me after updating to Magisk 21.2. I uninstalled the module and reinstalled V4A using the 2.7.1.2 apk instead and is working now. May do the same for you.
 
Last edited:

Lughnasadh

Senior Member
Mar 23, 2015
2,109
1,406
Google Nexus 5
Huawei Nexus 6P
i did but sometimes it works and sometimes not ! and when i connect headphones no effects appears, and also sometimes no sound !
Not sure what is going on in your case. It could be a number of things, including the music player you are using (e.g. Poweramp in general needs DVC disabled), whether you are using a streaming app (maybe you need ACP), whether you have other audio mods installed (may need AML), what version of Magisk, whether you are using the apk or magisk mod installation method, your device, etc...
 

Scientist07

Member
Jun 20, 2013
40
2
Same thing happened to me after updating to Magisk 21.2. I uninstalled the module and reinstalled V4A using the 2.7.1.2 apk instead and is working now. May do the same for you.

Did that already but it didn't work, unless I did it wrong. I installed the 2.7.2.1(I'm assuming you mixed up the last two numbers) apk and when I opened it, it said driver wasn't installed and asked me to install it. Did that and it reinstalled the viper magisk module which doesn't work, so I'm caught in a circle. Is there some official apk I'm supposed to use?
 

Lughnasadh

Senior Member
Mar 23, 2015
2,109
1,406
Google Nexus 5
Huawei Nexus 6P
Did that already but it didn't work, unless I did it wrong. I installed the 2.7.2.1(I'm assuming you mixed up the last two numbers) apk and when I opened it, it said driver wasn't installed and asked me to install it. Did that and it reinstalled the viper magisk module which doesn't work, so I'm caught in a circle. Is there some official apk I'm supposed to use?
Yeah, I meant 2.7.2.1. I used the official apk that was on XDA Labs before it closed down. I also had AML installed first (because I'm also using JamesDSP). Some have had success when that has been installed first. Not sure it will help your situation.
 

Scientist07

Member
Jun 20, 2013
40
2
Yeah, I meant 2.7.2.1. I used the official apk that was on XDA Labs before it closed down. I also had AML installed first (because I'm also using JamesDSP). Some have had success when that has been installed first. Not sure it will help your situation.

Yea I just read something about using AML so I'm going to try that and see how it goes.

EDIT: AML worked for me. Had to do this sort of long process of installing and deactivating it and rebooting before installing viper driver but it works now. Seems to have less features though. Oh well.

EDIT: The options are there, just had to plug in my headphones. Sometimes Viper gets deactivated when I'm using spotify but after pausing and resuming music it starts to work. Just updated to magisk 21.3. Will see if it changes anything. Thanks for all the help.
 
Last edited:

Sebacestmoi

Senior Member
Oct 11, 2005
180
50
Hi,
Yesterday I've tried to install ViperFX on my Pixel 2 XL with the latest LineageOS but it wasn't working correctly.
I've uninstalled it but since that I can't pass the ctsProfile check. Do you know what I should do to pass it again ?
Kind regards.
 

austick

Senior Member
Aug 5, 2010
75
13
I thought that "abnormal status" on my phone is due to MIUI (just purchased a new phone), but reading previous posts it seems to be a common problem recently. SElinux permissive is working, but I do not like this approach. I fixed it this way (after installing Viper as Magisk module and installing drivers):

1. Locate and edit file
Code:
/data/adb/modules/ViPER4AndroidFX/post-fs-data.sh
2. Add this text to the end of the file
Code:
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 }'
3. save, reboot phone
4. go to viper4android app and toggle legacy mode off and on, it should work now with legacy mode enabled

Alternative way is to run commands from step #2 from Tasker on each boot.

Tested on MIUI 12, Magisk 21.1 and Viper 2.7.2.1
I solved follow this steps and restart dvc (on/off/on) on Poweramp (it's important)
 

flash713

Senior Member
May 7, 2015
1,102
529
Google Pixel 4 XL
on my 6t, I deleted v4a than wiped the cache in twrp and installed the magisk version an all works fine...

I'm using a OnePlus 6t, EvoX Android 11, with BusyBox, AML, ACP magisk modules and magisk 21.2. Nothing worked for me to get latest Viper from here working. I flipped Legacy mode on and off and rebooted a few times and flipped compatibility mode on and off and did a few reboots and still no nothing when I play music on youtube vanced-micro g non rooted vanced btw because regular rooted YTVanced doesn't currently work on Android 11 AOSP roms on 6t. Any tips? I guess Ill search for removing AML and ACP and Viper and maybe do a dirty install again or restore my backed up clean system partition in TWRP and mess with this some more. Should I do this order or does order even matter?
Install ACP, AML, Viper apk and or magisk module. Or should I install Viper first and others after. Let me do more searching and see what I can find. I'm actually happy with this new XDA forum. I've been here almost daily since around 2011ish. 😁🤔
 

Harrison8c

Senior Member
Apr 27, 2018
58
11
Does Viper4Android FX work worse on Android 11? I updated from Android 9 to Android 11 and to make Viper4Android work I had to install bunch of audio compatibility patch and audio mod library modules. Now it works. On driver information everything is enabled. It works yet most of the settings don't seem to do anything anymore. It doesn't sound like I had it sounding previously on Android 9.

Am I right and is there any solution? Really considering downgrading back to Android 9 for this.
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,617
5,393
Sydney
Does Viper4Android FX work worse on Android 11? I updated from Android 9 to Android 11 and to make Viper4Android work I had to install bunch of audio compatibility patch and audio mod library modules. Now it works. On driver information everything is enabled. It works yet most of the settings don't seem to do anything anymore. It doesn't sound like I had it sounding previously on Android 9.

Am I right and is there any solution? Really considering downgrading back to Android 9 for this.
I dont know how or when I found it, but I used this zip in magisk, on my pixel 4a running Android 11. I am sure I must of got it somewhere off here, but when I search for it, I cant find it to give attribution to who posted it first.

ViperFX_Android11.zip

The only thing I changed (because I can) is that I switched it to boot SELinux Enforcing and it still works. The existing ZIP forces it to boot permissive

EDIT: You can now download it from
 
Last edited:

flash713

Senior Member
May 7, 2015
1,102
529
Google Pixel 4 XL
I dont know how or when I found it, but I used this zip in magisk, on my pixel 4a running Android 11. I am sure I must of got it somewhere off here, but when I search for it, I cant find it to give attribution to who posted it first.

ViperFX_Android11.zip

The only thing I changed (because I can) is that I switched it to boot SELinux Enforcing and it still works. The existing ZIP forces it to boot permissive

I installed it using magisk manager and it works. Thanks! I'm attaching a screenshot of magisk install and it working. TKS again!! ✌️
 

Attachments

  • Screenshot_20210113-075631.png
    Screenshot_20210113-075631.png
    248 KB · Views: 296
  • Screenshot_20210113-075427.png
    Screenshot_20210113-075427.png
    130 KB · Views: 291

Sebacestmoi

Senior Member
Oct 11, 2005
180
50
For those having below issues with V4Android 2.7.2.1 on
Android 11
-Have to Install a Custom kernel to make V4A work
-Driver not installed/enabled or abnormal processing
-WiFi disabled
-Sound distortions in calls/notifications
-Not processing streaming services like
YouTube, Amazon Music, Spotify

::Steps::

1.Disable/Uninstall com.android.MusicFX
2.Install/Upgrade Magisk to Canary
3.Install Magisk Modules as below:
-Ainur Narsil (recommended but not required for V4A)
-AML
-ACP (volume key sequence: -+-+—)
3.Boot to TWRP Recovery
-Flash v4afx-rootless_10.21.2020.zip
(https://zackptg5.com/downloads/v4afx-rootless_10.21.2020.zip)
4.Reboot to System
5.In Magisk Manager install module
ViPER4Android_FX-v2.7.2.1(2721)
(If installation fails with Unable to download apk error,
Download and install from Local storage below file
https://zackptg5.com/downloads/v4afx_v2.7.2.1.zip)
6.Restart Phone
7.Follow steps as mentioned by
@_mysiak_
https://forum.xda-developers.com/t/...-0-viper4android-fx-2-7.3774651/post-84121895
i.e.,
-Use a Root Explorer file explorer like MiXPlorer
-Go to /data/adb/modules/ViPER4AndroidFX/
-If post-fs-data.sh file exists add below lines at end of the file
otherwise create file
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 }’
8.Change File permissions in Terminal/Termux/MixPlorer to 755
i.e.,
su -c chmod 755 post-fs-data.sh
9.Restart Phone
10.Open Viper4Android and Enable Master Limiter and Legacy Mode in Settings
11.Check V4A Driver/WiFi/Mobile Status, Sound Distortions for Calls/Notifications etc.,
12.Play Music and Enjoy

Hi,
First thank you for this wonderful guide.
I was able to make it works by following your guide minus the ACP module cause when I've installed it on my phone it cause my bank app to see that my phone is rooted... Is it normal ? Should I miss something if it isn't installed ?
I'm on a Pixel 2 XL With LineageOS 17.1 (Android 10)
Kind regards
 

nanopino

New member
May 29, 2014
1
0
I dont know how or when I found it, but I used this zip in magisk, on my pixel 4a running Android 11. I am sure I must of got it somewhere off here, but when I search for it, I cant find it to give attribution to who posted it first.

ViperFX_Android11.zip

The only thing I changed (because I can) is that I switched it to boot SELinux Enforcing and it still works. The existing ZIP forces it to boot permissive
how did you switch it to be SELinux enforcing? did you toggle flag in the permissive.sh file?
 

mrjuniork

Forum Moderator
Staff member
Aug 29, 2015
1,167
1,895
OnePlus 5
OnePlus 6
I dont know how or when I found it, but I used this zip in magisk, on my pixel 4a running Android 11. I am sure I must of got it somewhere off here, but when I search for it, I cant find it to give attribution to who posted it first.

ViperFX_Android11.zip

The only thing I changed (because I can) is that I switched it to boot SELinux Enforcing and it still works. The existing ZIP forces it to boot permissive
Yes, that's exactly that file that I have been using since I'm on A11. The official update to A11 was quite messy and doesn't come close to the stability of this version.
This zip has been available quite some time before Dewitt updated to A11. I never looked back.
And if SELinux enforcing works, then I'm gonna give it a try.
Thx mate (y)
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,617
5,393
Sydney
how did you switch it to be SELinux enforcing? did you toggle flag in the permissive.sh file?
I kept the file, but made sure it doesnt run by
1. Makking it hidden (i.e. chyanging the name to start with a "."
2. Removing the execute permissions lon the file.
I didnt want to delete it when i first did it, in case it was needed. But5, the modle has explicit se linux allows which is the propper way to correct issues caused by se linux. I amgiuessing they did the fix, but forgot to set it back to enforcing, or didn't get it working on theor specific ROM/device, and gave up.

Yes, that's exactly that file that I have been using since I'm on A11. The official update to A11 was quite messy and doesn't come close to the stability of this version.
This zip has been available quite some time before Dewitt updated to A11. I never looked back.
And if SELinux enforcing works, then I'm gonna give it a try.
Thx mate (y)
I saw the file while I was still on Oreo and downloaaded it then and there. I searched on XDA and couldn't find it or the post; i would of prefered to link to the post than try and appear to claim credit for someone else work. When I did a google search it actually gave me a direct link to the file/attachment, biut not the post. Mabe the post was deleted.
 
Last edited:

asripath

Senior Member
Jul 12, 2020
107
63
Hi,
First thank you for this wonderful guide.
I was able to make it works by following your guide minus the ACP module cause when I've installed it on my phone it cause my bank app to see that my phone is rooted... Is it normal ? Should I miss something if it isn't installed ?
I'm on a Pixel 2 XL With LineageOS 17.1 (Android 10)
Kind regards

Use it if you have any sound distortions/streaming media processing issues.
ACP and banking APPS would be OT,
never heard of it before.

See magisk thread for solutions for banking apps.
 

sfairmm

Senior Member
Nov 25, 2018
257
57
São Paulo
I can still install V4A on my Android 10 smartphone, thanks efforces from developers / collaborators (direct and indirect).
Many thanks for turn this possible.
My sincere thanks for this wonderful !!!
(y)(y)(y)(y)(y)
 
Last edited:

maigre

Senior Member
Aug 9, 2012
515
141
If I update Magisk to 21.2, V4A 2.7.2.1 no longer works. I had to downgrade Magisk to get it behaving again. This is on a OnePlus 6 running the latest version of Android 10.

I'm not looking for a fix as I'm fine with the situation as is, but thought it was worth mentioning.
 
  • Like
Reactions: BRANDENDEUCE

Top Liked Posts

  • There are no posts matching your filters.
  • 526
    ViPER4Android FX
    YF7EJvAcFH9ZuuytKO91DimKH-TQUvYOaA-gmdBrioXY-LSgtjoadLI17gtaGgIkR6KBXyVA4IXtcdjfLdQ=w2880-h1608

    By pittvandewitt and MrWhite214

    Introduction
    Many users are enhancing their smartphone audio experience with the popular ViPER4Android software, but some of us have a hard time installing the driver or they don't like the look of the app. As a solution for these troubles we have rewritten the 2.4.0.1 app source and added all 2.5.0.5 features to it. Many more features have been implemented too.
    With our huge success of ViPER4Android 2.6 we decided to completely rewrite the ViPER4Android app in Kotlin. This allowed us to squeeze out the remaining bugs and clean up the code even more. After a long time of waiting for you and developing for us, ViPER4Android 2.7 is finally here!
    There are many new features and improvements compared to 2.6, of which some can be found in the changelog. Hit the download button to check it out yourself!

    Downloads
    You can download the latest version on XDA Labs
    If you were pointed here for the installer by @Zackptg5, the link can be found here

    pittvandewitt's vdc service
    If you've always wanted to get the most neutral and arguably best sound coming from your headphones, make sure to join the VDC service to request a file!

    Donate
    You can donate to us via PayPal or buy our donation package from XDA Labs with extra features!
    Donate via PayPal
    Buy our donation package *coming soon*

    Dev Note
    If you want to include the app in your work, you're free to do so as long as you give proper credits

    Legal notice
    We are not associated with vipersaudio nor audlabs.
    Stating their Github readme we're free to use the driver as long as it's not used commercially.
    The driver parameters are obtained from the 2.4.0.1 source. The graphical EQ interface is inspired by the Cyanogenmod DSP application
    The app is still named ViPER4Android, because the driver isn't any different from what ViPER ACOUSTIC provides.
    Renaming it without changing anything would be considered kanging, which is not what is going on here.

    Credits
    ViPER ACOUSTIC for the driver
    Bappo for Swedish translation
    pittvandewitt for Dutch translation
    sazuke0703 for Thai translation
    R1DEN for Russian translation
    Hede for Danish translation
    gloeyisk for Indonesian translation
    LCS for Chinese simplified and traditional translations
    razor84 for Turkish translation

    Installation
    Download and install the APK from XDA Labs
    Follow the instructions when opening the app

    XDA:DevDB Information
    ViPERAndroid, App for the Apps & Games

    Contributors
    Team_DeWitt, pittvandewitt, Mr_White_214

    Version Information
    Status: Stable
    Current Stable Version: 2.7.2.1
    Stable Release Date: 2020-10-27

    Created 2018-04-09
    Last Updated 2020-10-27
    133
    Currently on the wishing list
    • Car mode / head unit detection
    • More translations. If you're interested, take a look over here to find the files. Fork the repo and make a pull request to get your translation merged in next release!
    • EMUI (Huawei) 8.0+ refuses to load the driver. Ask ViPER ACOUSTIC for a 64bit driver (Can't fix)
    • Updated driver that does not require selinux injections or the libstdc++ dependency workaround (Can't fix)

    Before reporting:
    Make sure you use the latest APK provided on XDA Labs
    Make sure any other audio mod is disabled/removed before installing the driver. We really cannot afford fixing every single device setup, especially when it's not related to the app


    If you would like to report a bug, pm @Team_DeWitt using the following format:
    [Describe the problem and your steps you take to reproduce it]
    [Phone brand and model]
    [OS (ROM) + Android version]
    [Root method (in case of magisk: core or full)]
    [Provide a link to your log file]
    115
    Changelog

    2.7.2.1
    • Improved loading logic for convolution files
    • Fixed an issue when installing the module on older Magisk versions
    • Bug fixes
    • Stability improvements


    2.7.2.0
    • Android 11 support
    • Automatically save/restore settings based on the device type/name
    • Add preset widget
    • Reworked presets
    • Performance improvements
    • Close service when no music playback is active if legacy mode is disabled
    • Add optional crashlytics to help improving future versions

    2.7.1.6
    • Support Magisk 20.3
    • Long press a feature to show description
    • Material theme update
    • Support scoped storage on Android 10+ (Preset dir is now /sdcard/Android/data/com.pittvandewitt.viperfx/files/Preset)

    2.7.1.0
    • Support Magisk 19
    • Add compatibility setting
    • Add ability to attach to sessions
    • Fix preset loading bug
    • Switch from setools to magiskpolicy
    • Important release notes: Link

    2.7.0.0
    • Full rewrite in Kotlin
    • New UI
    • Presets can be managed in the app itself
    • Effects can be set more precisely with seekbars
    • Min API 23
    • Uses 2.5.0.4 driver only
    • Audio routing bug fixed
    • Driver status bug fixed
    • Cross device effect changing bug fixed
    • App follows system dark/light mode (can be toggled with google messages e.g.)
    • Installation is faster and more versatile
    • Notification settings
    • Reduced APK size significantly

    2.6.0.5
    • Add app shortcuts (7.1+)
    • Minor interface redesign
    • Fix muffled sound
    • Fix options not applying
    • Fix profile conversion
    • Introduce vdc service
    • Improve performance
    • Update driver installation
    • Update chinese translations, thanks to KiSS

    2.6.0.4
    • Retain service after clearing recents
    • Emergency service.sh fix
    • Support Magisk core mode
    • Fix profile load loop
    • Recover speaker service
    • Fix convolver
    • Support Pixel devices
    • Use su.d if possible
    • Force global effect mode
    • Add Korean translation by @nebulac

    2.6.0.3
    • Fix /system install and uninstall.
    • Add temporary workaround for the convolver
    • Updated strings

    2.6.0.2
    • Fix FC while installing the driver
    • Add root check before installing the driver
    • Removed lucky patcher check
    • Capitalized driver status outputs
    • Updated strings

    2.6.0.1
    • Fix profile loading
    • Fix assets bug
    2.6.0.0
    • Initial Release
    101
    2.7.1.0 released

    Yay it's finally time to release an update

    And with this release come a few important release notes:
    Support for Magisk prior to v19 is dropped.
    If you did not use magisk, you need to reflash your /system partition and reinstall the driver
    An audio attach setting is added too to improve compatibility and it needs some explanation:
    For every time you play a song, the audio player should send information about what session the audio is played on, so equalizer apps can attach to that session.
    Session 0 is the default but deprecated session. Most of the time V4A processes just fine at session 0, but if it doesn't you can enable this switch and Viper will attach to other sessions. Note that if you don't have any session open, the driver status will say abnormal, which makes sense.
    There is the need for a switch, because in a lot of cases audio players do NOT send the information when a session is closed. So they keep the driver occupied and this mutes all other audio streams, including session 0 which is the fallback session.
    To make this problem a bit less bad, I excluded session 0. But when you still run into this problem, the solution is not to kill viper but to kill the audio app that was playing music previously.
    Bad design, I know. But it's not my fault. You should contact the developer of the music app to fix their crappy code and send a broadcast when audio playback stops/pauses.
    This switch makes ACP obsolete.

    Other things that have improved:
    I've seen multiple issues with android pie where the viper library wasn't detected any longer because a dependency is removed since the update. A workaround is shipped in the new release.
    The compatibility mode switch has been added back. This seems to be mandatory for car mode and some android q builds.
    An issue when loading presets has been resolved

    Download can be found on labs as always: Link
    89
    Answers to some related questions

    Help, the driver status says no
    • In case of Enabled: no; Please flip the Master limiter switch and go sit in a corner for a while
    • In case of Processing: no; If you use an application that uses audio sessions, enable session attaching in the settings. If that does not work, the audio is routed over session 0. You might want to try Audio Compatibility Patch from the Magisk repository in this case.

    What happened to the profiles?
    • They're now called presets. They are reworked to use independently per device, a feature that was very welcome. Because of many technical changes and improvements on how the preset is stored and loaded, they are not compatible with older versions than 2.7. You will have to recreate them by hand unfortunately. You can access the menu by pressing the selected device in case you missed the huge showcase when you first launched the app after installing the driver

    Why does your Magisk module not work?
    • Probably because you installed some other mod that also has an audio_effects file in it. Whatever module gets loaded last will become active
      The easiest way to bypass this is to let the app build a module after you installed all your favorite audio mods, and delete all files containing audio_effects in the other modules
      AudModLib will not come in handy this time, because the app doesn't flash a zip that AML can intercept

    Where can I find the source code?
    • You can't. And there is an obvious reason for that: This app is more sensitive to kangers who start selling this app, likely after adding their bullsh*t to it, rather than to people who actually want to help improve the app. Something like that already happened in the past to other audio software here on xda. Not really something we want to see happen again

    Where did the Selinux switch go?
    • What..? Are you really that careless security wise?
      The app handles this in a much more sophisticated way now. It injects only the absolute necessary rules to allow V4A to process, fully automatically

    Help, why do I still experience service drops?
    • Probably because doze is kicking in because Android doesn't like long running services. The service has been implemented the way the docs suggest. You can try excluding it from doze. Alternatively you can check out dontkillmyapp.com for tips

    Do you have a zip file for me?
    • No. There is no point in providing a zip file anymore. The driver installation is written from scratch and actually works now

    How do I uninstall the driver?
    • Use Magisk Manager to delete the module. If you use another root solution, you can dirty flash your rom or just leave it there