Skip to content
This repository was archived by the owner on Oct 17, 2020. It is now read-only.

Commit 041474e

Browse files
committed
Hotfix for mag manager
1 parent 95a8b6e commit 041474e

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

META-INF/com/google/android/update-binary

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ if [ -f /data/adb/magisk/util_functions.sh ]; then
5454
[ $MAGISK_VER_CODE -gt 18100 ] || require_new_magisk
5555
else
5656
[ -f /data/magisk/util_functions.sh ] && require_new_magisk
57-
MAGISK=false; UF=$TMPDIR/META-INF/unity
58-
unzip -oqj "$ZIPFILE" 'META-INF/unity/*' -d $TMPDIR >&2
57+
MAGISK=false; UF=$TMPDIR/common/unityfiles
58+
unzip -oqj "$ZIPFILE" 'common/unityfiles/*' -d $TMPDIR >&2
5959
[ -f "$UF/util_functions.sh" ] || { ui_print "! Unable to extract zip file !"; exit 1; }
6060
. $UF/util_functions.sh
6161
fi
File renamed without changes.
Binary file not shown.
Binary file not shown.

META-INF/unity/util_functions.sh common/unityfiles/util_functions.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ unity_upgrade() {
671671
[ -f "$MODPATH/common/unity_upgrade.sh" ] && . $MODPATH/common/unity_upgrade.sh
672672
unity_uninstall
673673
mkdir -p $MODPATH
674-
unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2
674+
unzip -o "$ZIPFILE" -x 'META-INF/*' 'common/unityfiles/*' -d $MODPATH >&2
675675
unity_install
676676
}
677677

@@ -700,7 +700,7 @@ unity_main() {
700700

701701
# Extract files - done this way so we can mount apex before chcon is called from set_perm
702702
ui_print "- Extracting module files"
703-
unzip -oq "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2
703+
unzip -o "$ZIPFILE" -x 'META-INF/*' 'common/unityfiles/*' -d $MODPATH >&2
704704

705705
# Set variables
706706
set_vars

customize.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
SKIPUNZIP=1
1313
if [ -z $UF ]; then
14-
MAGISK=true; UF=$TMPDIR/META-INF/unity
15-
unzip -oq "$ZIPFILE" 'META-INF/unity/*' -d $TMPDIR >&2
14+
MAGISK=true; UF=$TMPDIR/common/unityfiles
15+
unzip -oq "$ZIPFILE" 'common/unityfiles/*' -d $TMPDIR >&2
1616
[ -f "$UF/util_functions.sh" ] || { ui_print "! Unable to extract zip file !"; exit 1; }
1717
. $UF/util_functions.sh
1818
fi

0 commit comments

Comments
 (0)