Skip to content

Commit 4f0ceec

Browse files
change AML needed notice
The notice that AML is needed is quite useful i guess, but it also appears if one is updating the module, because ViPER4Android detects its own files as "another installed audio mod" this prevents viper4android from detecting its own files and also removes the unnecessary sleep
1 parent fa72fed commit 4f0ceec

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

magiskmodule/common/install.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ VIPERFXPACKAGE="com.pittvandewitt.viperfx"
77
[ -n "$(pm list packages | grep "$VIPERFXPACKAGE")" ] && pm uninstall "$VIPERFXPACKAGE" >/dev/null 2>&1
88

99
# Tell user aml is needed if applicable
10-
FILES=$(find $NVBASE/modules/*/system $MODULEROOT/*/system -type f -name "*audio_effects*.conf" -o -name "*audio_effects*.xml" 2>/dev/null | sed "/$MODID/d")
10+
FILES=$(find $NVBASE/modules/*/system $MODULEROOT/*/system -type f -name "*audio_effects*.conf" -o -name "*audio_effects*.xml" -not -path "$NVBASE/modules/ViPER4AndroidFX/*" 2>/dev/null | sed "/$MODID/d")
1111
if [ ! -z "$FILES" ] && [ ! "$(echo $FILES | grep '/aml/')" ]; then
1212
ui_print " "
13-
ui_print " ! Conflicting audio mod found!"
14-
ui_print " ! You will need to install !"
15-
ui_print " ! Audio Modification Library !"
13+
ui_print " ! Conflicting audio mod found !"
14+
ui_print " ! You will need to install !"
15+
ui_print " ! Audio Modification Library !"
1616
ui_print " "
17-
sleep 3
1817
fi
1918

2019
# Create the new scoped storage directory

0 commit comments

Comments
 (0)