yashsingh1/xdaforums huggingface dataset:
[Magisk] JBolho:
Good news: The app shows up now.

Bad news: it repeatedly tells me to install the driver (after that it says it's installed but after reboot, says again, and again, and again...)
[Magisk] Zackptg5:
That is too weird. So libs still need to be in vendor but app can't be. So use the original unmodified zip and flash it, then move the app from vendor/app to system/priv-app the old fashioned way. I'll fix this in the next version

[MENTION=6766716]TahirZX[/MENTION]

Found the problem with dolby vol keys and pushed an update to fix it
[Magisk] FootSlave:
Yeah, would be nice because of that the happiness doesn't lasted long!

On Android 8 with emui 8 it loops with installing the drivers :(

Hope you fix that soon too get it finally to work with drivers!
[Magisk] JBolho:
Weirder still, the result is the same. Magisk log shows no errors, but app still tells me to install the driver repeatedly.
[Magisk] Zackptg5:
So this is a different issue then. Can you follow the steps in the troubleshooting guide on the op? It a has a section for this kind of problem
[Magisk] JBolho:
Ok, I'll see into that. I'll uninstall everything to have a clean start.

Update - I've read through the whole thing, i have no other audio mods, and only other module I have in Magisk is the Busybox. But I also tried before having any other module and result is the same. I tried with SE Linux in permissive. Tried installing through twrp, with AML and without it as well.

The SE Linux audit logs section is meant for the case where the app and driver is installed but does not process, correct?

Magisk log shows no error at all... This is too weird.

---------- Post added at 04:27 PM ---------- Previous post was at 03:40 PM ----------

Installed SE Permissive, Viper (modified DINAMICOREO string) and AML.

App tells me to install the driver. Magisk log shows no error, here's a SysLog log after boot finished

https://www.dropbox.com/s/mnliau4bz646mi2/2018-03-07_15.23.zip?dl=0
[Magisk] zxz0O0:
The problem is the app can not load the native libV4AJniUtils.so
[Magisk] Zackptg5:
The libV4AJniUtils.so shows up on lots of device regardless of if v4a is working or not. The error your getting is saying that the engine isn't found. Can you post the url of your rom so I can see what files/folders there are? It makes me think that either the driver (libv4a_fx_ics.so) isn't getting installed to right folder or a cfg isn't getting patched
[Magisk] JBolho:
My rom is from this thread, the B360a firmware from Huawei. I installed twrp and kernel by zxz0O0 and have Magisk 16 installed.

https://xdaforums.com/honor-9/how-to/stf-l09c432-how-to-install-oreo-h9-t3707729/page35

---------- Post added at 08:17 PM ---------- Previous post was at 07:45 PM ----------

If you want I can install the regular Viper (the one that installs on Vendor) and look for the files and folders you specify and see if they're there.
[Magisk] zxz0O0:
The stock audio effects are installed in /vendor/lib[64]/soundfx and this Viper driver is installed in /system/lib/soundfx/
[Magisk] JBolho:
So... Install it and move the driver manually? Could that work? Going to try it... Have nothing to lose now so...

Edit - did that, didn't work. App still says to install driver... And the soundfx files are in vendor/lib64 but also in vendor/lib
[Magisk] TahirZX:
Works perfectly now ?✌? thanks
[Magisk] RKR:
Deleted.
[Magisk] Rahul#007#:
Hello guys I want to flash it on RR 6 IN MIDO ,IS IT WORKING PERFECTLY OR CAUSING PROBLEM???
[Magisk] linux.alucard:
Working perfectly!
[Magisk] kpalian:
I don't know why, but when I use V4A with convolver enabled, I get random cutouts and it switches to the audio with no adjustments made, then quickly back to the new audio (V4A adjusted audio). When I turn off convolver, it doesn't do it at all, but the moment I turn it on, it'll start cutting out. Can anyone help?
[Magisk] JBolho:
Just tried Ainur Sauron through Magisk Manager, and it's working... Sound difference is quite noticeable, so it's not my brain playing tricks on me.

I don't know if it's customizable or not, have to read the thread and find out, but since for now Viper isn't working for me, I'll stick to that...
[Magisk] skurtov:
Google Play seems to flag this as malicious. Any ideas on how to get it to stop?
[Magisk] Badger50:
If you mean the V4A material app....then either use the normal app, disable google play protect, or just ignore it :good:
[Magisk] zxz0O0:
The vendor audio process is 64bit and loads 64bit libraries (/vendor/lib64/soundfx/*). As far as I know there is no 64bit version of the ViPER driver and the source is closed, therefore I don't think this will be working on newer systems.
[Magisk] JBolho:
There's plenty of 64bit device users that are currently using it, but everyone has different experiences... Unless EMUI8 processes audio exclusively through 64bit libs (but in this case it would be redundant to have the same /soundfx folder in vendor/lib)

The Ainur mod improves quality of the sound but without something like Viper, I can't customize the output to my liking... I'm confident some solution will be found...

Update - just gone through the audio_effects.conf file and everything there points to system/lib/soundfx which does not exist, so i renamed every path to vendor/lib/soundfx, but didn't change anything...
[Magisk] spaziomilano:
Please what's the best procedure for installed on OnePlus 5T ob3 rooted with magisk?
[Magisk] suvam69:
Convolver not working .

OmniRom 8.1.0 Weekly.

Redmi Note 4 Mido.

v2.5.0.5
[Magisk] Zackptg5:
Has any audiomod worked for you yet? I've been seeing users with your device on dolby and jdsp threads all with non-working reports. Can you flash the zip from the unmodified zip from the OP, and then reboot, open v4a, and get a full logcat? (adb logcat -d > logcat.log)
[Magisk] JBolho:
I was suffering from placebo effect after all when I flashed Ainur...

No audio mod seems to work on this:

1 - Dolby Oreo causes a bootloop

2 - Viper4Android through Magisk doesn't work (modifying the zip makes the app appear but tells to install driver)

3 - Viper4Android through manual installation (putting apk on priv-app and trying to install driver) doesn't work

4 - Ainur Sauron and other mods seem to install properly but make no difference so... they don't work.

Tried all this with enforcing and permissive SE Linux, no difference.

Magisk was working properly because I tested other modules and they worked. Magisk log never showed any error.

I wanted to clean system for a start fresh with Magisk but I'm trying to get the stock system.img from my B360 firmware but I can't seem to extract it from the UPDATE.APP file...

UPDATE - Finally could extract system and flash it via fastboot. Now that i have System, Recovery and Ramdisk all restored to stock, i'm going to flash twrp and Magisk 16 and get you those logs.
[Magisk] JBolho:
So i installed Magisk and flashed the un-modified Viper zip file. Below are 3 log files taken from SysLog

syslog_V4A_install was taken right after i installed V4A in Magisk (before rebooting)

syslog_V4A_afterboot_noapp was taken after rebooting, V4A app did not show up on app drawer

syslog_V4A_appmoved2privapp was taken after i moved the V4A app to priv-app, rebooted and opened the app (it says to install driver)

I hope this helps...
[Magisk] Zackptg5:
Can you post your viper4android folder from your magisk.img?
[Magisk] JBolho:
Here's a screenshot...

Inside "system" is the folder "etc" with the audio_effects.conf and the "vendor" folder with the app/Viper4AndroidFX/apk file, and the lib/soundfx with the driver.

Inside "vendor" is naturally the same as above.

I've checked the audio_effects.conf file and all paths are correct...
[Magisk] JBolho:
The system.prop inside Viper folder on Magisk img shows this:

tunnel.decode=false

lpa.use-stagefright=false

lpa.releaselock=false

lpa.decode=false

Is this supposed to be like this or something can be changed to make this work?
[Magisk] Zackptg5:
That's right. I need to see the contents though. You can use something like Google drive if you can't upload here
[Magisk] JBolho:
My derp, don't know what I was thinking, sorry.

I uploaded to Dropbox, here's the link

https://www.dropbox.com/s/bqd2fj1uqd4wmr7/V4Afolders.zip?dl=0
[Magisk] Zackptg5:
Hmm, need to gather some more information. Can you run these in a terminal app or adb shell and send the output?

find /sbin/. core/img/system /sbin/.core/img/vendor -type f -name "*audio_effects*.conf" -o -name "*audio_effects*.xml"

find -L /system -type f -name "*audio_effects*.conf" -o -name "*audio_effects*.xml"

ls /vendor/app

And a list of magisk modules you have installed
[Magisk] joeyhuab:
I got a copy of the Materalized V4A app the goes undetected in Google Play protect. Feel free to mention me if I should provide the APK file here.
[Magisk] JBolho:
The first command gives this output:

/sbin/./.core/img/ViPER4AndroidFX/system/etc/audio_effects.conf

/sbin/./.core/mirror/system/etc/audio_effects.conf

find: core/img/system: No such file or directory

find: /sbin/.core/img/vendor: No such file or directory

The second command gives this output:

find: /system/etc/amazon-kindle.properties: No such file or directory

find: /system/etc/amzn.aiv.properties: No such file or directory

find: /system/etc/amzn.mp3.properties: No such file or directory

find: /system/etc/amzn.mshop.properties: No such file or directory

find: /system/etc/appmanager.conf: No such file or directory

/system/etc/audio_effects.conf

This output on second command is strange because those files are all there, i don't know why it says "No such file or directory"

The third command gives this output:

Viper4AndroidFX

I only have Viper4Android installed at this moment.
[Magisk] aneesh12:
I've installed android 8.1 today and viper isn't working as well as it used to work in android 8.0 . is it only me or it is same for every 8.1 user? it is working but the sound output is not that great.
[Magisk] Zackptg5:
Hmm. So you're on one of those roms that doesn't have a vendor effects file. Can you replace your v4a folder with this one? Then reboot and run these commands and send me the resulting files?

su -c logcat -d > /sdcard/log.log

su -c ls -LR /system/etc > /sdcard/sysetc.log

su -c ls -LR /vendor/etc > /sdcard/venetc.log
[Magisk] JBolho:
Here they are.
[Magisk] Zackptg5:
Odd. Try replacing the v4a folder with this one. I moved everything to system. Also, can you send the outputs of these commands:

su -c ls -LR /system/lib/soundfx > /sdcard/sys.log

su -c ls -LR /vendor/lib/soundfx > /sdcard/ven.log

Although patching the system/etc/audio_effects should be enough, it seems like the devs completely forgot to add the vendor/etc/audio_effects that should have some different entries so with the info from the logs above, I should be able to make one for you to test out
[Magisk] JBolho:
Here are the two files from the command output.
[Magisk] bbender716:
Module install failing on Android P with magisk 16.1. log attached. Let me know what I can do to help!
[Magisk] Didgeridoohan:
That's a bug in the current Magisk beta (1610). Wait for a fix and install modules through recovery meanwhile.
[Magisk] ezzony:
Hi I need help to get v4a working on my LG G5. The G5 has a unique add-on high-res dac which when connected means the the phone has 2 headphone out jacks. All sounds mods work fine without issues when using standard jack. What does work with the hifi dac is JamesDSP and so does Dolby Atoms ( BQ Aquaris X5 Atmos (2.2.1.7_r1)), which currently is better than nothing.

I have had a good look at all the config files that I know are used and I don't see anything out of place, all the drivers seem to be installed in the right folders etc. I have tried all versions of the driver and material apk etc. I am not using magisk but I did install a version of my rom with magisk starting afresh but that didn't make any difference so I'm back on my backup rom with supersu. I have tried everything in the OP's troubleshooting section but no joy. Any ideas.?... I'd love to get v4a working with my hi-fi dac!

edit: not sure if this makes any difference but my audio_effects.conf file is located in /system/etc and not vendor/etc
[Magisk] DorianX:
It's working great on my OnePlus 5, just two little things to report:

- Some times v4a stops to processing, the solution is launching the app, exit from 3 dots, re-launching the app. Not a big deal.

- When I'm playing music and get a notification for example WhatsApp, v4a stops to processing for a second (the time that notification takes) then processing continues.

Enviado desde mi ONEPLUS A5000 mediante Tapatalk
[Magisk] Pablo.x:
I think the 2nd "bug" it's due to Viper doesn't process notification sounds, as it wouldn't be a big difference but it could have a bad impact on the battery life.

I mean, if Viper processes all notification sounds it would reduce your battery without any benefits. :)
[Magisk] JBolho:
In my previous Zenfone 2 running Nougat, Viper processed every sound...

As for the stopping of the processing, I always solved it by disabling battery optimization for the app, that's it.

The recent problems are due to Oreo I guess, and the way it's "built" and implemented by different OEM's.
[Magisk] linux.alucard:
Thank you!! :)
[Magisk] JBolho:
[MENTION=6037748]Zackptg5[/MENTION]

It seems that the audioserver in EMUI and the audio libs have been heavily modified and reject any interference from other "mods" or similar stuff.

I'm beginning to think that compatibility with Viper or any other audio mod will be virtually impossible unless the system is tricked into using other libs and accepting them as their own...
[Magisk] carlese:
How do you disable battery optimization for a system app?
[Magisk] JBolho:
It's installed as a system app but it does appear on the list. Just as other apps do...
[Magisk] RashidAlawadi:
Still having the bug where V4A stops processing for a sec when a notification comes through on my Pixel 2 XL. Anybody got a workaround?
[Magisk] AlexxAnders:
If that's the case, then it's a little stupid...:( At least I can process music on my storage through JetAudio.
[Magisk] JBolho:
My guess is that the whole Histen thing is implemented with deep system integration with several drivers deeply interconnected (may be exaggerating, i don't know)

And even if the Histen effects are disabled in the app, it's those drivers that process the sound output, and the app just serves to customize the output to your liking.

A developer friend of mine, [MENTION=7074010]nutcasev1.5[/MENTION], upon looking at logs i gave him, suggested that in order to make these audio mods work, either the system audio driver has to be modded, or some kind of effect proxying has to be used, or decompile Histen apk and find out what libs it's using and replacing the whole thing all together (if that's even possible).

And as time passes by, i'm really inclined to give him reason and unless some dev is willing to pick this up and try, i don't think this will be possible on the Honor 9 and others. And on the other hand, if all this is true, is there any dev out there willing to dive into a ton of work for a thing that not every user cares about? (Because let's face it, Histen is not bad, and the sound quality is nice, it would just be better if we could enhance it further, that's it.)
[Magisk] carlese:
Unfortunately not in my oneplus 5..
[Magisk] JBolho:
Check in the permissions, within system options... Or in some kind of system optimizer if you have one like Huawei, Samsung and others have, that may be closing the app on the background.

If it doesn't show up, see if there's a hidden "show system processes" option, to show everything.
[Magisk] Zackptg5:
Okay, I wanted to verify that you have a vendor/lib folder with libs in it which you do. I have no idea why it isn't working at this point. Could you post a link to the rom you're on so I could look at it? Maybe I could find the culprit
[Magisk] JBolho:
The ROM is the B360 from this thread.

https://xdaforums.com/honor-9/how-to/stf-l09c432-how-to-install-oreo-h9-t3707729/page1
[Magisk] Zackptg5:
Which thread?
[Magisk] JBolho:
Sorry, the link wasn't posted, I corrected it now.
[Magisk] Zackptg5:
Well this rom is really weird. I get tons of errors when attempting to extract it. Can you dump your system and vendor img?

Just run these commands in twrp:

SYS=$(find /dev/block -name system | head -n 1)
dd if=$SYS of=/data/media/0/system.img
VEN=$(find /dev/block -name vendor | head -n 1)
dd if=$VEN of/data/media/0/vendor.img
[Magisk] JBolho:
Will it work? Because twrp can't mount system or vendor...

I extracted system once from update.app, I used Huawei Firmware Extractor without crc checking
[Magisk] Zackptg5:
You don't need to mount anything. All this does is copy the system and vendor imgs to your sdcard
[Magisk] zxz0O0:
Audioserver / audioservice is 64bit, ViPER driver is 32bit. It's really simple, just as I explained a few pages before.
[Magisk] JBolho:
Yes but all the audio libs are both in the 32 and 64 bit folders...
[Magisk] zxz0O0:
So what? That doesn't change the fact that the audioserver / audio service is 64bit. That's simply how android builds it.
[Magisk] Amit Kumar21:
Any luck for windows 10 like this:confused:
[Magisk] ironman76:
Hi, and sorry for this question but: Can i flash this also if i have a stock kernel? Or only with cutom kernel? Thanks guys
[Magisk] Lughnasadh:
Stock is fine.
[Magisk] Ferbee:
If you go to the Viper4Android website, there actually is a link for windows computers...

I haven't tried it, but I'm sure it'll work fine
[Magisk] Amit Kumar21:
Really :cyclops: I checked it its 11 MB setup installed but didn't work and there is no developer option where I can try disable and enable it just like i use it to make it work on my android devices
[Magisk] ironman76:
Thank you, do you know, what i did wrong? I got a MTK Phone
[Magisk] Didgeridoohan:
Some MTK devices have issues with loopback mounting. There are attempts to get it working (check through the beta thread for info), but nothing official yet. I'm assuming you see the same with all modules, correct?
[Magisk] ironman76:
Thank you for your fast Info! Yes, with all modules. My mobile is Doogee Mix 2.
[Magisk] JBolho:
Here's the link to my dropbox folder with all the stock img's from my rom.

https://www.dropbox.com/sh/88l72rypm6u1u94/AADtPyvsIFhyBl1mcJ5raTBZa?dl=0
[Magisk] manpildo:
Yes, there is. Some time ago the ARISE team was developing V4Windows for W10, it requires some registry modifications to make it work, but it's easy and works 100%. The package also includes many other mods like Dolby Home Theater and more. I've been using V4W+Dolby a long time on my PC now and just like Viper on Android, I can't imagine my PC being without it anymore. :) The project was abandoned in alpha state, but it works. I have backed up the package to my GDrive, I can give you the link in the evening when I'm home. If I don't, please remind me by quoting or PM-ing.
[Magisk] Amit Kumar21:
Hi I read you post thal you so much I am waiting for that link....
[Magisk] Telperion:
Have we established yet whether this works on the P Developer Preview release? I attempted to use it but had no success in installing the driver. Will post logs as needed, just wanted to see what was already discussed.
[Magisk] manpildo:
Sent you a message with the link mate. I don't feel comfortable sharing it publicly, there must have been a reason why the devs didn't post it publicly. If anyone else wants it, ask me.
[Magisk] OSheden:
Final Edit: the solution => https://xdaforums.com/showpost.php?p=75978710&postcount=2359

****************

With my previous Oreo 8.1 ROM (OmniROM) I used v1.3.2 and your module worked well after removing the 3 "#pixel" tags.

I switched to Resurrection Remix 8.1 and v1.5.2 of your module.

Unfortunately I have "Processing: No". Could you please help? I tried to make available all requested information:

• OnePlus 3T

• Built-in Stock kernel

• SELinux set to enforcing

• No AudioFX app in system folder

• ext4 set for /data partition - encrypted

• Magisk v16.0

• Magisk Manager log

• ViPER4Android folder which is stored in /sbin/.core/img/

Thanks.

EDIT: Forgot to say that I'm using Pocket Casts.

I flashed Universal deep_buffer Remover and it seems to work. I'll update this post if necessary.

EDIT2 [MENTION=6037748]Zackptg5[/MENTION] [MENTION=4667597]Didgeridoohan[/MENTION]

It finally doesn't work. I quickly tested Pocket Casts this morning with the speaker of my phone and I had "Processing: Yes"

Now I tried with the bluetooth of my car and the speaker of my phone and it no longer work...

EDIT3 Sorry but I want to get it working lol

The file /sbin/.core/img/ViPER4AndroidFX/system/vendor/etc/audio_effects.xml has normally the extension .conf so I copied audio_effects.conf from .../system/etc/ and I have "Processing: Yes" with the speaker :D

I'll test later with the bluetooth. If I found the culprit, is it a mistake in your scripts or in my ROM?
[Magisk] Zackptg5:
The mod will only patch audio_effect files present on the device. Newer devices/roms use xml audio_effect files instead of conf ones. Also, when their is a audio_effect file present in both vendor and system, the system one is ignored and the vendor one is used. So everything was installed as it should have been. When you copied the system audio_effect cfg to vendor, you likely broke several stock audio effects since manufacturers and rom devs typically only modify the vendor one (the system one is typically stock a AOSP copy). Can you post a full logcat without having copied the cfg file to vendor?

---------- Post added at 10:56 ---------- Previous post was at 10:24 ----------

Well nothing really stood out to me so I'm not sure where the issue lies :(
[Magisk] OSheden:
All this is not stable. I removed the .conf in the vendor folder and rebooted. I still have "Processing Yes" so i'll upload a log as soon as possible.
[Magisk] Zackptg5:
If you have processing yes and the it stops processing, that sounds like a classic v4a bug (on the app level so nothing I can do about it). Installing deep_buffer remover can help with this (but not always). What I always do is open v4a, click on the 3 dot menu, exit the app, then reopen it and toggle master power. An annoying work around but at least it works

If the issue was with the config patching, you would have a "status: abnormal" in the v4a app
[Magisk] Taebom:
I'm on the pixel 2 xl and p developer preview and I have viper working fine for me. I had to delete and not freeze music fx app in titanium for the drivers to install properly.
[Magisk] Xdevillived666:
Did you sudeload the mid or have you got twrp working on p
[Magisk] Taebom:
I used the latest twrp to flash viper and other mods
[Magisk] kiran8631:
R u on Android P
[Magisk] Soofi.saad:
The app is not showing in drawer. I'm using Android 8.1 and installed V4A through Magisk. I tried reading the Magisk log but couldn't figure out the reason behind it. Can someone please help? The Magisk log will be in the attachements. Thanks in advance.