From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Android" |
|---|
| claim | "JNINativeMethod, the element of the array passed to RegisterNatives: three pointers {name, signature, fnPtr}; name is the Java method name, signature its JNI descriptor such as (ILjava/lang/String;)V, fnPtr the native function taking (JNIEnv*, jobject or jclass, ...). Size 12 bytes on 32-bit, 24 on 64-bit." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Android" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "JNINativeMethod" |
|---|
| abi | "lp64" |
|---|
| size | 24 |
|---|
| fields | | offset | 0 |
|---|
| size | 8 |
|---|
| type | "const char *" |
|---|
| name | "name" |
|---|
| notes | "Java method name, NUL terminated" |
|---|
|
| offset | 8 |
|---|
| size | 8 |
|---|
| type | "const char *" |
|---|
| name | "signature" |
|---|
| notes | "JNI method descriptor" |
|---|
|
| offset | 16 |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "fnPtr" |
|---|
| notes | "native implementation" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "typedef struct { const char* name; const char* signature; void* fnPtr; } JNINativeMethod" |
|---|
| repo | "https://android.googlesource.com/platform/libnativehelper" |
|---|
| commit | "aef2939781fc0b57b4477df7160935cdf5697919" |
|---|
| path | "include_jni/jni.h" |
|---|
| lines | "128-132" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "JNINativeMethod" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T19:42:38.150Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:01:23.587Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read include_jni/jni.h at aef29397 lines 128-132: three pointer members name, signature, fnPtr in that order; 24 bytes on LP64 follows." |
|---|
|
|
|---|