pombreda / smali

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

ValidationException when deodexing RunKeeper app #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
I got ValidationException when deodexing RunKeeper's classes.dex file.

What is the exact smali/baksmali command that you ran?
baksmali -x classes.dex -o out

What version are you using?
1.2.2

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

org.jf.dexlib.Code.Analysis.ValidationException: Invalid register type 
(Reference,Lcom/fitnesskeeper/runkeeper/ActivityActivity;) for parameter 1 
(Reference,Landroid/content/Context;).
    at 
org.jf.dexlib.Code.Analysis.MethodAnalyzer.handleInvokeCommon(MethodAnalyze
r.java:2557)
    at 
org.jf.dexlib.Code.Analysis.MethodAnalyzer.handleInvoke(MethodAnalyzer.java
:2382)
    at 
org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyze
r.java:883)
    at 
org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:184)
    at 
org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.j
ava:253)
    at 
org.jf.baksmali.Adaptors.MethodDefinition.createTemplate(MethodDefinition.j
ava:118)
    at 
org.jf.baksmali.Adaptors.ClassDefinition.getTemplatesForMethods(ClassDefini
tion.java:279)
    at 
org.jf.baksmali.Adaptors.ClassDefinition.getVirtualMethods(ClassDefinition.
java:267)
    at 
org.jf.baksmali.Adaptors.ClassDefinition.createTemplate(ClassDefinition.jav
a:76)
    at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:133)
    at org.jf.baksmali.main.main(main.java:263)
opcode: invoke-static
CodeAddress: 10
Method: Lcom/fitnesskeeper/runkeeper/ActivityActivity$2;-
>onClick(Landroid/content/DialogInterface;I)V

I'm attaching classes.dex and my BOOTCLASSPATH files.

Original issue reported on code.google.com by Brut.alll on 20 Apr 2010 at 10:09

Attachments:

GoogleCodeExporter commented 9 years ago
I just tried this with v1.2.2, and it works fine. Based on the stack trace you 
gave,
you are definitely not using 1.2.2 :)

Original comment by JesusFr...@gmail.com on 20 Apr 2010 at 3:14

GoogleCodeExporter commented 9 years ago
Ok, you're right, sorry for that ;-)

Original comment by Brut.alll on 20 Apr 2010 at 3:30