yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Themes and Apps] guitardedhero:
Yes, the script is only needed for Enforcing Selinux.

Great info there. The second line in the 4.5.1 script does indeed point to /su/bin/supolicy.
[Nexus 6 Themes and Apps] guitardedhero:
What is your working v4a directory?
[Nexus 6 Themes and Apps] Shadowghoster:
[MENTION=4445176]guitardedhero[/MENTION] Isn't the working v4a directory more or less hardcoded to /storage/emulated/legacy/ViPER4Android/Kernel ?

Edit: regarding command-paths: for best compatibility you can just write both lines in the script, so it will work on systemless and normal SuperSu installs.
[Nexus 6 Themes and Apps] Zertech:
Working directory is

/data/media/legacy/ViPER4Android/

Found by renaming one of the irs files.
[Nexus 6 Themes and Apps] guitardedhero:
Brilliant! I never thought of that! :good:

You'd be surprised how varied the working v4a directories are. That is the only reason the Installation Instructions end with "Save any open v4a tab as a New Profile named " Stock".
[Nexus 6 Themes and Apps] Shadowghoster:
[MENTION=6194556]Zertech[/MENTION] could you test if my path is leading you to the same directory? Because for me your and mine are linking to the same dir.
[Nexus 6 Themes and Apps] Zertech:
It does link to that directory as well.
[Nexus 6 Themes and Apps] guitardedhero:
And you can't write to that directory with Root Explorer?

Be sure to merge folders instead of individual files.
[Nexus 6 Themes and Apps] Zertech:
I am able to write to that directory. Viper only sees IRS files, and does not read or write profiles in that folder

Edit:to clear up I mean in respective folders. Everything is placed correctly
[Nexus 6 Themes and Apps] guitardedhero:
Check in:

/mnt/runtime/write
[Nexus 6 Themes and Apps] suaverc118:
OK flashing the 4.5.1 worked and didn't have to do any weird stuff to get viper to work. Now, I just updated my ROM and not sure which side it happened on, but I don't have music visualizer working now. Can that be caused by the 4.5.1 zip?
[Nexus 6 Themes and Apps] Zertech:
What am I checking for exactly?

That directory exists and through it I can find the Viper files.

Edit:I cannot write to this directory. Is this relevant?
[Nexus 6 Themes and Apps] vjtigas:
Hi, I'll try to modify the zip to make it work on KK. But I already installed Dolby ATMOS earlier, using the original zip. What should I do before flashing ViperATMOS or ViperDD+? Thanks!

---------- Post added at 07:47 AM ---------- Previous post was at 07:28 AM ----------

Another question: Are you using Root Explorer to compress the modified files into a zip?
[Nexus 6 Themes and Apps] guitardedhero:
It shouldn't. Let me take a look at /system/vendor/etc/audio_effect.conf if you don't mind.

Are you merging folders or files?

The ViPER installation will take care of your previous Dolby Atmos™ installation.

Yes, I use Root Explorer exclusively. :good:
[Nexus 6 Themes and Apps] Zertech:
Attempted to merge folders, and then tried to move the files into the folder itself. Neither worked.
[Nexus 6 Themes and Apps] guitardedhero:
What is your root status?
[Nexus 6 Themes and Apps] Vanojan:
Flashed ViPERAudio Sony Beats edition 4.5.1 over ViPERAudio 4.4 and it's wotking great! Thanks again?
[Nexus 6 Themes and Apps] suaverc118:
Stupid question... Do we still need the viper apk to config the sound right?

---------- Post added at 07:30 PM ---------- Previous post was at 07:29 PM ----------

OK, you want me to look and see what's there?
[Nexus 6 Themes and Apps] suaverc118:
Its there
[Nexus 6 Themes and Apps] guitardedhero:
My packages install the v4a apk among other things and should patch your /vendor/etc/audio_effects.conf as well.
[Nexus 6 Themes and Apps] suaverc118:
OK. When I flashed the 4.5.1 zip I mentioned earlier, I didn't see the viper app in my drawer. It actually disappeared. It most likely something I did wrong or a step I missed. I had an apk anyways and just installed it.
[Nexus 6 Themes and Apps] guitardedhero:
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.
[Nexus 6 Themes and Apps] guitardedhero:
That is usually the result of an existing v4a installation outside the scope of my install script's removal lines. I'm glad you got it sorted! :good:
[Nexus 6 Themes and Apps] guitardedhero:
You mind zipping up that file and attaching it to a reply so I can take a look at it?
[Nexus 6 Themes and Apps] suaverc118:
Here you go.
[Nexus 6 Themes and Apps] EeyoreSyndrome:
Ive noticed YouTube videos sound seems to be a tad unsynchronized. Is there a setting I can tweak it just disable v4a when im watching YouTube I suppose.
[Nexus 6 Themes and Apps] gianboy:
Try disabling convolver and if that doesnt work disable diferencial surround too
[Nexus 6 Themes and Apps] guitardedhero:
Thanks for providing that for me.

I recommend pulling /system/lib/soundfx/libeffectproxy.so from your rom zip and copy it over the one currently on your device. Set permissions to 0644 and reboot.

Thank you, good advice. :good:
[Nexus 6 Themes and Apps] guitardedhero:
Finally finished!

All 4.5.2 builds have been modified for JB and KK and can be found in my JB KK folder at my AndroidFileHost linked here: https://www.androidfilehost.com/?w=files&flid=48267

I've added the link to the OP as well.

Thank you for your patience! :good:
[Nexus 6 Themes and Apps] Zertech:
Fully Rooted. I believe I need to update, but it's likely unrelated. This issue has spanned since your 2.8 package when I first flashed, and a prior SU update.
[Nexus 6 Themes and Apps] guitardedhero:
If you can't write to /data or /mnt there is certainly something amiss.
[Nexus 6 Themes and Apps] lazer77:
Because i'm curious, i'm going to test the Sony/Beats edition with Pulse. Will edit my post with results.. :fingers-crossed:

EDIT: ViPERAtmos 4.5.2 Sony Beats Edition.zip is working with Pulse. Yes!

[MENTION=4445176]guitardedhero[/MENTION] - Must have been those damn Huawei files that interrupted it, as we thought.
[Nexus 6 Themes and Apps] Zootopia:
Guitardedhero, I have a small request for you: the best version so far for me is the single one you included ViperXiFi... Go figure, I've always enjoyed messing with the settings found in there.

That's why I always end up reverting to 4.3 after trying you're superb, just not as excel as my favorite.

However I'm unable to install the official version of ViperXiFi on my OPO Ressurection Remix 6.0.1.

Is it possible for you to make a flashable only with the ViperXiFi so that I can properly compare 4.3 with your newer versions?
[Nexus 6 Themes and Apps] Shadowghoster:
[MENTION=4445176]guitardedhero[/MENTION]: I'm using the materialized Version of V4A, if you want to include it (just looks more modern): klick

No idea to whom the credits go for this, I just found it on some V4A zips for LP (was from Blisspop guys I think, but still not sure).

Using now the Atmos Sony Beats Version, all fine so far ;)
[Nexus 6 Themes and Apps] ilfrick:
[MENTION=4445176]guitardedhero[/MENTION] thanks for your efforts!

I have one request: I started using [MENTION=1915408]phhusson[/MENTION] Superuser to root my galaxy gt-i9505 and I noticed that now v4a shows not working when selinux is set to enforcing.

It shows as working if I set selinux to permissive.

It worked fine when using [MENTION=631273]Chainfire[/MENTION] supersu 2.67 beta.

I am using the 4.5.1 Atmos Beats package.

Can you please look into this? Let me know what I can do to help, please.

I recon [MENTION=1915408]phhusson[/MENTION] 's and [MENTION=6124077]doitright[/MENTION] 's root implementation are likely to gain a large user base going forward! Thanks!
[Nexus 6 Themes and Apps] Shadowghoster:
[MENTION=6149085]ilfrick[/MENTION] that should be caused by missing commands (compared to SuperSU) of your superuser implementation. The script in /system/su.d uses the "sepolicy" command. If that's not included in the superuser implementation it won't work in enforcing mode because restrictions by selinux.
[Nexus 6 Themes and Apps] ilfrick:
Thanks for pitching in! [MENTION=1915408]phhusson[/MENTION], does this make sense?
[Nexus 6 Themes and Apps] phhusson:
I can add an option in my superuser.zip to have non-enforcing option
[Nexus 6 Themes and Apps] ilfrick:
I am willing to test, thanks.

By the way, v4a shows as working if I set selinux to permissive, with your implementation. The problem is when I set selinux to enforcing.

In the meantime, here is the script being quoted:

#! /system/bin/sh

/su/bin/supolicy --live "allow mediaserver mediaserver_tmpfs:file { read write execute };"
[Nexus 6 Themes and Apps] phhusson:
Oh, this sounds means it is enforced actually.

I'll check if it's safe to add this rule by default in my build.

In worst case I add this rule in "eng" target.
[Nexus 6 Themes and Apps] Shadowghoster:
Yeah ofcourse that script allows v4a to run in enforcing mode because it alters the sepolicy of media server. This altering needs a command only available in SuperSU so far. If you have something similar in your implementation [MENTION=1915408]phhusson[/MENTION], the script can just be changed to use that one (other possibility is to patch sepolicy in kernel ramdisk, but that's complicated to achieve properly)
[Nexus 6 Themes and Apps] Mervingio:
Not sure if this was addressed yet but for some reason when adjust the volume on Kernel Adiutor and use Atmos or Viper the volume simply go back to normal ROM Stock with HK

v4.5.1
[Nexus 6 Themes and Apps] suaverc118:
I've talked to 2 people last night and both said they had trouble understanding me and it only sounded better when I was on speaker phone. That used to happen to me months ago when I used viper but hadn't for a while until last night. I also noticed my ringtone on low volume is loud as hell lol! How can I fix both of these issues?

I'm also trying to work on moving the files you suggested right now.

Edit: I tried extracting the whole zip using root explorer but don't know what to do next

---------- Post added at 06:27 AM ---------- Previous post was at 06:25 AM ----------

Do you have the apk for it?

Nevermind lol
[Nexus 6 Themes and Apps] guitardedhero:
Incredible! Thanks for the report man! :good:

I would be more than happy to do that for you!

I was about to ask you which version you would like but your idea of a single installer to install over any package sounds like a much better idea. I will also include an uninstaller as the packages do not remove XHiFi, that way, users won't have to wipe System to get rid of XHiFi after trying it out. :good:

That is from [MENTION=5110913]Viper4713[/MENTION], and was used for many versions of ViPER|Audio™. I might give it a shot again, although, making Dark and Light versions again will yield a total of 24 packages per update! :eek:

Do you mind attaching the root zip? I am intrigued and haven't had about this new root method. :good:

Please let me know what to add to the sepolicy script if this happens! :good:

That is likely the result of the Dolby app settings. Be sure Surround Virtualizer and Volume Leveler are turned off. :good:
[Nexus 6 Themes and Apps] suaverc118:
How do I go about moving those files over? Sorry sir
[Nexus 6 Themes and Apps] guitardedhero:
I made an installer and uninstaller just for you that will not affect anything but XHiFi itself. :good:

Never a need to apologize here. :good:

Are you wanting to overwrite /system/lib/soundfx/libeffectproxy.so with the file from your rom zip?

Open the rom zip

Navigate to /system/lib/soundfx

Long press libeffectproxy. so

Select Extract

Go to extract location

Longpress extracted libeffectproxy. so

Select Copy

Navigate to /system/lib/soundfx on your device

Paste file here and select Yes to overwrite existing file

Longpress libeffectproxy. so

Select Permissions

Set permissions to 0644

Reboot

:good:
[Nexus 6 Themes and Apps] suaverc118:
Dang dude, you're one of the nicest guys I've met here. There are a few here and you are for sure one of them.
[Nexus 6 Themes and Apps] Zootopia:
This is heaven [MENTION=4445176]guitardedhero[/MENTION] ... It really is ... You're elevating the level here.

Amazing job, thank you so much for all the dedication and hard work! ;)
[Nexus 6 Themes and Apps] guitardedhero:
I appreciate the kind words! I've always believed that attitude is contagious. :good:
[Nexus 6 Themes and Apps] guitardedhero:
It is absolutely my pleasure to provide anything within my abilities for you guys as you all truly make this an extraordinarily enjoyable experience! :highfive:
[Nexus 6 Themes and Apps] ilfrick:
[MENTION=4445176]guitardedhero[/MENTION] please see here:

http://xdaforums.com/showthread.php?t=3216394

And check out this other project too:

http://xdaforums.com/showthread.php?t=3231211
[Nexus 6 Themes and Apps] guitardedhero:
Thanks! :good:
[Nexus 6 Themes and Apps] phhusson:
Can you apply and test with http://phhusson.free.fr/superuser-tmp.zip ?

Also I don't support system/addon.d/ will this be a problem?
[Nexus 6 Themes and Apps] Shadowghoster:
[MENTION=1915408]phhusson[/MENTION] addon.d is only for the mods surviving Rom dirtyflashes. The important folder is /system/su.d
[Nexus 6 Themes and Apps] phhusson:
Well su.d only has sepolicy changes which I put in the superuser.zip itself, so it's not needed.
[Nexus 6 Themes and Apps] Shadowghoster:
So you modify the sepolicy once when flashing the superuser.zip or always on startup? As far as I remember that would make problems if you flash a non-anykernel custom kernel after it because it overrides the ramdisk (where sepolicies are stored as far as I know). Correct me if I'm wrong.
[Nexus 6 Themes and Apps] suaverc118:
I know how to get to that location within the actual ROM. But if I go to the zip I used to download the ROM, I dont know how to get to that location. Does that make sense? Here's the pic to help. The ROM is at the top of the pic
[Nexus 6 Themes and Apps] guitardedhero:
Ah, I see now. Three options:

One:

Delete /system/addon.d/23-v4a(xxx).sh

Dirty flash rom

Copy that file to /sdcard

Two:

Download a different rom zip that uses the folder structure instead of .dat from which to pull that file.

Three:

Kindly ask in the rom thread for someone to share that file who has not flashed any sound mod whatsoever.
[Nexus 6 Themes and Apps] Co.Tibi:
What file exactly should I flash for a standard V4A experience (latest v4a but running in enforcing)? The lo g list in the OP confuses me.
[Nexus 6 Themes and Apps] Mervingio:
no more v4.4 I need back to it due the same issue not sure what is going on here now happen with Custom ROM too
[Nexus 6 Themes and Apps] guitardedhero:
ViPER|Audio™ 4.5.2 Stock :good:

Which issue exactly?

My AndroidFileHost contains every version that's been released here. :good:
[Nexus 6 Themes and Apps] Mervingio:
look
[Nexus 6 Themes and Apps] phhusson:
It stores it when flashing superuser.zip

root itself requires changes in ramdisk, if something replaces initramfs, root goes away anyway.
[Nexus 6 Themes and Apps] saspo59:
Hi bigeener quastion,

I had warking v4a from play on my g2 i unistal it , i installed yours 4.5.2 version u day in instal menu to extract the zip and move 2 dir to data.......v4a folder and dame to folder in sd first in data.......there is no v4a folder do i have to create by my self and secund which 2 folder i have to move
[Nexus 6 Themes and Apps] guitardedhero:
I don't know, I only use stock kernels. Those settings are adjustable in the ViPER4Android app though.

First, enable Expert UI Setting through ViPER4Android's Menu and check Enable Convolver underneath the FIREqualizer.

Second, save any open v4a tab as a New Profile named "Stock" ViPER4Android will create the folder in its working directory. You will want to merge the two folders from the Audiophile™ Profile zip into that working directory where the "Stock" folder is found.
[Nexus 6 Themes and Apps] guitardedhero:
You might try pulling /system/lib/soundfx/libeffectproxy.so from the 4.4 zip and overwrite the one currently on your device if 4.5.2 is still installed. If it works then you can unzip 4.5.2, place the 4.4 file over the one in the zip, rezip, and you will have a fully functional 4.5.2 zip for your needs. :good:
[Nexus 6 Themes and Apps] doitright:
Ok, so let me just give a little bit of context here, mainly about a significant distinction between the open source Superuser and the binary SuperSU.

SuperSU does its "thing" through what they advertise as on-the-fly rewriting of selinux policy. In our conservative opinion, that is a severe weakness in their implementation, which essentially defeats selinux altogether. Think about it like this; if something has the option of altering the selinux policy, then it has the option of disabling selinux altogether, and that is very bad. Note that this goes beyond su being capable of altering selinux policy through malevolent code, but includes some evil user-installed software from asking su to do that. There is simply no way to make policy alterations safe, given the mechanism by which root is controlled on Android and the very limited interaction made possible to the end user.

So our implementation *disables* alteration of the selinux policy, even from the su context (user: root). Instead of "on the fly" alteration of selinux policy, we aim for a solid policy that makes it possible for the end user to use root for their needs.

Now when you have something like this, that wants to make an alteration to the policy during boot, and obviously we can understand how this can be useful, necessary, and appropriate, that option is, unfortunately broken. But the good news is that the policy change is triggered by a boot script at every boot, so it really doesn't need a dynamically flexible policy (which is dangerous), rather the rule can be added to the binary sepolicy. That is what [MENTION=1915408]phhusson[/MENTION] refers to when he talks about adding the rule.

Now the problem I see there, is that adding rules to compensate for every project that needs to have some kind of minor rule adjustment is inefficient. While it might be a reasonable compromise at this stage of the project, it isn't sustainable, and we really need a better way. And that way that *I* can see, is to make a recovery script that can add a list of user-rules to the binary sepolicy in the boot.img. Maybe store the rule list in a file in the cache partition, reboot, and install them. What do you think, [MENTION=1915408]phhusson[/MENTION]?
[Nexus 6 Themes and Apps] guitardedhero:
Thank you for providing a very insightful and informative explanation of the current status of sepolicy rules. I like where your thinking is headed. :good:
[Nexus 6 Themes and Apps] vhick:
After chnanging ROM from AOSP to CM13, I have a problem with V4A driver. Always popup that I need to install the driver. I cannot confirm if it due to systemless because I didn't use supersu systemless root. I cannot install it in CM13 because of built in root function.

I'm also in enforcing mode.

Please help.
[Nexus 6 Themes and Apps] guitardedhero:
If SuperSU is not used then Permissive Selinux is required.

Also, verify that efficient free /system space is provided by the new rom.
[Nexus 6 Themes and Apps] derekr44:
I smell an Aroma installer on the distant horizon...
[Nexus 6 Themes and Apps] guitardedhero:
Lol, no doubt! I just need a laptop first, I'm very interested in doing an Aroma Installer. :good:
[Nexus 6 Themes and Apps] derekr44:
flash all the viper things!
[Nexus 6 Themes and Apps] ilfrick:
Thanks. Shall I just flash this over the current installation, or should I wipe system first, then (dirty) reflash rom and gapps and your file?
[Nexus 6 Themes and Apps] StariX37:
Does it work in Nexus 6p ??

If yes then how..and which one should i use.

Bcoz earlier i flashed a Viper|Atmos Dark edition zip from the second post on my Nexus 6p running custom rom and kernel.

Whenever i installed the driver...and reboot and check the status...it didnt show drivers as installed.
[Nexus 6 Themes and Apps] vhick:
I don't know how to check the free space of /system but in busybox tells me in /system/xbin have 517mb free space.

I still searching on how to install supersu in wileyfox swift cm13. I currently using the built-in root, and I think there are problem switching to supersu with new cyanogenmod 13.0

Thank you for the help sir [MENTION=4445176]guitardedhero[/MENTION], I will try this out...
[Nexus 6 Themes and Apps] blueyes:
Benzo has Viper... Not Bliss
[Nexus 6 Themes and Apps] adame09:
What are everyone's settings for the nexus 6 speakers?

Sent from my Nexus 6
[Nexus 6 Themes and Apps] osoleve:
EQ set to Small Speakers, Optimization enabled. Sounds amazing.
[Nexus 6 Themes and Apps] :
Ditto. Same settings here as well. V4A rules! :thumbup:
[Nexus 6 Themes and Apps] adame09:
Thanks guys. Doesn't make it sound muffled for you too?

Sent from my Nexus 6
[Nexus 6 Themes and Apps] osoleve:
No, the sound from mine is incredibly clear. What driver did you install? Did you enable it for phone speaker?
[Nexus 6 Themes and Apps] 2208:
Läuft gut - Aber....

ich kann den Klinken Ausgang nicht mehr für meine Aktiven Lautsprecher nutzen! Woran liegt das?

Vor der Installation der Treiber konnte ich den Klinken Ausgang nutzen, um meine aktiven Lautsprecher an das Nexus 6 anzuschließen.

Wenn ich jetzt die aktiven Lautsprecher anschließe - höre ich die Lautsprecher des Nexus!

Vergleichsweise noch mal das Nexus 5 an die Lautsprecher angeschlossen - und siehe da - das funktioniert noch...

Das bedeutet doch, dass der Viper Treiber irgend etwas am Handy verbiegt, so das ich den Ausgang nicht mehr nutzen kann - nur noch mit Kopfhörer - denn das funktioniert noch...

Was kann ich tun? :confused:
[Nexus 6 Themes and Apps] 2208:
Problem with my active Speaker

i installed Viper 2.3.4. (Nexus 6) and everything went fine, but I could not connect my active speakers playing.

Only the mobile phone speakers are playing. (and the headphones)

Now I completely uninstalled it, while the active speaker still is not running.

What can I do?

Has anyone an idea?
[Nexus 6 Themes and Apps] aoaleman:
Known issue with the zips. Try restoring your ROM and just install the apk.
[Nexus 6 Themes and Apps] Mozelstein:
Tried to get this to work on stock. No go. Google Music actually stopped working until I uninstalled V4M.

I'm guessing I need to flash a different kernal first?
[Nexus 6 Themes and Apps] aoaleman:
V4A needs the Permissive SELinux mode. Flash a permissive kernel or use the changer app. That might have been the issue.
[Nexus 6 Themes and Apps] Mozelstein:
I installed a switcher and thought I had it in permissive mode but on second look I don't think it was. Re-installing now and will try again.

---------- Post added at 02:08 PM ---------- Previous post was at 01:57 PM ----------

Ok, yeah, it wasn't in permissive. I also had to set fx compatability to Combatible for it to work once it was in permissive.
[Nexus 6 Themes and Apps] aoaleman:
http://xdaforums.com/devdb/project/dl/?id=12178
[Nexus 6 Themes and Apps] Mozelstein:
Thanks for the help. Appreciate it.
[Nexus 6 Themes and Apps] aoaleman:
You're welcome! Hope you get it straightened out. V4A is the best!
[Nexus 6 Themes and Apps] Mozelstein:
It's working on headphones right now. I can't wait to try it out on my car stereo. I hope it works because the built in eq in google music sucks.
[Nexus 6 Themes and Apps] yellowman82:
Not sure if I'm doing everything correctly but I can't seem to hear any difference. I see that the ROM that I'm on has music fx deep in the system, would I have to delete that apk?
[Nexus 6 Themes and Apps] danarama:
The flashable zip should remove it, but yes - it has to go.