last24 / smali

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

Can not decompile some apk which has link section #96

Closed GoogleCodeExporter closed 9 years ago

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

When I want to decompile some apks, it will appear:

"This dex file has a link section, which is not supported. Ignoring."

Is there any suggestion about link section?

The google doc still have not specified this section

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

java -jar baksmali-1.3.0.jar Droidstats.apk 

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

1.3.0

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

the apk is attached

Original issue reported on code.google.com by ab333...@gmail.com on 7 Dec 2011 at 10:15

Attachments:

GoogleCodeExporter commented 9 years ago
That's exactly what it's supposed to do. Some tools have begun adding a 
spurious non-zero value to the link-section value in the header. This is just a 
warning that this is the case.

I assume that the apk was otherwise disassembled successfully?

Original comment by jesusfreke@jesusfreke.com on 7 Dec 2011 at 4:49

GoogleCodeExporter commented 9 years ago
I can not make sure whether the apk was disassembled successfully or not, cause 
the number of .smali files are much less than .ddx files(I used dedexer to 
disassemble this apk).
Cause of that, I guess that the baksmali doesn't disassemble this apk 
successfully.

Original comment by ab333...@gmail.com on 8 Dec 2011 at 1:24

GoogleCodeExporter commented 9 years ago
When I disassemble it, I get 391 smali files. Based on the information in the 
header, that is the correct number of classes that are defined in the dex file.

Original comment by jesusfreke@jesusfreke.com on 8 Dec 2011 at 1:30

GoogleCodeExporter commented 9 years ago
May I ask the command that you exactly run?
Cause I only get 4 .smali files

Original comment by ab333...@gmail.com on 8 Dec 2011 at 1:34

GoogleCodeExporter commented 9 years ago
The command I ran is simply:
baksmali Droidstats.apk

and then, to check the number of smali files:
find out -type f -name "*.smali" | wc -l

Are you sure you're looking in the right output directory? Using the command 
you mentioned in the issue, all the smali files should be located in various 
sub-directories of the out directory

Original comment by jesusfreke@jesusfreke.com on 8 Dec 2011 at 1:42

GoogleCodeExporter commented 9 years ago
Sorry , I think I have made a stupid mistake. I found all the .smali files 
already. 
Very thank for your help

Original comment by ab333...@gmail.com on 8 Dec 2011 at 1:46