Audio Compatibility Patch (Formerly Universal deep_buffer Remover) [MMTEx]

Search This thread

ahrion

Retired Forum Moderator / Recognized Developer
Jul 19, 2013
3,102
5,111
This fixes music and streaming apps (Spotify, Pandora, etc) that aren't processing audio effects for various equalizer applications through the modification of audio policy.

Starting with v1.6 USB_policy patcher (upp) and Notification_helper remover (nhr) have been combined with acp. upp is to be used for usb dacs for v4a/jdsp. nhr is to remove notification_helper from audio_effects or delete the libvolumelistener.so binary. this prevents the "ducking" of v4a when you recive a notification and that notification comes in while playing music and v4a unprocesses and the processes again after the notification causing the volume to be extra loud. this stops that.

The vol key options are as follows :
- " Do you want to skip audio_policy patching? (Original acp before became 3in1 module)" This is asking if you want to skip what acp was before the combining of modules. if you are installing acp for spotify to process with v4a or jdsp then you'll want to select no here.
- " Would you like to skip notification_helper remover?" If you dont mind the "ducking" v4a does or if it doesnt happen or your device then you'll want to select yes here.
- " Would you like to skip usb policy patching for usb dacs?" If you dont use a USB extrenal DAC and v4a then you can select yes here.
- " - Use lib workaround? -" If you arent having issues then you can select no here. Pixel 2's, 3's, and essential phones will have this selected as yes automatically.

Download

XDA:DevDB Information
Audio Compatibility Patch, Tool/Utility for the XDA Community Apps

Contributors
ahrion, zackptg5, JohnFawkes
Source Code: https://github.com/Magisk-Modules-Repo/acp


Version Information
Status: Stable
Current Stable Version: v2.3
Stable Release Date: 2020-11-10

Created 2017-03-21
Last Updated 2020-11-10
 

ahrion

Retired Forum Moderator / Recognized Developer
Jul 19, 2013
3,102
5,111
Update.


[UPDATE] Universal deep_buffer Remover <2.1>
v2.1:
- Updated to Audio Modification Library (Magisk) v1.1
This should fix the boot loop issues seen in only Magisk v11.6

Download: Link - Mirror
Previous Changelogs (Unified installer):

HTML:
v2.0:
- Initial Magisk release
- Audio Modification Library v1.0 is included
- Unified installer that will install mod for both Magisk and System
- Pixel support included
- Magisk Template v3 support
 
Last edited:

ahrion

Retired Forum Moderator / Recognized Developer
Jul 19, 2013
3,102
5,111
[UPDATED] Universal deep_buffer Remover
v2.2:
- Added audmodlib.sh post-fs-data.d script
- Install script fixes
- post-fs-data.d script fixes
- Push AudModLib v1.2 hotfixes

Download

Previous Changelogs (Universal deep_buffer Remover):

HTML:
v2.1:
- Updated to Audio Modification Library (Magisk) v1.1
    This should fix the boot loop issues seen in only Magisk v11.6

v2.0:
- Initial Magisk release
- Audio Modification Library v1.0 is included
- Unified installer that will install mod for both Magisk and System
- Pixel support included
- Magisk Template v3 support


[UPDATED] Universal deep_buffer Restorer
Reverts the changes made from the Universal deep_buffer Remover.
v2.1:
- Script fixes

Download

Previous Changelogs (Universal deep_buffer Restorer):

HTML:
v2.0:
- Initial Magisk release
- Unified uninstaller that will uninstall the mod for both Magisk and System installs
- Pixel support included
- Magisk Template v3 support
 
Last edited:

Zackptg5

Recognized Developer
Sep 18, 2014
4,086
6,680
zackptg5.com
Lol.

Also it makes for easy module management and uninstall/install/updating.

I found that with v2.2, deep_buffer wasn't actually being removed for me.

Culprit:
Code:
sed -i '/deep_buffer {/,/}/d' $CFG

Should be:
Code:
sed -i '/deep_buffer {/,/}/ d' $CFG

I changed that in the update-binary and su.d script and deep buffer was then removed. I uploaded a copy with these changes. Thanks!
 

Attachments

  • udb_remover_v2.2.zip
    13.7 KB · Views: 961
Last edited:
  • Like
Reactions: Sobuj53

ahrion

Retired Forum Moderator / Recognized Developer
Jul 19, 2013
3,102
5,111
I found that with v2.2, deep_buffer wasn't actually being removed for me.

Culprit:


Should be:


I changed that in the update-binary and su.d script and deep buffer was then removed. I uploaded a copy with these changes. Thanks!
That's because whoever added the deep buffer section of your config had a typo.

These patches aren't 100% fool proof to incompetent coders or ROM developers.
 

ahrion

Retired Forum Moderator / Recognized Developer
Jul 19, 2013
3,102
5,111
I found that with v2.2, deep_buffer wasn't actually being removed for me.

Culprit:
Code:
sed -i '/deep_buffer {/,/}/d' $CFG

Should be:
Code:
sed -i '/deep_buffer {/,/}/ d' $CFG

I changed that in the update-binary and su.d script and deep buffer was then removed. I uploaded a copy with these changes. Thanks!
As I told you earlier, the space between "/ d" is an issue with your particular config file. This is not a sed issue or a typo in my scripts. sed is my specialty. This is the reason why it doesn't work.

I will not be changing it. However I thank you man for being proactive in trying to find alternative solutions.
 
Last edited:
  • Like
Reactions: miiich33

umeshbluezzz

Senior Member
Sep 26, 2014
166
23
mumbai
How to uninstall ur module via recovery?

Hi bro i flashed ur module and after the reboot i cant find root... Even after flashing supersu systemless zip again.. Still no root. Bcoz of no root i cant uninstall ur module from magisk manager. Need ur help plz
 

Attachments

  • Screenshot_20170328-142212.png
    Screenshot_20170328-142212.png
    62.2 KB · Views: 16,463

Didgeridoohan

Forum Moderator / Developer Relations
Staff member
May 31, 2012
11,484
11,805
Gothenburg
Google Nexus 4
Nexus 6

ahrion

Retired Forum Moderator / Recognized Developer
Jul 19, 2013
3,102
5,111
Good news guys. I finally found a fix for AM3D and Dolby Atmos to work 100% in enforcing on both MagiskSU/SuperSU, Magisk OR System install.

This will be available in the AudModLib v1.3 update I will be pushing soon. I'll obviously fix any more bugs or make any other additions in the meantime.
 

Mar-cel

Senior Member
Jun 18, 2013
1,410
315
Good news guys. I finally found a fix for AM3D and Dolby Atmos to work 100% in enforcing on both MagiskSU/SuperSU, Magisk OR System install.

This will be available in the AudModLib v1.3 update I will be pushing soon. I'll obviously fix any more bugs or make any other additions in the meantime.
Hey I love your Magisk modules. Do you have a Dolby Digital Plus Magisk Module too? Thanks.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 89
    This fixes music and streaming apps (Spotify, Pandora, etc) that aren't processing audio effects for various equalizer applications through the modification of audio policy.

    Starting with v1.6 USB_policy patcher (upp) and Notification_helper remover (nhr) have been combined with acp. upp is to be used for usb dacs for v4a/jdsp. nhr is to remove notification_helper from audio_effects or delete the libvolumelistener.so binary. this prevents the "ducking" of v4a when you recive a notification and that notification comes in while playing music and v4a unprocesses and the processes again after the notification causing the volume to be extra loud. this stops that.

    The vol key options are as follows :
    - " Do you want to skip audio_policy patching? (Original acp before became 3in1 module)" This is asking if you want to skip what acp was before the combining of modules. if you are installing acp for spotify to process with v4a or jdsp then you'll want to select no here.
    - " Would you like to skip notification_helper remover?" If you dont mind the "ducking" v4a does or if it doesnt happen or your device then you'll want to select yes here.
    - " Would you like to skip usb policy patching for usb dacs?" If you dont use a USB extrenal DAC and v4a then you can select yes here.
    - " - Use lib workaround? -" If you arent having issues then you can select no here. Pixel 2's, 3's, and essential phones will have this selected as yes automatically.

    Download

    XDA:DevDB Information
    Audio Compatibility Patch, Tool/Utility for the XDA Community Apps

    Contributors
    ahrion, zackptg5, JohnFawkes
    Source Code: https://github.com/Magisk-Modules-Repo/acp


    Version Information
    Status: Stable
    Current Stable Version: v2.3
    Stable Release Date: 2020-11-10

    Created 2017-03-21
    Last Updated 2020-11-10
    14
    In light of recent discoveries, udbr has been redone and rereleased as Audio Compatibility Patch. The reasoning behind this is:
    • raw also needs removed in addition to deep_buffer on some devices
    • Instead of commenting out or removing deep_buffer and raw, we can instead change the flags to 'AUDIO_OUTPUT_FLAG_FAST'
    These together make this a more complete solution and should fix lots of compatibility issues some users were having.
    13
    ACP has been updated to unity v3.2. This'll be the last update from me (@JohnFawkes is taking over)
    13
    Since I'm going to be much more busy in the coming months, I'm passing on this mod to @JohnFawkes who's been nothing short of amazing with helping me out with unity and these mods. Welcome aboard! :)
    13
    Instructions:
    - Do not use this version with any v1.4/1.5 or v2.4/2.5 Audio Modification Version.
    - Before installing, uninstall Audio Modification Library and any other mods that do not use the latest Unity/AML v2.0
    - Reboot after uninstall
    - Install

    [UPDATED] Universal deep_buffer Remover
    v3.0:
    - Reworked the way deep_buffer removals function when a user uninstalls
    - Unity/AML v2.0: Massive installer and script overhaul
    - Unity v2.0: Added autouninstall (if mod is already installed and you flash same version zip again, it'll uninstall), thus removing the need for an uninstall zip
    - Unity v2.0: Added file/folder backup/restore of modified files
    - Unity v2.0: Added file/folder backup/restore of normally wiped files
    - Unity v2.0: Added Osm0sis @ xda-developers uninstaller idea (just add "uninstall" to zip name and it'll function as uninstaller)
    - Unity/AML v2.0: Added phh's SuperUser and LOS su support (note, LOS doesn't support sepolicy patching)
    - Unity/AML v2.0: Added proxy library to AML to allow the proxy effects found in multiple audio modules
    - Unity/AML v2.0: Added support for Magisk imgs located in /cache/audmodlib
    - Unity v2.0: Added system_root support for Pixel devices
    - Unity v2.0: Added system override (if you're on magisk but would rather have it install to system, add word "system" to zip name and it'll install everything but scripts to system)
    - Unity v2.0: Add Unity system props
    - Unity v2.0: Added vendor fix for Nexus devices
    - Unty/AML v2.0: AML functionality and uses overhauled
    - Unity/AML v2.0: Bug fixes
    - Unity/AML v2.0: Modified Unity Installer to allow use for non AML modules
    - Unity/AML v2.0: Moved scripts from Magisk .core to the individual module folder due to .core limitations
    - Unity/AML v2.0: New modular approach - no need to modify update-binary anymore: check instructions for more details on how this works
    - Unity v2.0: Reworked addon.d system install scripts
    - Unity/AML v2.0: Removed AML cache workaround by reworking AML changes via magisk_merge
    - Unity/AML v2.0: Reworked AML vendor audio_effects to not be overwritten by system audio_effects by commenting out conflicting lines
    - Unity v2.0: Reworked script permissions
    - Unity/AML v2.0: Update sepolicy for Magisk 13+
    - Unity/AML v2.0: Updated to Magisk module template 1400

    Download

    Previous Changelogs (Universal deep_buffer Remover):

    HTML:
    v2.4
    	- AudModLib v1.4 update which changes SELinux live patching to allow better compatibility between different devices, kernels, and roms; while also keeping the amount of "allowances" to a minumum
    	- AudModLib v1.4: changed post-fs-data(.d)/service(.d) shell script names for cosmetic recognition
    	- AudModLib v1.4: merge SuperSU shell script with MagiskSU post-fs-data(.d) script for less fragmentation
    	- AudModLib v1.4: added /cache/audmodlib.log to determine if script has run successfully
    	- AudModLib v1.4: more audio policy files and various mixer_paths files are now included in the framework
    	- Install script changes that include: major update to Pixel (A/B OTA) support, mounting changes, improved script efficiency, fixes & consolidation, and cosmetic fixes
    	- Add/fix proper addon.d support
    	- Add more deep_buffer remover compatibility between differing devices and ROMs
    
    v2.3
    	- AudModLib v1.3 update push which includes the script addition to allow various audio mods working with SELinux Enforcing
    	- Remove (audmodlib)service.sh and replace with post-fs-data(.d) audmodlib.sh, which should fix when root may be lost upon installing certain mods
    
    v2.2
    	- Added audmodlib.sh post-fs-data.d script
    	- Install script fixes
    	- post-fs-data.d script fixes
    	- Push AudModLib v1.2 hotfixes
        
    v2.1
    	- AudModLib v1.1 hotfix for bootloops issues on some devices
        
    v2.0
    	- Initial Magisk release
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone