Viper4android: How to install it properly
This is something I've been meaning to write up for a long time now. All over XDA I see people have trouble with getting Viper4android working and I thought this might shed some light on the issue.
There are many zips out there that will install viper but most of them have other sound mods rolled into it and I prefer viper only. I find that most of the others often distort the sound a little, but with Viper4android only, the sound is just perfect for my tastes.
What you need:
- A root file explorer (RootExplorer, EsFileExplorer, etc.)
- Root (obviously)- Either Magisk or SuperSU
- If using Magisk you'll need a Permissive kernel. My kernel works with certain models and is permissive.
- If using SuperSU you can use enforcing, but will need an extra file that I'll cover later on.
- Some good music to listen to.
This method is really not much of revelation since it's actually on the Viper4android thread itself, but almost everyone tries to let the install the drivers automatically. Do not let the app install the drivers for you. It will install the old driver and it doesn't include the Neon driver.
First things first. We need to do a little cleanup just in case there are already some viper files or drivers partially installed.
Viper4android has three places in which it installs:
/system/lib/soundfx/
/system/etc/audio_effects.conf
/system/app/Viper4android.apk





Using your root explorer go to /system/lib/soundfx/ and look for any old V4A files and delete them. It should look like this, libv4a_fx_ics_X86.so. Also check in your system/app/ and check to see if you have the old viper app and if so delete that too (the newest version is 2.5.0.5). Note: if you already have the app installed you can go to the settings menu and select uninstall drivers and it should remove everything for you. Then just double check to make sure. Then uninstall the app unless it's the newest version and placed in /system/app/.
Once we have everything cleaned up it's just a matter of placing the right files in the right spot. I've attached a zip that has everything you will need in it. It is not a flashable zip. Just unzip it to get to the necessary files.
1. Place the Viper4android app in /system/app (no extra folder necessary) and change the permission to 0644 or rw-r-r
2. Place the .so files in /system/lib/soundfx/ and change permission to 0644 or rw-r-r
3. If you don't have any other sound mods installed you can swap out my audio_effects.conf file for yours and set permission to 0644 or rw-r-r, but if you do that back up your original file just in case (just rename the original to audio_effects.bak). If you do have other sound mods installed you'll want to add the following red lines to you existing audio_effects.conf file.
Code:
# List of effect libraries to load. Each library element must contain a "path" element
# giving the full path of the library .so file.
# libraries {
# <lib name> {
# path <lib path>
# }
# }
libraries {
[COLOR="red"]v4a_fx {
path /system/lib/soundfx/libv4a_fx_jb_NEON.so
}
#NECESSARY FOR XHIFI
v4a_xhifi {
path /system/lib/soundfx/libv4a_fx_jb_X86.so
}[/COLOR]
# This is a proxy library that will be an abstraction for
# the HW and SW effects
proxy {
path /system/lib/soundfx/libeffectproxy.so
}
# This is the HW implementation library for the effect
offload {
path /system/lib/soundfx/libaudioeffectoffload.so
Code:
# }
# ...
# }
effects {
[COLOR="red"]v4a_standard_fx {
library v4a_fx
uuid 41d3c987-e6cf-11e3-a88a-11aba5d5c51b
}
#NECESSARY FOR XHIFI
v4a_standard_xhifi {
library v4a_xhifi
uuid d92c3a90-3e26-11e2-a25f-0800200c9a66
}
}[/COLOR]
soundalive {
library proxy
uuid 05227ea0-50bb-11e3-ac69-0002a5d5c51b
libsw {
4. This step is dependent on your setup. If you are using a permissive kernel this is not necessary. If you're using SuperSU with an enforcing kernel you'll need to flash the ViPER4Android-supolicy.zip that is included in the attached zip file.
Original instructions are here, but nobody seems to see them including myself for the longest time.
Now if everything is in place properly you should get this:

It should work with any music player (I mostly use Spotify), YouTube, video players, etc.
Enjoy.
Credits:
@viper520 -for creating Viper4android
@zhuhang - for co-founding and continuing to maintain Viper4android
If anyone knows the identity of who created the ViPER4Android-supolicy.zip let me know. I would love to be able to give proper credits on that as well.
Attachments
-
4.1 MB Views: 4,423