[GUIDE] PowerAmp + Viper4Android on Lollipop

Choristav

Senior Member
Dec 25, 2012
1,119
787
0
Buenos Aires, Argentina
Just trying to redirect any search users into a global thread by creating this guide. I take no part in the development, just sharing a way that made it possible to have V4A working with Poweramp and MXplayer.

Download:
DropBox

Prerequisites:

- Have root
- Must have selinux set to permissive.
- Do a nandroid backup.

Steps:

First method:

- Flash attached zip
- Go into Viper settings app
- Install required driver
- Go into poweramp -> settings -> audio -> advanced tweaks -> Disable DVT (Direct volume control)
- Reboot

Second (manual) method:

- Download attached zip, extract files
- Using any file explorer (ie: Rootexplorer), go into /system/Priv-app and create a folder called V4A or Viper4Android. Place ViPER4Android_FX_A4.x.apk in this folder. While the folder isn't actually necessary, it's cleaner than just leaving the .apk inside /priv-app/
- Go into /system/media/etc and do a backup of audio_policy.conf. Then, replace it using the file from the .zip.
- Reboot
- Go into Viper settings app
- Install required driver
- Go into poweramp -> settings -> audio -> advanced tweaks -> Disable DVT (Direct volume control)
- Reboot

Third (manual) method, which might work for other roms and even other phones:


- Download attached zip, extract files
- Using any file explorer (ie: Rootexplorer), go into /system/Priv-app and create a folder called V4A or Viper4Android. Place ViPER4Android_FX_A4.x.apk in this folder. While the folder isn't actually necessary, it's cleaner than just leaving the .apk inside /priv-app/
- Go into /system/media/etc and do a backup of audio_policy.conf
- Open up audio_policy.conf using a text editor, and delete the following code:

Code:
deep_buffer {
sampling_rates 44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE |AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_W IRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVI CE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY|AUDIO_DE VICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_FM|AUD IO_DEVICE_OUT_FM_TX
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}
- Reboot
- Go into Viper settings app
- Install required driver
- Go into poweramp -> settings -> audio -> advanced tweaks -> Disable DVT (Direct volume control)
- Reboot

Extras:

Build.prop tweak:

While not necessary, this might be the solution if you can't get V4A working. I'm on an AOSP build (euphoria-OS) and this step was NOT necessary.

- Using any file explorer (ie: Rootexplorer), go into /system/ and locate the build.prop file
- I, personally, set the build.prop permissions to 0755 from the original 0644 to edit the file, save it and then revert back to 0644.
- Add the following lines at the very end
Code:
tunnel.decode=false
lpa.use-stagefright=false
lpa.releaselock=false
lpa.decode=false
Audio_effects.conf:

Previously needed, not anymore at the very least on AOSP. I'm posting this file in case it's necessary on stock roms.

Download audio_effects.conf

The only difference that I've made is update the audio_policy.conf file in order to make it compatible with V4A. The flashable zip was orignially provided by @donalberto17.
There is also a guide made by @dorimanx for LG G2 stock roms and V4A. While it's pretty complete, it was inside one of his kernel threads, and thus, out of sight for most users. I just wanted to make a bigger, more public thread about how to make V4A work with poweramp (nevermind lollipop).

Please let me know if I missed crediting somebody, as I take no part in development or creation of this, just recollecting information and trying to setup a nicely formatted thread.

Versions:
1.0 - Initial .zip
2.0 - Same zip without audio_effects.conf
3.0 - Updated audio_policy.conf from https://github.com/VanirAOSP/device_lge_g2-common/commit/dd3aa00ef250f6f405e675f685cd1f5909fa50f8, thanks to @sudosurootdev
 

Attachments

Last edited:

Amsiman

Member
Mar 10, 2015
23
2
0
Didn't work for me

Hey,
i tried to flash this on the new CloudyG2 3.2 rom
now there's just weird noises from my phones speakers, the sound just just got ruined.
can you make a little tutorial on how to reverse the process?

Edit:
i've opened my rom's zip file and replaced the audio_policy and audio_effects files in the system/etc folder - that fixed it
but still, i can't uninstall the driver from withing the app. it pops up saying "driver uninstalled" but after reboot and checking it's still have the option to uninstall
any idea?
 
Last edited:

iamVhox

Senior Member
Dec 25, 2013
222
28
0
Wow! Thank you so much! I was about to revert back to kitkat from CloudyG2 v3.3 but then I found this and used the third method, it perfectly worked!

Sent from my LG-F320L using Tapatalk
 
  • Like
Reactions: Choristav

powwow12

Senior Member
Jun 23, 2014
69
3
0
but still, i can't uninstall the driver from withing the app. it pops up saying "driver uninstalled" but after reboot and checking it's still have the option to uninstall
any idea?
same here. I tried uninstalling in order to reinstall the highest quality viper4Android driver but it seems to reinstall itself after every reboot - or it didn't get uninstalled in the first place
 

PIRATA!

Senior Member
Dec 6, 2010
2,714
173
0
Hi! I'm sorry....but what is this method for?
Using V4A with PowerAmp, or use it on (stock) Lollipop??


Tnx.

Sent from my Samsung Galaxy S5 SM-G906K using TapaTalk
 

guxterix

New member
Oct 6, 2015
3
1
0
LG G3 Lollipop

Viper4Android is working with my LG G3 (stock lollipop rooted, SELinux permissive). At first it only worked with apps that open files (the stock player, relax and sleep, etc.), the deep buffer remover didn't help for streaming apps (xiia live, tunein, etc.), but unselecting process namespace separation in SuperSU did the trick. The same thing for Dolby Atmos. Finally!!!
 

abhirup780

New member
May 7, 2015
4
0
0
After installing Viper4Android I just converted it to system app by using Link2SD app. Now by disabling Direct Volume Control from poweramp settings I am using V4A with Poweramp.