smali icon indicating copy to clipboard operation
smali copied to clipboard

[feature] Instruction-Bytes per output

Open OdinVex opened this issue 4 years ago • 6 comments

An option to allow returning the bytes for instructions used per output would be nice.

Example:

00 nop
12 21 const/4 v1, #int2
0F 00 return v0

OdinVex avatar Feb 11 '21 08:02 OdinVex

see: baksmali help dump ;)

JesusFreke avatar Feb 11 '21 10:02 JesusFreke

My post was quickly made to align any references regarding trying to add a 'bytes-column' to the JADX project.

OdinVex avatar Feb 11 '21 11:02 OdinVex

OdinVex forgot to mention that baksmali is used as a library and on library level there seems no way to generate the smali code in smaller parts that on class level for adding some sort of mapping between smali code and the offset in the dex file.

jpstotz avatar Feb 11 '21 11:02 jpstotz

offset in the dex file

I'm not really that interested in offsets but rather the actual raw bytes involved in the actual decompiled instruction.

OdinVex avatar Feb 11 '21 12:02 OdinVex

@OdinVex File byte data + offset to instruction in that file = raw bytes of the instruction

jpstotz avatar Feb 11 '21 13:02 jpstotz

@OdinVex File byte data + offset to instruction in that file = raw bytes of the instruction

That's obvious. I was just hoping for an easier "bytes: opcode" output for use in JADX. I hate having to switch between multiple pieces of software to break drivers apart to port Linux.

OdinVex avatar Feb 12 '21 19:02 OdinVex