desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

how can decompiler a encrypted Apk file? #558

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can anyone decompile the APK file which has been encrypted by apkprotect.com?

Original issue reported on code.google.com by findequa...@gmail.com on 1 Dec 2013 at 9:25

GoogleCodeExporter commented 9 years ago
File test!

And response commandline when decompile:
unknown opcode encountered - 42. Treating as nop.
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: 6
        at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
        at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:91)
        at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
        at org.jf.dexlib.Item.readFrom(Item.java:77)
        at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
        at org.jf.dexlib.Section.readFrom(Section.java:143)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:267)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:49)
        at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:34)
        at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:74)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:89)
        at brut.apktool.Main.cmdDecode(Main.java:146)
        at brut.apktool.Main.main(Main.java:77)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
        at org.jf.dexlib.Util.NumberUtils.decodeUnsignedShort(NumberUtils.java:1
25)
        at org.jf.dexlib.Code.InstructionWithReference.getReferencedItemIndex(In
structionWithReference.java:61)
        at org.jf.dexlib.Code.InstructionWithReference.<init>(InstructionWithRef
erence.java:56)
        at org.jf.dexlib.Code.Format.Instruction22c.<init>(Instruction22c.java:5
9)
        at org.jf.dexlib.Code.Format.Instruction22c.<init>(Instruction22c.java:4
0)
        at org.jf.dexlib.Code.Format.Instruction22c$Factory.makeInstruction(Inst
ruction22c.java:103)
        at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:82)
        ... 12 more
Error occured at code address 8
code_item @0x42480

Original comment by findequa...@gmail.com on 2 Dec 2013 at 2:14

Attachments:

GoogleCodeExporter commented 9 years ago
Works fine in the 2b8 build, bad classes are rejected by dalvik anyway.

Original comment by connor.tumbleson on 5 Dec 2013 at 3:41