forprevious / smali

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

Error occured while while using baksmali on teeter.odex #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
Cannot baksmali teeter.odex from Android 2.1 running on HTC Magic

What is the exact smali/baksmali command that you ran?
java -jar baksmali-1.2.6.jar -x teeter.odex

What version of smali/baksmali are you using? What rom are you working
from?
baksmali-1.2.6
ROM:  SuperHero v3.27.11.10 from ahmgsk
java version "1.6.0_23"(in Windows XP)

What is the airspeed velocity of an unladen swallow?
African or European?

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

Receive the following error message when attempting to baksmail:

Error occured while disassembling class 
Lcom.htc.android.teeter.CBGLoadingThread; - skipping class
java.lang.ClassCastException: org.jf.dexlib.Code.Analysis.AnalyzedInstruction
        at org.jf.dexlib.Code.Analysis.InlineMethodResolver$InlineMethodResolver_version35.resolveExecuteInline(InlineMethodResolver.java:83)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.java:58)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeExecuteInline(MethodAnalyzer.java:3340)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1016)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:208)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:353)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:290)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:130)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:322)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:291)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:135)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:191)
        at org.jf.baksmali.main.main(main.java:278)

Error occured while disassembling class Lcom.htc.android.teeter.CBall; - 
skipping class
java.lang.ClassCastException: org.jf.dexlib.Code.Analysis.AnalyzedInstruction
        at org.jf.dexlib.Code.Analysis.InlineMethodResolver$InlineMethodResolver_version35.resolveExecuteInline(InlineMethodResolver.java:83)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.java:58)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeExecuteInline(MethodAnalyzer.java:3340)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1016)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:208)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:353)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:290)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:130)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:322)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:291)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:135)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:191)
        at org.jf.baksmali.main.main(main.java:278)

Error occured while disassembling class Lcom.htc.android.teeter.CL; - skipping 
class
java.lang.ClassCastException: org.jf.dexlib.Code.Analysis.AnalyzedInstruction
        at org.jf.dexlib.Code.Analysis.InlineMethodResolver$InlineMethodResolver_version35.resolveExecuteInline(InlineMethodResolver.java:83)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.java:58)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeExecuteInline(MethodAnalyzer.java:3340)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1016)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:208)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:353)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:290)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:130)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:322)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:291)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:135)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:191)
        at org.jf.baksmali.main.main(main.java:278)

Error occured while disassembling class 
Lcom.htc.android.teeter.CTeeterActivity; - skipping class
java.lang.ClassCastException: org.jf.dexlib.Code.Analysis.AnalyzedInstruction
        at org.jf.dexlib.Code.Analysis.InlineMethodResolver$InlineMethodResolver_version35.resolveExecuteInline(InlineMethodResolver.java:83)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.java:58)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeExecuteInline(MethodAnalyzer.java:3340)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1016)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:208)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:353)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:290)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:130)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:322)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeDirectMethods(ClassDefinition.java:291)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:135)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:191)
        at org.jf.baksmali.main.main(main.java:278)

Error occured while disassembling class Lcom.htc.android.teeter.Vector3D; - 
skipping class
java.lang.ClassCastException: org.jf.dexlib.Code.Analysis.AnalyzedInstruction
        at org.jf.dexlib.Code.Analysis.InlineMethodResolver$InlineMethodResolver_version35.resolveExecuteInline(InlineMethodResolver.java:83)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.java:58)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeExecuteInline(MethodAnalyzer.java:3340)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1016)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:208)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:353)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:290)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:130)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:322)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:307)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:136)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:191)
        at org.jf.baksmali.main.main(main.java:278)

Error occured while disassembling class Lcom.htc.android.teeter.Vector; - 
skipping class
java.lang.ClassCastException: org.jf.dexlib.Code.Analysis.AnalyzedInstruction
        at org.jf.dexlib.Code.Analysis.InlineMethodResolver$InlineMethodResolver_version35.resolveExecuteInline(InlineMethodResolver.java:83)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.java:58)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeExecuteInline(MethodAnalyzer.java:3340)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1016)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:208)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:353)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:290)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:130)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:322)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:307)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:136)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:191)
        at org.jf.baksmali.main.main(main.java:278)

Original issue reported on code.google.com by Eminent....@gmail.com on 4 Apr 2011 at 2:30

Attachments:

GoogleCodeExporter commented 9 years ago
I believe this was already fixed - see 
http://code.google.com/p/smali/source/detail?r=807

The fix will be in the next release. In the meantime, you can either build 
baksmali from the latest source 
(http://code.google.com/p/smali/wiki/BuildProcedure), or use version 1.2.5 
instead

Original comment by JesusFr...@gmail.com on 4 Apr 2011 at 4:49

GoogleCodeExporter commented 9 years ago
Thanks for your prompt feedback! 
I'll have a try on 1.2.5 first and get back with the result.

Original comment by Eminent....@gmail.com on 4 Apr 2011 at 5:26

GoogleCodeExporter commented 9 years ago
Worked perfectly! 

Original comment by Eminent....@gmail.com on 4 Apr 2011 at 5:33