yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Namelesswonder:
You don't need a permissive kernel, but you can use one if you want.

If you want to keep SELinux enforcing, use the su.d script linked in the OP. It'll modify the policies on boot to allow V4A to work.

You need to disable PowerAmp's DVC settings. Follow this guide here: https://www.youtube.com/watch?v=tfNMkYOsCSc

I'll look into it to see what is happening, as I don't use V4A for Bluetooth as my car's system doesn't need it.

I might, but it shouldn't be an issue as my /system or /vendor partition at no point became full.

My /system partition has 1.1GB free, and it might be possible that it could be filled up, so check if it is full before hand.

My /vendor partition on the other hand has 11.8MB free, and it could fill up due to overlays for Layers being installed. Check that it has enough free, but the files being used are kilobytes in size and you shouldn't have an issue.
[Nexus 6P General] BSDADON:
Thanks! Worked for me.

Sent from my Nexus 6P
[Nexus 6P General] tgeza:
Ah volume is not an issue for me, more the quality. I wonder did you try it yourself? I don't have the phone as honestly this is the only thing keeping me buying it
[Nexus 6P General] Namelesswonder:
Well it's been fine for me, but I don't have a HTC device to test it against. If you don't like it, you have 15 days to return it after it is delivered for your money back.

EDIT: You may also have an issue with the top speaker being slightly louder than the bottom speaker. It's fixable with ElementalX kernel and dropping the gain on the top speaker by 2.
[Nexus 6P General] Namelesswonder:
Alright [MENTION=5757109]nexus_man12[/MENTION] and [MENTION=3418824]MeetFace[/MENTION] I've had the issue with Bluetooth that you've described. Here's what happened:

Paired phone with car's Bluetooth

Opened Play Music and played some music for 30 minutes

Paused music

Closed Play Music

Disconnected Bluetooth

About an hour later, open Play Music and play some music

At this point V4A wasn't processing music for some reason. I opened up V4A and what it should do is open to the current audio device (if you have headphones plugged it should automatically open to the headphones page, if you're connected to Bluetooth it should open to the Bluetooth page, else it should open the phone speakers page), instead it opened to the Bluetooth page and V4A was reporting that it wasn't processing and that it was disabled.

I closed both V4A and Play Music, and opened Play Music again and V4A began processing properly, without needing a reboot.

I need to investigate this some more but it may be an issue with either: Android itself, Bluetooth, V4A, or Play Music.
[Nexus 6P General] nexus_man12:
Thank you sir. We need more people like you in this world. .

In the meantime, I'll do as you said about closing both apps and then restarting them again.
[Nexus 6P General] MeetFace:
Yes, should be easy enough to close all apps. Thanks for finding an easy solution :)
[Nexus 6P General] nexus_man12:
Thank you chief. Appreciate the effort here. ?
[Nexus 6P General] GohanBurner:
I don't know if I have systemless root or not but I get like a "stockish" root dialog when I try to use "root-only" apps. I'm using a permissive kernel (checked status and its permissive). For whatever reason, no matter what I do, I cannot install the driver to use the app. It just sits there and sits there, sometimes giving me a force close dialog. If I leave the app and come back it says the driver was installed and to reboot but it isn't actually installed. Unfortunately, this is somewhat of a deal breaker.
[Nexus 6P General] nexus_man12:
I definitely think you need regular root for this to work as it should. Also did you verify the files in the /sytem/vendor/ and /system/etc/ directories to make sure they have the proper permissions? Sorry if I'm being redundant here.
[Nexus 6P General] GohanBurner:
Yes, there is plenty of room and the permissions are correct. I got it to work somehow, I have no idea how I did it. It just "worked" this time.
[Nexus 6P General] nexus_man12:
Nice!!! Sometimes **** just works. [emoji108]
[Nexus 6P General] yung40oz84:
This works on every ROM I have tried! Thanks so much for this
[Nexus 6P General] OhayouBaka:
This is the only V4A ZIP you will ever need for the Angler.

http://xdaforums.com/attachment.php?attachmentid=3668239&d=1456973280

Just flash it in TWRP, doesn't matter what ROM or what SELinux status you are using, it'll work. Drivers are pre-installed. It also has a backup script, so you will keep V4A after OTAs.

However, you will need to flash this again if you flash a new vendor image, and also make sure to disable Dolby apps unless you really want to use it.
[Nexus 6P General] ShinDragon44:
I installed Viper, but now, with speakers, i have crackling sound..how can i improve speaker audio quality?
[Nexus 6P General] rockyrocker:
Guys I have installed LoliViper on Nexus 6p through the flashable zip. Flashed through twrp and everything went successfully. But now I'm in the driver installation loop and Drivers doesn't get installed.what do I do? Pls help.. thanks!
[Nexus 6P General] daswahnsinn:
Is there a thread for the n6p for v4a and Poweramp tuning. I've been playing around with v4a for a month and can't find the best settings for my music.
[Nexus 6P General] king3opobn:
I have the same issue, how did you get it fixed?
[Nexus 6P General] ogeretla:
This worked perfect. Thanks a million!
[Nexus 6P General] DanielF50:
Uninstalled the V4A zip & installed V4A "Atmos" from this thread: http://xdaforums.com/nexus-6/themes-apps/viper4android-t2952137

I haven't had any speaker phone issues since, hope this helps!
[Nexus 6P General] godoys:
It is an old version, do you know if I can update it?
[Nexus 6P General] OhayouBaka:
What do you mean? That is V4A 2.4.0.1, which is the latest version currently available.
[Nexus 6P General] godoys:
After installed the zip file from the post I replied and check the version is 2.3.4.0.

How you have the new version? Did you updated to 2.4.0.1? Do you have the speaker issue?
[Nexus 6P General] OhayouBaka:
My bad, I linked to an old version of the ZIP. Edited that post to change the link to the latest version of that ZIP. Just download it and flash it over and you should be at 2.4.0.1. Also I have no speaker issues or the sort with this.
[Nexus 6P General] darklimits:
I keep having to reinstall the driver on every boot. The status of the driver shows abnormal.

I installed busybox, flashed above file. Im on AICP. any ideas?
[Nexus 6P General] bouchigo:
Go post your questions in that thread. That zip you flashed modifies a whole bunch of files. You'll be better served over there.
[Nexus 6P General] Nitemare3219:
Running preview 3 and have my system running permissive. Flashed the V4A zip for v.2.4.0.1. With my headphones plugged in, it shows enabled YES, processing YES but there is zero effect. Yes V4A is enabled and I also tried force enabling. I am listening via Google Play Music.

The stock equalizer that is accessible via GPM's settings does work, but I obviously don't want to use it... I want V4A. What gives?

EDIT: Disregard, missed that part of the OP. Needed to disable stock MusicFX.
[Nexus 6P General] Hindustani1990:
Thanks it worked well

Haven't yet tested Bluetooth and headphones

But speakers are working
[Nexus 6P General] ahrion:
Did you modify the V4A apk? I tried switching APKs out for a material version and it wouldn't work
[Nexus 6P General] bouchigo:
No I didn't, it's the original apk. When you replaced it were the files named the same?
[Nexus 6P General] bouchigo:
Delete duplicate.
[Nexus 6P General] ahrion:
No. That could be it. I couldn't get V4A XHiFi to work. Is there something similar that needs to be done?

You're awesome though. I was wondering if I could use your files and credit you for a mod in HTC 10 subforums?
[Nexus 6P General] bouchigo:
I haven't messed with XHiFi.

Go ahead and use it as you like [emoji106]
[Nexus 6P General] loong4455:
anyone experiencing softer volume when im on speakerphone? tried extra loud but its not working
[Nexus 6P General] vassagout:
Does that version works in enforcing? root needed?
[Nexus 6P General] OhayouBaka:
Yes it works on Enforcing.

You will need TWRP to flash it so you may as well have root anyways.
[Nexus 6P General] ahrion:
[MENTION=790321]bouchigo[/MENTION]

I went ahead and made a v2. Essentially yours doesn't work on HTC devices because stupid HTC uses like 3 audio_effects.conf files (etc/audio_effects.conf, etc/htc_audio_effects.conf, and etc/vendor/audio_effects.conf. I added the compatibility.

I also edited the way you inject the library/effects. Instead of replacing the rom's audio_effects.conf and audio_policy.conf I went ahead and made a patching script that patches the effects/libraries and removes the deep buffers rather than completely replacing the files. I made a backup script for the patched files as well.

I also went ahead and replaced the V4A apk with the MK mod version. It's supposed to have a few small improvements within the apk itself (mostly compatibility) and is materialish themed.

Now the zip has improved compatibility for more devices, and other audio mods (Dolby digital, Dolby atmos, maxxaudio, am3dzirene, etc).

The only thing I didn't do is make if/then statements for patched files. It's unnecessary, but I'll do it later.
[Nexus 6P General] bouchigo:
Cool, sounds good :good: There's just too many use cases and different scenarios such as HTC, etc. It's practically impossible to really make a truly universal zip. Even the other universal zips add files that don't need to be there, to places where they don't really need to be at.

There's a lot of viper threads around, and frankly people should have figured out already how to install viper without relying on "universal" or "device specific" zips to do the job for them. More than likely I'm not going to be updating the zip anymore, it's pointless really, considering how many viper threads there are all over the place.
[Nexus 6P General] ahrion:
I haven't seen many zips for systemless besides yours. Which is why I took a liking to your scripts.

As for device specifics, everything can be remedied with if/then scripts and patching certain files. About 95% of devices would be compatible this way.
[Nexus 6P General] bouchigo:
You are probably right, and patching would be the better way to go to get it working on a lot more devices. My zip was meant more for stock Google Nexus 6P, and stock-like Roms. I guess I'm just not really motivated to put in the work when you already have something like this (works with system-less too): http://xdaforums.com/nexus-6/themes-apps/viper4android-t2952137
[Nexus 6P General] ahrion:
I used to make large audio mods. It even looks like he has some of the files I ported in it. However, most of the libs and files inside are largely unnecessary. A lot of placebo with these mods. Unless there are apps to link the libs, then they are most likely placebo.

Trust me. I know.
[Nexus 6P General] tibere86:
Sorry for being late to the party, is this v2 a systemless install? Will it affect my systemless root and functioning Android Pay on Android N preview 3?
[Nexus 6P General] ahrion:
It's just like v1 in that regard. It will detect systemless.
[Nexus 6P General] ahrion:
I added a backup script to persist drivers/app when your ROM gets updated, but only if it supports addon.d. I also made it so that when you flash, the drivers come preinstalled. Currently to keep compatibility with other mods and to keep reflashing compatibility, the mod always uninstalls and reinstalls itself and it's drivers (during flashing/rom ota). It essentially clean installs itself. Deep buffers are removed as well for compatibility.

The only thing is that since it reinstalls, all your settings will be lost Does anyone know what file your settings are saved to?

[MENTION=662479]bouchi[/MENTION]go
[Nexus 6P General] bouchigo:
I believe it saves them here: /data/data/com.vipercn.viper4anroid_v2/shared_prefs as .xml files.
[Nexus 6P General] ahrion:
For both system and systemless? I'm not as familiar with non system apps. Haha.
[Nexus 6P General] bouchigo:
It should be, I have viper installed as a system app right now, and that's where the files are located [emoji106]
[Nexus 6P General] Papote3:
Tried flashing it over an old V4A install and the app just disappeared.

Using stock ROM on June build, EX kernel, systemless root
[Nexus 6P General] hurray:
Thank you very much for the version 2.1 of your Viper4Android modification. This was a "one step installation" on my Oneplus One under CM 13 with systemless root. So it is indeed an universal installer. :)
[Nexus 6P General] ajm786:
I am using the latest PureNexus on my new Nexus 6P. I successfully installed V4A, but then for the first time in 2 years, I had to stop using V4A with my phone, as it actually causes stutters/pops in the audio stream when another app happens to be using the same audio stream. For instance, I'd be playing music and have Google Navigation going at the same time. Every time the navigation voiceover would come through and then end, the music stream would make a very audible pop/glitch that becomes increasingly annoying every time it happens.

It's not my music player either, which happens to be the best one you can get: Neutron Music Player. I've toyed with all the settings you can possibly imagine, until I narrowed it down to V4A unquestionably being the culprit, as when I disabled it, everything works great and no glitches/stutters/pops occur.

This did not happen with V4A on my previous phone, which was a Galaxy Note 4 running CM 12.1, or with my Galaxy Note 3, which was running CM 11.
[Nexus 6P General] Flopik2:
Does anyone have a valid link for a audio_policy.conf that work system wide for the 6P ? My driver status is normal but the processing is never to use except for Google Music
[Nexus 6P General] ahrion:
I changed the revisions back to 1.0 because it's almost a completely new mod.

I cleaned up the updaters with less scripts. I enhanced compatibility because the older one didn't have compatibility with the majority of phones (my Op3 didnt place apps properly) and I made the update-binary execute the scripts. I attempted to add a script to keep profiles and settings, but it doesn't work yet. Hopefully it will and I can get it to work later. I added the MK Mod scripts in the su.d/init.d so the app will persist even during low memory situations, along with the current selinux enforcing fix. It still has support for system/systemless installation. I'll probably switch the MK Mod apk out soon for a better material version. Right now it's cosmetic so it's not a huge priority.

Most of the changes aren't noticeable, but make a huge improvement in the back end.
[Nexus 6P General] Nitemare3219:
I tried installing your last zip with DP4 and it didn't work. Is it because I haven't changed set the device to permissive? Will the new one work just by flashing it, or do I still need to run one of those mods to enable permissiveness?
[Nexus 6P General] ahrion:
What do you mean it didn't work? The files didn't install?

That doesn't really help me much. Are you on systemless root or system? DP4?

I need more info.
[Nexus 6P General] raymondoliviero:
I installed your zip. Driver status is ok. But Viper doesn't have effect to the music.

I have Resurrection Remix ROM, I can't that this has systemless or not systemless root. I installed Supersu.

Sorry for my English.
[Nexus 6P General] ahrion:
You need to play music. Effects don't start processing until music is played. I included the deep buffer fix a two versions ago, but removed it because it causes bootloops in my OP3 and a few other phones.

I'm assuming you're using a music streaming app like Spotify?
[Nexus 6P General] raymondoliviero:
I played the music with Poweramp. Unfortunately effects never start processing. I restarted the Poweramp, but Viper doesn't effect to the music.
[Nexus 6P General] ahrion:
Does Poweramp stream music?
[Nexus 6P General] raymondoliviero:
I played music from my phone storage with Poweramp, not from the web.

I installed other music player (Google Play Music) and it's working good.

But with Poweramp doesn't work. :( It would be good, if it's work with Poweramp too.
[Nexus 6P General] ahrion:
Put on compatibility mode. Or you could "force on" effects. I do know that PowerAml has its own equalizer settings and has been known to confloct with v4a. Has v4a ever worked for you with Poweramp?
[Nexus 6P General] raymondoliviero:
Doesn't work with compatibility mode. I bought Poweramp just a few days ago, previously I never used.
[Nexus 6P General] ahrion:
Compatibility mode requires phone reboot. Turn off the equalizer settings in Poweramp and see if that fixes it. I'll do some research for you.
[Nexus 6P General] raymondoliviero:
This is working:

https://youtu.be/tfNMkYOsCSc
[Nexus 6P General] Nitemare3219:
I am on DP4 with system root. It did not add the V4A app, but it did remove the stock EQ app. I downloaded V4A from the store because that has worked before, but the drivers apparently do not install even though it says it completes without a problem.
[Nexus 6P General] vassagout:
Thanks, I installed v4a_universal_v1 and it is working . The question is what audio quality driver is installed by default? I mean I wasn't asked about what audio driver quality I prefer.
[Nexus 6P General] bouchigo:
Check the end of this post: http://xdaforums.com/showthread.php?p=65383917
[Nexus 6P General] raymondoliviero:
ahrion: Everything is perfect, except one thing. I can not load kernel and profile in V4A. I create V4A folder and copy the kernel and profile files, but I can't load in V4A, because writes that empty folder.
[Nexus 6P General] therock3181:
Have you given V4A storage permission ?
[Nexus 6P General] raymondoliviero:
That was the problem, thank you very much.
[Nexus 6P General] therock3181:
Pleasure !
[Nexus 6P General] BTGbullseye:
Running a Nexus 6P with full root, and have tried everything I can think of, followed every different guide, restarted from scratch several times, and even finally went to a pre-rooted ROM (http://xdaforums.com/nexus-6p/development/rom-debloated-prerooted-deoxeded-t3372600) just to try and get V4A working... It refuses to install the driver, no matter what.
[Nexus 6P General] therock3181:
Weird I use chroma. Flashed with twrp viper/atmos and disable musicfx. Worked the first time.
[Nexus 6P General] tibere86:
Reflash your ROM then flash this zip posted above V4A Universal zip v2.1 and you will be good to go.
[Nexus 6P General] djide01:
Don't work on DP5, any advice to get it working?
[Nexus 6P General] bouchigo:
It's because it's set up for Marshmallow.

Also, did you set SELinux to Permissive (must be otherwise it won't work)?

I'm using this one I made for myself, it's only for the 5X or the 6P. If you're using another phone you're on your own.

File: https://www.mediafire.com/download/rp1dftr8m59i54o
[Nexus 6P General] blisside:
if I install this and get a loop will reinstalling the system get rid of it? on a 6p dp5 but I just wanna make sure

and also how did you set it to permissive on dp5?

Thanks in advance
[Nexus 6P General] bouchigo:
This mod should not cause a bootloop, but yes, flashing the system.img will get you back up if a bootloop should occur.

There are a few ways to get permissive set up, but this is what I do: http://xdaforums.com/showpost.php?p=66371718&postcount=7
[Nexus 6P General] drago10029:
Can you post a way to figure out if a ROM is systemless or normal root? I can't tell which mine is.
[Nexus 6P General] ikyeye:
this broke my already-installed xposed framework.

any ideas?

ooops. anything wrong with my device being N5X?
[Nexus 6P General] bouchigo:
I don't know why your Xposed setup broke, it seems odd to me as this mod has nothing to do with Xposed. You should give more information, like what Rom you are using, what root method, etc., and then someone might be able to give you more insight.
[Nexus 6P General] ikyeye:
oops sorry :silly:

i'm currently using MTC20F (August security update) stock ROM, stock Kernel, systemless root, and my SELinux is Enforcing.

about xposed, I just reflash the framework and it back again.

anyway, I still has a problem.

When I tap on Driver Status at Viper4ANdroid, it said

Neon Enabled : Yes

Enabled: No

Status: Normal

Audio Format: Supported

Processing: No

Sampling Rate: 48000​

While I plays music using PowerAMP with Direct Volume Control disabled and MusicFX disabled (I tried DoubleTwist also), it become

Neon Enabled : Yes

Enabled: Yes

Status: Normal

Audio Format: Supported

Processing: No

Sampling Rate: 48000​

the processing part is still giving me No.

and no change at all at the audio output. Tried in speaker and headphone, but no avail.

It was working with July security update with exact configuration.

any ideas? anyone having the same problem as me?
[Nexus 6P General] bouchigo:
Is that with chainfire's systemless root, or topjohnwu's systemless root?

When music is playing try going into viper and turn it of then back on by ticking and unticking the "Enable" box; after you do that check the driver status again.

Also try Google Play Music or Pandora, and see what the driver status says when those are playing.

If that doesn't work, then you might have to run with SELinux set to Permissive.
[Nexus 6P General] ikyeye:
it's chainfire's

I did unticking and reticking "Enable", and still no change.

Changing SELinux is the last thing that I want to do.

I want to try other methods that lying around in xda, but I've been busy. :(

Maybe another time.

thankyou [MENTION=790321]bouchigo[/MENTION]
[Nexus 6P General] Flopik2:
I have the same environnement , please make sure of this :

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

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

Is there a guide somewhere to know how to install viper4android for 100% systemless root? I think for me it broke safetynet, since I have xposed systemless installed, this is the only system modification i think. I toggle disable xposed to test..
[Nexus 6P General] BTGbullseye:
Sorry about the delayed reply...

This ROM doesn't even have MusicFX installed, so no need to worry about disabling it.

Still showing "Status: Abnormal" and "Audio Format: Unsupported" all the time. Even tried all the other adjustments I tried without this after doing what you suggested. On the upside, at least Vanilla Music switches from its internal equalizer to V4A automatically now. (even though it doesn't produce any audio)

[EDIT] Had to restart one more time after changing SELinux to permissive, after installing that V4A Universal zip. (I hadn't tried that previously)
[Nexus 6P General] Slacker101:
After installing this my in call volume is absolutely horrifyingly low. Any ideas what would cause this? Or anyone else have the same problem?

Edit: Also, the app is not letting me save or load profiles, it worked fine in MM. Is anyone able to on Nougat?
[Nexus 6P General] bouchigo:
My volume is fine, you may have to mess with mixer_paths.xml if you want more volume.

Are you running SELinux as Permissive? If you aren't viper is not going to work. Make sure viper is actually processing; sometimes you have to tick and untick "Enable" when music is playing, but that usually does the trick (you might have to do it a few times 3-5).
[Nexus 6P General] Slacker101:
I have it in permissive for sure but the damn ear piece for calls is super low now. I'm not sure why. It seems to be working.

The low volume is a serious issue. I can't hear calls at all.
[Nexus 6P General] therock3181:
Weird when I used Chroma it was there.
[Nexus 6P General] BTGbullseye:
I'm not using Chroma. I'm using the ROM linked to, and it doesn't have MusicFX installed by default. (it's basically the stock image with modified settings, rooted, and most of the bloat removed)