SuperZane / smali

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

Error decompiling for framework.odex #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?

Decompiling framework.odex with backsmali 1.3.3

Error occured while disassembling class Landroid.bluetooth.AtParser; - skipping
class
java.lang.RuntimeException: Invalid method index: 100
        at org.jf.dexlib.Code.Analysis.CustomInlineMethodResolver.resolveExecute
Inline(CustomInlineMethodResolver.java:87)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.
java:64)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1067)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:213)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:379)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:117)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
        at org.jf.baksmali.main.main(main.java:297)

Error occured while disassembling class Landroid.content.Intent; - skipping clas
s
java.lang.RuntimeException: Invalid method index: 100
        at org.jf.dexlib.Code.Analysis.CustomInlineMethodResolver.resolveExecute
Inline(CustomInlineMethodResolver.java:87)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.
java:64)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1067)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:213)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:379)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:116)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
        at org.jf.baksmali.main.main(main.java:297)

Error occured while disassembling class Landroid.content.IntentFilter; - skippin
g class
java.lang.RuntimeException: Invalid method index: 100
        at org.jf.dexlib.Code.Analysis.CustomInlineMethodResolver.resolveExecute
Inline(CustomInlineMethodResolver.java:87)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.
java:64)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1067)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:213)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:379)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:116)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
        at org.jf.baksmali.main.main(main.java:297)

Error occured while disassembling class Landroid.media.MediaScanner$MyMediaScann
erClient; - skipping class
java.lang.RuntimeException: Invalid method index: 100
        at org.jf.dexlib.Code.Analysis.CustomInlineMethodResolver.resolveExecute
Inline(CustomInlineMethodResolver.java:87)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.
java:64)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1067)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:213)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:379)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:116)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
        at org.jf.baksmali.main.main(main.java:297)

Error occured while disassembling class Lcom.android.internal.content.NativeLibr
aryHelper; - skipping class
java.lang.RuntimeException: Invalid method index: 100
        at org.jf.dexlib.Code.Analysis.CustomInlineMethodResolver.resolveExecute
Inline(CustomInlineMethodResolver.java:87)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.
java:64)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1067)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:213)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:379)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:116)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
        at org.jf.baksmali.main.main(main.java:297)

Error occured while disassembling class Lcom.android.internal.telephony.cdma.CDM
APhone; - skipping class
java.lang.RuntimeException: Invalid method index: 100
        at org.jf.dexlib.Code.Analysis.CustomInlineMethodResolver.resolveExecute
Inline(CustomInlineMethodResolver.java:87)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.
java:64)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1067)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:213)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:379)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:116)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
        at org.jf.baksmali.main.main(main.java:297)

Error occured while disassembling class Lcom.broadcom.bt.service.framework.BaseP
roxy; - skipping class
java.lang.RuntimeException: Invalid method index: 100
        at org.jf.dexlib.Code.Analysis.CustomInlineMethodResolver.resolveExecute
Inline(CustomInlineMethodResolver.java:87)
        at org.jf.dexlib.Code.Analysis.DeodexUtil.lookupInlineMethod(DeodexUtil.
java:64)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodA
nalyzer.java:1067)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.jav
a:213)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMetho
dItems(MethodDefinition.java:379)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.ja
va:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition
.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java
:116)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
        at org.jf.baksmali.main.main(main.java:297)

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

java -jar baksmali-1.3.3.jar -T inline.txt -d framework_TL13 -c 
:core.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar
:core-junit.jar -a 10 -x framework_TL13.odex

I have compiled the deodexerant to get the inline method table refer below 
introduction.
https://code.google.com/p/smali/source/browse/#git%2Fdeodexerant

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

version of smali/baksmali is 1.3.3 
Galaxy S2 HD LTE E120L (2.6.35.11-E120L.FD07.1623-CL1077645)
Android release 2.3.6

What is the airspeed velocity of an unladen swallow?

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

Original issue reported on code.google.com by dgcst...@gmail.com on 4 Sep 2012 at 1:10

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm. That one is definitely strange.

Can you disassemble the odex without -x, and pastebin one of the classes that 
it is erroring on.

Original comment by jesusfreke@jesusfreke.com on 4 Sep 2012 at 1:57

GoogleCodeExporter commented 9 years ago
I disassemble the odex without -x. There is no error occurred. 

d:\apktool_tech\comp>java -jar baksmali-1.3.3.jar -T inline.txt -d framework_TL1
3 -c :core.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:service
s.jar:core-junit.jar -a 10 framework_TL13.odex
Warning: You are disassembling an odex file without deodexing it. You
won't be able to re-assemble the results unless you deodex it with the -x
option

Original comment by dgcst...@gmail.com on 4 Sep 2012 at 2:49

GoogleCodeExporter commented 9 years ago
Right. please pastebin one of the classes that was erroring before

Original comment by jesusfreke@jesusfreke.com on 4 Sep 2012 at 3:11

GoogleCodeExporter commented 9 years ago
I am unable to reproduce this issue. I am able to deodex the framework odex 
from that rom without any problem. Is it possible the odex file is corrupt? The 
md5sum I have for framework.odex from that rom is 
2c1e18b83929068769917d43daadd9a0

Original comment by jesusfreke@jesusfreke.com on 4 Sep 2012 at 3:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
yes, you are right. The md5sum of framework.odex is 
270140EC126DC102172E70E22E0418B5
that is different from the original version. So, I re-get the framework.odex 
from original Rom. 
Thank you very much.
smali and baksmali are work successfully.

Original comment by dgcst...@gmail.com on 4 Sep 2012 at 8:15

GoogleCodeExporter commented 9 years ago

Original comment by jesusfreke@jesusfreke.com on 16 Sep 2012 at 6:57