[G2 General] Choristav:
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:

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

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 [MENTION=5819000]donalberto17[/MENTION].

There is also a guide made by [MENTION=2376110]dorimanx[/MENTION] 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 [MENTION=5683755]sudosurootdev[/MENTION]