JesusFreke / smali

smali/baksmali
6.29k stars 1.07k forks source link

invoke-virtual-quick and iput-object-quick opcode error #689

Closed vvMalko closed 5 years ago

vvMalko commented 5 years ago

baksmali-2.2.6 JDK 11.0.2

Get #unknown opcode: 0xf8 and #unknown opcode: 0xf7

libsgmain_315446400000.zip

JesusFreke commented 5 years ago

invoke-virtual-quick and iput-object-quick are not valid dex opcodes. They are used in odex files. If you look at the header of your file, it starts with "dey", which is the magic value for an odex file.

You need to deodex it. See, e.g. https://github.com/JesusFreke/smali/wiki/DeodexInstructions and baksmali help deodex