Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dex2jar failed for multiple dex files in a jar file #18

Open
kenzyun opened this issue Jun 12, 2015 · 1 comment
Open

dex2jar failed for multiple dex files in a jar file #18

kenzyun opened this issue Jun 12, 2015 · 1 comment

Comments

@kenzyun
Copy link

kenzyun commented Jun 12, 2015

I want to do dex2jar for framework.jar from android L50 device.
There are classes.dex and classes2.dex in framework.jar.
When I use dex2jar to convert it, it shows error.

You can download framework-error.zip and framework.jar file here.
http://1drv.ms/1GiCuDb

@kenzyun
Copy link
Author

kenzyun commented Jun 30, 2015

https://groups.google.com/forum/#!topic/dex2jar/UbN_5frkAms
reference by the above patch, modifying the code can prevent this RuntimeException

--- a/dex-ir/src/main/java/com/googlecode/dex2jar/ir/TypeClass.java        Wed Aug 06 00:56:41 2014 +0800 
+++ b/dex-ir/src/main/java/com/googlecode/dex2jar/ir/TypeClass.java        Wed Aug 06 21:39:49 2014 +0800 
@@ -97,6 +97,9 @@ 
                 if (clz.fixed) { 
                     // FIXME check out the infect of move-result-object 
                     // FIXME div-int 
+                    if (thizCls == INT && clz == BOOLEAN) { 
+                        return TypeClass.INT; 
+                    } 
                     throw new RuntimeException("can not merge " + thizCls + " and " + clz); 
                 } else { 
                     return thizCls; 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant