Skip to content

Commit

Permalink
ARCH sync with ABILONG
Browse files Browse the repository at this point in the history
and force using 32bit binaries for now
  • Loading branch information
shakalaca committed Mar 30, 2021
1 parent 9ad0ed8 commit 207483a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ ABI=`getprop ro.product.cpu.abi | $BUSYBOX cut -c-3`
ABI2=`getprop ro.product.cpu.abi2 | $BUSYBOX cut -c-3`
ABILONG=`getprop ro.product.cpu.abi`

ARCH=arm
ARCH=$ABILONG
IS64BIT=false
if [ "$ABI" = "x86" ]; then ARCH=x86; fi;
if [ "$ABI2" = "x86" ]; then ARCH=x86; fi;
if [ "$ABILONG" = "arm64-v8a" ]; then ARCH=arm; IS64BIT=true; fi;
if [ "$ABILONG" = "arm64-v8a" ]; then ARCH=armeabi-v7a; IS64BIT=true; fi;
if [ "$ABILONG" = "x86_64" ]; then ARCH=x86; IS64BIT=true; fi;

if [[ -n $EXTRACT_RAMDISK ]]; then
Expand Down Expand Up @@ -109,7 +107,6 @@ $BUSYBOX unzip magisk.zip -od $TMP_DIR > /dev/null
COMMON=/common
if [[ -f $TMP_DIR/classes.dex ]]; then
echo "[*] New Magisk packaging format detected .."
[ "$ARCH" = "arm" ] && ARCH=armeabi-v7a
USES_ZIP_IN_APK=1
BINDIR=/lib
COMMON=/assets
Expand Down

0 comments on commit 207483a

Please sign in to comment.