Skip to content

Commit d7fa4f2

Browse files
disable ViperFX Package after install
This disables the ViperFX package after install, so that the user does not open the app and installs the driver in there. Also uninstalling and reenabling of AudioFX has been fixed.
1 parent cd671a1 commit d7fa4f2

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

magiskmodule/common/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ ui_print " "
111111
$ENFORCE && setenforce 0
112112
(pm install $MODPATH/v4afx.apk >/dev/null 2>&1) || abort "Failed to install V4AFX!"
113113
$ENFORCE && setenforce 1
114-
pm disable $VIPERFXPACKAGE
114+
pm disable $VIPERFXPACKAGE >/dev/null 2>&1

magiskmodule/service.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(
2+
while [ $(getprop sys.boot_completed) -ne 1 ] || [ "$(getprop init.svc.bootanim | tr '[:upper:]' '[:lower:]')" != "stopped" ]; do
3+
sleep 1
4+
done
5+
sleep 10
6+
VIPERFXPACKAGE="com.pittvandewitt.viperfx"
7+
[ -n "$(pm list packages -d | grep $VIPERFXPACKAGE)" ] && pm enable $VIPERFXPACKAGE
8+
) &

magiskmodule/uninstall.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
sleep 10
77
AUDIOFXPACKAGE="org.lineageos.audiofx"
88
[ -n "$(pm list packages -d | grep "$AUDIOFXPACKAGE")" ] && pm enable "$AUDIOFXPACKAGE"
9+
VIPERFXPACKAGE="com.pittvandewitt.viperfx"
10+
pm uninstall -k "$VIPERFXPACKAGE"
911
) &
1012

1113
# Don't modify anything after this

0 commit comments

Comments
 (0)