FORUMS
Remove All Ads from XDA

[UPDATE: 09/25/2017] Universal deep_buffer Remover [Unity/AML][v3.0]

3,028 posts
Thanks Meter: 4,178
 
By ahrion, Forum Moderator / Recognized Developer on 22nd March 2017, 02:31 AM
Post Reply Email Thread
Announcement from ahrion: Update: 09/25/2017
This hack fixes when streaming apps (Spotify, Pandora, etc) do not process audio effects for various equalizer applications.

These installers utilize my Unified installer that can install on Magisk OR System if Magisk is not detected (with Pixel support). It utilizes my Magisk framework called Audio Modification Library that allows that installation of multiple audio mods without having compatibility issues with one another's audio config file changes (this is a Magisk limitation, however AudModLib solves this issue). I do not support any other audio mod, and if Magisk, I do not support any mod mod that does not utilize my AudModLib.

Check out my GitHub for this mod
Check out my AudModLib thread and GitHub

[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 Code:
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


Credits of Originality:
- @Osm0sis

XDA:DevDB Information
Universal deep_buffer Remover, Tool/Utility for the XDA Community Apps

Contributors
ahrion, zackptg5
Source Code: https://github.com/therealahrion/Uni...buffer-Remover


Version Information
Status: Stable
Current Stable Version: v3.0
Stable Release Date: 2017-09-25

Created 2017-03-22
Last Updated 2017-09-29
The Following 26 Users Say Thank You to ahrion For This Useful Post: [ View ]
 
 
24th March 2017, 05:16 PM |#2  
ahrion's Avatar
OP Forum Moderator / Recognized Developer
Thanks Meter: 4,178
 
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 3 Users Say Thank You to ahrion For This Useful Post: [ View ]
26th March 2017, 07:36 PM |#3  
ahrion's Avatar
OP Forum Moderator / Recognized Developer
Thanks Meter: 4,178
 
More
Prepare for a new update to AudModLib.
27th March 2017, 03:51 AM |#4  
ahrion's Avatar
OP Forum Moderator / Recognized Developer
Thanks Meter: 4,178
 
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 User Says Thank You to ahrion For This Useful Post: [ View ]
27th March 2017, 10:04 PM |#5  
SyCoREAPER's Avatar
Senior Member
Here and There
Thanks Meter: 452
 
More
Will this affect safteynet ?
27th March 2017, 11:22 PM |#6  
DroneDoom's Avatar
Senior Member
Thanks Meter: 148
 
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 Forum Moderator / Recognized Developer
Thanks Meter: 4,178
 
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: 901
 
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, 74 views)
28th March 2017, 02:05 AM |#9  
ahrion's Avatar
OP Forum Moderator / Recognized Developer
Thanks Meter: 4,178
 
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 Forum Moderator / Recognized Developer
Thanks Meter: 4,178
 
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.
28th March 2017, 09:53 AM |#11  
Senior Member
Flag mumbai
Thanks Meter: 18
 
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:	3290
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