File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -164,14 +164,14 @@ APK="$MODPATH"/v4afx.apk
164164pm list packages | grep -q " ^package:$VIPERFXPACKAGE $" && APK_UPGRADE=true || APK_UPGRADE=false
165165APK_SIZE=$( stat -c %s " $APK " )
166166installAPK () {
167- pm install --install-location 1 --pkg " $VIPERFXPACKAGE " -S " $APK_SIZE " < " $APK " & > /dev/null
167+ pm install --install-location 1 --pkg " $VIPERFXPACKAGE " -S " $APK_SIZE " < " $APK " >&2
168168}
169169installAPK || {
170- $APK_UPGRADE && pm uninstall -k " $VIPERFXPACKAGE " & > /dev/null
170+ $APK_UPGRADE && pm uninstall -k " $VIPERFXPACKAGE " >&2
171171 APK_UPGRADE=false
172172 installAPK
173173} || abort " Failed to install V4AFX!"
174- ! $APK_UPGRADE && pm disable " $VIPERFXPACKAGE " & > /dev/null
174+ ! $APK_UPGRADE && pm disable " $VIPERFXPACKAGE " >&2
175175
176176ui_print " - Configuring ViPER4Android"
177177VIPERFXPREFS=" $( pm dump " $VIPERFXPACKAGE " | grep dataDir | head -n 1 | cut -d' =' -f2) "
@@ -189,7 +189,7 @@ set_perm_recursive "$FOLDER" "$VIPERFXPREFSOWNER" sdcard_rw 771 660 u:object_r:s
189189 pm set-permission-flags " $VIPERFXPACKAGE " android.permission.POST_NOTIFICATIONS user-fixed
190190}
191191# this disables battery optimization
192- [ " $API " -ge 30 ] && dumpsys deviceidle whitelist +" $VIPERFXPACKAGE " > /dev/null
192+ [ " $API " -ge 30 ] && dumpsys deviceidle whitelist +" $VIPERFXPACKAGE " >&2
193193# this disables automatic permissions revoke if unused
194194[ " $API " -ge 30 ] && appops set --uid " $VIPERFXPACKAGE " AUTO_REVOKE_PERMISSIONS_IF_UNUSED ignore
195195
You can’t perform that action at this time.
0 commit comments