[Android Software Development] guitardedhero:
ViPER|Audio™ || ViPER|Atmos™

ViPER|DD+™​

Stock | Sony™ | Beats™

Universal​

for 5.x.x - 6.x.x.​

Not on Lollipop or Marshmallow?

Here is the link to my AndroidFileHost JB & KK folder:

https://www.androidfilehost.com/?w=files&flid=48267​

Features:

5.x uses ViPER4Android 2.4.0.1 with its driver preinstalled

4.x uses ViPER4Android 2.3.4.0 with its Super Quality driver preinstalled

Dark Material theme

Works in Permissive and Enforcing Selinux

Works with no root as long as a Permissive kernel is installed

Installed in /system/priv-app

Advanced Linux Sound Architecture

Sony™ and Beats™ libraries and effects (No apk's or settings to look for!)

Library & Effect entries in /system/ect/audio_effects.conf, /system/vendor/etc/audio_effects.conf, /vendor/etc/audio_effects.conf, and /system/etc/htc_audio_effects.conf

Five custom audio_effects.conf files for the Sony™ Beats™ Editions

Deep Buffer removal from /system/etc/audio_policy.conf

Backup script to survive rom updates

Official ViPER Packages​

ViPER|Audio™ is for those only wanting ViPER processing. There is also a Stock version that has no additional files or effects for those seeking a pure "vanilla" ViPER4Android installation.

ViPER|Atmos™ includes [MENTION=981278]worstenbrood[/MENTION]'s Dolby Atmos™ found here: http://xdaforums.com/android/apps-games/mod-dolby-atmos-t3109446, fully functional in Enforcing. There is also a Stock version without the additional effects for a pure "vanilla" ViPER|Atmos™ experience.

ViPER|DD+™ includes Dolby Digital Plus™ courtesy of [MENTION=5648292]aki_007[/MENTION] which can be found here: http://xdaforums.com/android/software/audio-mod-dolby-digital-plus-universal-t3078802 and is the perfect solution for those experiencing issues with the Dolby Atmos™ app. Both are fantastic and extremely similar in sound and identical in setup. This is certainly not a downgraded ViPER|Atmos™ but just another available option for the user. Dolby Digital Plus™ requires a Permissive Selinux environment so packages including DD+™ also include a Permissive script during the installation to avoid any issues after the installation. There is also a stock version with no additional effects.

These three versions provide the ultimate compatibility across all devices in your quest for the ultimate experience in seamless sound enhancement.

!! Versions not described above are just for fun !!

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

!! If it is necessary for you to run Cyanogenmod 13 with its own SuperUser you must change Selinux from Enforcing Strict to Permissive as SuperSU is required for processing in Enforcing !!​

Installation:

Boot to recovery

Wipe > Advanced > Dalvik Cache, Cache

Install > ViPER|Audio™ OR ViPER|Atmos™ OR ViPER|DD+™

Reboot

!! Be sure to enable Storage Permissions for ViPER4Android through its App Info page !!​

Open v4a

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

Menu > UI Setting > Expert

Menu > Save Effect Profile > New Effect Profile > "Stock" (this will help you find your working v4a directory)

Begin playing audio file

Open v4a

Uncheck Enable v4a

Check Enable v4a

If you experience problems with the normal installation instructions, the awesome [MENTION=3931450]dr.ketan[/MENTION] has allowed me to link his Viper Fix 1.1.apk which will essentially disable all other effects from your system by eliminating their libraries from your audio_effects.conf using v4a instead. Flash this apk as a normal user app, open, reboot when prompted, boot to recovery and flash your desired ViPER package. You can find info and support as well as the apk at this link: http://xdaforums.com/showpost.php?p=61858278&postcount=3079

and

http://xdaforums.com/showpost.php?p=63425983&postcount=658

It is possible your /system is dirty enough to require at least a System wipe in TWRP and a dirty flash of your current rom before flashing ViPER|Audio™ if you experience any Force Closes or any other signs of an incomplete/failed installation.

!! Do NOT delete /system/priv-app/MusicFX !!

In initial testing I found that I had to move MusicFX back to get ViPER working and I haven't removed it since. I do disable it and recommend doing the same if it's not working "out of the box".

!! Audiophile™ Profile zip is NOT flashable !!

Extract both folders in zip into the following two directories:

/data/media/legacy/ViPER4Android

and

/storage/emulated/0/ViPER4Android

Uninstallation and Removal:

The best and easiest way to remove this and any other /system mod from your device is to dirty flash your rom after wiping System in TWRP. Before you begin, make sure you have a compatible rom zip on your internal storage as an OS will need to be installed. As long as you do not Factory Reset or check Data or Internal Storage, your data will be left intact but with a fresh /system partition.

Verify compatible rom zip is on device

Boot to recovery

Wipe > Advanced > System, Dalvik Cache, Cache

Mount > uncheck System

Install > current/compatible rom zip

Reboot

Audiophile™ ViPER|Audio™ Active Settings​

ViPER4Android™ > Enabled

ExtremeBeats™ Perfection EQ Preset > 3.5, 4.5, 5.0, 3.5, 1.5, 1.0, 3.5, 4.5, 5.0, 3.5 (Enabled when needed)

Convolver > Enabled

Impulse Response > DFX Hip Hop Modern.irs or DFX Metal Rap Big Bass.irs

Cross Channel > 0%

Dynamic System > Enabled (Headset only, when needed)

Listening Device > Common Earphone v2 (I use Sony™ MDR-XB90EX - http://www.amazon.com/gp/aw/d/B008G...ony+xb90ex&dpPl=1&dpID=41dggsErE4L&ref=plSrch

Dynamic Bass > 14%

ViPER Bass > Enabled

Bass Mode > Natural

Bass Frequency > 40hz

Bass Boost > 10db

ViPER Clarity > Enabled

Clarity Mode > Natural

Clarity > 6db

Experience ViPER|Atmos™ & ViPER|DD+™

ViPER4Android & Dolby Atmos™ - Enforcing and Permissive Selinux

ViPER4Android & Dolby Digital Plus™ - Permissive Selinux

When combined with ViPER running my Audiophile™ profile, optimal results can be achieved using the following settings in Dolby Atmos™ or Dolby Digital Plus™:​

Music profile

EQ Preset > Open (Flat to tame bass if needed)

Surround Virtualizer > Off

Dialog Enhancer > On

Volume Leveler > Off or On

The resulting sound is absolutely massive!

ViPER|Audio™ || ViPER|Atmos™ || ViPER|DD+™

Sony™ Beats™ Editions

The Xperia™ Z5 Premium Marshmallow audio system and the M7 Beats™ files shared by [MENTION=5627933]androidexpert35[/MENTION] found here: http://xdaforums.com/android/software/mod-htc-beats-audio-beats-xperience-t3281603, compliment ViPER|Audio™, ViPER|Atmos™, and ViPERDD+™ amazingly well. I was surprised how they fit in so seamlessly, adding a very welcomed and natural bass boost while retaining the Audiophile™ clarity. My favorite combination, by far.

Short List of Reference Songs Used for All Sound Profiling

Best processing when used with 16 bit 44.1 kHz FLAC sources. Sound quality degrades deviating up or down from this format. Trust me, I have DSD that play at 30mbps and more.​

Nero - Satisfy https://play.google.com/music/m/T3umvfdsg6nlsbyxiq7he7r5enu?t=Satisfy_-_Nero

Born of Osiris - Exhil∆r∆te https://play.google.com/music/m/Tbkw4olkiaj4ncvcuqimh6525oe?t=Exhilarate_-_Born_Of_Osiris

Bar 9 - The Beginning https://play.google.com/music/m/Tcdnzqm4nvitqtnxemjhb5dxwky?t=The_Beginning_VIP_Mix_-_Bar9

Stick Figure - Breathe https://play.google.com/music/m/Tf4jnzzlzx2vgqgpg6gqbckjrpe?t=Breathe_-_Stick_Figure

Tove Lo - This Time Around https://play.google.com/music/m/Tnwlggfz6k7rxth6lkpwympov74?t=This_Time_Around_-_Tove_Lo

August Burns Red - Echoes https://play.google.com/music/m/Txboufaitol43nwfehjwylplmii?t=Echoes_-_August_Burns_Red

August Burns Red - Black Sheep https://play.google.com/music/m/Ti4zm65ym6mfeb4leax6d7t7t6a?t=Black_Sheep_-_August_Burns_Red

Zomboy - Bad Intentions https://play.google.com/music/m/Tnojluypzn2cuirhwc4bhjohzdm?t=Bad_Intentions_Original_Mix_-_Zomboy

Liquid Stranger - Nintendo https://play.google.com/music/m/Tt3ngoekwqkzyre6bm4wlolew3u?t=Rocket_Fuel_-_Liquid_Stranger

All Shall Perish - There is No Business to be Done on a Dead Planet https://play.google.com/music/m/T5uq4qmmsrnepzwcztuzk6xmj4q?t=There_Is_No_Business_to_Be_Done_on_a_Dead_Planet_-_All_Shall_Perish

Crotchduster - Mammal Sauce https://play.google.com/music/m/T3szem6dbui32ghaiy2succx3uy?t=Mammal_Sauce_-_Crotchduster

Testing Environment​

Headset

> Sony™ MDR-XB90EX http://www.amazon.com/MDR-XB90EX-In-Ear-Headphones-Japanese-Import/dp/B008G80FIU

Bluetooth

> Pioneer™ DEH80PRS http://www.amazon.com/gp/aw/d/B006Y...s=deh80prs&dpPl=1&dpID=41zvBwNuamL&ref=plSrch

> Focal™ Integration ISC 165 6.75" http://www.amazon.com/gp/aw/d/B0159...cal+isc165&dpPl=1&dpID=41eyRcNORfL&ref=plSrch

> Two unknown 6" subs in a ported box

> Old Kicker™ 2 channel 250 watt amplifier

That completes my service van setup where most testing takes place.

> Sony™ SRSX55 Portable Speaker http://www.amazon.com/gp/aw/d/B00TT...ny+srs+x55&dpPl=1&dpID=51sgE76lJzL&ref=plSrch

Some of your IRS files not active when loaded?

A discovery I made a long time ago that is still largely unknown:

For this to work ViPER4Android™ MUST be uninstalled from /data if applicable.​

If ViPER4Android™ still shows in App Drawer after dirty flashing your rom (while you're checking for free /system space and BusyBox ;)) then uninstall from App Drawer or delete /data/app/com.vipercn.viper4android_v2-1.

After flashing ViPER|Atmos™ or ViPER|Audio™, setting everything up, and confirming everything is functioning, extract the ViPER zip.

Tap on the apk in the extracted location to "install an update to this built-in application."

Tap Open and dismiss the only instance of "ViPER4Android has stopped" that you will see.

ViPER is now installed in /system and /data allowing you to enjoy every IRS in your collection.

In a situation where you could really use all the settings available to other outputs while processing through Speaker tab in ViPER4Android™?​

Swipe over to output tab with the settings you seek to use.

Menu > Lock Effect Mode

Now, this locked output tab will be the only settings used while processing audio. Remember to unlock effect mode if this is only for certain scenarios when done.

Audio Focus causing processing issues?​

I haven't had an opportunity to devote enough time testing audio_policy.conf edits but here's a couple that seem to help with no processing after audio interruptions:

Open /system/etc/audio_policy.conf in text editor

Add 44100 to voice_rx

Add 48000 to a2dp

Save changes

Reboot

Do this only if you experience no processing after a notification or voice call when ViPER4Android™ was processing immediately before the audio focus.

Experiencing audio disturbances while using a custom kernel? Our friend [MENTION=3200478]Woody[/MENTION] explains: ​

Feel free to share this wherever with whomever, no credit or permission needed as this is still the work of the developers below. If you feel obligated to give credit when sharing please include those below.​

Thanks to [MENTION=1569052]viper520[/MENTION] & [MENTION=3901724]zhuhang[/MENTION] for the glorious ViPER4Android™.

Thanks to [MENTION=981278]worstenbrood[/MENTION] for the Dolby Atmos™ dap_r6.5.zip and the necessary scripts inside which I was able to edit for this Installer.

Thanks to [MENTION=5648292]aki_007[/MENTION] for Dolby Digital Plus™, providing more options for the user and allowing me to extend the compatibility range for devices that might have issues with Dolby Atmos™

Thanks to [MENTION=4877037]BSDgeek_Jake[/MENTION] for the highest quality IRS files on XDA - http://xdaforums.com/showthread.php?t=2439254

Thanks to [MENTION=2815792]maximumentropy[/MENTION] for the updated Enforcing script for systemless root.

Thanks to [MENTION=5627933]androidexpert35[/MENTION] for the fantastic Beats™ files for the Beats™ editions

Thanks to [MENTION=3931450]dr.ketan[/MENTION] for allowing me to link to his Viper Fix apk, useful when the normal ViPER installation doesn't work for you.

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

Thanks to [MENTION=7168306]Hitti2[/MENTION] for the OP imagery.

Thanks to [MENTION=4807909]-decipher-[/MENTION] for the ViPER|Audio™ banner.

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

And my biggest thanks to these generous donators!:

[MENTION=7037416]joetheshmo[/MENTION] X 2!

[MENTION=6449207]Roi007leaf[/MENTION] X 3!

[MENTION=1028003]churapa[/MENTION]

[MENTION=2921997]dingermtb[/MENTION]

[MENTION=2861395]jesssiii[/MENTION]

[MENTION=5073488]ffejy462[/MENTION] X 2!

[MENTION=5345880]Brock Guffman[/MENTION]

[MENTION=5240301]NullyOne[/MENTION]

[MENTION=4371701]luigidk[/MENTION]

[MENTION=1636904]derekr44[/MENTION]

[MENTION=2682809]elevatorguy[/MENTION]

[MENTION=2707488]heleos[/MENTION]

[MENTION=3845596]J.Guido85[/MENTION]

[MENTION=6953284]bkkzak[/MENTION]

[MENTION=4343903]Rhonin86[/MENTION]

[MENTION=7325011]Unclecharlo[/MENTION]

[MENTION=4224060]stueycaster[/MENTION]

[MENTION=6755150]deebray36[/MENTION] X 3!

[MENTION=4932610]GODSPD[/MENTION]

[MENTION=5105990]williwood[/MENTION] X 2!

[MENTION=264251]meckipower[/MENTION]

[MENTION=5357911]JellyTooth[/MENTION]

[MENTION=2792876]jshamoon[/MENTION]

Mikko L. (guest)

Many thanks guys!! :good:

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

Edit Archive

Edit*******

4.3 is now using the Super Quality Driver to correct an oversight from I don't even know when. The Power Saving Driver file size is the exact same as the Super Quality Driver so somewhere along the way, it got mixed up and placed in the ViPER packages. The MD5 for the Super Quality Driver ends in "27a5" if you want to check libv4a_fx_ics.so on your device in /system/lib/soundfx.

Edit********

4.3.1 modifies the install script to accommodate every scenario of switching from different ViPER packages. No wipes necessary and no need to update unless you are wanting to try a different package. 4.3.1 also introduces the ViPER|DD+™ Stock version with no additional Beats™ and Huawei™ files.

Edit*********

4.4 introduces the phasing out of Huawei™ as part of the official packages as I was never fully convinced of any contribution, but highly suspect its inclusion caused many issues. All 4.4 packages include complete removal of Huawei™ files in the install script so no wipes are ever necessary. I don't plan on adding any Beats™ removal lines into the script as I fear that might delete stock files on HTC devices and that will certainly cause issues and be a very irresponsible act on my part. Essentially, this means a desire to try a Stock package will require a System wipe followed by a dirty flash of your rom before flashing a Stock package, otherwise, you'll still end up with the Beats™ files.

Edit∆

4.5.1 introduces the Xperia™ Z5 libraries and effects from [MENTION=5396325]jancsessz[/MENTION]'s Xperia™ Z5 port as well as a change in the supolicy script pointing to /su/bin/supolicy for the latest SuperSU systemless root for full ViPER4Android functionality with Enforcing Selinux. 4.5.1 also begins the phasing out of the Beats™ only editions to keep a manageable number of packages.

Edit∆*

4.5.2 makes minor changes to the Supolicy script to make it compatible for all SuperSU users in an Enforcing Selinux environment (Thanks [MENTION=5368959]Shadowghoster[/MENTION]!). 4.5.2 also cleans the install script in all packages by removing the former Huawei™ removal lines which should no longer be necessary at this point. Users with a fully functional 4.5.1 installation should not feel compelled to update to 4.5.2, this is for everyone else or if you're flashing ViPER again because your rom update wiped your system in the installation process. Finally, Beats™ only editions will continue for those that have incompatibility issues with the other packages.

Edit∆**

5.0 includes the latest ViPER4Android 2.4.0.1 and its driver as well as a minor tweak to the Supolicy script.

Edit∆***

5.1 brings Material Dark back to ViPER|Audio™ courtesy OS [MENTION=5110913]Viper4713[/MENTION]'s themed 2.4.0.1 apk. 5.1 also no longer removes ViPER4Android's /data/app installation or /data/data (app data) thanks to [MENTION=4807909]-decipher-[/MENTION]'s thorough testing and reports.

Edit∆****

5.2 returns the official ViPER4Android apk into all ViPER packages. This makes for a better flashing experience and the Material apk's can always be easily copied over the existing official apk if desired. 5.2 also includes /system/etc/sony_effect to all Sony™ Beats™ editions. Lastly, all 5.2 packages include a Version Info text file in /system and include more removal lines in the installation script for third party v4a installs including those included in some roms.

Edit∆*****

5.2.1 removes the /system/etc/sony_effect folder introduced in 5.2. A system wipe will be required to remove this folder as deleting through my installer might delete stock files on some Sony™ devices. Alternatively, this file can be manually deleted to avoid a system wipe if desired. 5.2.1 also removes the data removal of ViPER4Android during installation.

Edit∆******

5.3 adds the following lines to /system/build.prop: