File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ rmi() {
1414 [ -f " $file " ] && rm " $file "
1515}
1616
17+ denylist_run () {
18+ [ -z " $KSU " ] && [ " $MAGISK_VER_CODE " -ge 27000 ] && magisk --denylist exec " $@ " && return
19+ " $@ "
20+ }
21+
1722# Create the scoped storage directory
1823mkdir -p " $FOLDER "
1924
@@ -129,16 +134,18 @@ for ORIGINAL_FILE in $AUDIO_EFFECTS_FILES; do
129134 ORIGINAL_FILE=" $SEARCH_ROOT " /" $ORIGINAL_FILE "
130135 case " $FILE " in
131136 * .conf)
137+ denylist_run cat " $ORIGINAL_FILE " | \
132138 sed \
133139 -e " s|^effects {|effects {\n $LIBRARY_NAME {\n library $EFFECT_NAME \n uuid $EFFECT_UUID \n }|" \
134140 -e " s|^libraries {|libraries {\n $EFFECT_NAME {\n path $LIBRARY_FILE_PATH \n }|" \
135- < " $ORIGINAL_FILE " > " $FILE "
141+ > " $FILE "
136142 ;;
137143 * .xml)
144+ denylist_run cat " $ORIGINAL_FILE " | \
138145 sed \
139146 -e " s|<libraries>|<libraries>\n <library name=\" $EFFECT_NAME \" path=\" $LIBRARY_FILE \" />|" \
140147 -e " s|<effects>|<effects>\n <effect name=\" $LIBRARY_NAME \" library=\" $EFFECT_NAME \" uuid=\" $EFFECT_UUID \" />|" \
141- < " $ORIGINAL_FILE " > " $FILE "
148+ > " $FILE "
142149 ;;
143150 esac
144151 osp_detect " $FILE "
You can’t perform that action at this time.
0 commit comments