1
mirror of https://github.com/topjohnwu/Magisk synced 2024-11-13 20:54:12 +01:00

Fix crash in pure 64-bit devices

This commit is contained in:
vvb2060 2021-02-22 03:15:26 +08:00 committed by John Wu
parent 860a05abf2
commit a4fb1297b0

View File

@ -14,7 +14,7 @@ object Const {
init {
if (Build.VERSION.SDK_INT >= 21) {
CPU_ABI = Build.SUPPORTED_ABIS[0]
CPU_ABI_32 = Build.SUPPORTED_32_BIT_ABIS[0]
CPU_ABI_32 = Build.SUPPORTED_32_BIT_ABIS.firstOrNull() ?: CPU_ABI
} else {
CPU_ABI = Build.CPU_ABI
CPU_ABI_32 = CPU_ABI