[Galaxy Tab S General] 3DSammy:
UPDATED: Updated V4A flash file to Viper4Android v2.4.0.1 and added notes about the TabS AOSP Marshmallow custom ROM compatibility by Schischu.

The obligatory warning:

"I take no responsibility for what happens to your device if you follow this guide. This procedure works with multiple Audio/Video apps. It should work for any Samsung device, but I can't confirm, so feedback please if it works for your device."

- 3DSammy

Root with SuperSU is required either using a standard rooting method that trips KNOX or following this guide "[GUIDE] How to root without tripping knox - Kitkat and Lollipop, Locked bootloader" by ashyx. Having SuperSU installed and functioning is essential to get around Viper4Android's need for SELinux permissive mode which is not possible when you are using the Samsung stock firmware.

As of June 8th maximumentropy posted a method to use SuperSU to work around Viper4Android's need for SELinux permissive mode. This requirement was problematic on Samsung devices where the SELinux mode changer app did not work with the Samsung stock firmware.

The instructions and flash files below will allow both custom ROM and rooted stock ROM devices to install Viper4Android, an amazing audio replacement.

Note: V4A and the included flash file works with the AOSP Marshmallow custom ROM compatibility by Schischu. Any of the SoundAlive comments below can be ignored for this custom ROM.

Steps:

1) Download the two flash files "ViPER4Android-supolicy.zip" and "LolliViPER_TAB_S.zip" (at the bottom of this post)

2) Flash ViPER4Android-supolicy.zip and LolliViPER_TAB_S.zip with FlashFire or a Custom Recovery (e.g. TWRP) of your choice.

3) If you want Spotify to work and maybe other audio/video apps then Samsung's "SoundAlive" must be removed or disabled. Options:

Backup then freeze or delete "SoundAlive 2.0" with Titanium Backup

Backup then delete the "/system/priv-app/SoundAlive_Tablet_20" directory with a File Manager that has RW "/system" privileges

Remove "SoundAlive" with an app like "System Remover app" found on the Playstore

4) Reboot your device and then start Viper4AndroidFX and install its drivers when prompted then reboot once more

5) Start the Viper4AndroidFX app and configure audio for the device speakers/headset/bluetooth as desired. Please refer to Viper4Android XDA forum for details about the extensive options.

NOTES:

Be aware that if you do not disable/remove SoundAlive then Spotify will disable V4A until the next device reboot. Causing confusion about whether V4A is actually working reliably. Other audio apps may also demonstrate this tendency.

If you check the V4A driver status and audio is not playing the status will show "Processing: No" that should change to "Yes" when audio is playing and V4A is working correctly.

A Rule-of-Thumb with V4A is to make sure to turn off any Audio/Video player app's specific equalizers, gain controls, audio effects, ... etc, as they interfere with Viper4Android. If you still cannot get Viper4Android working with a specific app, that's not listed in this thread, then search first then if necessary ask on the V4A's XDA forum.

So far the following Audio/Video apps have been successfully tested with V4A:

Neutron audio player (Settings and uncheck Equalizer;Sound Sound;DSP-Effects->Surround Sound;Relay Gain;Normalization)

MX Player Pro (Settings->Audio->Volume Boost unchecked)

Spotify (If it is working properly the Spotify->Settings->Equalizer will directly display the V4A app)

TuneIn Radio

Google Music Player

PowerAmp (PowerAmp Settings->Advanced->Uncheck everything)

YouTube

ViralPro (a YouTube alternative)

Apps that do not work with V4A (likely due to the removal of "SoundAlive"):

Samsung's "Music" app (still plays audio but not by utilizing V4A processing)

Please post any apps not mentioned here, which you either get working or that have problems with after checking the V4A XDA forum.

If you have SuperSU working and have never tried V4A do so and you ears with thank you!

Credits:

zhuhang: For developing Viper4Android in the first place

Chainfire: For developing SuperSu and FlashFire

ashyx: For providing the "How to root without tripping knox - Kitkat and Lollipop, Locked bootloader" guide

maximumentropy: For posting the method and flash file to work around V4A's need for SELinux

AndrasLOHF: Who's post is where I grabbed the original V4A install script.

Schischu: For AOSP Marshmallow custom ROM

Zip file(s):

V4A install for a Tab S