soga07 / smali

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

Error when recompiling a .dex file #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,me again :)

What seems to be the problem?

When i using smali-1.2.5.jar(i think the version is irrelevant)to recompile 
it,it show me this msg:

---------------------------start from here----------------------------
decode\com\maxmpz\audioplayer\0x0.2.smali[21,23] extraneous input '0x0' 
expecting COLON
decode\com\maxmpz\audioplayer\0x0.2.smali[31,54] no viable alternative at input 
'0x0'
decode\com\maxmpz\audioplayer\0x0.2.smali[40,21] extraneous input '0x0' 
expecting OPEN_PAREN
decode\com\maxmpz\audioplayer\0x0.2.smali[52,54] no viable alternative at input 
'0x0'
decode\com\maxmpz\audioplayer\0x0.2.smali[54,61] no viable alternative at input 
'0x0'
decode\com\maxmpz\audioplayer\0x0.2.smali[107,65] no viable alternative at 
input '0X0'
decode\com\maxmpz\audioplayer\0x0.2.smali[121,69] no viable alternative at 
input '0x0'
decode\com\maxmpz\audioplayer\0x0.2.smali[143,54] no viable alternative at 
input '0x0'
decode\com\maxmpz\audioplayer\0x0.2.smali[145,65] no viable alternative at 
input '0x0'
decode\com\maxmpz\audioplayer\0X0.smali[21,23] extraneous input '0x0' 
expectingCOLON
decode\com\maxmpz\audioplayer\0X0.smali[31,54] no viable alternative at input 
'0x0'
decode\com\maxmpz\audioplayer\0X0.smali[40,21] extraneous input '0X0' 
expectingOPEN_PAREN
decode\com\maxmpz\audioplayer\0X0.smali[45,54] no viable alternative at input 
'0x0'
decode\com\maxmpz\audioplayer\0X0.smali[47,69] no viable alternative at input 
'0x0'
………………
………………
………………(it repeats this more and more)
-------------------------------end here-------------------------------

It will not show when i recompiled other classes.dex.Only this one.

I upload it in attach file,could you please check it,and fix it?

What is the exact smali/baksmali command that you ran?
java -jar smali-1.2.5.jar -o new_classes.dex decode

Original issue reported on code.google.com by ch3...@gmail.com on 2 Nov 2010 at 1:07

Attachments:

GoogleCodeExporter commented 9 years ago
And i think,It's the *.smali filename's problem(charset encoding?).You can 
check them.

Original comment by ch3...@gmail.com on 2 Nov 2010 at 1:13

GoogleCodeExporter commented 9 years ago
Yeah, there's definitely something wrong here. smali isn't recognizing the 
unusual field names. I'll take a look at it this evening and get it fixed

Original comment by JesusFr...@gmail.com on 2 Nov 2010 at 1:20

GoogleCodeExporter commented 9 years ago
This has been fixed:  http://code.google.com/p/smali/source/detail?r=794

Thanks for the bug report!

Original comment by JesusFr...@gmail.com on 4 Nov 2010 at 4:49

GoogleCodeExporter commented 9 years ago
Yeah!I have tested,R794 works great!
Thanks for the bug fix!

Original comment by ch3...@gmail.com on 5 Nov 2010 at 2:25