diff --git a/src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java b/src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java index a8d06eda9..ab7547265 100644 --- a/src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java +++ b/src/main/java/com/topjohnwu/magisk/asyncs/InstallMagisk.java @@ -76,10 +76,18 @@ public class InstallMagisk extends ParallelTask { List abis = Arrays.asList(Build.SUPPORTED_ABIS); String arch; - if (abis.contains("x86")) - arch = "x86"; - else - arch = "arm"; + + if (mm.remoteMagiskVersionCode >= Const.MAGISK_VER.SEPOL_REFACTOR) { + // 32-bit only + if (abis.contains("x86")) arch = "x86"; + else arch = "arm"; + } else { + if (abis.contains("x86_64")) arch = "x64"; + else if (abis.contains("arm64-v8a")) arch = "arm64"; + else if (abis.contains("x86")) arch = "x86"; + else arch = "arm"; + } + console.add("- Device platform: " + Build.SUPPORTED_ABIS[0]); try {