Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
* Tuned the USB period size for many devices (2500 usec to 2250 usec)
* Fixed logically wrong selinux prop settings (no meaning for magisk's magic mount mechanism)
* Added checking incompatible Magisk variants
  • Loading branch information
yzyhk904 authored Mar 5, 2024
1 parent 973bcec commit 9beeb2b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Tuned the USB period size for SDM845 devices (2500 usec to 2250 usec)
* Tuned the USB period size for other devices (to 2250 usec)
* Fixed logically wrong selinux prop settings (no meaning for magisk's magic mount mechanism)
* Added checking incompatible Magisk variants

# v2.5.4
* Tuned the USB period size for Tensor devices (2625 usec to 2250 usec)
Expand Down
13 changes: 13 additions & 0 deletions customize-functions.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
#!/system/bin/sh

# Check whether Magisk magic mount compatible or not
function isMagiskMountCompatible()
{
local tmp="$(magisk --path)"
if [ -z "$tmp" ]; then
return 1
elif [ -d "${tmp}/.magisk/mirror/vendor" ]; then
return 0
else
return 1
fi
}

# Get the active audio policy configuration fille from the audioserever
function getActivePolicyFile()
{
Expand Down
4 changes: 4 additions & 0 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

. "$MODPATH/customize-functions.sh"

if ! isMagiskMountCompatible; then
abort " *** Aborted by an incompatible Magisk variant detection. Try again with pure Magisk! ***"
fi

MAGISKTMP="$(magisk --path)/.magisk"

# Note: Don't use "${MAGISKTMP}/mirror/system/vendor/*" instaed of "${MAGISKTMP}/mirror/vendor/*".
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=hifi-maximizer-mod
name=Hifi Maximizer
version=v2.5.4
versionCode=2504
version=v2.5.5
versionCode=2505
author=zyhk
description=A module for maximizing the digital audio fidelity by reducing jitters on audio outputs (USB DACs, Bluetooth a2dp, DLNA, etc.)

0 comments on commit 9beeb2b

Please sign in to comment.