Bump to ONDK r30.2

This commit is contained in:
topjohnwu
2026-11-18 02:01:06 -08:00
committed by John Wu
parent 70d233cae2
commit a4fb84b6f8
5 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ fun Project.setupCommon() {
} }
buildToolsVersion = "37.0.0" buildToolsVersion = "37.0.0"
ndkPath = "${androidComponents.sdkComponents.sdkDirectory.get().asFile}/ndk/magisk" ndkPath = "${androidComponents.sdkComponents.sdkDirectory.get().asFile}/ndk/magisk"
ndkVersion = "30.0.15729638" ndkVersion = "30.0.16248370"
defaultConfig.apply { defaultConfig.apply {
minSdk = 24 minSdk = 24
+1 -1
View File
@@ -573,7 +573,7 @@ class ProgressStream:
def setup_ndk(): def setup_ndk():
url = f"https://github.com/topjohnwu/ondk/releases/download/{ondk_version}/ondk-{ondk_version}-{os_name}.tar.xz" url = f"https://github.com/topjohnwu/ondk/releases/download/{ondk_version}/ondk-{ondk_version}-{os_name}-{arch_name}.tar.xz"
ndk_archive = url.split("/")[-1] ndk_archive = url.split("/")[-1]
ondk_path = paths().ndk.parent / f"ondk-{ondk_version}" ondk_path = paths().ndk.parent / f"ondk-{ondk_version}"
+2 -1
View File
@@ -226,9 +226,10 @@ fn is_raw_arm32(buf: &[u8]) -> bool {
if sample.len() < 64 { if sample.len() < 64 {
return false; return false;
} }
let words = sample.chunks_exact(4); let (words, _) = sample.as_chunks::<4>();
let count = words.len(); let count = words.len();
let arm_cond_count = words let arm_cond_count = words
.iter()
.filter(|chunk| { .filter(|chunk| {
let top_nibble = chunk[3] >> 4; let top_nibble = chunk[3] >> 4;
top_nibble == 0xE || top_nibble == 0xF top_nibble == 0xE || top_nibble == 0xF
+4 -1
View File
@@ -22,13 +22,14 @@ __all__ = [
"ensure_cargo", "ensure_cargo",
"ensure_jdk", "ensure_jdk",
"os_name", "os_name",
"arch_name",
"is_windows", "is_windows",
"EXE_EXT", "EXE_EXT",
"no_color", "no_color",
"cpu_count", "cpu_count",
] ]
ondk_version = "r30.1" ondk_version = "r30.2"
def color_print(code, msg): def color_print(code, msg):
@@ -170,6 +171,8 @@ if os_name != "linux" and os_name != "darwin":
# It's possible we're using MSYS/Cygwin/MinGW, treat them all as Windows # It's possible we're using MSYS/Cygwin/MinGW, treat them all as Windows
is_windows = True is_windows = True
os_name = "windows" os_name = "windows"
raw_arch = platform.machine().lower()
arch_name = {"arm64": "aarch64", "amd64": "x86_64"}.get(raw_arch, raw_arch)
EXE_EXT = ".exe" if is_windows else "" EXE_EXT = ".exe" if is_windows else ""
no_color = "NO_COLOR" in os.environ or not sys.stdout.isatty() no_color = "NO_COLOR" in os.environ or not sys.stdout.isatty()
+3 -3
View File
@@ -57,8 +57,9 @@ fn process_elf(path: &str) -> anyhow::Result<()> {
}); });
// Remove unsupported flags // Remove unsupported flags
for entry in entries.iter_mut() { for entry in entries.iter_mut() {
if let Dynamic::Integer { tag, val } = entry { if let Dynamic::Integer { tag, val } = entry
if *tag == elf::DT_FLAGS_1 { && *tag == elf::DT_FLAGS_1
{
let new_flags = *val & SUPPORTED_DT_FLAGS as u64; let new_flags = *val & SUPPORTED_DT_FLAGS as u64;
if new_flags != *val { if new_flags != *val {
println!( println!(
@@ -71,7 +72,6 @@ fn process_elf(path: &str) -> anyhow::Result<()> {
} }
} }
} }
}
}); });
let mut out_bytes = Vec::new(); let mut out_bytes = Vec::new();