Skip to content

Commit 1a19b0b

Browse files
Keep app data when reinstalling the Viper4Android user app
When the installer is launched for a second time, the previous app is uninstalled. Now during uninstalling the command line switch -k will keep the user data for the app. This will net a better reinstall experience, for example when only reinstalling for the VDC import.
1 parent d56efc1 commit 1a19b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magiskmodule/customize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SDCARD="/storage/emulated/0"
77
FOLDER="$SDCARD/Android/data/$VIPERFXPACKAGE/files"
88

99
# Uninstall v4a app if installed
10-
[ -n "$(pm list packages | grep "$VIPERFXPACKAGE")" ] && pm uninstall "$VIPERFXPACKAGE" &>/dev/null
10+
[ -n "$(pm list packages | grep "$VIPERFXPACKAGE")" ] && pm uninstall -k "$VIPERFXPACKAGE" &>/dev/null
1111

1212
MODULEROOT="${MODPATH%/*}"
1313
NVBASE="${MODULEROOT%/*}"

0 commit comments

Comments
 (0)