dinosu / dex2jar

Automatically exported from code.google.com/p/dex2jar
0 stars 0 forks source link

cannot parse apk file when encrypted flag is set #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to convert APK files with encrypted bit set

What is the expected output? What do you see instead?
dex2jar cannot handle the file at all:

dex2jar /tmp/delta.apk -> delta.jar
com.googlecode.dex2jar.DexException: java.util.zip.ZipException: encrypted ZIP 
entry not supported
        at com.googlecode.dex2jar.reader.DexFileReader.opDataIn(DexFileReader.java:224)
        at com.googlecode.dex2jar.reader.DexFileReader.<init>(DexFileReader.java:236)
        at com.googlecode.dex2jar.reader.DexFileReader.<init>(DexFileReader.java:247)
        at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:103)
        at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:168)
        at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:34)
Caused by: java.util.zip.ZipException: encrypted ZIP entry not supported
        at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:302)
        at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:121)
        at com.googlecode.dex2jar.reader.DexFileReader.readDex(DexFileReader.java:127)
        at com.googlecode.dex2jar.reader.DexFileReader.opDataIn(DexFileReader.java:220)
        ... 5 more

What version of the product are you using? On what operating system?
fresh checkout, linux

Please upload the file which cause the issue if possible.
An example file can be found here:
https://github.com/blueboxsecurity/DalvikBytecodeTampering

Original issue reported on code.google.com by thuxn...@dexlabs.org on 25 Mar 2013 at 7:47