Hook Android 17 Zygote signatures - #151
Merged
Merged
Conversation
Android 17 added a use_fifo_ui boolean after is_top_app in nativeForkAndSpecialize, and QPR2 further inserted cgroup_uid between uid and gid in both app-specialize methods, so add a variant for each layout.
JingMatrix
force-pushed
the
android-17-zygote-signatures
branch
from
August 4, 2026 09:41
a6fb829 to
795b041
Compare
Owner
Author
|
@jiggs82, please test if CI build of NeoZygisk: https://github.com/JingMatrix/NeoZygisk/actions/runs/30897401244 works for you with Vector 2.2 on your Pixel 10 XL. |
ThePedroo
added a commit
to PerformanC/ReZygisk
that referenced
this pull request
Aug 4, 2026
This commit fixes the wrong position for "gid" in the "nativeForkAndSpecialize" function, which the newly added "cgroupUid" goes in between "id" and "uid". Info sourcered from: JingMatrix/NeoZygisk#151
HSSkyBoy
pushed a commit
to HSSkyBoy/NyaZygisk
that referenced
this pull request
Aug 6, 2026
Android 17 added a use_fifo_ui boolean after is_top_app in nativeForkAndSpecialize, and QPR2 further inserted cgroup_uid between uid and gid in both app-specialize methods, so add a variant for each layout.
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.
Android 17 reworked the app-specialize native methods, so their descriptors no longer resolve and
hook_jni_methodsskips them, leaving app processes uninjected.nativeForkAndSpecializegained auseFifoUiboolean afterisTopApp, in both the Java declaration and the native registration table.nativeSpecializeAppProcessis unchanged from U and still resolves through theuentry.QPR2 goes further and inserts a
cgroupUidint betweenuidandgidin both methods. AOSP has published nothing pastandroid-17.0.0_r1, so this layout comes from theframework.jarof a Pixel 10 Pro XL on QPR2 beta 2, whose debug info names the parameters:The position matters beyond the descriptor matching: reading
cgroupUidasgidwould hand every module a wrong gid on an entry that still resolves.Changes
cvariant ofnativeForkAndSpecializecarryinguse_fifo_ui.c_qpr2variants of both app-specialize methods carryingcgroup_uid, and regeneratejni_hooks.hpp.Context: Dr-TSNG/ZygiskNext#344.