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

no viable alternative at input ...? #251

Closed
JesusFreke opened this issue Apr 1, 2015 · 4 comments
Closed

no viable alternative at input ...? #251

JesusFreke opened this issue Apr 1, 2015 · 4 comments

Comments

@JesusFreke
Copy link
Owner

Original issue 207 created by JesusFreke on 2014-04-08T18:05:07.000Z:

What seems to be the problem?
Trying to change setting.odex as i've folled this on xda:
http://forum.xda-developers.com/showpost.php?p=48416641&postcount=14&nocache=1&z=5700904123950750

but am getting error message:

Settings\com\android\settings\deivesinfodettings.smali[885,15] no viable alternative at input 'intent'
Settings\com\android\settings\deivesinfodettings.smali[885,22] no viable alternative at input 'Landroid/content/Intent'

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

java -jar smali.jar -a 16 -x Settings -o Settings.odex

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

Latest version, Sony stock rom (6.2.B.1.96) 4.1.2 Jelly Bean

What is the airspeed velocity of an unladen swallow?

Skip,

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

None

@JesusFreke
Copy link
Owner Author

Comment #1 originally posted by JesusFreke on 2014-04-09T01:13:20.000Z:

This looks like a normal error message when you use invalid syntax. Please provide the line in the smali file that is causing the error.

@JesusFreke
Copy link
Owner Author

Comment #2 originally posted by JesusFreke on 2014-04-09T11:49:30.000Z:

.line 157
.local v1, intent:Landroid/content/Intent;

new-instance v2, Landroid/content/ComponentName;

const-string v3, "com.adhi.kitkat.easteregg"

const-string v4, "com.adhi.kitkat.easteregg.PlatLogoActivity"

invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;->(Ljava/lang/String;Ljava/lang/String;)V

invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

@JesusFreke
Copy link
Owner Author

Comment #3 originally posted by JesusFreke on 2014-04-09T17:08:03.000Z:

Which is line 885?

@JesusFreke
Copy link
Owner Author

Comment #4 originally posted by JesusFreke on 2014-11-07T07:20:43.000Z:

The syntax for .local declarations changed in.. 2.0 iirc. It should be

.local v1, "intent":Landroid/content/Intent;

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