zygisk: make built-in Zygisk work on Meta Quest (lazy per-trust partition zygotes) - #9941
Closed
AbandonedAccount1111 wants to merge 1 commit into
Closed
zygisk: make built-in Zygisk work on Meta Quest (lazy per-trust partition zygotes)#9941AbandonedAccount1111 wants to merge 1 commit into
AbandonedAccount1111 wants to merge 1 commit into
Conversation
…tion zygotes) Meta Quest (Horizon OS) does not start the zygote the normal way: ro.zygote= zygote64_stub32 launches /system/bin/stub_zygote, which forks a separate app_process64 zygote PER security partition (system/trusted vs untrusted-app), driven by hzos_security_zygote_partitioning_policy. The untrusted-app partition zygote -- the one that forks 3rd-party apps and the Magisk manager -- is spawned LAZILY, after boot-complete. magiskd sets ro.dalvik.vm.native.bridge=libzygisk.so during boot but clears it again at boot-complete (ZygiskState::reset). On a normal device every zygote has already started by then, so clearing it is harmless. On Quest the untrusted-app partition zygote reads the (now cleared) property when it finally execve's app_process64, never loads libzygisk.so, so 3rd-party apps + the Magisk manager are never injected -> "Zygisk: N/A". Fix (daemon.rs): on the boot-complete reset(restore=true) path, reset the crash counter but KEEP native.bridge set (set_prop) instead of clearing it (restore_prop); only the >3-crash rollback path still clears. The lazily-spawned partition zygotes then load the loader when they start. Also (hook.cpp), robustness fixes the loader needs on this device: - Wrap hook_zygote_jni()'s JNI locals in PushLocalFrame(64)/PopLocalFrame so leaking locals can't trip ART's "non-empty local reference table" abort, and bail if GetEnv returns no env. - Make the strdup(ZygoteInit) trigger a substring match + add an idempotency guard so the zygote hooks install exactly once per process. Verified on Quest 3 (Android 14): system_server + every app fork is intercepted and LSPosed loads end-to-end.
xAstroBoy
force-pushed
the
meta-quest-zygisk-fix
branch
2 times, most recently
from
July 22, 2026 13:04
250199a to
e64ff0c
Compare
|
Superseded by #9968 (account migration). |
|
digital djs
…On Wed, Jul 22, 2026, 9:19 AM AbandonedAccount1111 ***@***.***> wrote:
Closed #9941 <#9941>.
—
Reply to this email directly, view it on GitHub
<#9941?email_source=notifications&email_token=ADMYDDFIBOLI6WJE4YXVZRT5GC5NBA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTEOBTGI3TMNJSGE3DJJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#event-28327652164>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMYDDHUQ2BNPLDYFW6IMDD5GC5NBAVCNFSNUABEKJSXA33TNF2G64TZHM3DONZQGIYTQNB3JFZXG5LFHM2DQMZQGUZDIMJTGOQXMAQ>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/ADMYDDBYJAWNZTF3AFEXKLD5GC5NBA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTEOBTGI3TMNJSGE3DJJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/ADMYDDC3SV7CGMDCVYVLASL5GC5NBA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTEOBTGI3TMNJSGE3DJJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Superseded by #9968 (account migration).