dalvik字节码有两种类型,原始类型和引用类型。对象和数组是引用类型,其它都是原始类型。
V void,只能用于返回值类型
Z boolean
B byte
S short
C char
I int
J long(64位)
F float
D double(64位)
对象以Lpackage/name/ObjectName;的形式表示。前面的L表示这是一个对象类型,package/name/是该对象所在的包,ObjectName是对象的名字,“;”表示对象名称的结束。相当于java中的package.name.ObjectName。例如:Ljava/lang/String;相当于java.lang.String
sput-object v0, Lcom/google/youngandroid/runtime;->Lit78:Lkawa/lang/SyntaxTemplate;
Likewise, this is setting the value of a static field. i.e.
设置com.google.youngandroid.runtime.Lit78的值为v0寄存器中的kawa.lang.SyntaxTemplate类型变量的值。相当于com.google.youngandroid.runtime.Lit78 = kawa.lang.SyntaxTemplate localVariable;
剩下的比较简单你应该能明白了。
报错 Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[212,15] no viable alternative at input 'builder'
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[212,23] no viable alternative at input 'Landroid/app/AlertDialog$Builder;'
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[215,98] mismatched input 'Landroid' expecting set null
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[215,106] Error for input '/': Invalid text
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[215,110] Error for input '/': Invalid text
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[217,13] Error for input ';': Invalid text
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[222,99] mismatched input 'Landroid' expecting set null
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[222,107] Error for input '/': Invalid text
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[222,111] Error for input '/': Invalid text
Work\com.uroad.yxw\smali\com\uroad\yxw\start\StartActivity.smali[224,13] Error for input ';': Invalid text
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/uroad/yxw/start/StartActivity.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)