Skip to content

Commit ada4df7

Browse files
enable legacy mode and disable crashlytics reporting
legacy mode always works reliably, the user will have a way better experience if this option is enabled by default crashlytics reporting should rather be opt-in instead of opt out
1 parent d7fa4f2 commit ada4df7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

magiskmodule/common/install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,13 @@ $ENFORCE && setenforce 0
112112
(pm install $MODPATH/v4afx.apk >/dev/null 2>&1) || abort "Failed to install V4AFX!"
113113
$ENFORCE && setenforce 1
114114
pm disable $VIPERFXPACKAGE >/dev/null 2>&1
115+
116+
ui_print " "
117+
ui_print "- Configuring ViPER4Android"
118+
ui_print " "
119+
VIPERFXPREFS="$(pm dump $VIPERFXPACKAGE | grep dataDir | head -n 1 | cut -d'=' -f2)"
120+
VIPERFXPREFSOWNER="$(stat -c '%U' "$VIPERFXPREFS")"
121+
VIPERFXSHAREDPREFS="$VIPERFXPREFS/shared_prefs"
122+
[ ! -d "$VIPERFXSHAREDPREFS" ] && mkdir "$VIPERFXSHAREDPREFS"
123+
cp -f "$MODPATH/common/viperfx_preferences.xml" "$VIPERFXSHAREDPREFS/${VIPERFXPACKAGE}_preferences.xml"
124+
chown -R $VIPERFXPREFSOWNER:$VIPERFXPREFSOWNER "$VIPERFXPREFS"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
2+
<map>
3+
<boolean name="36869" value="false" />
4+
<boolean name="crashlytics" value="false" />
5+
<boolean name="legacy_mode" value="true" />
6+
</map>

0 commit comments

Comments
 (0)