[Samsung Galaxy J5 Guides, News, & Discussion] Akti88:
Warning: I am not responsible if following this guide sends your phone into bootloops, summons demons from the 7th levels of hell, etc. Understand that I am fairly noob, and I spent several days, read fifty guides, and performed a hundred firmware flashes back to stock to finally get V4A working on my J510GN.

UPDATE 10/01/17: Added steps for disabling SoundAlive / Adaptsound (not sure if necessary but it probably is so do it)

THIS IS FOR STOCK MARSHMALLOW 6.0.1

Requirements:

1: A stock rom of your device if something goes wrong (save it on your PC)

2: (Optional, but freaking do it) a backup of your apps/settings BEFORE YOU CONTINUE (I use TWRP backup and just choose "Data")

2: TWRP (I used TWRP_3.0.2_SM_J510_2016_Recovery.tar, found here: http://www.mediafire.com/file/aqxjqor6bllaorh/Root+Files+SM-J510-2016-Android+6.0.1.rar )

3: Magisk-v10.2 (XDA thread: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) (I used the flashable .zip)

4: Viper4Android APK **THAT MATCHES THE V4A MAGISK MODULE VERSION** (Link below)

5: An app to disable/freeze system apps, like Titanium Backup or Rom Toolbox.

Notes:

If you are already rooted with SuperSU and not phh SuperUser, this guide may or may not work if you follow the steps completely. I personally went into a recovery loop when trying to flash Magisk while SuperSU was already installed on my phone, even though the Magisk XDA thread says that it is possible to do this. If you already have SuperSU root, you can continue following my guide, but you'll probably get best results if you just un-root SuperSU, do a clean factory restore, and continue with Magisk + phh SuperUser only.

Steps:

1: Use Odin to install TWRP on your device. Read a guide on using Odin if you've never used it, but basically just connect your phone to your PC via USB, boot your phone into download mode (volume down+home+power on my J510), open Odin on your PC, click the AP button, choose the TWRP tar, disable "Auto-Reboot" in Odin options, then click Start. Wait for it to finish, then exit Odin, pull the battery out of your phone for about 10 seconds, and pop the battery back in.

2: Reboot into TWRP recovery (volume up+home+power on my J510). Go to Install, then find the Magisk zip on your phone (because you transferred it to your SDcard earlier, right?). Flash that shiz! Optional: Wipe dalvik/cache, but not always necessary. Reboot your phone when its done.

3: Open Magisk app on your phone, and update from the Google Play Store if prompted.

4: Download phh SuperUser from Google Play Store (https://play.google.com/store/apps/details?id=me.phh.superuser&hl=en). We are doing this because Magisk already rooted your phone with a built-in phh SuperUser, but now you need the official phh SuperUser app on your phone. Because.

5: Go to Magisk > Settings, and check "Enable BusyBox" (I'm not 100% positive if this is necessary, but do it because I did it and my V4A works now)

6: Reboot your phone

7: Open your app to disable system apps (Titanium Backup or Rom Toolbox). Do an app search for "AdaptSound" and "SoundAlive". Freeze and/or uninstall any apps associated with those. "SplitSound" is okay, its not relevant. SOME guides recommend going into your /system/audio/ and renaming audio.conf to audio.conf.bak, but this is not necessary because we are systemlessly rooted and installing a systemless version of V4A.

8: Go to Magisk > Downloads, scroll down until you find the Viper4Android FX module. Download/install it with Magisk, and reboot your phone.

9: Download the Viper4Android .apk THAT IS COMPATIBLE WITH THE MAGISK V4A MODULE. THIS IS VERY IMPORTANT!!! If you touch the module after its downloaded and check the Information button, it should automatically open your device browser to the correct download link, but here it is just incase you want the .apk ready: https://www.androidfilehost.com/?fid=31297853226564193

10: Install the .apk, DO NOT OPEN VIPER4ANDROID YET. Go to your phones settings > apps > app permissions, and allow Viper4Android to access your storage.

11: Open Viper4Android, check driver status. It should say "Normal", because the Magisk V4A module already installed the correct drivers for you.

12: The V4A UI is extremely easy and a monkey could understand it, so just play with the settings while you are playing your favourite songs.

IF SOMETHING GOES WRONG

If something goes wrong during any of the steps, I have no clue what happened. The best advice I can give is to: Reboot into recovery (which your phone is probably already doing), wipe your data/cache/system, Odin back to your stock firmware, re-install TWRP with Odin, reboot into TWRP, and recover your data backup to re-install all your apps/phone settings.

How to use V4A with PowerAmp

PowerAmp is personally my favorite music player for Android, because it has an amazing equalizer and sound settings, but if you want to use V4A sound processing while playing songs in PowerAmp, do this:

Go to PowerAmp Settings > Audio > Advanced Tweaks

Disable Direct Volume Control

(For some devices): Disable OR enable MusicFX. Some people say that disabling OR enabling MusicFX makes V4A start processing audio from PowerAmp. Personally, I did not notice any audio difference whether MusicFX was enabled or disabled.

Just to be safe, not sure if it makes a difference:

Go to PowerAmp Settings > Audio > Output > (Your output choen, whether Java based or OpenSL ES) > Headset

Enable "No DVC", "No Headroom Gain", and "No Equ/Tone"

Possible Problems with PowerAmp:

"I started playing a song in PowerAmp, with V4A power enabled, and I don't hear a difference in my music"

Check the Driver Status in V4A. Does it say "Abnormal" and/or "Processing: No" ? Don't worry, your drivers aren't corrupted. Try exiting V4A with PowerAmp still open, pause your song, re-open V4A, and start playing your song in PowerAmp. Now check Driver status in V4A, it should say normal. If no, try rebooting your phone, then open V4A and make sure power is "on". Then open PowerAmp and start playing a song. Check back in V4A under driver status, it should say "Processing: Yes" and "Driver: Normal". Try switching to FX Compatible mode, reboot your phone, switch to FX Normal mode, and reboot again. Make sure you disabled DVC in PowerAmp. Basically, just keep closing and turning things on/off again until it works, I dunno.

Using V4A with Spotify

If you want Viper4Android to process music from Spotify, you need to go into Viper's Settings > FX Compatible Mode > Compatible. Compatible mode will process STREAMING audio, Normal mode will process LOCAL audio.