ZygiskAssistant breaks MuMu's houdini ARM translation, so arm64-only apps crash with EM_AARCH64 instead of EM_X86_64

Domain: android · Evidence E1 — Maintainer reviewed
androidmumu-emulatorhoudininative-bridgezygiskarm-translation

Summary

On an x86_64 Android emulator (MuMu 6.8.4, Android 15, KernelSU + ZygiskNext + LSPosed/Vector),

ZygiskAssistant breaks MuMu's houdini ARM translation

Problem

On an x86_64 Android emulator (MuMu 6.8.4, Android 15, KernelSU + ZygiskNext + LSPosed/Vector), any app that ships only arm64 native libraries crashed instantly at launch:

E locationspoofer: No implementation found for ... JNIMD5.encodeUrlParamsValue(java.lang.String)
W System.err: java.lang.UnsatisfiedLinkError: dlopen failed:
    ".../base.apk!/lib/arm64-v8a/lib<name>.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62)
E AndroidRuntime: Process: <pkg> ... at ...LocationApp.onCreate

Every such launch also logged the real cause, one line earlier than the crash:

E nativebridge(pid): Invalid state: native bridge is expected to be opened.
E nativebridge(pid): LLLog RedirectTranslator source:/data/system/etc/mumu-configs/translators/<id>/lib64/houdini/arm64/ target:/system/lib64/arm64/ err:No such file or directory

In other words: the ARM translation layer never initialized, so the x86_64 process tried to dlopen an arm64 shared object directly and the loader rejected it on ABI grounds. The UnsatisfiedLinkError is the symptom; the nativebridge line is the diagnosis.

Root Cause

MuMu's ARM translation works through its own shim, /system/lib64/libnb.so, which opens the native bridge and then loads /system/lib64/libhoudini.so. ZygiskAssistant hides Zygisk by patching ART's native-bridge library: it locates the .bss of /apex/com.android.art/lib64/libnativebridge.so (40 bytes) and rewrites it, and its zygisk/{x86_64,arm64-v8a,x86,armeabi-v7a}.so payloads carry the string doHideZygisk. A launch log shows the patch happening:

E/ZygiskAssistant/JNI(pid): preAppSpecialize ...
ZygiskAssistant: Found .bss for "/apex/com.android.art/lib64/libnativebridge.so" at ... sized 40 bytes.
ZygiskAssistant: /libnativebridge.so had_error was reset.

That patch prevents libnb from completing native-bridge initialization — hence Invalid state: native bridge is expected to be opened. — so houdini is never loaded and the translation chain is broken before any app code runs. Because the module patches globally and offers no per-package exemption, this happens for every arm64-only app on the device.

Two things that look like the cause but are not, both worth ruling out explicitly:

Solution

Stop ZygiskAssistant — it patches the native-bridge library globally and has no per-package exemption:

adb root
adb shell "touch /data/adb/modules/zygisk-assistant/disable"
adb shell reboot

Translation recovers immediately after the reboot. The launch log for the same arm64-only app then shows the chain working end to end:

V/libnb (pid): enter native_bridge2_initialize /data/user/0/<pkg>/code_cache arm64
I/libnb (pid): Found /system/lib64/libhoudini.so version 7
E/HP   (pid): patch_houdini_linker_null_crash: patched +0x... (je->jmp) OK
D/houdini(pid): Houdini now in android app mode / Initialize library(version: 15.0.0...) successfully

If Zygisk hiding is still required, use mechanisms that do not rewrite the native-bridge library: Shamiko (mount-namespace-level hiding, observed not to affect translation) together with an app-list hider such as HMA for the installed-app list.

Verification

Reproduce and confirm with the same app:

adb shell "logcat -c; am force-stop <pkg>; monkey -p <pkg> -c android.intent.category.LAUNCHER 1"
sleep 25
adb shell "logcat -d -v brief > /sdcard/l.txt"
adb shell "awk '/EM_AARCH64/{n++} END{print \"EM_AARCH64 lines:\", n+0}' /sdcard/l.txt"   # expect 0
adb shell "grep -e libnb -e houdini -e 'Invalid.state' /sdcard/l.txt"
# expect: native_bridge2_initialize ... arm64 / Found libhoudini.so version 7 /
#         Houdini now in android app mode, and NO 'Invalid state'
adb shell "dumpsys window | grep mCurrentFocus"   # the app's activity is really in the foreground

The EM_AARCH64 count is the pass/fail criterion: it is 0 only when the translator actually loaded, so it fails for exactly this defect and cannot be satisfied by the app merely starting and immediately crashing again. The mCurrentFocus check is what distinguishes "no ABI error" from "the app is actually usable".

Notes

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons