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

Error when recompiling a .dex file #46

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 4 comments
Closed

Error when recompiling a .dex file #46

GoogleCodeExporter opened this issue Mar 24, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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

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

No branches or pull requests

1 participant