xychix / smali

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

Error when recompiling a .dex file #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

when I use smali1.3.2.jar to recompile (reodex?) a smali file, I've got this 
message :

// *** Extract ***
test.dex[145,9] Error for input '?': Invalid text
test.dex[145,11] Error for input '☻': Invalid text
test.dex[145,12] Error for input '?': Invalid text
test.dex[145,13] Error for input ' ': Invalid text
test.dex[145,14] Error for input ';': Invalid text
test.dex[145,15] Error for input '♣': Invalid text
test.dex[145,16] Error for input '♥': Invalid text
test.dex[145,17] Error for input '☻': Invalid text
test.dex[145,18] Error for input '?': Invalid text
test.dex[145,19] Error for input '⌂': Invalid text
test.dex[145,20] Error for input '↔': Invalid text
test.dex[145,21] Error for input '.': Invalid directive
test.dex[145,22] Error for input '♥': Invalid text
test.dex[145,23] Error for input '☺': Invalid text
test.dex[145,25] Error for input '¶': Invalid text
test.dex[145,27] Error for input '♣': Invalid text
test.dex[145,28] Error for input '☺': Invalid text
test.dex[145,30] Error for input '♥': Invalid text
test.dex[145,31] Error for input '☺': Invalid text
test.dex[145,33] Error for input '‼': Invalid text
// *** And much more lines with "biiiip" ***

My syntax is : 
C:\Program Files (x86)\Java\jre6\bin>java -Xmx512M -jar 
C:\Users\HP-AMD\Downloads\lvl_demo_unpatched\smali-1.3.2.jar C:\final\ test.dex

Original issue reported on code.google.com by jchartra...@gmail.com on 28 May 2012 at 5:38

Attachments:

GoogleCodeExporter commented 9 years ago
You might look over the smali usage message again :)

You are passing "test.dex" to smali, like it is a .smali file for it to 
assemble. So it's trying to parse test.dex as a smali file, and failing 
miserably. Because it's a dex file. Not a smali file :)

You probably want
java -jar smali.jar <directory with smali files> --output C:\final\test.dex

Original comment by bgruv@google.com on 29 May 2012 at 6:00