Repository navigation
feat(android): link native declarations to static JNI candidates - #7472
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[High impact] The reviewed changes appear safe to merge; all four previous findings are addressed. SummaryAdds static links between original DEX native declarations and JNI candidates, grouped by ABI and exact APK library occurrence.
Validation was source-only; tests were not rerun. Supersession could not be checked because GitHub authentication was unavailable. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
APK[Immutable APK] --> DEX[Original native declarations]
APK --> ELF[Selected library occurrences]
ELF --> Exports[JNI exports]
ELF --> Relocations[Shared relocation reader]
Relocations --> Tables[Static table candidates]
DEX --> Join[Global attribution and selected bindings]
Exports --> Join
Tables --> Join
Join --> Evidence[Complete retained Evidence]
Evidence --> Summary[Summary]
Evidence --> Pages[Selected fields and pages]
Relocations --> IL2CPP[Stream writes into private IL2CPP copy]
Reviews (3) · Last reviewed commit: "fix(android): bound JNI parsing and pres..." · Reviewed by Greptile |
|
Final-head CI/review audit for
No PR-specific CI failure was established. The repository owner's explicit authorization covers admin bypass for reproduced main failures and the Author readiness gate; the human declarations remain unchecked. |
Summary
Fixes #6403. Find static JNI implementation candidates for original DEX native declarations, per ABI and exact APK library occurrence, including libraries that expose only
JNI_OnLoad. Class selection preserves global registration-pair ambiguity. Compact replies retain full Evidence and explain unsupported or incomplete scans.Contract and scope
inspect_android_jni_bindings(MCP defaults to retained summary) and matchinginspect-android-jni-bindingsCLI through the existing Android workflow. Exact class/method/descriptor/ABI/library selection, stable IDs, batch ID lookup, fields and retained pages share one implementation.matchedmeans observed candidate presence. Separate coverage prevents partial scans from claiming uniqueness or absence; table classes remain ambiguous/unknown unless the complete global inventory establishes attribution. Summary includes no-edge library failure reasons and selected native declarations even without ABI rows. Parsed checkpoints survive final cleanup failure/cancellation; exact resource leases gate retry.Executed validation
EVP_PKEY_new_RSAto arm640xfa11cwith the exact three relocated slots. Complete/summary facts match. Owned-copy removal leaves retained summaries, selected slots, pages and full parent exports readable; originals remain unchanged.Reproduction, artifact/revision pins, all costs and failed attempts. Equivalent Conscrypt complete/summary tasks include catalog, arguments, 12 pages and proof export: warm text estimates fall from ~225k to ~32k (about 86%), with the same fact digest. Cold/warm, startup, qualification, CLI, CPU and family-RSS costs are reported separately. No equivalent pre-feature table workflow, actual model-billing result or general latency/memory speedup is claimed.
Limits: Linux/JDK21/JADX0.7.1 qualified. Cross-ABI static ELF fixtures do not establish Windows/macOS lifecycle or runtime Android behavior. The Conscrypt APK is a static derivative, not an installed vendor app. Runtime-built tables, obfuscated strings and unavailable split/runtime code remain unknown. Empty-ABI coverage is a domain regression, not a separate real SDK artifact claim. The shared IL2CPP path has existing regressions, without a new real IL2CPP-app qualification.
Author readiness
Human owner: @gensokyo-dev