Created
March 30, 2021 23:15
-
-
Save shakalaca/39849ad02f92b26335ccd21aff991a89 to your computer and use it in GitHub Desktop.
Patch for 64bit magisk build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/build.gradle.kts b/app/build.gradle.kts | |
index 802e8972..cabd0452 100644 | |
--- a/app/build.gradle.kts | |
+++ b/app/build.gradle.kts | |
@@ -70,23 +70,23 @@ android { | |
val syncLibs by tasks.registering(Sync::class) { | |
into("src/main/jniLibs") | |
- into("armeabi-v7a") { | |
+ into("arm64-v8a") { | |
from(rootProject.file("native/out/armeabi-v7a")) { | |
- include("busybox", "magiskboot", "magiskinit", "magisk") | |
+ include("magisk") | |
rename { if (it == "magisk") "libmagisk32.so" else "lib$it.so" } | |
} | |
from(rootProject.file("native/out/arm64-v8a")) { | |
- include("magisk") | |
+ include("busybox", "magiskboot", "magiskinit", "magisk") | |
rename { if (it == "magisk") "libmagisk64.so" else "lib$it.so" } | |
} | |
} | |
- into("x86") { | |
+ into("x86_64") { | |
from(rootProject.file("native/out/x86")) { | |
- include("busybox", "magiskboot", "magiskinit", "magisk") | |
+ include("magisk") | |
rename { if (it == "magisk") "libmagisk32.so" else "lib$it.so" } | |
} | |
from(rootProject.file("native/out/x86_64")) { | |
- include("magisk") | |
+ include("busybox", "magiskboot", "magiskinit", "magisk") | |
rename { if (it == "magisk") "libmagisk64.so" else "lib$it.so" } | |
} | |
} | |
diff --git a/build.py b/build.py | |
index dea5d8e1..6aecc167 100755 | |
--- a/build.py | |
+++ b/build.py | |
@@ -301,6 +301,8 @@ def build_binary(args): | |
# Basic flags | |
global base_flags | |
base_flags = f'MAGISK_VERSION={config["version"]} MAGISK_VER_CODE={config["versionCode"]}' | |
+ base_flags += ' B_64BIT=1' | |
+ | |
if not args.release: | |
base_flags += ' MAGISK_DEBUG=1' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment