vaginessa / smali

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

Problem decompiling ICS classes.dex #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
I'm getting a bad magic number and cannot decompile ICS binaries. 

What is the exact smali/baksmali command that you ran?

java -jar bin/baksmali/baksmali-1.4.0.jar -c 
core.jar:ext.jar:framework.jar:android.policy.jar:core-junit.jar -o 
~/test_apks/out17.0/smali ~/test_apks/out17.0/classes.dex
java -jar bin/baksmali/baksmali-1.3.3.jar -c 
core.jar:ext.jar:framework.jar:android.policy.jar:core-junit.jar -o 
~/test_apks/out17.0/smali ~/test_apks/out17.0/classes.dex 

Both give this same error:

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 30 39 00
    at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
    at org.jf.baksmali.main.main(main.java:269)

What version of smali/baksmali are you using? What rom are you working
from?

I've tried 1.3.3 and 1.4.0

What is the airspeed velocity of an unladen swallow?
roughly 11 m/s

Please provide any additional information below: error messages, symptoms,
etc.

Original issue reported on code.google.com by sha...@appthority.com on 18 Oct 2012 at 9:56

Attachments:

GoogleCodeExporter commented 9 years ago
Based on the version number (009), and the fact that the structure does not 
match the current dex structure, I'm going to assume that is an *old* apk/dex 
file. I highly doubt it is installable on any released version of android (from 
1.0 onward).

Also, just a minor note - the -c option is only needed for the -x (deodex) or 
-r (register info) options.

Original comment by jesusfreke@jesusfreke.com on 19 Oct 2012 at 2:11