From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Android" |
|---|
| claim | "The JavaVM function table (struct JNIInvokeInterface): three reserved slots, then DestroyJavaVM 3, AttachCurrentThread 4, DetachCurrentThread 5, GetEnv 6, AttachCurrentThreadAsDaemon 7. JNI_OnLoad(JavaVM*, void*) receives a pointer to a pointer to it; vm->GetEnv(&env, JNI_VERSION_1_6) is how it obtains the JNIEnv." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Android" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "JNIInvokeInterface" |
|---|
| abi | "lp64" |
|---|
| size | 64 |
|---|
| fields | | offset | 0 |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "reserved0" |
|---|
|
| offset | 8 |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "reserved1" |
|---|
|
| offset | 16 |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "reserved2" |
|---|
|
| offset | 24 |
|---|
| size | 8 |
|---|
| type | "jint (*)(JavaVM*)" |
|---|
| name | "DestroyJavaVM" |
|---|
|
| offset | 32 |
|---|
| size | 8 |
|---|
| type | "jint (*)(JavaVM*, JNIEnv**, void*)" |
|---|
| name | "AttachCurrentThread" |
|---|
|
| offset | 40 |
|---|
| size | 8 |
|---|
| type | "jint (*)(JavaVM*)" |
|---|
| name | "DetachCurrentThread" |
|---|
|
| offset | 48 |
|---|
| size | 8 |
|---|
| type | "jint (*)(JavaVM*, void**, jint)" |
|---|
| name | "GetEnv" |
|---|
|
| offset | 56 |
|---|
| size | 8 |
|---|
| type | "jint (*)(JavaVM*, JNIEnv**, void*)" |
|---|
| name | "AttachCurrentThreadAsDaemon" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct JNIInvokeInterface member order" |
|---|
| repo | "https://android.googlesource.com/platform/libnativehelper" |
|---|
| commit | "aef2939781fc0b57b4477df7160935cdf5697919" |
|---|
| path | "include_jni/jni.h" |
|---|
| lines | "1037-1046" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "JNIInvokeInterface" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T19:42:38.309Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:21:08.870Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched include_jni/jni.h at the cited commit and read struct JNIInvokeInterface: three void* reserved, then DestroyJavaVM, AttachCurrentThread, DetachCurrentThread, GetEnv (JavaVM*, void**, jint), AttachCurrentThreadAsDaemon; 8 pointers = 64 bytes on LP64." |
|---|
|
|
|---|