hosijyun / smali

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

smali don't support dex which included link section #72

Closed GoogleCodeExporter closed 9 years ago

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

When I tried to smali the attached file today, the smali shows me this error 
message.

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: This dex file has a link section, which
 is not supported
        at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
        at org.jf.dexlib.Item.addExceptionContext(Item.java:176)
        at org.jf.dexlib.Item.readFrom(Item.java:78)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:390)
        at org.jf.baksmali.main.main(main.java:254)
Caused by: java.lang.RuntimeException: This dex file has a link section, which i
s not supported
        at org.jf.dexlib.HeaderItem.readItem(HeaderItem.java:84)
        at org.jf.dexlib.Item.readFrom(Item.java:76)
        ... 2 more
header_item

What is the exact smali/baksmali command that you ran?
java -jar baksmali-1.2.7-dev.jar classes.dex -o sdecode

What version of smali/baksmali are you using? What rom are you working
from?
1.2.7-dev r811

Please provide any additional information below: error messages, symptoms,
etc.
The dex is attached.

Original issue reported on code.google.com by DoctorE...@gmail.com on 2 Jul 2011 at 1:12

Attachments:

GoogleCodeExporter commented 9 years ago
This is a copyrighted app, and is not appropriate to be posted here. JF is 
aware and is going to fix it. This is due to my tampering with the dex header 
in this app.

Original comment by jc...@cunninglogic.com on 3 Jul 2011 at 1:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fixed - r812

Original comment by jesusfreke@jesusfreke.com on 15 Jul 2011 at 9:23

GoogleCodeExporter commented 9 years ago
Having the exact same issue.. Any chance someone can attach the r812 one please?

Original comment by excu...@gmail.com on 26 Jul 2011 at 7:55

GoogleCodeExporter commented 9 years ago
If I understand correctly, JF just ignore these apk files that have a link 
section. 

Here is the change detail I found:

http://code.google.com/p/smali/source/detail?r=fadcc2dcb90d9ce6374351d75111dc475
d6f9826

But I am seeing more apps that have a link section, is it possible that this 
gets fixed in the real sense? Also I didn't find any information regarding how 
link section works, any pointer? Thanks

Original comment by woodz...@gmail.com on 2 Nov 2011 at 3:44

GoogleCodeExporter commented 9 years ago
There is currently no such thing as a link section. The apps that have a 
non-zero value for the link section field in the header are just doing so as an 
attempted anti-disassembler measure.

Original comment by bgruv@google.com on 2 Nov 2011 at 4:03