Skip to content

Commit

Permalink
fix for magisk delta
Browse files Browse the repository at this point in the history
MAGISK_VER may not be defined for boot scripts
  • Loading branch information
Zackptg5 committed Jul 11, 2023
1 parent b36953c commit 332254e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v5.1 - 7.x.2023
* Fix for magisk delta

### v5.0 - 7.10.2023
* Big thanks to @reiryuki for this update
* Update to current magisk module template - minimum magisk v20.4
Expand Down
3 changes: 2 additions & 1 deletion customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ libs="$(echo $libs | sed "s/\" /\" -o /g")"
sed -i -e "s|<libs>|$libs|" $MODPATH/service.sh

# Set vars in script
[ -z $KSU ] && KSU=false
[ -z $SERVICED ] && SERVICED=$NVBASE/service.d
amldir=$NVBASE/aml
for i in API amldir; do
for i in API amldir KSU MAGISK_VER; do
for j in post-fs-data service uninstall; do
sed -i "s|$i=|$i=$(eval echo \$$i)|" $MODPATH/$j.sh
done
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=aml
name=Audio Modification Library
version=v5.0
versionCode=58
version=v5.1
versionCode=59
author=zackptg5, ahrion
description=AudModLib is a framework that allows the seamless integration of multiple audio mods in Magisk.
support=https://forum.xda-developers.com/apps/magisk/module-audio-modification-library-t3579612
Expand Down
3 changes: 2 additions & 1 deletion post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
MODPATH="${0%/*}"
amldir=
API=
[ -z $KSU ] && KSU=false
KSU=
MAGISK_VER=
filenames="-name *audio_effects*.conf -o -name *audio_effects*.xml -o -name *audio_*policy*.conf -o -name *audio_*policy*.xml -o -name *mixer_paths*.xml -o -name *mixer_gains*.xml -o -name *audio_device*.xml -o -name *sapa_feature*.xml -o -name *audio_platform_info*.xml -o -name *audio_configs*.xml -o -name *audio_device*.xml -o -name *stage_policy*.conf"

# Functions
Expand Down
2 changes: 1 addition & 1 deletion service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MODPATH="${0%/*}"
moddir="$(dirname $MODPATH)"
amldir=
API=
[ -z $KSU ] && KSU=false
KSU=
[ $API -ge 26 ] && libdir="/vendor" || libdir="/system"

# Functions
Expand Down
4 changes: 2 additions & 2 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "v5.0",
"versionCode": 58,
"version": "v5.1",
"versionCode": 59,
"zipUrl": "https://raw.githubusercontent.com/Zackptg5/Audio-Modification-Library/master/install.zip",
"changelog": "https://raw.githubusercontent.com/Zackptg5/Audio-Modification-Library/master/changelog.md"
}

0 comments on commit 332254e

Please sign in to comment.