* improve smali printer to show bytecode * set insnStart position before start decoding * swithed line 62 and line 63, to get the proper bytes, insnStart must to be set before start to decode. Co-authored-by: tobias <tobias.hotmail.com>
This commit is contained in:
+2
@@ -31,4 +31,6 @@ public interface IClassData {
|
||||
List<IAnnotation> getAnnotations();
|
||||
|
||||
String getDisassembledCode();
|
||||
|
||||
String getDisassembledCodeV2();
|
||||
}
|
||||
|
||||
+5
@@ -34,4 +34,9 @@ public class FieldRefHandle implements IMethodHandle {
|
||||
public void load() {
|
||||
// already loaded
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return type + ": " + fieldRef;
|
||||
}
|
||||
}
|
||||
|
||||
+10
-4
@@ -2,19 +2,21 @@ package jadx.api.plugins.input.insns;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import jadx.api.plugins.input.data.ICallSite;
|
||||
import jadx.api.plugins.input.data.IFieldData;
|
||||
import jadx.api.plugins.input.data.IMethodRef;
|
||||
import jadx.api.plugins.input.data.*;
|
||||
import jadx.api.plugins.input.insns.custom.ICustomPayload;
|
||||
|
||||
public interface InsnData {
|
||||
|
||||
void decode();
|
||||
|
||||
int getOffset();
|
||||
int getOffset(); // offset within method
|
||||
|
||||
int getFileOffset(); // offset within dex file
|
||||
|
||||
Opcode getOpcode();
|
||||
|
||||
byte[] getByteCode();
|
||||
|
||||
InsnIndexType getIndexType();
|
||||
|
||||
int getRawOpcodeUnit();
|
||||
@@ -39,6 +41,10 @@ public interface InsnData {
|
||||
|
||||
ICallSite getIndexAsCallSite();
|
||||
|
||||
IMethodProto getIndexAsProto(int protoIndex);
|
||||
|
||||
IMethodHandle getIndexAsMethodHandle();
|
||||
|
||||
@Nullable
|
||||
ICustomPayload getPayload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user