yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Themes and Apps] guitardedhero:
Alright guys, I accomplished pretty much everything I strived for this week in putting together what I'll call the ViPER4Android Ultimate Installer for 5.x.x - 6.x.x.

Features:

Works for users with TWRP but do not want root

Works in Permissive and Enforcing Selinux

Installed as /system/priv-app

Preinstalled Super Quality driver for NEON JellyBean - Marshmallow

Additional /system/lib libraries

Additional /system/build.prop lines

Removes Deep Buffer paragraph from audio_policy.conf

Backup script that should keep everything intact from dirty flashing rom if rom's script does not wipe /system

Installation:

Download ViPER4Android Ultimate Installer zip

Have copy of current rom zip on sdcard

Boot to recovery

Wipe > Advanced > System, Cache, Dalvik Cache

Mount > uncheck System

Install > current rom zip

Reboot

Make sure /system has 50mb+ of available free space!!

Boot to recovery

Install > ViPER4Android Ultimate Installer zip

Reboot

Open v4a

Menu > Show Notification (block if desired by long pressing notification)

Menu > UI Setting > Expert

Menu > Load Effect Profile or simply just Enable v4a and adjust settings to taste.

If using auxiliary port, make this a routine:

Turn off v4a Headset profile by unchecking Enable v4a in Headset tab

Slooowly insert auxiliary cord into phone port, if Google Voice Search opens that's even better, but not required

Play desired audio file with desired audio player

Open v4a and turn v4a Headset profile back on by checking Enable v4a in Headset tab

Thanks to [MENTION=5110913]Viper4713[/MENTION] for the Material v4a apk's.

Thanks to [MENTION=981278]worstenbrood[/MENTION] for the necessary scripts I was able to edit for this Installer.

Thanks to you guys for always providing feedback and never settling for anything but the best!

Enjoy the zips attached below and provide any feedback you have.

Edit*

Version 1.1 removes the delete("/system/priv-app/MusicFX"); lines from updater_script which was needed for my Nexus 6 Marshmallow.

Edit**

It also seems that a wipe of Dalvik Cache and Cache is required at some point after flashing.

Edit***

Version 1.2 has [MENTION=2815792]maximumentropy[/MENTION]'s latest enforcing script that works for 6.0.1 and systemless root. I also swapped update-binary for 6.0.1 rom which is hopefully more compatible.
[Nexus 6 Themes and Apps] tanikir:
Ok, it's almost perfect. I'm having one small issue. When I'm listening to music and get a notification it sounds odd but hard to describe. It's like there's a small pause, viper turns off, I hear the notification, and viper turns back on. This often happens quickly and sometimes it sounds like viper switching off in the middle of the notification. I don't mind the music pausing briefly and I'm guessing that's expected behavior, but the sound is modified. Any ideas or just something to put up with to use v4a. I should mention I'm running Chroma 11/29 (6.0) with no other mods. I installed v4a using the script posted yesterday.

Thanks to guitaredhero for all your work on this. I'd be interested in hearing the reason for your auxiliary instructions and if it applies to corded headsets as well.
[Nexus 6 Themes and Apps] raptoro07:
That is not an issue. It's called Audio Ducking. A lot of custom ROMs have a setting to disable Audio Ducking if you like. I don't know about Chroma.
[Nexus 6 Themes and Apps] guitardedhero:
Attach your /system/etc/audio_policy.conf and I'll fix it.

During Bluetooth, auxiliary, or speaker?

I recommend slow insertion because it's the only way for it to work EVERY time for me on Nexus 6. Otherwise, in my experience, it's like a coin toss.
[Nexus 6 Themes and Apps] urrgevo:
[MENTION=4445176]guitardedhero[/MENTION] I tried the Z5 add on you made and that got things working finally. Thank you
[Nexus 6 Themes and Apps] vansaiyuki1:
[MENTION=4445176]guitardedhero[/MENTION] Edit!!! i delete deep buffer and delete this line :"speaker_drc_enabled TRUE",and guest what soundcloud rework again !!!!:D and notification sound also!!! Now i figure out one app not working ,thats crazy :Tunein radio

I attach audio_policy.conf if you want to use it or people use Nexus 6P :good:
[Nexus 6 Themes and Apps] Bishopandme:
Cool...I'm on it now.

Ths
[Nexus 6 Themes and Apps] vicky90:
Hi [MENTION=4445176]guitardedhero[/MENTION] I flashed Sony media system over viper atmos Sony beats 4.8 , after connecting headset when I press volume it goes to ring volume and in speaker mode it goes to alarm volume.

And in that music app the sound effects not working properly like whenever I choose surround in headset or speaker mode the audio setting crashes and after that all Sony audio effects will stop like equalizer , clear audio+, clear stereo etc but the music app working with Viper and Dolby .

I'm on moto g stock MM rom .
[Nexus 6 Themes and Apps] desirexel:
Am on AICP_mm device lg d800.. Ok il try and report
[Nexus 6 Themes and Apps] guitardedhero:
What phone/rom?

Stock audio effects disabled?

Awesome! Can you remind me what exactly your issue was and what phone/rom?

Cool, thanks for sharing that info! Did the N6 file I first gave you allow TuneIn to process through v4a?

Can you provide the MD5 of the specific package?
[Nexus 6 Themes and Apps] vansaiyuki1:
Thanks for taking time !!!with your file its works ,i tested that
[Nexus 6 Themes and Apps] guitardedhero:
Great, that helps! :good:
[Nexus 6 Themes and Apps] vicky90:
Here is my MD5

" bb6a95865d6cd73c61a70bdbd5cd4b85 "
[Nexus 6 Themes and Apps] guitardedhero:
Not sure of that's an older build or a bad download. Here is the folder containing the current versions: https://www.androidfilehost.com/?w=files&flid=52904
[Nexus 6 Themes and Apps] guitardedhero:
Here you go. :good:

Rename, 0644 permissions, reboot. You know the drill. ;)
[Nexus 6 Themes and Apps] vansaiyuki1:
Ok i'm testing now :D

---------- Post added at 05:05 PM ---------- Previous post was at 04:58 PM ----------

Edit!!Work flawlessly!!!soundcloud and pocket cast works ,all but tunein radio not :p lol!!!for me not a big deal if one app screw ,you do a good job dude :good::good:
[Nexus 6 Themes and Apps] vicky90:
So I have to just flash over that or dirty ROM flash needed ?
[Nexus 6 Themes and Apps] guitardedhero:
So progress was made with that file compared to the one you last shared with me where you had removed the DRC speaker line?

And my N6 file I first shared with you worked with TuneIn?

Dirty flash to be sure. :good:
[Nexus 6 Themes and Apps] vansaiyuki1:
Yes,the first file shared works but cause issue for notification sound
[Nexus 6 Themes and Apps] guitardedhero:
Here's another one to try. I have another idea if this one doesn't work. :good:
[Nexus 6 Themes and Apps] vansaiyuki1:
Ok got it ,i test that and give you feedback

---------- Post added at 05:43 PM ---------- Previous post was at 05:38 PM ----------

Edit:install not change ,tunein screw!!lol[emoji24]
[Nexus 6 Themes and Apps] guitardedhero:
Lol, here's the other idea. If it breaks notification output, then we'll know it's paragraph at least (raw)!
[Nexus 6 Themes and Apps] vansaiyuki1:
Dude ,damm its works!!!OMG nothing screwed[emoji1] [emoji1] !!vansaiyuki KO!!guitardehero win!!
[Nexus 6 Themes and Apps] vansaiyuki1:
:highfive: bro yu got it!!
[Nexus 6 Themes and Apps] guitardedhero:
Impossible without your testing! :good:

I made a flashable version of it.
[Nexus 6 Themes and Apps] vansaiyuki1:
Downloading now !!!if you need help i'm here for community
[Nexus 6 Themes and Apps] urrgevo:
The issue was no effect, viper wasn't processing sound. Nexus 6, Pure Nexus ROM. I ended up starting from scratch on a full wipe/reflash and flashed the sound add on and it's good to go now
[Nexus 6 Themes and Apps] guitardedhero:
Thanks for the report. I know the reason now, as I just helped a 6p PN user on the official v4a thread get properly set up. PureNexus and possibly other roms without MusicFX will need to flash my MusicFX Installer and AudioFX remover zip which I built into the Sony Xperia Z5 Premium Marshmallow Media System. :good:
[Nexus 6 Themes and Apps] gianton:
The culprit for the low in-call volume on my 6p was PN ROM. I started fresh again with flashing the stock images and then flashed RR, now sound is awesome and loud again. Used v4.8 ViperAudio.
[Nexus 6 Themes and Apps] desirexel:
4.8.1 is ok for me.. Really

Edit:

Lg g2 d800 AICP marshmallow
[Nexus 6 Themes and Apps] guitardedhero:
That's absolutely awesome! :highfive:

You mind editing your post to include device and rom so users will know? :good:
[Nexus 6 Themes and Apps] gil80:
No other audio effects.

CM13 latest stable release. using Oneplus one.
[Nexus 6 Themes and Apps] guitardedhero:
Flash the MusicFX Installer and AudioFX Remover zip I added to the OP attachments section earlier today.

Then disable MusicFX:

Settings > Apps > Menu > Show System > MusicFX > Disable

Reboot
[Nexus 6 Themes and Apps] MAOQ:
Hi all. Guys, please, make a new ViPER4AndroidFX-2.4.0.1 and DSP+ to work with PowerAMP. With me plus turnips. :) I have DSP+ but the old version and the speaker is not working. But the earpiece is really cool and nice to play.
[Nexus 6 Themes and Apps] guitardedhero:
In PowerAmp:

Settings > Audio > Advanced Tweaks

Uncheck the top two boxes pertaining to Volume Control
[Nexus 6 Themes and Apps] chikimonke:
I have a 6p running DU. Is this something I should be downloading and flashing? If I were to be having issues that this fixes, what would they sound like? Thanks again for all your work.
[Nexus 6 Themes and Apps] guitardedhero:
You're most welcome! :good:

This 6p file is edited to allow SoundCloud and TuneIn Radio to process through the installed ViPER package on the 6p. No sound changes, just proper audio output.

First, I would test SoundCloud for v4a processing. If no v4a processing is found during SoundCloud playback then flash the zip and test v4a processing during SoundCloud playback to confirm. :good:
[Nexus 6 Themes and Apps] MAOQ:
No ViperFX works and DSP + (only headset) in any way. :( I have edited and added new modes and DSP + ViperFX unfortunately does not work with PowerAMP (only with the standard player works perfectly) but the old works did not want to write the names of the amplifier :) I apologize in advance if you can not:.. It UltimateSoundMod.
[Nexus 6 Themes and Apps] guitardedhero:
Will provide a link to DSP+?
[Nexus 6 Themes and Apps] MAOQ:
Keep: http://xdaforums.com/showpost.php?p=64492935&postcount=149
[Nexus 6 Themes and Apps] Abaddon:
cool! this works not just on my 6p.but on my 5x too. sc, tunein and some music apps now work with your v4a and pulse™.

what changes did you do btw if you don't mind? will this be added on the next ver you'd release? ☺

using a 6p and 5x both on DU :highfive:
[Nexus 6 Themes and Apps] guitardedhero:
Awesome! :good:

It started with [MENTION=782525]vansaiyuki1[/MENTION]'s removal of the drc_speaker line from the global_configuration paragraph at the very top. The deep_buffer paragraph was already removed by the ViPER flash.

I made a few minor edits to a paragraph or two using my Nexus 6 file as the template that I don't quite remember without looking at the original file and the final version of the file.

The final edit was removing the raw paragraph.

The audio_policy.conf varies greatly from device to device so I have no plans on incorporating it into the package as the outcome will result in reduced audio hardware functionality for many devices.

I will, however, fulfill every request when provided with the user's audio_policy.conf file to do everything I can to create a fully functional file. Eventually, we will likely have a database of device specific files that can be resources if I'm successful enough. I can't do it alone though, I need testers since I have only one device. :good:
[Nexus 6 Themes and Apps] whytechapel_x:
Can't get aux to work all of a sudden with newer version even after following the instructions in the op. Any help?
[Nexus 6 Themes and Apps] guitardedhero:
What device?
[Nexus 6 Themes and Apps] whytechapel_x:
nexus 6
[Nexus 6 Themes and Apps] guitardedhero:
Odd.

So you tried my routine I do every time?

Before inserting auxiliary:

- Open v4a

- Swipe to Headset tab

- Uncheck Enable v4a Master Power

- Tap Home or Recents

- Sloooooowly insert auxiliary, the more pops and noise the better

- Open media player

- Begin audio playback

- Tap Recents

- Tap v4a

- Check Enable v4a Master Power

Other outputs processing properly for you at the moment?

Also ensure that Lock Effect Mode is set to Disable.
[Nexus 6 Themes and Apps] elevatorguy:
Do you have the link to your main V4a thread can't seem to find it on my phone. Thanks
[Nexus 6 Themes and Apps] guitardedhero:
To be honest, I consider this my main v4a thread as this is where the majority of activity and all testing take place.

The Stable thread is here: http://xdaforums.com/android/software/viperaudio-viperatmos-3-8-sq-driver-t3289075
[Nexus 6 Themes and Apps] elevatorguy:
Good to know
[Nexus 6 Themes and Apps] Guidorio:
Driver Status: all No and unsupported

Can someone help me please, I installed the drivers several times changing V4A app a couple of time as well, but I'm getting always the same driver status.

I'm on stock rom
[Nexus 6 Themes and Apps] guitardedhero:
Rename /vendor/etc/audio_effects.conf to audio_effects.conf.bak and reboot.
[Nexus 6 Themes and Apps] Guidorio:
What I did was to move it outside the folder

---------- Post added at 08:51 AM ---------- Previous post was at 08:04 AM ----------

I moved the file back to the original folder, I renamed it as you told me, but I'm still having the same problem
[Nexus 6 Themes and Apps] JaylanPHNX:
You sure you got enough free system space?

From my SlimTab Pro 8.4
[Nexus 6 Themes and Apps] Jarheadflip:
Hi guitardedhero so do we just flash the audio_policy.conf zip for 6p some pages back also do we have to flash it after flashing viperatmos or before also which one 4.8 or 4.8.1. Thank you for all the hard work sir to get this working for everyone
[Nexus 6 Themes and Apps] Guidorio:
I guess yes, how can I check that?
[Nexus 6 Themes and Apps] JaylanPHNX:
A root-enabled file explorer should show you used vs free space in /system. You could just remove some system apps/GAPPs you don't use.

It's baconnn!
[Nexus 6 Themes and Apps] guitardedhero:
I'm sorry, I totally misunderstood you and thought that you were experiencing a persistent install driver prompt.

Are you rooted with SuperSU on Enforcing Selinux or are you on Permissive Selinux?

Navigate to /system in your file manager to confirm you have at least 30mb of free /system space available.

If the above is confirmed you might try flashing your SuperSU zip again and make sure that /system/su.d/50viper exists with 0755 permissions.

Flashing the ViPERAudio audio_policy zip for your device will only be necessary when a System wipe is performed. :good:
[Nexus 6 Themes and Apps] Guidorio:
No worries, yes i'm rooted with SuperSu on enforcing, I've just delete some useless system apps so I'm sure to the space now, I have also unistalled V4A...so can you please tell me the correct version to install and the steps that I need to do for make it work..thanks
[Nexus 6 Themes and Apps] guitardedhero:
Flash ViPERAtmos 4.8 Sony Beats Edition or ViPERAudio 4.8 Sony Beats Edition if you don't want Dolby Atmos included.

What rom are you running?
[Nexus 6 Themes and Apps] Guidorio:
I'm on stock
[Nexus 6 Themes and Apps] guitardedhero:
Disable MusicFX:

Settings > Apps > Menu > Show System > MusicFX > Disable

Boot to recovery

Install > ViPER zip

Reboot
[Nexus 6 Themes and Apps] Guidorio:
Thanks a lot!! It works perfectly now
[Nexus 6 Themes and Apps] Guidorio:
Which effect you recommend? I have a pair of Audio-Technica M50x

---------- Post added at 05:19 PM ---------- Previous post was at 05:18 PM ----------

I mean profile
[Nexus 6 Themes and Apps] vicky90:
I flashed Sony media system on moto g CM 13 ROM but the volume level has increased to maximum and after that I have no control over volume .

Is Sony media conflict with CM ?
[Nexus 6 Themes and Apps] guitardedhero:
Settings > Apps > Menu > Show System > ViPER4Android

Ensure Storage Permissions are enabled through v4a's App Info page.

In v4a:

Menu > Show Notification (disable through notification shade if you wish)

Menu > Ui Setting > Expert

Menu > Save Effect Profile > As New Effect > Stock

Download and extract ViPERAudio Audiophile Profile 4.0 zip from the OP attachments section.

Search in:

/data/media/legacy/ViPER4Android/Profile

and

/storage/emulated/0/ViPER4Android/Profile

until you find the Stock folder you just saved earlier.

Take note that this is your working v4a directory.

Copy the Kernel and Profile folders in the ViPERAudio Audiophile folder you extracted earlier and paste them into the /ViPER4Android folder of your working v4a directory.

Compare the folder and file permissions to the Stock folder and files and set them to the same permissions if necessary.

In v4a:

Menu > Load Effect Profile > Audiophile 4.0

:good:
[Nexus 6 Themes and Apps] guitardedhero:
What is the MD5 of the zip you flashed?
[Nexus 6 Themes and Apps] Guidorio:
Amazing sound!! I'm impressed...thanks
[Nexus 6 Themes and Apps] guitardedhero:
I'm glad you enjoy it man! :highfive:

If you installed ViPERAtmos:

In Dolby Atmos:

Music tab highlighted at the top

Open or Flat EQ preset

All three effects at the bottom turned Off except for Dialogue Enhancer if it sounds good to you.

:good:
[Nexus 6 Themes and Apps] jeffgt14:
I don’t know what I’m doing wrong but I can’t get Viper to process at all. Bluetooth, Headset, or Speaker. Everything looks like it’s installed correctly and I’ve got nothing. I had a manual install of the normal viper 2.4.0.1 that was working with everything except for the Headset so I uninstalled and tried the viperatmos zip here and now nothing is processing. I’m running stock systemless rooted 2.68 on a Nexus 5X.
[Nexus 6 Themes and Apps] vicky90:
Here is MD5

23d67faa33d4858a178b19ff3d6da51d
[Nexus 6 Themes and Apps] guitardedhero:
What does Driver Status show during audio playback?

Did you disable MusicFX?:

Settings > Apps > Menu > Show System > MusicFX > Disable

Reboot

Did you disable MusicFX?:

Settings > Apps > Menu > Show System > MusicFX > Disable

Reboot
[Nexus 6 Themes and Apps] vicky90:
Yes I have disabled .
[Nexus 6 Themes and Apps] aoaleman:
Guitardedhero, just want to say thank you again! I am back on Shamu and currently on Pure Nexus ROM. Also using a custom kernel. Flashed the 5.5, disabled MusicFX, rebooted and all works. Thank you!! :D
[Nexus 6 Themes and Apps] jeffgt14:
MusicFX is disabled. Driver Status shows Enabled, Normal, Supoorted, and then No for processing.
[Nexus 6 Themes and Apps] guitardedhero:
Try this MusicFX Installer Alternate zip just in case it works. If not, could you please extract the AudioFX folder, or the stock audio effects if named differently, from your rom zip and attach it to a post and tell me the exact folder it is located in the zip?

You're most welcome man, thanks for the positive feedback! :good:

Is this with a certain music player or several of them?
[Nexus 6 Themes and Apps] jeffgt14:
I usually use DSub for everything but I tried on Play Music as well as ES Media Player and both weren’t working.
[Nexus 6 Themes and Apps] Captain'Murica:
So I flashed the ViperAtmos Sony Beats Edition 5.5 which should contain V4A 2.4.0.1. But upon opening the app it shows that it is the version 2.3.4.0. I don't even have the AnalogX effect. Any reason as to why is this happening?
[Nexus 6 Themes and Apps] guitardedhero:
Is there a com.viper folder in /data/app?
[Nexus 6 Themes and Apps] jeffgt14:
Yep.
[Nexus 6 Themes and Apps] guitardedhero:
Everything in the zip looks correct.

Do this:

Delete /system/addon.d/23-v4adap.sh

Boot to recovery

Wipe > Advanced > Dalvik Cache, Cache

Install > ViPERAtmos 5.5

Reboot
[Nexus 6 Themes and Apps] Captain'Murica:
Man you're quick! Will try it tomorrow.. Thanks dude! :D
[Nexus 6 Themes and Apps] jeffgt14:
Yep
[Nexus 6 Themes and Apps] guitardedhero:
:good:

That folder is likely a data installation of a different v4a version unless you extracted and did it manually from the same zip you flashed in recovery.

Delete that folder and boot to recovery.

Wipe Dalvik and Cache

Install the ViPER zip

Reboot
[Nexus 6 Themes and Apps] jeffgt14:
I just tried that twice and both times viper doesn’t appear to install anywhere.

*Edit* Apparently 3rd times somewhat a charm. It's installed but still no processing.

---------- Post added at 10:56 PM ---------- Previous post was at 10:12 PM ----------

Seems to work when I get rid of /system/vender/etc/audio_effects.conf must be something not getting removed correctly there. Usually not having that file though screws with the headset though.
[Nexus 6 Themes and Apps] guitardedhero:
What phone/rom? MusicFX installed? Sorry if I'm repeating myself, I've been busy working and troubleshooting several users.

Does your device's stock firmware use a config file in /system/vendor/etc?
[Nexus 6 Themes and Apps] jeffgt14:
Stock rooted Nexus 5x. Music FX disabled and using Viper|Atmos 5.4
[Nexus 6 Themes and Apps] guitardedhero:
OK, your device uses /vendor/etc instead. Everything good?

I recommend updating to 5.5 as 4.8/5.5 begin the use of my custom built audio_effects.conf files for the mod. Simply flash with no wipes. :good:
[Nexus 6 Themes and Apps] gil80:
Very minor change.

The V4A setting of AGC on extreme is not noticeable. Is it known to have issues with BT headsets?
[Nexus 6 Themes and Apps] Zackptg5:
On my nexus 5x in multiple roms, after using a device with v4a for the first time after boot, toggling the master switch on/off doesn't effect the convolver. Toggling the convolver switch on/off doesn't even work. The only way to get the convolver effects to work or me the first time is to select a convolver (even if it's the one previously selected) and then it'll work after that. I've tried this on multiple versions (ViperAudio 5.4 and 4.7.1 Stock and ViperAudio 5.5Sony Beats Edition) Any way to fix this annoyance? I attached a logcat in case anything useful is in it
[Nexus 6 Themes and Apps] guitardedhero:
I don't have a BT headset to test but I've never used that effect or found it useful in my usage so I don't have any insight to provide for you unfortunately.

Possibly Marshmallow's biggest annoyance for me is its restriction on many default permissions we've been accustomed to being a constant through the previous Android iterations. Your first install doesn't attempt to write to that particular storage (/ViPER4Android/Kernel) until Expert UI Setting is enabled followed by enabling Convolver. AOSP is especially bad about these permissions compared to Google's factory images but you might have better results by ensuring v4a has Storage Permissions enabled through its App Info page before even opening v4a after install. Depending on your working v4a directory you might even need to compare the folder and file permissions of those you added to that directory to permissions of folders and files set by the app itself.
[Nexus 6 Themes and Apps] pkgnex:
[MENTION=4445176]guitardedhero[/MENTION],

Just have to post that I just installed this on my N6 for the first time (4.8 atmos sony beats, with your audiophile settings)... and was amazed. I'm not hugely into music and was always happy with the stock EQ. I figured, "How much better can it be?" and the installation always looked like such a pain in the neck. Definitely glad I jumped on board, and everything seems to be working fine. My only question is why don't I see the Beats EQ settings like listed in the OP? Not that I care that much since the sound is awesome as-is ;)

Anyways, amazing work by you and all the other Dev's who've been involved with this!

It looks like from all your trouble-shooting posts this is a full-time job for you. Thank you!
[Nexus 6 Themes and Apps] gil80:
And anything about Atmos with BT? (I understand you don't have BT headphones, but maybe other stated similar issue where Atmos wasn't effecting while using BT headphone)