yashsingh1/xdaforums huggingface dataset:
[Magisk] Infy_AsiX:
Leaving a huge thanks to the developers. I last left a message on this thread a long while ago when my device Axon 7 moved to a new source base. It could no longer use audio effects while apps use the microphone or rather more specifically enter a voip call type scenario. I tried ACP at that time but it couldn't help as my message explained then.

Fast forward to now. Trying ACP again it seems the new developments fix the feature I require. Only seeking this fix it worked first try. I skipped original audio policy patching and everything else seeming unrelated to me except volume_listener. Lo and behold that feature I long missed I now have again. Cheers.
[Magisk] najabi:
(removed)
[Magisk] Hydro24:
TIDAL is still not working, even with the fix. Do you need a log or something? :)

Edit : Nevermind, Tidal works out of the box with v4a!
[Magisk] antoniu200:
Hi! I'm having issues with audio on a lot of apps and games after installing Universal Audio Patch, mostly audio glitches and stutters, regardless of audio equalizer. Device is an Xperia XZ1 Compact on Android 8, 47.1.A.12.235.

Any way to resolve this issue?
[Magisk] JazzMartian:
Can somebody help a brother out with this patch? Spefically I'm having trouble as I don't have hardware volume up/down capability (ironic as I'm trying to use it on the Nvidia "I'm All About Buttons" Shield Portable). Anyways I've tried renaming the file in various ways, but it's still not working. I've tried "Audio-Compatibility-Patch_1.7.3_nrem_notif_volu_lib.zip" and simply "nrem_notif_volu_lib.zip" and no dice, along with a couple of other variations. I've also gone into the zip, hoping to be able to toggle the options in there, re-zip and flash, but I can't seem to make sense of what's going on with the format. Any help would be appreciated.
[Magisk] jcmm11:
What are you using to try and install it? (TWRP, Magisk, some kernel Manager, etc)
[Magisk] JazzMartian:
Sorry about that. I'm using TWRP. When I try to flash it, it asks me to use the volume keys.

I'm sure the zip can be modified to stop looking for volume key presses and flash according to whatever options I choose inside whatever file in the zip. I just am not sure which file to modify and how to set it up with what options I want. Or maybe the way I renamed the zip isn't friendly to the zip flashing without the need for volume key presses?

Attempting a system install btw.
[Magisk] jcmm11:
I took a look and tried a few things, but it would take me longer than I'm willing to spend at the moment. [MENTION=6037748]Zackptg5[/MENTION] knows the code so could probably give the best answer quickest.

He'll probably want the debug log (/sdcard/acp-debug.log)

Zack - one thing I definitely noticed. Line 52 in unity_install.sh has an extraneous double quote in it.

*.xml) [ "$(grep 'flags="AUDIO_OUTPUT_FLAG' $FILE)" ] && { PATCH=true; break; };;

I don't think you want the quotes after flags=
[Magisk] Zackptg5:
Thanks man, I don't maintain this mod anymore though - it's [MENTION=6815443]JohnFawkes[/MENTION] now :)
[Magisk] JohnFawkes:
I'll push a fix later with some other things I've been working on

---------- Post added at 10:05 PM ---------- Previous post was at 10:03 PM ----------

I'll look into the zip renaming code and see what's going on
[Magisk] JazzMartian:
Thanks man. Much appreciated. I saw in the thread somebody else had the same issue I did.
[Magisk] Steam.:
Any tips on what options to select when using a Samsung device with SoundAlive? SoundAlive works by default on spotify and every other app, other than YouTube. I need the EQ/effects on youtube, but no matter what I select in the patch doesn't really work. Using S5, stock rom, just rooted.
[Magisk] ToraxOutlaw:
Will this patch work with Ainur Saurons Audio module??? ?
[Magisk] wacko37:
[MENTION=5357345]ahrion[/MENTION]

Firstly Thankyou for the module, I and many others would be lost without this. It works flawlessly on my LgV30 to get V4A to process when using the soundcloud app.

I have a slight problem though and i hope you help, Its to do with the Soundcloud not activating/triggering the inbuilt DAC on the LgV30, I'm assuming its something simple like the modification of audio policy, have you any advise on how to get this working so I can test/modify on my end? Cheers
[Magisk] vibrantliker:
Will this mod help to stop random pops and other impurities I hear with streaming apps?

I use more high end headphones and good headphone amps. It feels when I listen through the headphone amp, I'll hear random crackles and pops.
[Magisk] JohnFawkes:
ahrion nor zackptg5 work on this anymore. i took it over. i also have a v30. youve probably seen me in the v30 threads or the telegram group. i do the kdz flashable zips. ill test out soundcloud and see whats going on. are you on stock?

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

you could try selecting acp patch option and notification helper remover option. that might help

---------- Post added at 04:32 PM ---------- Previous post was at 04:30 PM ----------

this is used for viper or jamesdsp to process on streaming apps. this will not work for what your tryig to accomplish
[Magisk] wacko37:
[MENTION=6815443]JohnFawkes[/MENTION]

Thanks for your reply. That's good to here you also have the v30 that will make this much easier. Again thanks for taking the time to help with this issue.

Yes I'm running a a stock ROM, V21h-global-com.
[Magisk] flug32:
Thanks + removing deep_buffer on Oneplus One, LS 16, causes audio crackles.

First off, many thanks for this app. I got Viper4Android working nicely on my Oneplus One via Audio Compatibility Patch via Magisk (install default options), then latest version of V4A (flash via self-standing installer, for some reason installing via Magisk didn't seem to work), and finally the Audio Modification Library via Magisk. (Installed in that order--the order seems to be important.)

So the audio quality is so unbelievably good I've been listening to music on my OPO nonstop for the entire last week. I wouldn't have believed you could get such high quality out of an OPO short of maybe $500 audiophile earphones.

(If you're curious, I made a post on reddit explaining what I did--similar to the audiophile headphone tweaks many seem to like with V4A but scaled down to $20 earbud performance level.)

However, the otherwise astonishingly fine audio quality has been marred by continual clicks, crackles, and pops. Maybe a few every minute to one every couple of minutes, no matter what.

They are clearly correlated with device activity--things like accessing the storage or loading a big web page would lead to crackles almost every time. Installing or uninstalling an app, turning screen off (presumably the flurry of activity as apps go to sleep or whatever) and so on.

So I tried every number of solutions to get rid of the crackling--different kernels, different CPU settings, apps that would put all other programs to sleep to avoid interference, etc. Enable or disable V4A or other audio mods. But even with (say) only the music player running and set to 'performance' CPU setting on all four cores, you would still get these crackles. Some of those settings made the crackles get a bit better or worse but nothing removed them.

So for some reason I got looking at the audio settings and noticed the deep_buffer setting was removed--presumably due to installing ACP and choosing that setting.

Reboot and the crackles are gone. I've been listening all day now and heard maybe 2 or 3 crackles, where as previously it would be two or three every minutes typically.

So, just a word of advice--if you're having trouble with pops and crackles after installing ACP, trying re-enabling deep_buffer.

System:

Oneplus One

LineageOS 16, August 27 2019 nightly

I've tried stock LineageOS 16 kernel and latest versions of Franco, Fz, and Argon kernels--all had the same symptoms.

Same symptoms with all audio players I tried and whether V4A was enabled or disabled (or installed or not installed). Tried Amazon Music Player, Youtube, Player.fm, LS16 stock music app, and a few others. All had exact same symptoms and all work fine now.
[Magisk] vibrantliker:
I've had that also and it drives me crazy. Where is the the audio setting that can enable the deep_buffer setting?
[Magisk] flug32:
For those interested in the details, below I outline what I did on my Oneplus One to troubleshoot and eliminate the crackling, just FYI.

But if you have ACP installed, I believe you can solve the problem in a more simple way. Below are both the simple and complicated solutions that have worked for me.

SIMPLE FIX FOR CRACKLING ISSUE THAT SHOULD WORK

Run the ACP installer again (in Magisk or Recovery)

ACP will detect it has already been installed, and instead of installing, it will un-install.

Reboot

If you want, install ACP again (via Magisk or Recovery) in order to get the other two features. But be sure to answer NO when asked if you want to install the "deep_buffer remover"

After I did this, V4A complained of 'no drivers' so I had it re-install the drivers (just using the in-app screen it presents). Then I had to reboot again.

I haven't testing that extensively but it seems to work based on one test.

Also I installed Viper4Android FX 2.7.1.0 using recovery. For some reason when I did it with Magisk (same version etc) it didn't seem to work. Especially it gave troubles with the "no driver installed" issue. So I installed ACP via Magisk, then V4A via recovery, then Audio Modification Library via Magisk (in that order) and it all seemed to work.

WHAT I DID TO SOLVE CRACKLING ISSUE/MORE ADVANCED SOLUTION FOR THOSE COMFORTABLE EDITING SYSTEM FILES

I edited/updated the file /system/vendor/etc/audio_policy.conf (being sure to save a copy first, and using all the annoying tricks you have to do to edit or update a system file).

In that file is a section deep_buffer {}. In the original, that section looked like this:

deep_buffer {
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY|AUDIO_DEVICE_OUT_LINE
flags AUDIO_OUTPUT_FLAG_NONE
}

In the updated/fixed version it looks like this:

deep_buffer {
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY|AUDIO_DEVICE_OUT_LINE
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}

The only difference is in the second to last line "flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER".
[Magisk] vibrantliker:
Weird, mine already has 'flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER"
[Magisk] flug32:
Hmm, that's a puzzle. There could be numerous causes of the pops and crackles, of course. Anything that momentarily locks up the device will possibly cause a small stutter.

The main cause of crackles I found in trying to track this one down (other than what I outlined above) is particularly CPU or performance tuning settings.

Just for example, if you switch to "Powersave" CPU setting on most kernels, it just locks that CPUs at their lowest allowed setting. So, that turns out to be a crackle-fest.

Another time I tried out a CPU governor that really cracked down on apps that try to run when the screen is off, and turned off all the CPU cores etc. That was crackle-and-pop fest for sure.

And by far the most entertaining glitch-fest was when I accidentally enabled a hotplug mod and a CPU governor that also, unbeknownst to me, also did its own style of hotplugging. So you had CPU cores turning on and off right and left and a field of static so deep you could have harvested it.

So anything like that--too aggressive battery saving options on the CPU, CPU under-volting too vigorously, the so-called "hotplugging" mods that turn off various CPU cores when not needed (or CPU governors that do auto-hotplugging, which may not be obvious from just the name on the list)--all those things can definitely cause crackling and popping.

OTOH I'm using all of those now with no crackling or popping. It's just that you can't crank them down to the lowest conceivable battery-saving value.

You probably know all that, but that's what I know from spending the past 2-3 days going round and round on it.
[Magisk] AgnishRoy:
What kind of issues? Will you please elaborate a bit?

Note I'm not using any Pixel device.
[Magisk] warrencoakley:
Is this module getting an update for Android 10?
[Magisk] Strephon Alkhalikoi:
The current version is working perfectly on my P2XL running Android 10. I'm sure the dev will push an update if one is needed; it's bad form on XDA to ask for updates.
[Magisk] warrencoakley:
Didn't know there are rules about asking for updates considering 95% of the forum do it.
[Magisk] Strephon Alkhalikoi:
Nothing turns off a developer as fast as someone pushing them - no matter how gently - to update their work. At one point XDA actually had the restriction encoded in the rules but removed it some time ago. Now it only exists as a courtesy we extend to devs.

95% of the forum don't read the rules, and combined with inadequate enforcement of those rules leads to the site as it exists now.
[Magisk] JohnFawkes:
i agree. as the dev of this mod and the dev of countless other mods, theres nothing that makes me not want to update a mod publicly more than asking for an eta or when an update will come. i, like many other devs here do not get paid for our work we do here or online. i am a single dad of 2 kids , one is in school and one isnt. i go to college myself and hold a full time 40+ hour a week job and have multiple android projects. my android stuff comes last before anything else in my life simply for the fact that the other things are way too important.
[Magisk] Joyjo:
I have a little problem after installation of audio modify patch sound alive samsung not work,Someone have solution for this? Thanks in advance
[Magisk] 101_CoreInsanity_101:
Hi!

My K20 Pro had severe issues with audio on Pixel Experience, this mod fixed that. Massive thank you for that!

However, when I install this mod, bluetooth audio just stops working. No audio at all, the second I disconnect bluetooth it's fine again.

Anything I can do about this or is this something I'm gonna have to live with?
[Magisk] Subhojit:
Pixel 2XL on Android 10 with Viper4Android 2.7.1.

I can't get this to work. How do I get rid of audio ducking for good while playing music so no notification alerts interrupts the music?

Kindly advise.
[Magisk] bestgio:
Does your viper stop processing whenever you're using voice directions from google maps? Mines stop processing whenever a voice direction comes up and then most of the time Viper kicks back in but sometimes it stays off until I manually restart the phone.

I'm on the P4XL so of course, device will vary but I'm having issues with that and the "ducking" problem whenever a notification kicks in. I've been playing with Audio Compatibility Patch settings and reboot after reboot I can't seem to get the configuration right :/

Side question, does your Viper installation stop processing whenever a voice direction occurs in google maps? I also have the audio "ducking" problem but I'm on the Pixel 4 XL.
[Magisk] Strephon Alkhalikoi:
I haven't come across that issue.
[Magisk] bestgio:
Since we're both on Android 10, do you mind sharing the configuration you used when installing Audio Compatibility Patch? (audio_policy patch [patch/remove], notification_helper remover [remove notification_helper effect/remove volume listener library]) What about lib workaround[yes/no]?

I'd greatly appreciate it!
[Magisk] Strephon Alkhalikoi:
My settings...

Skip audio policy patching? Yes (module behavior before becoming a 3-in-1 module)

Skip notification helper remover? Yes

Skip USB policy patching? No

Lib workaround? Automatic on P2XL, no on my other devices.

Also note that I use Ainur Sauron as well as this module and V4A, so I need the Audio Modification library as well.
[Magisk] Techguy777:
Maybe im a little confused. I have to use supersu I have to cant use magisk lets get that out of the way. Ok so I want to flash this audio patch to a fiio x5iii to see if itll get somethings running. With TWRP 2.8.5 and supersu again I have flashed every magisk from 12-20.1 all bootloop. I tried flashing the zip in twrp and it says error I renamed it tried again error. Are you sure this is supersu and rootless compatible have you tried it? Ive searched this thread it doesnt seem like anyone has supersu and how they installed it.

---------- Post added at 02:19 PM ---------- Previous post was at 01:51 PM ----------

Just to see I tried flashing it for supersu on my nexus 6 with TWRP 3.3.1 and still errors. You gotta explain how to do it. Hopefully not flashfire that app scares me I have a samsung tab A on nougat or marshmallow and It stalls up and the screen goes black flashing anything. I dont get it. If flashfire is how ill try it but I tried a kernel auditor mod app flasher. I realize flashfire does go black and works but this never works it stays like that until I manually shut it down..
[Magisk] Strephon Alkhalikoi:
Being a Magisk module this requires Magisk to be installed. That right there would explain why you haven't found anyone on the thread using SuperSU and this module together. As for the errors, as I understand it the modules check to see if Magisk is installed and will not install without it.
[Magisk] Techguy777:
Reading through this thread back in april this last zip started failing everyone and theres been no updates. At least leave up the old version to try if you aint got the time or whatever to fix it. Seems like the USB dac with viper is what everyone is looking for anyway to make that separate cause that would be tits.

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

Im going to be a funny here you need to read the opening post it works with supersu,CM su , lineage SU, PHHH su, and rootless to. LOl I hate hearing people say read the opening post. See even when you do it doesnt help. I think its 1.7.3 problem I found an old 1.5 zip in my stored files it worked and flahsed but 1.6.3 has the usb update policy patch that I wanted so im still out of luck.
[Magisk] Strephon Alkhalikoi:
Nahh, you're just being an ass. But thank you for the sarcasm regarding reading the first post. It actually was rather refreshing. In any event, it's not failing everyone, especially as the October 27th post by yours truly illustrates. I have it working, and it works perfectly based upon my settings.

I think you need to slow down. Your posts are the written equivalent of diarrhea, or else a man on uppers. In your position I would be trying to first work out why Magisk isn't working before trying to use a module with an unsupported root solution.
[Magisk] Techguy777:
Magisk doesnt work because Im using a Fiio X5iii. It does have lollipop aka 5.1 android. Im sure you do have it working on Magisk thats easy everything usually does. Theres no way to get magisk to work Ive tried everything it bootloops. Version 12-20.1
[Magisk] Strephon Alkhalikoi:
Well, I don't know what else to tell you. With the modifications Fiio made to the Android audio subsystem - according to them they REWROTE it - it's entirely possible that no audio mod will work due to the apparently extensive changes involved.

As for Magisk itself not working, that's another kettle of fish. I can only speculate as I do not have your device, but I suspect that the kernel has also been modified to properly support the media player, and thus installing up-to-date versions of Magisk upsets things. SuperSU works because, last time I checked, it will default to a system install on such an old version of Android.

My personal opinion? You have what at the time was a $400 media player. If I had one of these I wouldn't even be attempting to modify the audio using a mod. I'd simply use it as is.
[Magisk] Techguy777:
I paid 200 for it on black friday sale. To be completely honest my S7 with viper sounds way cleaner. As I went through the system they lie and say the usb dac hook up for your PC is 24 bit high res its not the audio policy and config files show its 16 bit 48000 out and in for USB Dac. The headphone out was the only thing thats high res and you would be surprised. IT louder than anything Ive ever had stock and its pretty good but over years of listening to viper ive been come so used to the headphone surround feature it seems dull without it. I do got it working with viper or not if you dont want it so its all good. Yes the kernel is a ***** and everything bootloops it. Theres a custom kernel but the guys a real beginner and thats not an easy kernel so things aren't going fast.
[Magisk] Techguy777:
Whos running this or who did the usb policy? Is it true that the USb policy only adds usb to audio config policy? Or is there more to it? Simple question I just need to know how the install sh works and try to manually do it myself to make it work without the zip.
[Magisk] Keule-Tm:
'man bash'/'info bash'
[Magisk] Techguy777:
My DAC just came today and I can use viper with bluetooth no problem but even with USB audio player pro viper doesnt play. But with blackplayer it plays viper with magisk and the audio mods installed no problem took me like 6 hours to figure it out to save time give it a try.
[Magisk] JazzMartian:
Anybody know the status on getting this working on a device without volume keys? I have a version that was linked from a YouTube vid as version 1.2 that does the trick without needing volume keys. But I'm wanting to use the most recent version I can. Thanks.
[Magisk] jcmm11:
Follow the instructions from the op, with some caveats

In addition to the above you want to add

- novk = this should completely bypass any volume key test.

Also note the comment about flashing via TWRP. If TWRP isn't an option you can use the flashing capabilities of FKM (Franco Kernel Manager) or EXKM (EX Kernel Manager). Nether of them rename the zip so will work.

Last note - I haven't used this module in a long time. The above should work, but I can't vouch for it from recent personal experience
[Magisk] JazzMartian:
Thanks for the help! Will give it a shot again.
[Magisk] arvylas:
When I install this on pixel 2 xl I lose the camera for some reason. I tried with different configurations but every time the same. I also have ainur narsil and aml.
[Magisk] Lughnasadh:
Do you have the long exposure mod installed? Because that is not compatible with V4A and might not be compatible with ACP and/or Narsil as well.
[Magisk] warrencoakley:
New Magisk Canary build and UI crashes with this now. Needs updating.
[Magisk] 73sydney:
Canary does that (crashes on module screen) with pretty much every module at the moment, thats canary....experimental (go read the last 5-10 pages of canary thread), canary issues should not used to justify asking module devs to fix something they have no control over and is completely separate to their work

Does it work in stable, yes - no issue

Does it work in canary, no - its a canary issue and one that has been noted and is discussed in the correct thread (canary dev thread)
[Magisk] WTF_666:
Installed Pixel Experience Android 10 (OnePlus 5T), it works fine, but if you install edXposed 0.4.6.0-0.4.6.1 into the system, the system goes crazy, the interface freezes, as soon as you remove the patch, the system comes to life.
[Magisk] warrencoakley:
Yeah going to stick with stable. Don't see the advantages anymore going to Canary and the headaches
[Magisk] danielqf45:
And if i delete this module from magisk will it undo any changes made to the system or there's a different uninstall method, my speakers make wierd noises after installing this module