Skip to content

Commit fa72fed

Browse files
remove old folder
the viper folder has been moved to scoped storage anyways, there is no need to keep the old folder around
1 parent 8fa563f commit fa72fed

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

magiskmodule/common/install.sh

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11

22
[ "`getenforce`" == "Enforcing" ] && ENFORCE=true || ENFORCE=false
3-
FOL="/storage/emulated/0/ViPER4Android"
4-
[ -d "$FOL" ] || mkdir $FOL
53
NEWFOL="/storage/emulated/0/Android/data/com.pittvandewitt.viperfx/files"
6-
# Backup existing presets
7-
[ -d "$NEWFOL" ] && cp -rf $NEWFOL/* $FOL/
84

95
# Uninstall v4a app if installed
106
VIPERFXPACKAGE="com.pittvandewitt.viperfx"
@@ -21,29 +17,12 @@ if [ ! -z "$FILES" ] && [ ! "$(echo $FILES | grep '/aml/')" ]; then
2117
sleep 3
2218
fi
2319

24-
# Copy to new scoped storage directory
20+
# Create the new scoped storage directory
2521
ui_print " "
2622
ui_print "- Placing Files to New Directory:"
2723
ui_print " $NEWFOL"
2824
mkdir -p $NEWFOL
29-
cp -rf $FOL/DDC $FOL/Kernel $FOL/Preset $NEWFOL/
30-
ui_print " "
31-
ui_print " Note that all presets and other files are now in:"
32-
ui_print " $NEWFOL"
33-
sleep 3
3425

35-
ui_print " "
36-
ui_print "- Copying original V4A vdcs to:"
37-
ui_print " $FOL/DDC-Orig..."
38-
ui_print " Copy the ones you want to the DDC folder"
39-
ui_print " "
40-
ui_print " Note that some of these aren't that great"
41-
ui_print " Check out here for better ones:"
42-
ui_print " https://t.me/vdcservice"
43-
ui_print " "
44-
mkdir -p $FOL/DDC-Orig 2>/dev/null
45-
unzip -oj $MODPATH/common/vdcs.zip -d $FOL/DDC-Orig >&2
46-
cp -f $MODPATH/v4afx.apk $FOL/v4afx.apk
4726

4827
# Force driver reinstall to clear out old stuff in event of change from installed version
4928
umount -l $(mount | awk '{print $3}' | grep 'libv4a_fx.so')

0 commit comments

Comments
 (0)