반응형
Type Signature | Java Type |
Z | boolean |
B | byte |
C | char |
S | short |
I | int |
J | long |
F | float |
D | double |
L fully-qualified-class ; | fully-qualified-class |
[ type | type[] |
( arg-types ) ret-type | method type |
Ex)
터미널에서 "javap -s java.lang.String" 명령어 입력하면 메서드의 JNI 타입 Signature 예시를 볼 수 있습니다.
static int indexOf(byte[], byte, int, java.lang.String, int);
==> ([BBILjava/lang/String;I)I
public java.lang.CharSequence subSequence(int, int);
==> (II)Ljava/lang/CharSequence;
public java.lang.String[] split(java.lang.String, int);
==> (Ljava/lang/String;I)[Ljava/lang/String;
public static java.lang.String valueOf(java.lang.Object);
==> (Ljava/lang/Object;)Ljava/lang/String;
※ 출처
https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/types.html
반응형
'Information Security > Android' 카테고리의 다른 글
Xposed setResult Enum Value (0) | 2021.10.21 |
---|---|
Find Magisk Random Package Name (0) | 2021.10.20 |
Xposed Detection & Bypass (0) | 2021.10.01 |
Android NDK Setting for LSPosed (0) | 2021.10.01 |
Android NDK Setting (0) | 2021.10.01 |