JNI is a Java platform specification, not an Android one. When an Android document and the JNI
specification disagree about mangling, descriptors, the function table order, or the reference rules,
the specification is authoritative and Android implements it.
You want the rationale: why JNIEnv is per thread, why references are indirect, why the API looks the way it does
JNI Specification — Types and Data Structures
You need the exact type descriptor grammar, the jvalue union, or the primitive type mapping
JNI Specification — JNI Functions
The definitive list, in order, of every function in JNINativeInterface. This is the ground truth behind the index table in ../cheatsheet.md §12
JNI Specification — Resolving Native Method Names
The mangling scheme: the Java_ prefix, the escape table, the short/long name rule. Everything in §3.5 is checkable here
JNI Specification — Exceptions
The list of functions that are legal while an exception is pending — the whole recovery vocabulary
JNI Specification — Local and Global References
The 16-reference guarantee, EnsureLocalCapacity, PushLocalFrame/PopLocalFrame semantics
The Java Virtual Machine Specification, Chapter 4
The descriptor grammar JNI reuses. Read it if you want the formal production rules rather than the table
Published by Oracle as part of the Java SE documentation set. Search for "Java Native Interface
Specification" plus the chapter name rather than for a URL — the hosting path has moved several times
and will move again.
Why this matters more than it looks. The mangling and descriptor rules are the two things this
chapter's readers most often get subtly wrong, and they are the two things the specification states
exactly. If you are about to put a symbol name in a report, check it here rather than against a
blog post.
The single most useful Android-specific page. Covers JNIEnv per thread, local versus global references, thread attachment, extractNativeLibs, UTF-8 versus modified UTF-8, and a FAQ that answers most UnsatisfiedLinkError questions
NDK guides — ABI management
Which ABIs exist, what ships, and why an app with only arm64-v8a will not run on your x86 emulator
Read on cs.android.com, which gives cross-references and history. See
07 AOSP for the navigation technique.
Cite paths, never line numbers. The paths below have been stable for years; line numbers change
every release, and a report that quotes one ages badly.
A prepared Ghidra type archive (jni_all.gdt) containing JNIEnv, JNINativeInterface, JNINativeMethod and the rest. The fastest route to a readable decompilation
Search by topic rather than by URL — conference hosting moves, and a dead link in a reference list is
worse than no link.
Native code reverse engineering on Android — Black Hat and DEF CON mobile tracks have covered
RegisterNatives recovery, packer unpacking, and JNI-level hooking repeatedly.
Frida internals and the Java/native bridge — the maintainers' own talks are the best source.
Android media-stack memory safety (the Stagefright family and its successors) — the canonical
worked example of managed code as a thin transport for attacker bytes into a native parser. Note
that these are bugs in the parsers, not in JNI; see the honesty note below.
Rust in the Android platform — Google's own writing on native memory-safety defect rates is the
best available data on why this chapter's bug classes matter at scale.
A deliberate omission: there are no JNI-specific CVE identifiers in this chapter. When a
memory-safety bug is found in native Android code, the CVE is filed against the component — a
media parser, an image decoder, a font shaper — not against the bridge. The bridge is how the
untrusted data reached the vulnerable parser; it is not the vulnerable code. Quoting a CVE as "a
JNI vulnerability" would be inaccurate, and this repository does not invent or misattribute
identifiers. For third-party .so files, cite the CVEs published against that library and
version, from its own advisory — a citation you can defend. See
§5.10.