fix: ndk translation prop
This commit is contained in:
parent
ab334ebfc3
commit
0ab4b1c0f7
2 changed files with 5 additions and 13 deletions
4
main.py
4
main.py
|
|
@ -66,7 +66,7 @@ def install_app(args):
|
|||
if "libndk" in app and "houdini" not in app:
|
||||
arch = helper.host()[0]
|
||||
if arch == "x86_64":
|
||||
install_list.append(Ndk(args.android_version))
|
||||
install_list.append(Ndk())
|
||||
else:
|
||||
Logger.warn("libndk is not supported on your CPU")
|
||||
if "libhoudini" in app and "ndk" not in app:
|
||||
|
|
@ -119,7 +119,7 @@ def remove_app(args):
|
|||
if "gapps" in app:
|
||||
remove_list.append(Gapps(args.android_version))
|
||||
if "libndk" in app and "houdini" not in app:
|
||||
remove_list.append(Ndk(args.android_version))
|
||||
remove_list.append(Ndk())
|
||||
if "libhoudini" in app and "ndk" not in app:
|
||||
remove_list.append(Houdini(args.android_version))
|
||||
if "magisk" in app:
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ class Ndk(General):
|
|||
"ro.product.cpu.abilist32": "x86,armeabi-v7a,armeabi",
|
||||
"ro.product.cpu.abilist64": "x86_64,arm64-v8a",
|
||||
"ro.dalvik.vm.native.bridge": "libndk_translation.so",
|
||||
"ro.enable.native.bridge.exec": None,
|
||||
"ro.vendor.enable.native.bridge.exec": None,
|
||||
"ro.vendor.enable.native.bridge.exec64": None,
|
||||
"ro.enable.native.bridge.exec": "1",
|
||||
"ro.vendor.enable.native.bridge.exec": "1",
|
||||
"ro.vendor.enable.native.bridge.exec64": "1",
|
||||
"ro.ndk_translation.version": "0.2.3",
|
||||
"ro.dalvik.vm.isa.arm": "x86",
|
||||
"ro.dalvik.vm.isa.arm64": "x86_64"
|
||||
|
|
@ -36,14 +36,6 @@ class Ndk(General):
|
|||
"lib/libndk*",
|
||||
"lib64/libndk*"
|
||||
]
|
||||
def __init__(self, android_version="11") -> None:
|
||||
super().__init__()
|
||||
if android_version=="11":
|
||||
self.apply_props["ro.enable.native.bridge.exec"] = "1"
|
||||
elif android_version=="13":
|
||||
self.apply_props["ro.vendor.enable.native.bridge.exec"] = "1"
|
||||
self.apply_props["ro.vendor.enable.native.bridge.exec64"] = "1"
|
||||
|
||||
|
||||
def copy(self):
|
||||
Logger.info("Copying libndk library files ...")
|
||||
|
|
|
|||
Loading…
Reference in a new issue