FORUMS
Remove All Ads from XDA

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

3,114 posts
Thanks Meter: 5,061
 
By ahrion, Retired Forum Moderator / Recognized Developer on 22nd March 2017, 02:31 AM
Post Reply Email Thread
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.

These installers utilize my Unified installer that can install on Magisk OR System if Magisk is not detected (with Pixel support).

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.

Special Instructions:
## Users without working volume keys
- To choose options without using volume keys, you can rename the zip
- Currently the choices are rem, nrem, notif, volu, usb, lib, nlib.
- nrem = (recommended) will patch audio policy flags
- rem = will use remove method for audio_policy flags
- notif = notification_helper remover
- volu = remove volume_listener library
- lib = use lib bypass method (use only if having issues)
- nlib = dont use lib bypass method
- To use the basename zip feature all you need to do is add the options to the zipname and only flash the zip in recovery. Magisk renames all zips to install.zip so flashing in magisk manager will NOT work. The options can be all uppercase, lowercase or a mix of both

Download

Changelog
Code:
## Change Log ##
### v1.7.3 - 3.31.2019
* Unity Installer fixes

### v1.7.2 - 3.30.2019
* Fix bugs

### v1.7.1 - 3.30.2019
* fix uninstall/upgrade

### v1.7 - 3.29.2019
* Bug Fixes

### v1.6 - 3.26.2019
* Unity v4.0 update
* Magisk 18+ only compatible
* Combine USB_policy patching and notification_helper remover (3in1 module now)

### v1.5.9 - 2.8.2019
* Unity v3.3 update

### v1.5.8 - 1.15.2019
* Unity v3.2 update

### v1.5.7 - 1.10.2019
* Unity v3.1 update
* Improve remove option

### v1.5.6 - 1.5.2019
* Unity v3.0 update

### v1.5.5 - 12.26.2018
* Fix zipname trigger

### v1.5.4 - 12.23.2018
* Unity v2.2 update

### v1.5.3 -12.21.2018
* Updated to unity v2.1

### v1.5.2 - 12.28.2018
* Unity v2.0 update
* Fixed limitation in zipname triggers - you can use spaces in the zipname now and trigger is case insensitive

### v1.5.1 - 10.23.2018
* Unity v1.7.2 update

### v1.5 - 9.20.2018
* Unity v1.7.1 update

### v1.4.9 - 9.2.2018
* Unity v1.7 update

### v1.4.8 - 8.30.2018
* Unity v1.6.1 update

### v1.4.7 - 8.24.2018
* Unity v1.6 update

### v1.4.6 - 7.18.2018
* Added patch support for samsungs with deep_buffer contained in primary-out/primary output
* Fixed patching with busybox sed
* Unity v1.5.5 update

### v1.4.5 - 6.17.2018
* Updated for aml v1.7

### v1.4.4 - 6.15.2018
* Bug fixes

### v1.4.3 - 5.7.2018
* Unity v1.5.4 update

### v1.4.2 - 4.27.2018
* Raw patching bug fixes

### v1.4.1 - 4.26.2018
* Unity v1.5.3 update

### v1.4 - 4.23.2018
* Brought back old deep_buffer remover logic (vol key option) for the few who need it
* Minor bug fixes

### v1.1.3 - 4.16.2018
* Unity v1.5.2 update
* Add AML detection/notification

### v1.1.2 - 4.12.2018
* Reworking/fixing of audio file patching

### v1.1.1 - 4.12.2018
* Unity v1.5.1 update

### v1.1 - 3.27.2018
* Added disabling of low_latency
* Use flag of NONE for deep_buffer and low_latency, still FAST for raw

### v1.0 - 3.22.2018
* Initial release
XDA:DevDB Information
Audio Compatibility Patch, Tool/Utility for the XDA Community Apps

Contributors
ahrion, zackptg5, JohnFawkes
Source Code: https://github.com/JohnFawkes/Audio-Compatibility-Patch


Version Information
Status: Stable
Current Stable Version: v1.7.3
Stable Release Date: 2019-03-31

Created 2017-03-22
Last Updated 2019-03-31
The Following 77 Users Say Thank You to ahrion For This Useful Post: [ View ]
 
 
24th March 2017, 05:16 PM |#2  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 5,061
 
More
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 Code:
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
The Following 11 Users Say Thank You to ahrion For This Useful Post: [ View ]
26th March 2017, 07:36 PM |#3  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 5,061
 
More
Prepare for a new update to AudModLib.
The Following User Says Thank You to ahrion For This Useful Post: [ View ]
27th March 2017, 03:51 AM |#4  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 5,061
 
More
[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 Code:
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 Code:
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
The Following 4 Users Say Thank You to ahrion For This Useful Post: [ View ]
27th March 2017, 10:04 PM |#5  
SyCoREAPER's Avatar
Retired Forum Moderator
Reaping your Soul
Thanks Meter: 807
 
More
Will this affect safteynet ?
27th March 2017, 11:22 PM |#6  
DroneDoom's Avatar
Senior Member
Thanks Meter: 163
 
More
Quote:
Originally Posted by SyCoREAPER

Will this affect safteynet ?

That's the point of it being a magisk module buddy...
27th March 2017, 11:45 PM |#7  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 5,061
 
More
Quote:
Originally Posted by SyCoREAPER

Will this affect safteynet ?


Quote:
Originally Posted by DroneDoom

That's the point of it being a magisk module buddy...

Lol.

Also it makes for easy module management and uninstall/install/updating.
28th March 2017, 01:55 AM |#8  
Senior Member
Thanks Meter: 5,174
 
More
Quote:
Originally Posted by ahrion

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!
Attached Files
File Type: zip udb_remover_v2.2.zip - [Click for QR Code] (13.7 KB, 638 views)
The Following User Says Thank You to Zackptg5 For This Useful Post: [ View ] Gift Zackptg5 Ad-Free
28th March 2017, 02:05 AM |#9  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 5,061
 
More
Quote:
Originally Posted by Zackptg5

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.
28th March 2017, 02:46 AM |#10  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 5,061
 
More
Quote:
Originally Posted by Zackptg5

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.
The Following User Says Thank You to ahrion For This Useful Post: [ View ]
28th March 2017, 09:53 AM |#11  
Senior Member
Flag mumbai
Thanks Meter: 25
 
More
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170328-142212.png
Views:	13466
Size:	62.2 KB
ID:	4091685  
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes