AizazSharif / smali

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

no viable alternative at input ...? #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by adamk...@gmail.com on 8 Apr 2014 at 6:05

GoogleCodeExporter commented 9 years ago
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.

Original comment by jesusfreke@jesusfreke.com on 9 Apr 2014 at 1:13

GoogleCodeExporter commented 9 years ago
.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;-><init>(Ljava/lang/String;Ljava/lang/String;)V

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

Original comment by adamk...@gmail.com on 9 Apr 2014 at 11:49

GoogleCodeExporter commented 9 years ago
Which is line 885?

Original comment by jesusfreke@jesusfreke.com on 9 Apr 2014 at 5:08

GoogleCodeExporter commented 9 years ago
The syntax for .local declarations changed in.. 2.0 iirc. It should be

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

Original comment by jesusfreke@jesusfreke.com on 7 Nov 2014 at 7:20