xychix / smali

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

error in 2.3.5: regCount does not match the number of arguments of the method #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
I'm unable to baksmali the file Email.apk from SGS2 Gingerbread v2.3.5. It 
worked fine with 2.3.4.

Error occured while disassembling class 
Lcom.android.email.activity.MessageCompose$6; - skipping class
java.lang.RuntimeException: regCount does not match the number of arguments of 
the method
        at org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.java:150)
        at org.jf.dexlib.Code.Format.Instruction35c.<init>(Instruction35c.java:76)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInvokeVirtualQuick(MethodAnalyzer.java:3520)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1032)
        at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:208)
        at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:370)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:292)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:323)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:308)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:137)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:201)
        at org.jf.baksmali.main.main(main.java:282)

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

What version of smali/baksmali are you using? What rom are you working
from?
baksmali 1.2.8
ROM: SGS2 XWKJ1 (Android 2.3.5)

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

Original issue reported on code.google.com by rustam...@gmail.com on 30 Oct 2011 at 8:47

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry forgot to add the command line:

java -jar baksmali.jar -d lib -c :twframework.odex:com.google.android.maps.jar 
-I -x Email.odex

Original comment by rustam...@gmail.com on 30 Oct 2011 at 8:49

Attachments:

GoogleCodeExporter commented 9 years ago
Err... nevermind!
Had an outdated framework jar!
:-O

Please close this defect,
All is fine now.
:-)

Original comment by rustam...@gmail.com on 30 Oct 2011 at 9:03

GoogleCodeExporter commented 9 years ago
Closed! :D

Original comment by jesusfreke@jesusfreke.com on 30 Oct 2011 at 6:17

GoogleCodeExporter commented 9 years ago
Wait, where did you get an updated framework.jar?

Original comment by steven.y...@gmail.com on 23 Nov 2011 at 2:53