From 5527d390ebf313f10c2600635708d21846620ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E9=9B=84=E9=95=95?= Date: Fri, 11 Jul 2025 14:11:33 +0800 Subject: [PATCH] Reorder ro.product.cpu.abilist to prioritize 64-bit ABIs --- stuff/ndk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stuff/ndk.py b/stuff/ndk.py index d07623f..f513cf4 100644 --- a/stuff/ndk.py +++ b/stuff/ndk.py @@ -14,7 +14,7 @@ class Ndk(General): dl_file_name = "libndktranslation.zip" extract_to = "/tmp/libndkunpack" apply_props = { - "ro.product.cpu.abilist": "x86_64,x86,armeabi-v7a,armeabi,arm64-v8a", + "ro.product.cpu.abilist": "x86_64,x86,arm64-v8a,armeabi-v7a,armeabi", "ro.product.cpu.abilist32": "x86,armeabi-v7a,armeabi", "ro.product.cpu.abilist64": "x86_64,arm64-v8a", "ro.dalvik.vm.native.bridge": "libndk_translation.so", @@ -49,4 +49,4 @@ class Ndk(General): Logger.info("Copying libndk library files ...") name = re.findall("([a-zA-Z0-9]+)\.zip", self.dl_link)[0] shutil.copytree(os.path.join(self.extract_to, "vendor_google_proprietary_ndk_translation-prebuilt-" + name, - "prebuilts"), os.path.join(self.copy_dir, self.partition), dirs_exist_ok=True) \ No newline at end of file + "prebuilts"), os.path.join(self.copy_dir, self.partition), dirs_exist_ok=True)